aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2007-09-07 04:44:13 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 10:49:14 -0400
commit57bd68b8b18608cf2729f97fcb984b8521d19551 (patch)
tree862412951440b072bda37fda9dca095d06440770 /sound
parent8e7f00f9248c2dc6b36f3c4d1932aa975b454c48 (diff)
[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 <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/cmipci.c4
1 files changed, 3 insertions, 1 deletions
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)
1599 return err; 1599 return err;
1600 if (cm->can_ac3_hw) { 1600 if (cm->can_ac3_hw) {
1601 runtime->hw = snd_cmipci_playback_spdif; 1601 runtime->hw = snd_cmipci_playback_spdif;
1602 if (cm->chip_version >= 37) 1602 if (cm->chip_version >= 37) {
1603 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE; 1603 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE;
1604 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1605 }
1604 if (cm->chip_version == 68) { 1606 if (cm->chip_version == 68) {
1605 runtime->hw.rates |= SNDRV_PCM_RATE_88200 | 1607 runtime->hw.rates |= SNDRV_PCM_RATE_88200 |
1606 SNDRV_PCM_RATE_96000; 1608 SNDRV_PCM_RATE_96000;