From: Andrew Eikum Date: Mon, 20 Aug 2012 09:28:14 +0000 (+0200) Subject: pulse: Support 24-bit formats X-Git-Tag: v1.0.26~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=15b29ade8f756c8904bbab48c8be7c880925e4ca;p=alsa-plugins.git 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 --- 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",