diff options
Diffstat (limited to 'audio/audio_hw.c')
-rw-r--r-- | audio/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index f0bfff0..4a1fc17 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -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); |