@@ -384,7 +384,7 @@ static int snd_usb_audio_create(struct usb_interface *intf,
INIT_LIST_HEAD(&chip->midi_list);
INIT_LIST_HEAD(&chip->mixer_list);
- if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
+ if ((err = snd_device_new(card, SNDRV_DEV_CARD, chip, &ops)) < 0) {
snd_usb_audio_free(chip);
snd_card_free(card);
return err;
@@ -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;
Replace SNDRV_DEV_LOWLEVEL with more proper types, SNDRV_DEV_CARD for the chip objects and SNDRV_DEV_CODEC for the mixer objects. No functional change at this point. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/usb/card.c | 2 +- sound/usb/mixer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)