ALSA: usb-audio: Use SNDRV_DEV_CODEC for mixer objects
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Feb 2014 10:15:31 +0000 (11:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Feb 2014 07:18:34 +0000 (08:18 +0100)
Instead of SNDRV_DEV_LOWLEVEL, use SNDRV_DEV_CODEC type for mixer
objects so that they are managed in a proper release order.
No functional change at this point.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c

index aa9bc19aae688a8f2ef4480da4d142f16addc4df..8c152b02da5a9dd83c63e773ec146f8d8abf0b35 100644 (file)
@@ -2373,7 +2373,7 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
 
        snd_usb_mixer_apply_create_quirk(mixer);
 
-       err = snd_device_new(chip->card, SNDRV_DEV_LOWLEVEL, mixer, &dev_ops);
+       err = snd_device_new(chip->card, SNDRV_DEV_CODEC, mixer, &dev_ops);
        if (err < 0)
                goto _error;
 
This page took 0.027353 seconds and 5 git commands to generate.