]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: Remove VOLATILE flag from chmap ctls
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Aug 2012 12:49:47 +0000 (14:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Sep 2012 16:08:33 +0000 (18:08 +0200)
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>
sound/core/pcm_lib.c

index 565102705eda90ea23fbdcd04fe03b7073f416b4..0a750ec5c4006b0bf70745d89e0ea3c9cff03c0d 100644 (file)
@@ -2479,7 +2479,6 @@ int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
        struct snd_kcontrol_new knew = {
                .iface = SNDRV_CTL_ELEM_IFACE_PCM,
                .access = SNDRV_CTL_ELEM_ACCESS_READ |
-                       SNDRV_CTL_ELEM_ACCESS_VOLATILE | /* no notification */
                        SNDRV_CTL_ELEM_ACCESS_TLV_READ |
                        SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
                .info = pcm_chmap_ctl_info,