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)
commitf23df8071b178dcfa4f6014baf9323ddaa33e1fd
tree4439cb56232c6080437e35b50da514de756be0e5
parent76296ef0ecec9bb887be22105744e429c6a5422a
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