From 01be0409e2525a24d27f6798f51da023080c304f Mon Sep 17 00:00:00 2001 From: Cal Archer Date: Wed, 17 Oct 2018 10:10:19 +0200 Subject: [PATCH] fix USB audio support fw/b changes in Oreo cause some USB audio devices which were previously recognized as AUDIO_DEVICE_OUT_USB_DEVICE or AUDIO_DEVICE_OUT_USB_ACCESSORY now to be recognized as AUDIO_DEVICE_OUT_USB_HEADSET (0x4000000), causing this error: AudioPolicyManagerCustom: setDeviceConnectionState() could not find HW module for device 04000000 BUGBASH-2398 Change-Id: If1f6c760e28a2daeb3855c86fc561c7e5e85f0bf (cherry picked from commit 36fb5d9d181a7e0ae8dd5f2e93a1f5f1a70d1302) --- audio/audio_policy.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf index 7ef243a..ebd471b 100644 --- a/audio/audio_policy.conf +++ b/audio/audio_policy.conf @@ -96,7 +96,7 @@ audio_hw_modules { sampling_rates 44100 channel_masks AUDIO_CHANNEL_OUT_STEREO formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_USB_DEVICE + devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_USB_HEADSET } } }