mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
audio: Fix get_snd_device_name() for earpiece
SND_DEVICE_MIN_OUT_EARPIECE is set to SND_DEVICE_MIN. Change-Id: I3a442df7f388b72d433257f6ac1db473e4cb14a6
This commit is contained in:
parent
130da9f065
commit
dde54c0469
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ static const char *get_snd_device_name(snd_device_t snd_device)
|
|||
const char *name = NULL;
|
||||
|
||||
if (snd_device == SND_DEVICE_NONE ||
|
||||
(snd_device > SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX))
|
||||
(snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX))
|
||||
name = device_table[snd_device];
|
||||
|
||||
ALOGE_IF(name == NULL, "%s: invalid snd device %d", __func__, snd_device);
|
||||
|
|
Loading…
Reference in a new issue