]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/hda/hda_controller.c
ALSA: hda - Decouple PCM and hwdep devices from codec object
[mirror_ubuntu-bionic-kernel.git] / sound / pci / hda / hda_controller.c
index ebb7a644bd866773eed754cc6b4c43e8da995274..4c7a6f9bfcde04d835abc47ed7ca9c5d819f31e1 100644 (file)
@@ -958,9 +958,6 @@ static int azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec,
        snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
                                              chip->card->dev,
                                              size, MAX_PREALLOC_SIZE);
-       /* link to codec */
-       for (s = 0; s < 2; s++)
-               pcm->streams[s].dev.parent = &codec->dev;
        return 0;
 }