mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-01 07:47:55 +00:00
audio: Remove device bit only on active_input
This makes the code less confusing. Change-Id: I6020f892f5165a6c784b05737e29b24d7121b8c9
This commit is contained in:
parent
04037e7121
commit
757e2d8a77
1 changed files with 3 additions and 3 deletions
|
@ -617,9 +617,9 @@ static snd_device_t get_input_snd_device(struct audio_device *adev, audio_device
|
|||
source = (active_input == NULL) ?
|
||||
AUDIO_SOURCE_DEFAULT : active_input->source;
|
||||
|
||||
in_device = ((active_input == NULL) ?
|
||||
AUDIO_DEVICE_NONE : active_input->devices)
|
||||
& ~AUDIO_DEVICE_BIT_IN;
|
||||
in_device = (active_input == NULL) ?
|
||||
AUDIO_DEVICE_NONE :
|
||||
(active_input->devices & ~AUDIO_DEVICE_BIT_IN);
|
||||
channel_mask = (active_input == NULL) ?
|
||||
AUDIO_CHANNEL_IN_MONO : active_input->main_channels;
|
||||
|
||||
|
|
Loading…
Reference in a new issue