]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69e646dc1e9c5bead288596947e93a7060a41b6c
treee3ec74431c5cb7c7a89691ef12792e9852b23ba3
parentbb34030eb8e57753f6309acb4f47c04b21e6fa42
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