git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: pcm: Embed struct device
[pandora-kernel.git]
/
sound
/
pci
/
hda
/
hda_controller.c
diff --git
a/sound/pci/hda/hda_controller.c
b/sound/pci/hda/hda_controller.c
index
0cfc9c8
..
712ec5c
100644
(file)
--- a/
sound/pci/hda/hda_controller.c
+++ b/
sound/pci/hda/hda_controller.c
@@
-939,7
+939,8
@@
static int azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec,
chip->card->dev,
size, MAX_PREALLOC_SIZE);
/* link to codec */
- pcm->dev = &codec->dev;
+ for (s = 0; s < 2; s++)
+ pcm->streams[s].dev.parent = &codec->dev;
return 0;
}