aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-04-28 09:59:43 +0800
committerMark Brown <broonie@kernel.org>2015-04-29 12:18:52 +0100
commit6e747d5311fc67b5fe7e2d7d242329c1bdff3318 (patch)
tree7c4c6c346c773ed6cf2d72a72f643d53e075f7eb /sound/soc/intel
parentASoC: rt5645: fixed section mismatch (diff)
downloadlinux-dev-6e747d5311fc67b5fe7e2d7d242329c1bdff3318.tar.xz
linux-dev-6e747d5311fc67b5fe7e2d7d242329c1bdff3318.zip
ASoC: rt5645: Adds push button support for rt5650
rt5650 support headset button detection. Currently, the button detection is only implemented for rt5650 codec. The button detection configuration register's default value is different from rt5645. And we didn't touch the register in the driver, so we will get the wrong value when we dump the registers. We will fix it in another patch. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r--sound/soc/intel/boards/cht_bsw_rt5645.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boards/cht_bsw_rt5645.c
index 20a28b22e30f..26e01f36b704 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5645.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5645.c
@@ -185,7 +185,7 @@ static int cht_codec_init(struct snd_soc_pcm_runtime *runtime)
return ret;
}
- rt5645_set_jack_detect(codec, &ctx->hp_jack, &ctx->mic_jack);
+ rt5645_set_jack_detect(codec, &ctx->hp_jack, &ctx->mic_jack, NULL);
return ret;
}