diff options
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index c7fbb09..4ea7443 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -323,6 +323,13 @@ AudioFlinger::AudioHwDevice* AudioFlinger::findSuitableHwDev_l( if ((dev->get_supported_devices != NULL) && (dev->get_supported_devices(dev) & devices) == devices) return audioHwDevice; +#ifdef ICS_AUDIO_BLOB + else if (dev->get_supported_devices == NULL && i != 0 && + devices == 0x80) + // Reasonably safe assumption: A non-primary HAL without + // get_supported_devices is a locally-built A2DP binary + return audioHwDevice; +#endif } } else { // check a match for the requested module handle |