]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: nau8824: recover system clock when device changes
authorJohn Hsu <KCHSU0@nuvoton.com>
Wed, 21 Mar 2018 04:16:32 +0000 (12:16 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 22 Mar 2018 02:07:33 +0000 (10:07 +0800)
commitb53117c0b881d78d5d66a7e1be11d62a077c1e25
treee2d5ad5195c80a037739ead20993b06c0751f8d1
parent12a72f91a28eb302e1431ef0bb68b5f83e35a891
ASoC: nau8824: recover system clock when device changes

User reports an issue in Ubuntu about the device switch upon playback.
We find the FLL will disalbe when switching headphone to speaker.
The pulseaudio will stop the headphone and close its power. Then,
it just opens the speaker and turn on its power. Therefore,
the supply of system clock does the OFF event and disables FLL.
But the FLL doesn't enable again when the speaker powers on.

The patch adds the recovery of system clock to enable FLL again
for this case. And it covers the case that system clock from MCLK.

Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8824.c