Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d11c5ab1 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Only restore non-default registers for WM8731

parent 5baf8315
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);