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)
This commit is contained in:
Cal Archer 2018-10-17 10:10:19 +02:00 committed by Kevin Haggerty
parent a33190af8a
commit 01be0409e2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}
}