mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
ASoC: sun4i-spdif: Always set the valid data to be the MSB
This doesn't affect 16bit formats and allows us to properly run 24bit formats. Signed-off-by: Marcus Cooper <codekipper@gmail.com> Link: https://patch.msgid.link/20241111165600.57219-3-codekipper@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0a2319308d
commit
80ac12ffb3
|
|
@ -202,6 +202,10 @@ static void sun4i_spdif_configure(struct sun4i_spdif_dev *host)
|
|||
regmap_update_bits(host->regmap, SUN4I_SPDIF_FCTL,
|
||||
quirks->val_fctl_ftx, quirks->val_fctl_ftx);
|
||||
|
||||
/* Valid data at the MSB of TXFIFO Register */
|
||||
regmap_update_bits(host->regmap, SUN4I_SPDIF_FCTL,
|
||||
SUN4I_SPDIF_FCTL_TXIM, 0);
|
||||
|
||||
/* clear TX counter */
|
||||
regmap_write(host->regmap, SUN4I_SPDIF_TXCNT, 0);
|
||||
}
|
||||
|
|
@ -323,9 +327,6 @@ static int sun4i_spdif_hw_params(struct snd_pcm_substream *substream,
|
|||
return ret;
|
||||
}
|
||||
|
||||
regmap_update_bits(host->regmap, SUN4I_SPDIF_FCTL,
|
||||
SUN4I_SPDIF_FCTL_TXIM, SUN4I_SPDIF_FCTL_TXIM);
|
||||
|
||||
switch (rate) {
|
||||
case 22050:
|
||||
case 24000:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user