]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: da7213: Avoid setting PLL when closing audio stream
authorHao Bui <hao.bui.yg@renesas.com>
Wed, 6 Nov 2024 08:18:20 +0000 (10:18 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 Nov 2024 21:14:32 +0000 (21:14 +0000)
commit1e1a2ef95b571825ca9c0113f6bef51e9cec98b0
tree3c65a44e5a347116428dfd67fd86f9fae9bf48e5
parent431e040065c814448ffcc2fac493f7dbbfb2e796
ASoC: da7213: Avoid setting PLL when closing audio stream

When audio stream is closing, audio frequency is set to 0 by ALSA but
codec driver DA7213 does not handle properly in this case. This patch
adds checking of 0Hz frequency to da7213_set_component_sysclk() and avoid
unnecessary PLL settings.

Signed-off-by: Hao Bui <hao.bui.yg@renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20241106081826.1211088-26-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7213.c