Skip to content

Commit 797c525

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: cs42l43: Only restrict 44.1kHz for the ASP
The SoundWire interface can always support 44.1kHz using flow controlled mode, and whether the ASP is in master mode should obviously only affect the ASP. Update cs42l43_startup() to only restrict the rates for the ASP DAI. Fixes: fc918cb ("ASoC: cs42l43: Add support for the cs42l43") Signed-off-by: Charles Keepax <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 1613e60 commit 797c525

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/soc/codecs/cs42l43.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ static int cs42l43_startup(struct snd_pcm_substream *substream, struct snd_soc_d
310310
struct snd_soc_component *component = dai->component;
311311
struct cs42l43_codec *priv = snd_soc_component_get_drvdata(component);
312312
struct cs42l43 *cs42l43 = priv->core;
313-
int provider = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2,
314-
CS42L43_ASP_MASTER_MODE_MASK);
313+
int provider = !dai->id || !!regmap_test_bits(cs42l43->regmap,
314+
CS42L43_ASP_CLK_CONFIG2,
315+
CS42L43_ASP_MASTER_MODE_MASK);
315316

316317
if (provider)
317318
priv->constraint.mask = CS42L43_PROVIDER_RATE_MASK;

0 commit comments

Comments
 (0)