diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-07-30 07:47:07 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-06 12:01:16 -0400 |
commit | a8d372f171db9b90a64778fbcd9237c9bc256e06 (patch) | |
tree | f4bac1ccb3172f42887c53bc556de1270b573836 | |
parent | 1a6003b525b9815ccd9d23ae3b70372a17d0bce2 (diff) |
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>
-rw-r--r-- | sound/core/control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 2487a6bb1c54..7e86a5b9f3b5 100644 --- a/sound/core/control.c +++ b/sound/core/control.c | |||
@@ -246,6 +246,7 @@ struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol, | |||
246 | kctl.count = ncontrol->count ? ncontrol->count : 1; | 246 | kctl.count = ncontrol->count ? ncontrol->count : 1; |
247 | access = ncontrol->access == 0 ? SNDRV_CTL_ELEM_ACCESS_READWRITE : | 247 | access = ncontrol->access == 0 ? SNDRV_CTL_ELEM_ACCESS_READWRITE : |
248 | (ncontrol->access & (SNDRV_CTL_ELEM_ACCESS_READWRITE| | 248 | (ncontrol->access & (SNDRV_CTL_ELEM_ACCESS_READWRITE| |
249 | SNDRV_CTL_ELEM_ACCESS_VOLATILE| | ||
249 | SNDRV_CTL_ELEM_ACCESS_INACTIVE| | 250 | SNDRV_CTL_ELEM_ACCESS_INACTIVE| |
250 | SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE| | 251 | SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE| |
251 | SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND| | 252 | SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND| |