summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_controller.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-17 17:15:04 +0100
committerTakashi Iwai <tiwai@suse.de>2015-02-23 09:16:06 +0100
commit327ef4f02582d01f7eedb291794106823b44a0cf (patch)
tree9e0d3c18b30cc1d28ce8494efd8e9d3205675f3b /sound/pci/hda/hda_controller.c
parent72f770c6acde425eaad8f482969a785af4512f4f (diff)
downloadtalos-obmc-linux-327ef4f02582d01f7eedb291794106823b44a0cf.tar.gz
talos-obmc-linux-327ef4f02582d01f7eedb291794106823b44a0cf.zip
ALSA: hda - Decouple PCM and hwdep devices from codec object
This is a preliminary patch for the hda_bus implementation, removing the parent device setup to codec device. Since the bus and the class devices can't be crossed over, leave the sound devices to the default parent device as is. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_controller.c')
-rw-r--r--sound/pci/hda/hda_controller.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index ebb7a644bd86..4c7a6f9bfcde 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -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;
}
OpenPOWER on IntegriCloud