ASoC: dapm: correct the macro to SND_SOC_DAPM_CLASS_RUNTIME
macro SND_SOC_DAPM_CLASS_PCM is deprecated. Replace with updated macro SND_SOC_DAPM_CLASS_RUNTIME. Change-Id: I1f94a32f2b6020eea84923019631caf9c3c63128 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
parent
3775f1e9f2
commit
abd1f28cc0
|
@ -2175,7 +2175,7 @@ static int snd_soc_dapm_set_pin(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_PCM);
|
||||
mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
|
||||
if (!w) {
|
||||
dev_err(dapm->dev, "ASoC: DAPM unknown pin %s\n", pin);
|
||||
mutex_unlock(&dapm->card->dapm_mutex);
|
||||
|
@ -3602,7 +3602,7 @@ int snd_soc_dapm_force_enable_pin(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_PCM);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue