ALSA: hda: fix the missing ptr initialization
authorVinod Koul <vinod.koul@intel.com>
Thu, 5 May 2016 05:54:42 +0000 (11:24 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 May 2016 09:43:28 +0000 (11:43 +0200)
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>
sound/hda/ext/hdac_ext_bus.c

index 2433f7c..64de0a3 100644 (file)
@@ -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);