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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/25/2014 11:23 AM, Jassi Brar wrote:
> On Mon, Aug 25, 2014 at 2:14 PM, Daniel Mack <daniel@xxxxxxxxxx> 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 the sample rate.
>>
>> I'll cook up an alternative patch and do some tests with Sebastian off-list.
>>
> How about configuring bInterval and wMaxPacketSize to get the desired rate?
> 
> For ex, 48KHz/2/S16, we need 192bytes/millisec. So we set bInterval=1
> (or 4 for HS) and wMaxPacketSize=192 for that configuration.  For
> 44.1KHz/2/S16 we need 176.4bytes/millisec, so we set
> wMaxPacketSize=178 and send packets of length in {176, 176, 176,
> 176,178} pattern.

Yes, something like that. But you can't modify wMaxPacketSize in
accordance to the sample rate and format, but just send short packets.

I'm currently testing a patch which does that.


Daniel

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux