Re: [PATCH] ALSA: pcxhr: Share PLL frequency register calculation
From: Takashi Iwai
Date: Fri Jun 12 2026 - 05:09:55 EST
On Fri, 12 Jun 2026 05:43:55 +0200,
Cássio Gabriel wrote:
>
> The PCXHR and HR222 clock paths duplicate the PLL divider calculation and
> register encoding. The HR222 variant extends the same format with an
> additional range for rates above those supported by the older boards.
>
> Move the complete encoding into pcxhr_pll_freq_register() and pass each
> hardware path its existing maximum frequency. The additional encoding
> branch is unreachable with the older 110 kHz limit, so this preserves both
> paths' accepted ranges and generated register values while removing the
> duplicate implementation and its long-standing TODO.
>
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
Applied to for-next branch now. Thanks.
Takashi