diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-05-05 01:54:42 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-05-08 05:43:28 -0400 |
commit | 94e9080ce22d9fb7c0a4361a5890b2c6affc9b1b (patch) | |
tree | 1b6be6fb0c0ce69fec0b4b3513139daf49f84b97 /sound/hda | |
parent | 89e448b33a101dfc7218f3181bc3095af850db7a (diff) |
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/hda')
-rw-r--r-- | sound/hda/ext/hdac_ext_bus.c | 1 |
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) | |||
144 | if (!edev) | 144 | if (!edev) |
145 | return -ENOMEM; | 145 | return -ENOMEM; |
146 | hdev = &edev->hdac; | 146 | hdev = &edev->hdac; |
147 | edev->ebus = ebus; | ||
147 | 148 | ||
148 | snprintf(name, sizeof(name), "ehdaudio%dD%d", ebus->idx, addr); | 149 | snprintf(name, sizeof(name), "ehdaudio%dD%d", ebus->idx, addr); |
149 | 150 | ||