summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-30 18:23:59 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-30 18:23:58 -0700
commite33b7f64d32f398bf15e6b7f67c2114926c70d02 (patch)
tree8def5db383586672b0d0b5c9d6b13ff8522d499e
parentd556394bb87aa52d788aabe984d9f4b73f64b825 (diff)
parent709398bcf77d60f9afc190afc3f6b9c6cac78f26 (diff)
Merge "ASoC: wcd934x: Use correct API for force enable micbias"
-rw-r--r--sound/soc/codecs/wcd934x/wcd934x.c7
-rw-r--r--sound/soc/soc-dapm.c3
2 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/codecs/wcd934x/wcd934x.c b/sound/soc/codecs/wcd934x/wcd934x.c
index acac3a93872f..c9c90e0d8c78 100644
--- a/sound/soc/codecs/wcd934x/wcd934x.c
+++ b/sound/soc/codecs/wcd934x/wcd934x.c
@@ -4144,13 +4144,12 @@ int tavil_codec_enable_standalone_micbias(struct snd_soc_codec *codec,
}
if (enable)
- rc = snd_soc_dapm_force_enable_pin_unlocked(
+ rc = snd_soc_dapm_force_enable_pin(
snd_soc_codec_get_dapm(codec),
micb_names[micb_index]);
else
- rc = snd_soc_dapm_disable_pin_unlocked(
- snd_soc_codec_get_dapm(codec),
- micb_names[micb_index]);
+ rc = snd_soc_dapm_disable_pin(snd_soc_codec_get_dapm(codec),
+ micb_names[micb_index]);
if (!rc)
snd_soc_dapm_sync(snd_soc_codec_get_dapm(codec));
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 94806ad6437b..0700b4c00aeb 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -4034,10 +4034,8 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
{
struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true);
- mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
if (!w) {
dev_err(dapm->dev, "ASoC: unknown pin %s\n", pin);
- mutex_unlock(&dapm->card->dapm_mutex);
return -EINVAL;
}
@@ -4053,7 +4051,6 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
}
w->force = 1;
dapm_mark_dirty(w, "force enable");
- mutex_unlock(&dapm->card->dapm_mutex);
return 0;
}