aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-21 08:49:47 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-06 12:08:33 -0400
commit6e67683d718c627aa585a82ae0eb44a7058eae5a (patch)
treea92d937cfdc2c7962e49b43824e4d4d7ee79cecc /sound/core
parent8d50cdc1f52843d4fe593c2613528c3f6677949a (diff)
ALSA: Remove VOLATILE flag from chmap ctls
The VOLATILE flag was added to control elements by snd_pcm_add_chmap_ctls() just because I didn't want to have a side-effect of "alsactl restore". But now the set operation doesn't allow to change the value unless the PCM stream is in PREAPRED state, there is no reason to keep this flag. Let's rip it off. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_lib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index 565102705eda..0a750ec5c400 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -2479,7 +2479,6 @@ int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
2479 struct snd_kcontrol_new knew = { 2479 struct snd_kcontrol_new knew = {
2480 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 2480 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
2481 .access = SNDRV_CTL_ELEM_ACCESS_READ | 2481 .access = SNDRV_CTL_ELEM_ACCESS_READ |
2482 SNDRV_CTL_ELEM_ACCESS_VOLATILE | /* no notification */
2483 SNDRV_CTL_ELEM_ACCESS_TLV_READ | 2482 SNDRV_CTL_ELEM_ACCESS_TLV_READ |
2484 SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK, 2483 SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
2485 .info = pcm_chmap_ctl_info, 2484 .info = pcm_chmap_ctl_info,