]> 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)
commitd92dda3eb8b789401aabc851888d90a5d8c09787
treee3ec74431c5cb7c7a89691ef12792e9852b23ba3
parentf016032cd66e457ed32d2b2c5a074b529e0bdb51
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