From: Clemens Ladisch Date: Fri, 7 Sep 2007 08:44:13 +0000 (+0200) Subject: [ALSA] cmipci: add msbits constraint for 24-bit format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57bd68b8b18608cf2729f97fcb984b8521d19551;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [ALSA] cmipci: add msbits constraint for 24-bit format Add a msbits constraint to the SPDIF output device to indicate that S32_LE samples use only 24 bits for data. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index a8d6b54143fa..78a23984eac7 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c @@ -1599,8 +1599,10 @@ static int snd_cmipci_playback_spdif_open(struct snd_pcm_substream *substream) return err; if (cm->can_ac3_hw) { runtime->hw = snd_cmipci_playback_spdif; - if (cm->chip_version >= 37) + if (cm->chip_version >= 37) { runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE; + snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); + } if (cm->chip_version == 68) { runtime->hw.rates |= SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000;