From 15b29ade8f756c8904bbab48c8be7c880925e4ca Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 20 Aug 2012 11:28:14 +0200 Subject: [PATCH] pulse: Support 24-bit formats 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 Signed-off-by: Takashi Iwai --- pulse/pcm_pulse.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index e0fbd4c..24fd4da 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -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", -- 2.47.1