]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Replace indirect register ops with direct calls
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Jan 2017 15:29:39 +0000 (16:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:21:17 +0000 (17:21 +0100)
commit35d3f9a2ea46abbd9d4974c29c49e7498d724288
tree4439cb56232c6080437e35b50da514de756be0e5
parentebdaf49b78ba339e0403fb21e6e7a34aca162dba
ALSA: x86: Replace indirect register ops with direct calls

Now about the indirect register ops: they are replaced with direct
calls, too.

The read / write / modify ops are simply replaced with the
corresponding functions.  The difference is that we calculate the
offset inside the function now.  So all the had_config_offset
references in the caller side are dropped.  This also simplifies the
DP-audio check in hdmi_audio_write() and hdmi_audio_rmw().

The hdmi_audio_get_register_base is dropped since it's no longer used
when the base address and config offset are referred in the read/write
functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_audio.h
sound/x86/intel_hdmi_audio_if.c
sound/x86/intel_hdmi_lpe_audio.c
sound/x86/intel_hdmi_lpe_audio.h