]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
pulse: Support 24-bit formats
authorAndrew Eikum <aeikum@codeweavers.com>
Mon, 20 Aug 2012 09:28:14 +0000 (11:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Aug 2012 09:28:14 +0000 (11:28 +0200)
These formats were introduced in PulseAudio 0.9.15. There aren't any
new formats supported since then, so this also brings the PulseAudio
plugin in sync with current PulseAudio.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
pulse/pcm_pulse.c

index e0fbd4c249b29ea854890d4578cb169ec9bef0cb..24fd4dab06e32f2d70f71295b8bc8aedf1c1eb56 100644 (file)
@@ -819,6 +819,26 @@ static int pulse_hw_params(snd_pcm_ioplug_t * io,
        case SND_PCM_FORMAT_S32_BE:
                pcm->ss.format = PA_SAMPLE_S32BE;
                break;
+#endif
+#ifdef PA_SAMPLE_S24LE
+       case SND_PCM_FORMAT_S24_3LE:
+               pcm->ss.format = PA_SAMPLE_S24LE;
+               break;
+#endif
+#ifdef PA_SAMPLE_S24BE
+       case SND_PCM_FORMAT_S24_3BE:
+               pcm->ss.format = PA_SAMPLE_S24BE;
+               break;
+#endif
+#ifdef PA_SAMPLE_S24_32LE
+       case SND_PCM_FORMAT_S24_LE:
+               pcm->ss.format = PA_SAMPLE_S24_32LE;
+               break;
+#endif
+#ifdef PA_SAMPLE_S24_32BE
+       case SND_PCM_FORMAT_S24_BE:
+               pcm->ss.format = PA_SAMPLE_S24_32BE;
+               break;
 #endif
        default:
                SNDERR("PulseAudio: Unsupported format %s\n",