]> 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)
commitf5e6c496d4ea0b2a5b56b017f9e766a3f27cf889
tree48837efa4d2dd528a6965f813292f6d4a2954778
parent4df2900c63350920afc6d83cbaac0c3cd6d2ae6c
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