summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2018-02-12 01:47:48 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2018-03-04 13:54:02 +0000
commit276108cd142b6cc3a8e21859b497b6605faf1b6e (patch)
tree113e2df6ed9754ee3e50782e330752fc84132845
parent4920b3238ba11d2a2a5c671f0a8d7bfd92d95f6c (diff)
downloadandroid_hardware_samsung-276108cd142b6cc3a8e21859b497b6605faf1b6e.tar.gz
android_hardware_samsung-276108cd142b6cc3a8e21859b497b6605faf1b6e.tar.bz2
android_hardware_samsung-276108cd142b6cc3a8e21859b497b6605faf1b6e.zip
audio: Guard mixer path dependency fix
Change-Id: Id93d7941ae322a83488da3cea62c6eb36a6e9160
-rw-r--r--audio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index bd15634..621107c 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1013,7 +1013,7 @@ int disable_snd_device(struct audio_device *adev,
update_mixer = true;
#endif /* DSP_POWEROFF_DELAY */
audio_route_reset_path(mixer_card->audio_route, snd_device_name);
- if (out_uc_info != NULL) {
+ if (snd_device > SND_DEVICE_IN_BEGIN && out_uc_info != NULL) {
/*
* Cycle the rx device to eliminate routing conflicts.
* This prevents issues when an input route shares mixer controls with an output