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>
Showing
- sound/pci/hda/hda_codec.c 0 additions, 72 deletionssound/pci/hda/hda_codec.c
- sound/pci/hda/hda_codec.h 0 additions, 3 deletionssound/pci/hda/hda_codec.h
- sound/pci/hda/hda_controller.c 107 additions, 454 deletionssound/pci/hda/hda_controller.c
- sound/pci/hda/hda_controller.h 20 additions, 45 deletionssound/pci/hda/hda_controller.h
- sound/pci/hda/hda_intel.c 77 additions, 56 deletionssound/pci/hda/hda_intel.c
- sound/pci/hda/hda_intel.h 1 addition, 0 deletionssound/pci/hda/hda_intel.h
- sound/pci/hda/hda_tegra.c 27 additions, 16 deletionssound/pci/hda/hda_tegra.c
Loading
Please register or sign in to comment