17 Sep
2015
17 Sep
'15
10:10 a.m.
On Wed, Sep 16, 2015 at 09:02:00PM +0100, Mark Brown wrote:
On Wed, Sep 16, 2015 at 01:59:43PM +0100, Charles Keepax wrote:
+static int wm5110_in_pga_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
+{
- struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
- struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
- struct snd_soc_card *card = dapm->card;
- int ret;
- mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
- ret = snd_soc_get_volsw_range(kcontrol, ucontrol);
- mutex_unlock(&card->dapm_mutex);
Can we please have a comment explaining why we need the lock (I see why but someone reading the code in the future might not)?
Yes no problem will fire a new version out today.
Thanks, Charles