Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Jassi Brar
On Mon, Aug 25, 2014 at 3:07 PM, Daniel Mack wrote: > On 08/25/2014 11:30 AM, Jassi Brar wrote: >> On Mon, Aug 25, 2014 at 2:57 PM, Daniel Mack wrote: >>> On 08/25/2014 11:23 AM, Jassi Brar wrote: On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack wrote: >>> > The easiest is probably really t

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Daniel Mack
On 08/25/2014 11:30 AM, Jassi Brar wrote: > On Mon, Aug 25, 2014 at 2:57 PM, Daniel Mack wrote: >> On 08/25/2014 11:23 AM, Jassi Brar wrote: >>> On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack wrote: >> The easiest is probably really to just calculate correct packet sizes and stick to them

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Jassi Brar
On Mon, Aug 25, 2014 at 2:57 PM, Daniel Mack wrote: > On 08/25/2014 11:23 AM, Jassi Brar wrote: >> On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack wrote: > >>> The easiest is probably really to just calculate correct packet sizes >>> and stick to them. After all, the actual clock is really arbitrary

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Daniel Mack
On 08/25/2014 11:23 AM, Jassi Brar wrote: > On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack wrote: >> The easiest is probably really to just calculate correct packet sizes >> and stick to them. After all, the actual clock is really arbitrary, we >> just have to pick something that is in the range of

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Jassi Brar
On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack wrote: > Hi Clemens, > > On 08/25/2014 09:15 AM, Clemens Ladisch wrote: >> Daniel Mack wrote: >>> a) Linux snd-usb-audio currently pre-calculates the estimated packet >>> sizes to expect from a USB device, and will only receive packets that >>> have the

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Daniel Mack
Hi Clemens, On 08/25/2014 09:15 AM, Clemens Ladisch wrote: > Daniel Mack wrote: >> a) Linux snd-usb-audio currently pre-calculates the estimated packet >> sizes to expect from a USB device, and will only receive packets that >> have the expected size or are smaller. > > snd-usb-audio allows packe

Re: [PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-25 Thread Clemens Ladisch
Daniel Mack wrote: > a) Linux snd-usb-audio currently pre-calculates the estimated packet > sizes to expect from a USB device, and will only receive packets that > have the expected size or are smaller. snd-usb-audio allows packets to be 25 % larger. > This can be worked around by setting the UAC

[PATCH 0/4] usb: gadget: f_uac2: cleanups and capture timing

2014-08-24 Thread Daniel Mack
Hi, Sebastian Reimers recently reported issues with the f_uac2 gadget with BBB's musb stack when connected to a Linux host, with the host in capture and the gadget in playback mode. I had a look, and can confirm two independent issues. a) Linux snd-usb-audio currently pre-calculates the estimate