ALSA: control: Fix a typo of SNDRV_CTL_ELEM_ACCESS_TLV_* with SNDRV_CTL_TLV_OP_*
authorTakashi Iwai <tiwai@suse.de>
Sun, 12 Apr 2015 07:16:11 +0000 (09:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 12 Apr 2015 07:18:14 +0000 (09:18 +0200)
The commit [39d118677baa: ALSA: ctl: evaluate macro instead of
numerical value] replaced the numbers with constants, but one place
was replaced wrongly with a different type.  Fixed now.

Fixes: 39d118677baa ('ALSA: ctl: evaluate macro instead of numerical value')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c

index ccb1ca26a71e96e531323dda759649553958ae5c..be5b97cd8dc3c31de9d5bf579623603f8f3bddc9 100644 (file)
@@ -1432,7 +1432,7 @@ static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file,
                        return 0;
                }
        } else {
-               if (op_flag != SNDRV_CTL_ELEM_ACCESS_TLV_READ) {
+               if (op_flag != SNDRV_CTL_TLV_OP_READ) {
                        err = -ENXIO;
                        goto __kctl_end;
                }