From: Takashi Iwai Date: Tue, 4 Feb 2014 10:15:31 +0000 (+0100) Subject: ALSA: usb-audio: Use SNDRV_DEV_CODEC for mixer objects X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cbb2808ccfb3c64300151baf73bd5f11feab77f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: usb-audio: Use SNDRV_DEV_CODEC for mixer objects 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 --- diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index aa9bc19aae68..8c152b02da5a 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -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;