ALSA: x86: Cache AUD_CONFIG register value
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 15:17:06 +0000 (16:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 15:27:41 +0000 (16:27 +0100)
commit40ce4b5d70b0c7e70c3e831e56d2586b57b54915
treee3ec74431c5cb7c7a89691ef12792e9852b23ba3
parent77531beeb97d079fb422d2b78a0d75c564384310
ALSA: x86: Cache AUD_CONFIG register value

At enabling the audio, we modify AUD_CONFIG register bit 0.  So far,
it does read-modify-write procedure with a special hack for the
channel bits due to the silicon bug.  But we can optimize it by
remembering the AUD_CONFIG register value privately.  This simplifies
the things a lot.

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