Merge "audio: Fix false positives in audio_is_remote_submix_device()"
This commit is contained in:
commit
74f0a578a8
1 changed files with 4 additions and 2 deletions
|
@ -1102,8 +1102,10 @@ static inline bool audio_is_usb_device(audio_devices_t device)
|
|||
|
||||
static inline bool audio_is_remote_submix_device(audio_devices_t device)
|
||||
{
|
||||
if ((device & AUDIO_DEVICE_OUT_REMOTE_SUBMIX) == AUDIO_DEVICE_OUT_REMOTE_SUBMIX
|
||||
|| (device & AUDIO_DEVICE_IN_REMOTE_SUBMIX) == AUDIO_DEVICE_IN_REMOTE_SUBMIX)
|
||||
if ((audio_is_output_devices(device) &&
|
||||
(device & AUDIO_DEVICE_OUT_REMOTE_SUBMIX) == AUDIO_DEVICE_OUT_REMOTE_SUBMIX)
|
||||
|| (!audio_is_output_devices(device) &&
|
||||
(device & AUDIO_DEVICE_IN_REMOTE_SUBMIX) == AUDIO_DEVICE_IN_REMOTE_SUBMIX))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue