summaryrefslogtreecommitdiff
path: root/audio
Commit message (Collapse)AuthorAgeFilesLines
* audio: Verify that hal implements get_audio_port before callingHEADs12.1Aaron Kling2022-04-271-0/+4
| | | | Change-Id: I3652382433d365407bf006d71f36743aa89a76ee
* audio VTS: Consider only attached devices for stream testsMikhail Naganov2021-11-2410-30/+1031
| | | | | | | | | | | | | | | | V6 and V7 use the audio policy configuration file for generating the set of test profiles. The generator must only take into account profiles of mix ports that are routed to device ports of attached devices. Otherwise the HAL can rightfully refuse to create a stream for the profile when the device isn't attached. Bug: 205808571 Test: atest HalAudioV6_0GeneratorTest Test: atest HalAudioV7_0GeneratorTest Test: atest VtsHalAudioV6_0TargetTest Test: atest VtsHalAudioV7_0TargetTest Change-Id: I798f978c1c0bc32831c20e4b08338b462d8eea16 Merged-In: I798f978c1c0bc32831c20e4b08338b462d8eea16
* audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTestMikhail Naganov2021-11-125-1/+278
| | | | | | | | | | | The profiles generator wasn't loading correctly from the Audio Policy Manager config file profiles with unpopulated attributes, which is typical for dynamic profiles. Bug: 204314749 Test: atest HalAudioV7_0GeneratorTest Change-Id: I514a4e03da165cacb5dbaaa16470130895681484 Merged-In: I514a4e03da165cacb5dbaaa16470130895681484
* Provide defaults for android.hardware.audio@7.0-implRoman Kiryanov2021-08-251-2/+7
| | | | | | | | | | | see aosp/1366502. Bug: 196868480 Bug: 161485545 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: Ie582038f2212fbf881497ed3db62ef04bac286f3 Merged-In: Ie582038f2212fbf881497ed3db62ef04bac286f3
* audio: Allow SetAudioProperties to not be supported am: 9faa583bf3Kuowei Li2021-08-101-0/+3
|\ | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15363188 Change-Id: I902be86aae3c8cd338abb0339e62ed9a522fdf30
| * audio: Allow SetAudioProperties to not be supportedKuowei Li2021-07-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The parameter of sample rate, channel mask and format is not mandatory to support by Audio HAL. At meantime, there is no corresponding handle in framework. Hence, SetAudioProperties should allow reporting not supported. Bug: 194368657 Test: run vts -m VtsHalAudioV7_0Target Change-Id: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2 Merged-In: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2
| * Audio VTS: Make the active microphone query test more robust in V7Mikhail Naganov2021-07-202-17/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to V7 the test which exercises IStreamIn.getActiveMicrophones was using a hardcoded configuration for the input stream. This configuration no longer works for some of new devices. To fix that, the part of the test which calls getActiveMicrophones has been moved into a separate test--a descendant of InputStreamTest which is parametrized using the actual configuration of the DUT. Tests for HAL versions prior to V7 are not affected because they don't use a full parser for the DUT config. Bug: 193849687 Test: atest VtsHalAudioV7_0TargetTest Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa (cherry picked from commit e4ce86bfb7bd81eea39da5d76dbf796e2c1dbe1d) Merged-In: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
| * audio: Fix handling of relative XML include paths in VTSMikhail Naganov2021-07-084-3/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass "no fixup base dirs" flag to the XInclude processor to avoid modifications of the top-level elements from included XML files as a result of "fixup." Added tests to ensure that all relevant XInclude scenarios work. Bug: 192619060 Test: atest -host android.hardware.audio.common.test.utility_tests Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd (cherry picked from commit 13c679652834db45e2df4137f088ecd06351f017) Merged-In: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
* | Audio: Add memory leak checking for HALAndy Hung2021-07-212-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | $ adb shell setprop libc.debug.malloc.program android.hardware.audio.service $ adb shell setprop libc.debug.malloc.options backtrace=8 $ adb shell setenforce 0 $ adb shell pkill audioserver $ adb shell dumpsys media.audio_flinger Test: Check the audio flinger dumpsys as above. Bug: 186054996 Bug: 187462632 Change-Id: I2e8db14b816cc4cd7e1420c538505bf71fa58c97
* | Merge "Audio VTS: Make the active microphone query test more robust in V7" ↵TreeHugger Robot2021-07-202-17/+67
|\ \ | | | | | | | | | into sc-dev
| * | Audio VTS: Make the active microphone query test more robust in V7Mikhail Naganov2021-07-192-17/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to V7 the test which exercises IStreamIn.getActiveMicrophones was using a hardcoded configuration for the input stream. This configuration no longer works for some of new devices. To fix that, the part of the test which calls getActiveMicrophones has been moved into a separate test--a descendant of InputStreamTest which is parametrized using the actual configuration of the DUT. Tests for HAL versions prior to V7 are not affected because they don't use a full parser for the DUT config. Bug: 193849687 Test: atest VtsHalAudioV7_0TargetTest Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
* | | Merge "audio: make sure to set back to AudioMode::NORMAL after the test ↵David Li2021-07-201-7/+10
|\ \ \ | |/ / |/| | | | | case" into sc-dev
| * | audio: make sure to set back to AudioMode::NORMAL after the test caseDavid Li2021-07-191-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the major version is greater than or equal to 6, the test tries to set the mode to AudioMode::CALL_SCREEN. However, it doesn't set back to AudioMode::NORMAL. Replace all ASSERT with EXPECT to ensure the test can reach to the explicit call to reset to AudioMode::NORMAL. Bug: 194022995 Test: atest VtsHalAudioV7_0TargetTest Change-Id: Ib9b6e310965a85b016853b72c60716fa054641c6
* | | Merge "audio: Fix handling of relative XML include paths in VTS" into sc-devTreeHugger Robot2021-07-084-3/+214
|\ \ \
| * | | audio: Fix handling of relative XML include paths in VTSMikhail Naganov2021-07-074-3/+214
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass "no fixup base dirs" flag to the XInclude processor to avoid modifications of the top-level elements from included XML files as a result of "fixup." Added tests to ensure that all relevant XInclude scenarios work. Bug: 192619060 Test: atest -host android.hardware.audio.common.test.utility_tests Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
* / / Revert "audio: exclude the echo reference device in capture position test"Mikhail Naganov2021-07-072-10/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | This reverts commit b22f307ccfd1072e3d61deb4e03659db7a168b7d. Reason for revert: As explained in b/192307382#comment12, the HAL must provide capture positions for the echo reference input regardless of whether there is any actual output. This should not affect O6/R4 as according to b/192307382#comment10, the VTS tests pass w/o this patch after the HAL has been fixed. Bug: 192307382 Change-Id: I224bd9de1dcb2e2c8dc138dbfd85f848378aea4f Test: VtsHalAudioV7_0TargetTest --gtest_filter=*PcmOnlyConfigInputStreamTest*
* / audio: exclude the echo reference device in capture position testCarter Hsu2021-06-302-1/+10
|/ | | | | | | | Bug: 192307382 Test: VtsHalAudioV7_0TargetTest --gtest_filter=*PcmOnlyConfigInputStreamTest* Signed-off-by: Carter Hsu <carterhsu@google.com> Change-Id: I4e38e093bc3be7ee54c0c7cce4d1181e260a23bb
* Merge "StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGED" am: ↵Andy Hung2021-05-042-1/+7
|\ | | | | | | | | | | | | | | 66ffc5b99a am: 1e1514be04 am: 6660615822 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692490 Change-Id: I5bd4d6fdea2c18c9822ad061cdc24a488b148fb6
| * Merge "StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGED" am: ↵Andy Hung2021-05-042-1/+7
| |\ | | | | | | | | | | | | | | | | | | | | | 66ffc5b99a am: 1e1514be04 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692490 Change-Id: I97c94630cd48b9a0354c9b76e593ea0205a633b4
| | * StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGEDAndy Hung2021-04-302-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Use audio_metadata_byte_string_len method in asyncEventCallback. Test: atest metadata_tests Bug: 186894288 Change-Id: I04914bc5b2c778002b53b8f8da5bf29fff5c80f8
| * | Merge changes from topics "dra", "dts_uhd", "earc" am: b76d8e27fb am: 0b58fe1496Andy Hung2021-04-302-0/+2
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692146 Change-Id: Ia8f84c5c03dbf91fafc822ce2b1ef8480f104b7d
| | * Audio: Add AUDIO_FORMAT_DRAAndy Hung2021-04-292-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | China DTMB digital TV. See SJ/T11368-2006 “Specification for multichannel digital audio coding technology”. Test: atest AudioFormatTest Bug: 185950819 Merged-In: I941c4991e598e864babfb888a8827d1625d95990 Change-Id: I941c4991e598e864babfb888a8827d1625d95990
| * | audio: Add device constants for HDMI EARC am: 1f90e1fbf8 am: a21b9b5d4eAndy Hung2021-04-303-0/+6
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1690703 Change-Id: I3b2bc500ca14d75ba1d0a6cc04ae6dc8784ae241
| | * audio: Add device constants for HDMI EARCAndy Hung2021-04-293-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation check by grep -E -r "HDMI_ARC|HDMI_EARC" . Test: atest AudioDeviceInfoTest Bug: 131385398 Bug: 151781316 Merged-In: Idfe27b468a9f09770a31b6b58d83de77bebc6c80 Change-Id: Idfe27b468a9f09770a31b6b58d83de77bebc6c80
| * | Audio: Add AUDIO_FORMAT_DTS_UHD am: 3c5fcc51f5 am: 24556f0dfeAndy Hung2021-04-302-0/+2
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692125 Change-Id: Iee1f48feeb4e067daef3e46a94145c60a34a33af
| | * Audio: Add AUDIO_FORMAT_DTS_UHDAndy Hung2021-04-292-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See ETSI TS 103 491 V1.2.1 (2019-05) DTS-UHD Audio Format; Delivery of Channels, Objects and Ambisonic Sound Fields Test: atest AudioFormatTest Bug: 184538197 Merged-In: I4123efb29a95a599982af85068f8e4468ff15159 Change-Id: I4123efb29a95a599982af85068f8e4468ff15159
| * | audio HAL - fix UAFs am: 7283cbe8cb am: e227bfd15c am: facfee6382 am: da947d5127Steven Moreland2021-04-262-8/+8
| |\ \ | | |/ | |/| | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14212414 Change-Id: I7c4ba7e1ed4e7c71e10332ce986bbc7b6aba8f40
| | * audio HAL - fix UAFs am: 7283cbe8cb am: e227bfd15c am: facfee6382Steven Moreland2021-04-262-8/+8
| | |\ | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14212414 Change-Id: I50df59e828d44606c2fca8dc44830b5def4f9670
| | | * audio HAL - fix UAFs am: 7283cbe8cb am: e227bfd15cSteven Moreland2021-04-262-8/+8
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14212414 Change-Id: I5b80e2810ef7c4010496687934d93685057d4c82
| | | | * audio HAL - fix UAFsSteven Moreland2021-04-162-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 185259758 Test: N/A Change-Id: I5ec70b098a00746108e10ab39e966607d78c84ae Merged-In: I5ec70b098a00746108e10ab39e966607d78c84ae (cherry picked from commit a8ac7cf706be7a77589070ea7c62f8e1b94ce316)
| | * | | Merge "Make android.hardware.renderscript@1.0 buildable for native_bridge" ↵Victor Khimenko2020-07-145-0/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into rvc-dev am: 284806014a Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12127774 Change-Id: Ibe52069ecf2945a8b64922f0e1add7497bcbd423
| | | * | Make android.hardware.renderscript@1.0 buildable for native_bridgeVictor Khimenko2020-07-105-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/153609531 Test: m android.hardware.renderscript@1.0.native_bridge Change-Id: If11376cdd583629c8edfea17efb130dd68dc9b8f Merged-In: If11376cdd583629c8edfea17efb130dd68dc9b8f
| | * | | Merge "Use StopServicesSetup to stop/start framework." into rvc-dev am: ↵TreeHugger Robot2020-05-138-32/+16
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | 2e59c22326 Change-Id: I7c0b5c70ecb91a9bc640c989b8fa782dc441fbbd
| | | * | Merge "Use StopServicesSetup to stop/start framework." into rvc-devTreeHugger Robot2020-05-138-32/+16
| | | |\ \
| | | | * | Use StopServicesSetup to stop/start framework.Dan Shi2020-05-138-32/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 155774142 Test: none Exempt-From-Owner-Approval: This CL replaces target preparer, shouldn't change test behavior. Change-Id: I83cffadfff15e6352a69641c3227efb63e7a34e4 Merged-In: I83cffadfff15e6352a69641c3227efb63e7a34e4
| | * | | | Merge "AudioMetadata: Add documentation" into rvc-dev am: 425e365256Andy Hung2020-05-121-3/+108
| | |\| | | | | | | | | | | | | | | | | | | | | Change-Id: Ib73f59726bbfb0fcd9c753e433c81e8d738ca58b
| | * | | | Merge "Replace direct pid writes with setting task profiles for audio ↵Suren Baghdasaryan2020-05-021-1/+1
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces" into rvc-dev am: 397f324c11 Change-Id: I38a5ac473baed8244c03c6a8da3d1f3a698e5c68
* | | | | | | Audio: Add AUDIO_FORMAT_DRAAndy Hung2021-04-202-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | China DTMB digital TV. See SJ/T11368-2006 “Specification for multichannel digital audio coding technology”. Test: atest AudioFormatTest Bug: 185950819 Change-Id: I941c4991e598e864babfb888a8827d1625d95990
* | | | | | | Merge changes from topics "24ch Audio HAL", "360RA HAL" am: 2092162bc3 am: ↵Andy Hung2021-04-173-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a3bba5eb95 am: 24b2eac13a Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1677774 Change-Id: I88962b3c79f6a9c056bb0aefb54094d817dba109
| * | | | | | audio: Add AUDIO_CHANNEL_OUT_22POINT2 constantAndy Hung2021-04-153-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24 channel configuration for immersive audio See new value in system/media/audio/audio-hal-enums.h. Define the same enum to HALv7 and update getChannelCount(). Test: atest android.hardware.audio.common@7.0-util_tests Bug: 185530406 Change-Id: I8dc5e6c504049908fef157b11ffa043ecaeacaf9
| * | | | | | audio: Add AUDIO_CHANNEL_OUT_13POINT_360RA constantKei Murayama2021-04-153-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 13ch audio constant for 360 Reality Audio. The enum value is added in system/media/audio/audio-hal-enums.h. - Define the same enum to HALv7. - Set 13 for the layout from getChannelCount(). Bug: 185100731 Test: Use the value on audio hal and build. Test: Use the value on audio_policy_configuration.xml and build. Test: atest android.hardware.audio.common@7.0-util_tests Change-Id: Ifa37f9be96a94c623e5d4164774c39d05efbbb8b
| * | | | | | audio: Use get_audio_port_v7 in the default wrapperMikhail Naganov2021-03-312-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get_audio_port_v7 interface method was added in aosp/1518624 but wasn't used in the default wrapper due to the refactoring ongoing at that time. Fixing this omission. Bug: 160352965 Test: atest VtsHalAudioV7_0TargetTest Change-Id: I1e3594f30fe8fa319d0b5b4244531c9142870503 Merged-In: I1e3594f30fe8fa319d0b5b4244531c9142870503
* | | | | | | Merge "audio HAL - fix UAFs" into sc-devTreeHugger Robot2021-04-142-6/+6
|\ \ \ \ \ \ \
| * | | | | | | audio HAL - fix UAFsSteven Moreland2021-04-132-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 185259758 Test: N/A Change-Id: I5ec70b098a00746108e10ab39e966607d78c84ae
* | | | | | | | Merge "audio: Add device constants for HDMI EARC" into sc-devAndy Hung2021-04-133-0/+6
|\ \ \ \ \ \ \ \
| * | | | | | | | audio: Add device constants for HDMI EARCAndy Hung2021-04-083-0/+6
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation check by grep -E -r "HDMI_ARC|HDMI_EARC" . Test: atest AudioDeviceInfoTest Bug: 131385398 Bug: 151781316 Change-Id: Idfe27b468a9f09770a31b6b58d83de77bebc6c80
* | | | | | | | Merge "Count channel mapping number from the back." into sc-devJiabin Huang2021-04-121-4/+4
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Count channel mapping number from the back.jiabin2021-04-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The channel mapping array may have leading UNUSED value. In that case, count the channel mapping number from the back to avoid lost channel mapping information. Bug: 183558363 Test: repo steps in the bug Test: atest android.hardware.audio@7.0-util_tests Change-Id: Ic4238e520c16eb1daad7c9e92555e92637f8e7c9
* | | | | | | | Audio: Add AUDIO_FORMAT_DTS_UHDAndy Hung2021-04-062-0/+2
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See ETSI TS 103 491 V1.2.1 (2019-05) DTS-UHD Audio Format; Delivery of Channels, Objects and Ambisonic Sound Fields Test: atest AudioFormatTest Bug: 184538197 Change-Id: I4123efb29a95a599982af85068f8e4468ff15159
* | | | | | | Merge "audio: Fix fixed size char array conversions" am: ebe635f8da am: ↵Treehugger Robot2021-03-312-24/+47
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f1be92463d am: 999aa1342b Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1659438 Change-Id: Ie6e0080ddd46d602b01a7521dfa452efbeff5d3f