aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-05-29 12:27:57 +0200
committerTakashi Iwai <tiwai@suse.de>2015-05-29 12:27:57 +0200
commite32cf9fc7ea25ea848268282810f3e3c75f030ec (patch)
treef00cfe001b31a5e69ba96b85db6c296e4bed48bf
parent3ce338f02d15dfc32a2fa4d0f5a71df5cb796c1f (diff)
downloadhda-emu-e32cf9fc7ea25ea848268282810f3e3c75f030ec.tar.gz
Fix missing card setup in bus
Otherwise it oopses at error. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--hda-emu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hda-emu.c b/hda-emu.c
index e425de8..2f0a1d2 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -1540,6 +1540,7 @@ int main(int argc, char **argv)
#else /* HAVE_BUS_OPS */
err = snd_hdac_bus_init(&_bus.core, NULL, NULL, NULL);
bus = &_bus;
+ bus->card = &card;
mutex_init(&bus->prepare_mutex);
#endif /* HAVE_BUS_OPS */
#else /* NEW_HDA_INFRA */