ASoC: ams-delta: Fix compile error
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 12 Mar 2014 14:27:29 +0000 (15:27 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 13 Mar 2014 09:32:26 +0000 (09:32 +0000)
snd_soc_dapm_mutex_unlock() wants a pointer to the DAPM context, not the CODEC.

Fixes: 03510ca07 ("ASoC: ams-delta: Update locking around use of DAPM pin API")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/omap/ams-delta.c

index 5750de197d0da9bdb86de5a26b0f71fcc635b5c4..14718cd6c29f28f60ccb9f7aee433a14ef17451d 100644 (file)
@@ -327,7 +327,7 @@ static void cx81801_close(struct tty_struct *tty)
 
        snd_soc_dapm_sync_unlocked(dapm);
 
-       snd_soc_dapm_mutex_unlock(codec);
+       snd_soc_dapm_mutex_unlock(dapm);
 }
 
 /* Line discipline .hangup() */