Skip to content

Commit a8d372f

Browse files
committed
ALSA: control: Fix missing VOLATILE flag at creating controls
The SNDRV_CTL_ELEM_ACCESS_VOLATILE bit flag wasn't properly inherited at creating control elements via snd_ctl_new1(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 1a6003b commit a8d372f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎sound/core/control.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol,
246246
kctl.count = ncontrol->count ? ncontrol->count : 1;
247247
access = ncontrol->access == 0 ? SNDRV_CTL_ELEM_ACCESS_READWRITE :
248248
(ncontrol->access & (SNDRV_CTL_ELEM_ACCESS_READWRITE|
249+
SNDRV_CTL_ELEM_ACCESS_VOLATILE|
249250
SNDRV_CTL_ELEM_ACCESS_INACTIVE|
250251
SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE|
251252
SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND|

0 commit comments

Comments
 (0)