X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Fwm8731.c;h=5a2619dbf283b8a6195eb912dae6fb2c9ae96149;hb=6679ee1870f7ccdd48e2e5c57919240b8f19a6dc;hp=3a497810f9391c36f9918f0a3c93e20dce5779e5;hpb=7547a3e8a43d31aaf91c2daf5f597e43212ccddf;p=mirror_ubuntu-bionic-kernel.git diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 3a497810f939..5a2619dbf283 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -456,6 +456,9 @@ static int wm8731_resume(struct platform_device *pdev) /* Sync reg_cache with the hardware */ for (i = 0; i < ARRAY_SIZE(wm8731_reg); i++) { + if (cache[i] == wm8731_reg[i]) + continue; + data[0] = (i << 1) | ((cache[i] >> 8) & 0x0001); data[1] = cache[i] & 0x00ff; codec->hw_write(codec->control_data, data, 2);