ALSA: hda: Initialize ext-bus-specific fields in snd_hdac_bus_init(), too
authorTakashi Iwai <tiwai@suse.de>
Wed, 10 Apr 2019 14:00:54 +0000 (16:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 13 Apr 2019 08:10:26 +0000 (10:10 +0200)
commite61ab9f017493ef42f0374a578b2758c30f41f74
tree4f1ae58995d9ef64c8dd2091485f206abeacc2df
parent99fff44fe339b21c6a4ddd6c1239e587dd439cd3
ALSA: hda: Initialize ext-bus-specific fields in snd_hdac_bus_init(), too

Some fields in snd_hdac_bus are ext-bus specific, but they still
should be initialized in snd_hdac_bus_init() for consistency, at
least, for the ones that do need the explicit initialization like the
list head.

Also move the lock field to the more appropriate place and correct the
comment to reflect the recent change where it serves for both the
display power and the link management.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/ext/hdac_ext_bus.c
sound/hda/hdac_bus.c