ASoC: sn95031: mfld_machine: Fix for jack detection failure for the first time
authorDharageswari.R <Dharageswari.R@intel.com>
Thu, 6 Oct 2011 15:18:32 +0000 (16:18 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:16:48 +0000 (13:16 -0800)
commit9b5b4349ccbfd786a8c021e74f5ebc371a97074f
treec57cad771c48aaa04fc3541e2ca6c337929628af
parentaff16d270506829a800263936428d1de6da2d7e4
ASoC: sn95031: mfld_machine: Fix for jack detection failure for the first time

If headset is plugged into the jack during board boot up, the following
scenario of routing playback fails, i.e from headset to IHF and then to
Headset.

This patch fixes the issue, by handling all the jack interrupts from msic,
and also by initializing the jack_interrupt_status to 0 if the codec value
is NULL.

Change-Id: I96d04b29fe89ee2d399c979bd112f222d46969a2
Signed-off-by: Dharageswari.R <Dharageswari.R@intel.com>
sound/soc/codecs/sn95031.c
sound/soc/mid-x86/mfld_machine.c