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

Commit 519cf2df authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Check for errors when writing WM8731 reset register

parent 6bab83fd
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -574,9 +574,14 @@ static int wm8731_register(struct wm8731_priv *wm8731)


	memcpy(codec->reg_cache, wm8731_reg, sizeof(wm8731_reg));
	memcpy(codec->reg_cache, wm8731_reg, sizeof(wm8731_reg));


	ret = wm8731_reset(codec);
	if (ret < 0) {
		dev_err(codec->dev, "Failed to issue reset\n");
		return ret;
	}

	wm8731_dai.dev = codec->dev;
	wm8731_dai.dev = codec->dev;


	wm8731_reset(codec);
	wm8731_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
	wm8731_set_bias_level(codec, SND_SOC_BIAS_STANDBY);


	/* Latch the update bits */
	/* Latch the update bits */