summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-05-05 11:24:42 +0530
committerTakashi Iwai <tiwai@suse.de>2016-05-08 11:43:28 +0200
commit94e9080ce22d9fb7c0a4361a5890b2c6affc9b1b (patch)
tree1b6be6fb0c0ce69fec0b4b3513139daf49f84b97 /sound
parent89e448b33a101dfc7218f3181bc3095af850db7a (diff)
downloadlinux-94e9080ce22d9fb7c0a4361a5890b2c6affc9b1b.tar.bz2
ALSA: hda: fix the missing ptr initialization
ebus is a member of extended device and was never initialized, so do this at device creation. Signed-off-by: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/hda/ext/hdac_ext_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c
index 2433f7c81472..64de0a3d6d93 100644
--- a/sound/hda/ext/hdac_ext_bus.c
+++ b/sound/hda/ext/hdac_ext_bus.c
@@ -144,6 +144,7 @@ int snd_hdac_ext_bus_device_init(struct hdac_ext_bus *ebus, int addr)
if (!edev)
return -ENOMEM;
hdev = &edev->hdac;
+ edev->ebus = ebus;
snprintf(name, sizeof(name), "ehdaudio%dD%d", ebus->idx, addr);