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

Commit fc1e65c3 authored by Harunobu Kurokawa's avatar Harunobu Kurokawa Committed by Mark Brown
Browse files

ASoC: ak4642: Replace mdelay function to msleep



Replace mdelay to msleep to avoid busy loop on ak4642_lout_event().
Otherwise, sometimes playback doesn't work correctly when pulseaudio
was used.

Signed-off-by: default avatarHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a5de5b74
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -189,7 +189,7 @@ static int ak4642_lout_event(struct snd_soc_dapm_widget *w,
	case SND_SOC_DAPM_POST_PMU:
	case SND_SOC_DAPM_POST_PMU:
	case SND_SOC_DAPM_POST_PMD:
	case SND_SOC_DAPM_POST_PMD:
		/* Power save mode OFF */
		/* Power save mode OFF */
		mdelay(300);
		msleep(300);
		snd_soc_update_bits(codec, SG_SL2, LOPS, 0);
		snd_soc_update_bits(codec, SG_SL2, LOPS, 0);
		break;
		break;
	}
	}