# Copyright (C) 2025 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # proto-file: third_party/android/mediapc_requirements/requirements.proto # proto-message: Requirement id: "5.6/H-1-3" name: "Twenty Four Bit Audio" description: "Wired headsets and USB audio devices support 24-bit audio" is_non_cts_test: true test_configs: { key: "" value: { description: "Default test config" proto_field_number: 48 } } measurements: { key: "twenty_four_bit_audio_supported" value: { description: "Is 24-bit audio supported" measurement_type: MEASUREMENT_TYPE_BOOL comparison: COMPARISON_EQUAL proto_field_number: 3 } } specs { key: 33 value { mpc: MEDIA_PERFORMANCE_CLASS_13 specification: "MUST support >=24-bit audio for stereo output over 3.5 mm audio jacks if present and over USB audio if supported through the entire data path for low latency and streaming configurations. For the low latency configuration, AAudio should be used by the app in low-latency callback mode. For the streaming configuration, a Java AudioTrack should be used by the app. In both the low latency and streaming configurations, the HAL output sink should accept either AUDIO_FORMAT_PCM_24_BIT, AUDIO_FORMAT_PCM_24_BIT_PACKED, AUDIO_FORMAT_PCM_32_BIT or AUDIO_FORMAT_PCM_FLOAT for its target output format." required_values { key: "twenty_four_bit_audio_supported" value { bool_value: true } } } } specs { key: 34 value { mpc: MEDIA_PERFORMANCE_CLASS_14 specification: "same" required_values { key: "twenty_four_bit_audio_supported" value { bool_value: true } } } } specs { key: 35 value { mpc: MEDIA_PERFORMANCE_CLASS_15 specification: "same" required_values { key: "twenty_four_bit_audio_supported" value { bool_value: true } } } } specs { key: 37 value { mpc: MEDIA_PERFORMANCE_CLASS_17 specification: "same" required_values { key: "twenty_four_bit_audio_supported" value { bool_value: true } } } }