[pulseaudio-discuss] S24_3LE not support in try_auto of set_format

Raymond Yau superquad.vortex2 at gmail.com
Mon Jun 22 00:15:51 PDT 2015


>>  >
>>  >> Do you mean you still cannot force pulseaudio to use 24 bits for
>> your creative usb audio ?
>>  >>
>>  >> Seem try auto format did not include 24bits
>>  >
>>  > I have 24bit explicitly in pulseaudio config currently:
>>  >>>
>>  >>> default-sample-format = s24le
>>  >
>>  > But it still uses 16bit, didn't managed how to force it to use 24bit
>>
>> static const pa_sample_format_t try_order[] = {
>>          PA_SAMPLE_FLOAT32NE,
>>          PA_SAMPLE_FLOAT32RE,
>>          PA_SAMPLE_S32NE,
>>          PA_SAMPLE_S32RE,
>>          PA_SAMPLE_S24_32NE,
>>          PA_SAMPLE_S24_32RE,
>>          PA_SAMPLE_S24NE,
>>          PA_SAMPLE_S24RE,
>> +      PA_SAMPLE_S24LE,
>>          PA_SAMPLE_S16NE,
>>          PA_SAMPLE_S16RE,
>>          PA_SAMPLE_ALAW,
>>          PA_SAMPLE_ULAW,
>>          PA_SAMPLE_U8
>>      };
>>
>> Seem missing PA_SAMPLE_S24LE in try_order, not sure any assembley code
>> need to be changed
>
>
> S24LE is the same as S24NE on little-endian archs, and the same as S24RE
on big-endian archs.
>
>  LE = Little endian
>  BE = Big endian
>  NE = Native endian
>  RE = Reverse endian (i e, the opposite to the native one)
>
>

Can you post the output

aplay -D hw:CARD=S51 --dump-hw-params stereo.wav

to find which alsa format supported by your usb 5.1 ?

Can you post pulseaudio log which contain

   0.091|   0.000) D: [pulseaudio] alsa-util.c: Trying hw:1,1,0 with
SND_PCM_NO_AUTO_FORMAT ...
(   0.091|   0.000) D: [pulseaudio] alsa-util.c: Managed to open hw:1,1,0
(   0.091|   0.000) I: [pulseaudio] alsa-util.c: Disabling tsched mode
since BATCH flag is set
(   0.091|   0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is
3640 ms
(   0.091|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.091|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.092|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.092|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.092|   0.000) D: [pulseaudio] alsa-util.c: Set neither period nor
buffer size.
(   0.093|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.093|   0.000) I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed:
Input/output error
(   0.093|   0.000) D: [pulseaudio] alsa-util.c: Trying hw:1,1,0 without
SND_PCM_NO_AUTO_FORMAT ...
(   0.093|   0.000) D: [pulseaudio] alsa-util.c: Managed to open hw:1,1,0
(   0.093|   0.000) I: [pulseaudio] alsa-util.c: Disabling tsched mode
since BATCH flag is set
(   0.093|   0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is
3640 ms
(   0.093|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.094|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.094|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.094|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.094|   0.000) D: [pulseaudio] alsa-util.c: Set neither period nor
buffer size.
(   0.095|   0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c:
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)
(   0.095|   0.000) I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed:
Input/output error

since I cannot reproduce those
SNDRV_PCM_IOCTL_HW_PARAMS failed (-5) errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150622/a09645bf/attachment.html>


More information about the pulseaudio-discuss mailing list