Re: [alsa-devel] question about webcam audio capture

2013-09-19 Thread vichy
hi Clemens:

2013/9/10 Clemens Ladisch :
> vichy wrote:
>> 2013/9/9 Clemens Ladisch :
>>> vichy wrote:
 I try to do webcam audio capture on my arm platform.
 when I execute audio capture I got below message
 "retire_capture_urb: 108 callbacks suppressed"
>>>
>>> This means that the retire_capture_urb() function printed lots of
>>> messages, and that 108 of them were thrown away because they were
>>> identical.
>>
>> Does that mean:
>> 1. 108 of messages are the same and through away
>
> No, that at least 109 are the same.
>
>>> You have to look at the previous line to get the actual
>>> message.
>>
>> Would you please tell me what the "previous line to get the actual
>> message"  you mean?
>
> The previous line in the message log.
>
>> tinycap record.wav -D 0 -d 0 -c 2 -r 32000
>
> Try increasng -n or -p.
>
> Does recoding on a PC with the same parameters work?
the same parameters work well on PC.
I think it is ehci hardware problem on my embedded system.

Appreciate your kind help :)
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [alsa-devel] question about webcam audio capture

2013-09-09 Thread Clemens Ladisch
vichy wrote:
> 2013/9/9 Clemens Ladisch :
>> vichy wrote:
>>> I try to do webcam audio capture on my arm platform.
>>> when I execute audio capture I got below message
>>> "retire_capture_urb: 108 callbacks suppressed"
>>
>> This means that the retire_capture_urb() function printed lots of
>> messages, and that 108 of them were thrown away because they were
>> identical.
>
> Does that mean:
> 1. 108 of messages are the same and through away

No, that at least 109 are the same.

>> You have to look at the previous line to get the actual
>> message.
>
> Would you please tell me what the "previous line to get the actual
> message"  you mean?

The previous line in the message log.

> tinycap record.wav -D 0 -d 0 -c 2 -r 32000

Try increasng -n or -p.

Does recoding on a PC with the same parameters work?


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [alsa-devel] question about webcam audio capture

2013-09-09 Thread vichy
hi Clemens:

2013/9/9 vichy :
> hi Clemens:
>
> 2013/9/9 Clemens Ladisch :
>> vichy wrote:
>>> I try to do webcam audio capture on my arm platform.
>>> when I execute audio capture I got below message
>>> "retire_capture_urb: 108 callbacks suppressed"
>>
>> This means that the retire_capture_urb() function printed lots of
>> messages, and that 108 of them were thrown away because they were
>> identical.
> Does that mean:
> 1. 108 of messages are the same and through away
> 2. alsa get data from uac device through Host controller driver 108
> times and find they are the same and through away
>
>>You have to look at the previous line to get the actual
>> message.
> I try to  grep -rwn '"retire_capture_urb.*' sound/usb/*, but get nothing.
> Would you please tell me what the "previous line to get the actual
> message"  you mean?
>
>>
>>> 2. from usb mon log, it seems HW keep Active status high even until
>>> ehci_io_watchdog happen, because the ep status is  -EXDEV.
>>
>> How are you trying to capture data?
> I use the capture function in tinyalsa.
forget to say, the command I execute is
tinycap record.wav -D 0 -d 0 -c 2 -r 32000


>
> BTW, If I want to use number of urbs I expected and only send/complete
> only 1 round, where I can find the source code to modify?
it seems ep->nurbs in snd_usb_endpoint_start is what I expected, right?

>
>

Thanks for your great help,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [alsa-devel] question about webcam audio capture

2013-09-09 Thread vichy
hi Clemens:

2013/9/9 Clemens Ladisch :
> vichy wrote:
>> I try to do webcam audio capture on my arm platform.
>> when I execute audio capture I got below message
>> "retire_capture_urb: 108 callbacks suppressed"
>
> This means that the retire_capture_urb() function printed lots of
> messages, and that 108 of them were thrown away because they were
> identical.
Does that mean:
1. 108 of messages are the same and through away
2. alsa get data from uac device through Host controller driver 108
times and find they are the same and through away

>You have to look at the previous line to get the actual
> message.
I try to  grep -rwn '"retire_capture_urb.*' sound/usb/*, but get nothing.
Would you please tell me what the "previous line to get the actual
message"  you mean?

>
>> 2. from usb mon log, it seems HW keep Active status high even until
>> ehci_io_watchdog happen, because the ep status is  -EXDEV.
>
> How are you trying to capture data?
I use the capture function in tinyalsa.

BTW, If I want to use number of urbs I expected and only send/complete
only 1 round, where I can find the source code to modify?


Thanks for your great help,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [alsa-devel] question about webcam audio capture

2013-09-09 Thread Clemens Ladisch
vichy wrote:
> I try to do webcam audio capture on my arm platform.
> when I execute audio capture I got below message
> "retire_capture_urb: 108 callbacks suppressed"

This means that the retire_capture_urb() function printed lots of
messages, and that 108 of them were thrown away because they were
identical.  You have to look at the previous line to get the actual
message.

> 2. from usb mon log, it seems HW keep Active status high even until
> ehci_io_watchdog happen, because the ep status is  -EXDEV.

How are you trying to capture data?


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html