Commit 03c95635 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Remove superfluous code

USB USX2Y
Removed the superfluous creation/deletion of lowlevel component.
It's not used at all.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e60eb4cc
......@@ -1006,35 +1006,15 @@ static int usX2Y_audio_stream_new(snd_card_t *card, int playback_endpoint, int c
return 0;
}
/*
* free the chip instance
*
* here we have to do not much, since pcm and controls are already freed
*
*/
static int snd_usX2Y_device_dev_free(snd_device_t *device)
{
return 0;
}
/*
* create a chip instance and set its names.
*/
int usX2Y_audio_create(snd_card_t* card)
{
int err = 0;
static snd_device_ops_t ops = {
.dev_free = snd_usX2Y_device_dev_free,
};
INIT_LIST_HEAD(&usX2Y(card)->chip.pcm_list);
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, usX2Y(card), &ops)) < 0) {
// snd_usX2Y_audio_free(usX2Y(card));
return err;
}
if (0 > (err = usX2Y_audio_stream_new(card, 0xA, 0x8)))
return err;
if (usX2Y(card)->chip.dev->descriptor.idProduct == USB_ID_US428)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment