author | Jian Xu <jian.xu@amlogic.com> | 2016-07-14 11:14:03 (GMT) |
---|---|---|
committer | Jian Xu <jian.xu@amlogic.com> | 2016-07-18 06:39:11 (GMT) |
commit | ebb729528a71a9aa0c98bd1bef58681a3ac4d003 (patch) | |
tree | 27fd6f658daad32845e617ac1f5b80a1d116eb06 | |
parent | 51adc3f0816907cc7bd25a8becefda9901f8f3a4 (diff) | |
download | audio-ebb729528a71a9aa0c98bd1bef58681a3ac4d003.zip audio-ebb729528a71a9aa0c98bd1bef58681a3ac4d003.tar.gz audio-ebb729528a71a9aa0c98bd1bef58681a3ac4d003.tar.bz2 |
PD#128794: audio: fix 6 ch LPCM hdmi reset audio parameter noise
when do standy
Change-Id: I9e5903c51851fe58def7c8c443525710aca24e81
-rw-r--r-- | hdmi_audio_hw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hdmi_audio_hw.c b/hdmi_audio_hw.c index d1e0601..4a1c3ac 100644 --- a/hdmi_audio_hw.c +++ b/hdmi_audio_hw.c @@ -459,7 +459,9 @@ out_standby(struct audio_stream *stream) pthread_mutex_lock(&out->lock); status = do_output_standby(out); /* clear the hdmitx channel config to default */ - sysfs_set_sysfs_str("/sys/class/amhdmitx/amhdmitx0/aud_output_chs", "0:0"); + if (out->multich == 6) { + sysfs_set_sysfs_str("/sys/class/amhdmitx/amhdmitx0/aud_output_chs", "0:0"); + } if (out->format != AUDIO_FORMAT_DTS_HD) set_codec_type(TYPE_PCM); pthread_mutex_unlock(&out->lock); |