|
@@ -1982,13 +1982,16 @@ static int soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
|
|
|
}
|
|
|
|
|
|
int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
|
|
|
- struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e)
|
|
|
+ struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e,
|
|
|
+ struct snd_soc_dapm_update *update)
|
|
|
{
|
|
|
struct snd_soc_card *card = dapm->card;
|
|
|
int ret;
|
|
|
|
|
|
mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
|
|
|
+ dapm->update = update;
|
|
|
ret = soc_dapm_mux_update_power(dapm, kcontrol, mux, e);
|
|
|
+ dapm->update = NULL;
|
|
|
mutex_unlock(&card->dapm_mutex);
|
|
|
if (ret > 0)
|
|
|
soc_dpcm_runtime_update(card);
|
|
@@ -2022,13 +2025,16 @@ static int soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm,
|
|
|
}
|
|
|
|
|
|
int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm,
|
|
|
- struct snd_kcontrol *kcontrol, int connect)
|
|
|
+ struct snd_kcontrol *kcontrol, int connect,
|
|
|
+ struct snd_soc_dapm_update *update)
|
|
|
{
|
|
|
struct snd_soc_card *card = dapm->card;
|
|
|
int ret;
|
|
|
|
|
|
mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
|
|
|
+ dapm->update = update;
|
|
|
ret = soc_dapm_mixer_update_power(dapm, kcontrol, connect);
|
|
|
+ dapm->update = NULL;
|
|
|
mutex_unlock(&card->dapm_mutex);
|
|
|
if (ret > 0)
|
|
|
soc_dpcm_runtime_update(card);
|