ASoC: Properly handle spitz MIC GPIO
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 2 Apr 2011 01:43:15 +0000 (03:43 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Apr 2011 13:11:09 +0000 (22:11 +0900)
commit04368d051a6aa90c14a3ca5a48f60aca2f6ecdd1
tree8be790055a82ce4c7c7c99e8defbfbd8962506a4
parent363618f013f2f11a1089b610748beb5de93b8630
ASoC: Properly handle spitz MIC GPIO

This patch firstly restructurizes the code a bit by getting rid of continuous
checking for machine type in spitz_mic_bias().

Then the patch properly requests the MIC GPIO in the spitz_init() and frees it
in spitz_exit().

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/spitz.c