ASoC: da9055: DAPMise Headphone and Lineout enable controls
authorAshish Chavan <ashish.chavan@kpitcummins.com>
Thu, 11 Oct 2012 11:01:05 +0000 (16:31 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 13:57:43 +0000 (22:57 +0900)
commit5619d76dcbf56d560e235d33123e2850dd810227
treed9ed4a03adc8021f61f5fafa184783f37041bd4a
parent5e82aaa751180e43326747483396bdf381e702de
ASoC: da9055: DAPMise Headphone and Lineout enable controls

This patch DAPMises headphone and lineout output enable controls.

Earlier these output enable bits were permanently turned on in probe.
In da9055 codec, right outmixer is directly connected with right HP and
Line out. This resulted in two side effects,

(1) When you only want to use lineout, right HP (and connected charge
pump) also gets enabled

(2) When you only want to use stereo HP, lineout also gets enabled

This patch adds three switches to select which output(s) should be
enabled.

Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: David Dajun Chen <david.chen@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/da9055.c