]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add cache support for COEF read/write
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Mar 2015 14:56:25 +0000 (15:56 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2015 12:19:44 +0000 (13:19 +0100)
commitccd75af88faf85c95fbbdd966f67878b5c89cfa9
tree48837efa4d2dd528a6965f813292f6d4a2954778
parente686d7b3eaa0348633d05ff2b2b38ec6251c3979
ALSA: hda - Add cache support for COEF read/write

The 16bit COEF read/write is pretty standard for many codecs, and they
can be cached in most cases -- more importantly, they need to be
restored at resume.  For making this easier, add the cache support to
regmap.  If the codec driver wants to cache the COEF access, set
codec->cache_coef flag and issue AC_VERB_GET_PROC_COEF with the coef
index in LSB 8 bits.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_regmap.c