summaryrefslogtreecommitdiff
authorchengshun.wang <chengshun.wang@amlogic.com>2013-11-06 01:29:22 (GMT)
committer jian.xu <jian.xu@amlogic.com>2013-11-11 10:02:40 (GMT)
commitc6acdf726b11e8c7447ec4505f6320f49c606aba (patch)
treec6fb46251690ccaaed4e73dd76d03f6d852aa553
parentedc6d67a5515e5fa0178428117c257bc13eba71d (diff)
downloadaudio-c6acdf726b11e8c7447ec4505f6320f49c606aba.zip
audio-c6acdf726b11e8c7447ec4505f6320f49c606aba.tar.gz
audio-c6acdf726b11e8c7447ec4505f6320f49c606aba.tar.bz2
PD# 81382 : external DAC had papa sound in k100
add m8_codec audio path
Diffstat
-rwxr-xr-xaudio_hw.c1
-rwxr-xr-xm8codec_mixer_paths.xml16
2 files changed, 17 insertions, 0 deletions
diff --git a/audio_hw.c b/audio_hw.c
index c621123..958f6a2 100755
--- a/audio_hw.c
+++ b/audio_hw.c
@@ -672,6 +672,7 @@ static int do_output_standby(struct aml_stream_out *out)
/* FIXME: only works if only one output can be active at a time */
reset_mixer_state(adev->ar);
+ update_mixer_state(adev->ar);
}
/* stop writing to echo reference */
diff --git a/m8codec_mixer_paths.xml b/m8codec_mixer_paths.xml
new file mode 100755
index 0000000..2ece7c9
--- a/dev/null
+++ b/m8codec_mixer_paths.xml
@@ -0,0 +1,16 @@
+<mixer>
+ <ctl name="Amp Spk enable" value="0" />
+ <path name="speaker">
+ <ctl name="Amp Spk enable" value="1" />
+ </path>
+
+ <path name="headphone">
+ <ctl name="Amp Spk enable" value="0" />
+ </path>
+
+ <path name="main_mic">
+ </path>
+
+ <path name="headset-mic">
+ </path>
+</mixer>