[pulseaudio-discuss] (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_HW_PARAMS failed (-5)

Raymond Yau superquad.vortex2 at gmail.com
Thu Jun 4 22:10:01 PDT 2015


>>
>> Do you mean try_auto does not work as expected ?
>>
>>   [PA_SAMPLE_S24LE] = SND_PCM_FORMAT_S24_3LE,
>>
>> 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_S16NE,
>>         PA_SAMPLE_S16RE,
>>         PA_SAMPLE_ALAW,
>>         PA_SAMPLE_ULAW,
>>         PA_SAMPLE_U8
>>     };
>>
> No, I just found line in that file:
>>
>> ; default-sample-format = s16le
>
> This is comment, but I thought this is also default value, so I've added:
>>
>> default-sample-format = s24le
>
> at the end, didn't check it though.
> Should I remove it because of automatic detection?

try_order does contain PA_SAMPLE_S24LE

(   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
(   0.095|   0.000) D: [pulseaudio] alsa-util.c: Trying plug:hw:1,1,0 with
SND_PCM_NO_AUTO_FORMAT ...

Do capture work as there is no output of snd_pcm_dump of the snd-usb-audio
's hw params ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150605/41f1a1fc/attachment.html>


More information about the pulseaudio-discuss mailing list