Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57bd68b8b18608cf2729f97fcb984b8521d19551
Commit:     57bd68b8b18608cf2729f97fcb984b8521d19551
Parent:     8e7f00f9248c2dc6b36f3c4d1932aa975b454c48
Author:     Clemens Ladisch <[EMAIL PROTECTED]>
AuthorDate: Fri Sep 7 10:44:13 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 16:49:14 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/cmipci.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index a8d6b54..78a2398 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to