Lines Matching defs:cache
152 struct wm_hubs_dcs_cache *cache;
161 list_for_each_entry(cache, &hubs->dcs_cache, list) {
162 if (cache->left != left || cache->right != right)
165 *entry = cache;
175 struct wm_hubs_dcs_cache *cache;
180 cache = devm_kzalloc(component->dev, sizeof(*cache), GFP_KERNEL);
181 if (!cache)
184 cache->left = snd_soc_component_read(component, WM8993_LEFT_OUTPUT_VOLUME);
185 cache->left &= WM8993_HPOUT1L_VOL_MASK;
187 cache->right = snd_soc_component_read(component, WM8993_RIGHT_OUTPUT_VOLUME);
188 cache->right &= WM8993_HPOUT1R_VOL_MASK;
190 cache->dcs_cfg = dcs_cfg;
192 list_add_tail(&cache->list, &hubs->dcs_cache);
244 struct wm_hubs_dcs_cache *cache;
260 wm_hubs_dcs_cache_get(component, &cache)) {
262 cache->dcs_cfg, cache->left, cache->right);
263 snd_soc_component_write(component, dcs_reg, cache->dcs_cfg);