mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-06 22:19:16 +07:00
ASoC: Use standard snd_soc_cache_sync() for WM9090
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
42f3b0109e
commit
ffbf2a363e
@ -513,18 +513,7 @@ static int wm9090_set_bias_level(struct snd_soc_codec *codec,
|
||||
case SND_SOC_BIAS_STANDBY:
|
||||
if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
|
||||
/* Restore the register cache */
|
||||
for (i = 1; i < codec->driver->reg_cache_size; i++) {
|
||||
if (reg_cache[i] == wm9090_reg_defaults[i])
|
||||
continue;
|
||||
if (wm9090_volatile(codec, i))
|
||||
continue;
|
||||
|
||||
ret = snd_soc_write(codec, i, reg_cache[i]);
|
||||
if (ret != 0)
|
||||
dev_warn(codec->dev,
|
||||
"Failed to restore register %d: %d\n",
|
||||
i, ret);
|
||||
}
|
||||
snd_soc_cache_sync(codec);
|
||||
}
|
||||
|
||||
/* We keep VMID off during standby since the combination of
|
||||
|
Loading…
Reference in New Issue
Block a user