mfd: cpcap: audio: Fix loss of audio over headset
authorPraveen Bharathi <pbharathi@motorola.com>
Mon, 24 Jan 2011 14:01:11 +0000 (08:01 -0600)
committerRebecca Schultz Zavin <rebecca@android.com>
Wed, 26 Jan 2011 19:07:32 +0000 (11:07 -0800)
commit7aea99d563f8ebc4867276834b970935b99a53f9
treec500de62c5eac3367b75072ec737485b9363eb5f
parent9dc8179a2646b913e0aa9fcf29e106d02fddda7d
mfd: cpcap: audio: Fix loss of audio over headset

When the 3.5mm headset is unplugged and plugged back in, cpcap gets into a
wierd state and audio is not routed to any speaker, neither headset nor
main speaker. This is a solution from Droid days. The cpcap sends a callback
to audio driver when such a plug/unplug is detected and forces the audio path
setup back to headset.

Change-Id: I91afda628e14ec20d589fc9b3e844d29f9f96fca
Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
drivers/mfd/tegra-cpcap-audio.c