ALSA: hda - Add the controller helper codes to hda-core module
authorTakashi Iwai <tiwai@suse.de>
Tue, 14 Apr 2015 10:15:47 +0000 (12:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2015 05:27:58 +0000 (07:27 +0200)
commit14752412721c61d9ac1e8d8fb51d7148cb15f85b
treea66845e59854c2a01b107695b69ebf05e692776c
parentcad372f1be5ef7cf14b980e679fbf30430dc241f
ALSA: hda - Add the controller helper codes to hda-core module

This patch adds the controller helper codes to hda-core library.
The I/O access ops are added to the bus ops.  The CORB/RIRB, the basic
attributes like irq# and iomap address, some locks and the list of
streams are added to the bus object, together with the stream object
and its helpers.

Currently the codes are just copied from the legacy driver, so you can
find duplicated codes in both directories.  Only constants are removed
from the original hda_controller.h.  More integration work will follow
in the later patches.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_register.h [new file with mode: 0644]
include/sound/hdaudio.h
sound/hda/Makefile
sound/hda/hdac_bus.c
sound/hda/hdac_controller.c [new file with mode: 0644]
sound/hda/hdac_stream.c [new file with mode: 0644]
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_controller.h