summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Patel2015-02-17 19:06:13 +0530
committerSrikant Patnaik2015-02-17 19:15:30 +0530
commitaa260eac36acaa7e9c5b4e5ac5d816c9046e46df (patch)
treea8826f2ccc7251025f83374785380afd51404213
parent7d5ce2f3faf5a9a1ba0b796dc0ba91569276c0db (diff)
downloadFOSSEE-netbook-kernel-source-aa260eac36acaa7e9c5b4e5ac5d816c9046e46df.tar.gz
FOSSEE-netbook-kernel-source-aa260eac36acaa7e9c5b4e5ac5d816c9046e46df.tar.bz2
FOSSEE-netbook-kernel-source-aa260eac36acaa7e9c5b4e5ac5d816c9046e46df.zip
Change Audio driver to redirect audio on speaker and headphone both while HDMI cable plugged-in
Signed-off-by: Manish Patel <manish.patel@volansystech.com>
-rwxr-xr-xsound/soc/wmt/wmt-i2s.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/wmt/wmt-i2s.c b/sound/soc/wmt/wmt-i2s.c
index 643d25e2..71e84828 100755
--- a/sound/soc/wmt/wmt-i2s.c
+++ b/sound/soc/wmt/wmt-i2s.c
@@ -223,11 +223,15 @@ void wmt_i2s_ch_config(void)
ASMPF2HDACHCFG_VAL = 0x76543200;
}
+ // Disable below piece of code to redirect audio on speaker and
+ // HDMI both while HDMI plugged-in
+#if 0
if (i2s_data->HDMI_aud_enable) {
/* disable DAC#0, if HDMI Audio is enabled */
ASMPFCHCFG0_VAL &= 0xFFFF00FF;
ASMPFCHCFG0_VAL |= 0x00009800;
}
+#endif
/* HDMI_SPDIF_STATE = 3, means disable HDMI&SPDIF
4, means enable HDMI only