]> err.no Git - linux-2.6/blobdiff - sound/core/pcm.c
[ALSA] usb-audio: work around broken M-Audio MidiSport Uno firmware
[linux-2.6] / sound / core / pcm.c
index 76fcc5234d83dc85820ccd2a32982002ef3a81b8..2743414fc8fa8ac7fbf14d9b49dc38be622eea0a 100644 (file)
@@ -968,7 +968,7 @@ static int snd_pcm_dev_register(struct snd_device *device)
                 * if possible */
                dev = pcm->dev;
                if (!dev)
-                       dev = pcm->card ? pcm->card->dev : NULL;
+                       dev = snd_card_get_device_link(pcm->card);
                /* register pcm */
                err = snd_register_device_for_dev(devtype, pcm->card,
                                                  pcm->device,