]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Allow different ops to read/write registers
authorDylan Reid <dgreid@chromium.org>
Fri, 28 Feb 2014 23:41:13 +0000 (15:41 -0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 1 Mar 2014 10:20:37 +0000 (11:20 +0100)
commita3d5e0ad6423ca3b597c7051629d3d11b97d1989
treeae38bec99ae1de1adb02f4008113cbbd448ee68e
parent1443d348e9414d32f20b4f58139a21bd2f20cbba
ALSA: hda - Allow different ops to read/write registers

The forthcoming platform hda driver needs to override the way
registers are read and written.  In preparation for that, introduce a
reg_ops struct that can be implemented differently by the new driver.
Change the existing macros to use the new structure, and move them to
hda_priv.h where they will be accessible to both PCI and platform
drivers.

Start with register access, but later commits will add more ops that
differ between PCI and platform.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_priv.h