ASoC: ak4104: correct tranceiver enable handling
authorDaniel Mack <zonque@gmail.com>
Wed, 6 Mar 2013 21:22:16 +0000 (22:22 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 7 Mar 2013 02:37:38 +0000 (10:37 +0800)
commitb692a436e1dc7227f2b7cf447797c3dc6ece5c29
treead011568ff8a232bbd1c1bff8ccc10cc55402d9e
parentb0ec761b99291f3c0f28ac370f94c145ec806095
ASoC: ak4104: correct tranceiver enable handling

Move the enabling of the TX diode to hw_params() and disable it again in
hw_free(). This way, the diode is only switched on as long as it needs
to be.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ak4104.c