summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNikesh Oswal <noswal@nvidia.com>2012-02-08 10:33:44 -0800
committerLokesh Pathak <lpathak@nvidia.com>2012-02-23 05:07:47 -0800
commit4c00234126eac2f5dff167653a22832b054f8ddc (patch)
tree14a8336ea9a02a215166e914fa3bdf34f40f3529 /sound
parentdd359b432f7b8a3375e87d4ce86e892154b2d393 (diff)
asoc: codecs: aic326x: enable the headset interrupts after jack registration
Change-Id: I682ccc9ba44f82b8acf836c1703d5d54419da54b Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84535 Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic326x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/tlv320aic326x.c b/sound/soc/codecs/tlv320aic326x.c
index d4c1224b1d4e..d384762f5d28 100644
--- a/sound/soc/codecs/tlv320aic326x.c
+++ b/sound/soc/codecs/tlv320aic326x.c
@@ -2449,7 +2449,7 @@ static const struct aic3262_configs aic3262_reg_init[] = {
{0, BEEP_CNTL_R2, 0x04},
/* Interrupt config for headset detection */
- {0, INT1_CNTL, 0x80},
+ //{0, INT1_CNTL, 0x80}, /*Enable INT after Jack Registration*/
{0, INT_FMT, 0x40},
{0, GPIO1_IO_CNTL, 0x14},
/* enables debounce with 512ms*/
@@ -3720,10 +3720,10 @@ int aic326x_headset_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *jack, int jack_type)
{
struct aic3262_priv *aic3262 = snd_soc_codec_get_drvdata(codec);
- aic3262->headset_jack = jack;
- /*TODO*/
- aic3262_jack_handler(aic3262->irq, codec);
+ aic3262->headset_jack = jack;
+ /*Enable the Headset Interrupts*/
+ snd_soc_write(codec, INT1_CNTL, 0x80);
return 0;
}