]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Embed bus into controller object
authorTakashi Iwai <tiwai@suse.de>
Tue, 14 Apr 2015 20:13:18 +0000 (22:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2015 06:47:22 +0000 (08:47 +0200)
commitde67b945862d18a538950b918e4a8bd4c57484e7
treee6f516f463dcf330567f226d4e9b1f43b2bc9e0e
parentbe6643d6dbb00394a0d5e293ec95e893cce88556
ALSA: hda - Embed bus into controller object

... and replace with the existing hda-core helper codes.
This reduces lots of lines, finally.

Since struct hda_bus is now embedded into struct azx,
snd_hda_bus_new() is moved and expanded from hda_codec.c to
hda_controller.c, accordingly.  Also private_free bus ops and
private_data field are removed because we no longer need to point azx
object from bus (we can use container_of())

The spin locks are consolidated into the single one, bus->reg_lock.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_intel.h
sound/pci/hda/hda_tegra.c