summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_hwdep.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-27 16:09:22 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-03 11:25:16 +0100
commit6efdd8513f182492c21fb7238592d4539d5c751a (patch)
treec399158c210875a0d5f235abf2b6154fc2a9bb13 /sound/pci/hda/hda_hwdep.c
parentALSA: hda - Split snd_hda_build_pcms() (diff)
downloadlinux-6efdd8513f182492c21fb7238592d4539d5c751a.tar.xz
linux-6efdd8513f182492c21fb7238592d4539d5c751a.zip
ALSA: hda - Add card field to hda_codec struct
Allow the codec object to have an individual card pointer. Not only this simplifies the redirections in many places, also this will allow us to make each codec assigned to a different card object. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_hwdep.c')
-rw-r--r--sound/pci/hda/hda_hwdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c
index 125f3420fa6a..57df06e76968 100644
--- a/sound/pci/hda/hda_hwdep.c
+++ b/sound/pci/hda/hda_hwdep.c
@@ -101,7 +101,7 @@ int snd_hda_create_hwdep(struct hda_codec *codec)
int err;
sprintf(hwname, "HDA Codec %d", codec->addr);
- err = snd_hwdep_new(codec->bus->card, hwname, codec->addr, &hwdep);
+ err = snd_hwdep_new(codec->card, hwname, codec->addr, &hwdep);
if (err < 0)
return err;
codec->hwdep = hwdep;