diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-13 15:56:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-23 13:19:44 +0100 |
commit | 40ba66a702b83f46c53456eaaac692fc12f82cb0 (patch) | |
tree | 48837efa4d2dd528a6965f813292f6d4a2954778 /include/sound/hdaudio.h | |
parent | 33f819400659da9ff9f636b78f33ff4f1f08cbd4 (diff) | |
download | talos-obmc-linux-40ba66a702b83f46c53456eaaac692fc12f82cb0.tar.gz talos-obmc-linux-40ba66a702b83f46c53456eaaac692fc12f82cb0.zip |
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>
Diffstat (limited to 'include/sound/hdaudio.h')
-rw-r--r-- | include/sound/hdaudio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 702032598bea..95acc337aea5 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -78,6 +78,7 @@ struct hdac_device { struct snd_array vendor_verbs; bool lazy_cache:1; /* don't wake up for writes */ bool caps_overwriting:1; /* caps overwrite being in process */ + bool cache_coef:1; /* cache COEF read/write too */ }; /* device/driver type used for matching */ |