aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-07-01 12:05:27 -0400
committerTakashi Iwai <tiwai@suse.de>2009-07-01 12:05:27 -0400
commitb5025c50b5e817b3e509ad7e569f131b80d7c223 (patch)
tree3d7ded230b3a6a2ab6958b5790533d246949b1f0 /sound/pci/hda/hda_codec.c
parent0d971c9fcf06d22663040570c3cfe08b137c4b2f (diff)
ALSA: hda - Allow FLOAT PCM format
So far, the FLOAT PCM format is used only exclusivley set. But this can be a combination with other formats. This patch changes the parser to allow the FLOAT format in addition to other PCM formats. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 506f46ef0304..263d124de611 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2690,11 +2690,11 @@ static int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid,
2690 bps = 20; 2690 bps = 20;
2691 } 2691 }
2692 } 2692 }
2693 else if (streams == AC_SUPFMT_FLOAT32) { 2693 if (streams & AC_SUPFMT_FLOAT32) {
2694 /* should be exclusive */
2695 formats |= SNDRV_PCM_FMTBIT_FLOAT_LE; 2694 formats |= SNDRV_PCM_FMTBIT_FLOAT_LE;
2696 bps = 32; 2695 bps = 32;
2697 } else if (streams == AC_SUPFMT_AC3) { 2696 }
2697 if (streams == AC_SUPFMT_AC3) {
2698 /* should be exclusive */ 2698 /* should be exclusive */
2699 /* temporary hack: we have still no proper support 2699 /* temporary hack: we have still no proper support
2700 * for the direct AC3 stream... 2700 * for the direct AC3 stream...