summaryrefslogtreecommitdiff
authorJian Xu <jian.xu@amlogic.com>2016-05-26 10:14:53 (GMT)
committer Jian Xu <jian.xu@amlogic.com>2016-05-26 10:14:53 (GMT)
commitdb5d2ea7e9ec491d5986d4d53765d23153377592 (patch)
tree7153f14e80b304c755c06eb1a76bd3b2f7785c56
parent4ad0ac06e9ea8099e7668beaf13caada035a5457 (diff)
downloadaudio-db5d2ea7e9ec491d5986d4d53765d23153377592.zip
audio-db5d2ea7e9ec491d5986d4d53765d23153377592.tar.gz
audio-db5d2ea7e9ec491d5986d4d53765d23153377592.tar.bz2
PD#125941: audio: clear up the digital_codec setting
Change-Id: Id6f3bfc6093aa7483dfd2a7edf44595aee204816
Diffstat
-rw-r--r--audio_hw.c2
-rw-r--r--hdmi_audio_hw.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/audio_hw.c b/audio_hw.c
index 028b73a..2d4d5b2 100644
--- a/audio_hw.c
+++ b/audio_hw.c
@@ -602,7 +602,7 @@ static int start_output_stream(struct aml_stream_out *out)
if (out->is_tv_platform == 1) {
sysfs_set_sysfs_str("/sys/class/amhdmitx/amhdmitx0/aud_output_chs", "2:1");
}
- set_codec_type(0);
+ //set_codec_type(0);
if (out->hw_sync_mode == 1) {
LOGFUNC("start_output_stream with hw sync enable\n");
}
diff --git a/hdmi_audio_hw.c b/hdmi_audio_hw.c
index 5c2984d..42a126f 100644
--- a/hdmi_audio_hw.c
+++ b/hdmi_audio_hw.c
@@ -447,6 +447,7 @@ out_standby(struct audio_stream *stream)
pthread_mutex_lock(&out->dev->lock);
pthread_mutex_lock(&out->lock);
status = do_output_standby(out);
+ set_codec_type(TYPE_PCM);
pthread_mutex_unlock(&out->lock);
pthread_mutex_unlock(&out->dev->lock);
return status;