Skip to content

ASoC: codecs: cs42l84: set up PLL for more sample rates#464

Open
chadmed wants to merge 1 commit intoAsahiLinux:asahi-wipfrom
chadmed:sound/cs42l84-samplerates
Open

ASoC: codecs: cs42l84: set up PLL for more sample rates#464
chadmed wants to merge 1 commit intoAsahiLinux:asahi-wipfrom
chadmed:sound/cs42l84-samplerates

Conversation

@chadmed
Copy link
Member

@chadmed chadmed commented Mar 3, 2026

Previously, this driver only advertised support for 48 kHz and 96 kHz sample rates, as there was no PLL configuration data specified for any other sample rate/BCLK.

The CS42L84 is an Apple-specific variant of CS42L42. The PLL configuration parameters for a variety of common BCLKs are available in the latter's datasheet. What happens if we just use those? As it turns out, they work just fine.

Fill out more PLL config parameters in the PLL config lookup table, and advertise the corresponding sample rates to userspace. This enables 44.1, 88.2, 172.6 and 192 kHz output and input.

Previously, this driver only advertised support for 48 kHz and
96 kHz sample rates, as there was no PLL configuration data
specified for any other sample rate/BCLK.

The CS42L84 is an Apple-specific variant of CS42L42. The PLL
configuration parameters for a variety of common BCLKs are
available in the latter's datasheet. What happens if we just
use those? As it turns out, they work just fine.

Fill out more PLL config parameters in the PLL config lookup
table, and advertise the corresponding sample rates to userspace.
This enables 44.1, 88.2, 176.4 and 192 kHz output and input.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
@chadmed chadmed force-pushed the sound/cs42l84-samplerates branch from f55c21d to eadc632 Compare March 3, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant