]> git.hungrycats.org Git - linux/commit
ASoC: codecs: aw88261: support changing sample rate and bit width
authorVal Packett <val@packett.cool>
Fri, 29 May 2026 20:05:08 +0000 (17:05 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2026 23:09:06 +0000 (00:09 +0100)
commit1b92b0673d5e9a2f68f998194cbc73718358cd72
treeb371e9c2ffcee0be6ff9e04e064bfdd219044050
parent4549871118cf616eecdd2d939f78e3b9e1dddc48
ASoC: codecs: aw88261: support changing sample rate and bit width

The aw88261 driver only worked with 32-bit 48kHz streams so far due to
the lack of a proper PLL initialization sequence. Fix by selecting all
the necessary PLL settings based on what was passed to us by the
hw_params/set_fmt ops. This replaces the strange downstream routine
that tries two divider modes in sequence.

Fixes: 028a2ae25691 ("ASoC: codecs: Add aw88261 amplifier driver")
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcm6490-fairphone-fp5
Signed-off-by: Val Packett <val@packett.cool>
Link: https://patch.msgid.link/20260529200550.529719-2-val@packett.cool
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88261.c
sound/soc/codecs/aw88261.h