On Mon, 12 Feb 2024 05:41:29 -0800 (PST) "'Ricardo M.' via linux-sunxi" <linux-sunxi@googlegroups.com> wrote:
Hi, > Hello folks, > > I have an OrangePi Zero 2*W *actually running with Armbian 6.7.4 Kernel. > When I setup g_audio module I can´t achieve settings higher than 84578 hz > samplerate with S24_3LE (3Byte) and no more than 127360 Hz with S16. Both > is nearly or exactly 512 Byte packet size tho. How many channels is that? And what rate do you expect? Did you get that rate on any other Allwinner SoC? Or a SoC from another vendor, like Rockchip? The OTG performance under Linux on Allwinner SoCs is rather poor, since we don't have DMA support, so the CPU has to do all the byte pushing, which severely limits the performance. Apparently the BSP does not use DMA either, so it's unclear whether this is broken or not. No one has ever tried to implement it, although many people are interested. With just a simple UMS test in U-Boot, I could read with about 900 KB/s, and this is probably the lower limit, since U-Boot is horribly inefficient in this respect (and that SD card is slow as well). So it does not look like a hardware limit, unless you have four channels? Your rate above suggests you hit 256 KB/s per channel. > Tuning and optimising packet sizes and intervalls did not helped. I think > it is an issue with the USB implementation in the device tree. Althought 2W > is a H618 in the dtb/dts is still H616 modules used (I decompilied dtb) and > I already using Zero 3 (H618) device tree. This has nothing to do with the DT, and the H616 and H618 are basically the same chip, with some very minor implementation differences, and with the H618 having 1MB of L2 cache instead of just 512KB. And please don't just use a DTB from another board, this is dangerous, and also not necessary, since the OPi Zero2W DT is already in mainline. > Errors when setup g_audio comes from UDC musb-hdrc.4.auto and it states > "couldn´t find an available UDC" That message is a pr_info, so that shouldn't be a problem. > or "[ 7020.314150] g_audio gadget.0: FS > Capture: Req. wMaxPacketSize 1158 at bInterval 1 > max ISOC 1023, may drop > data!" I really have no clue, but 1023 is the packet size limit for Full Speed, so are you running with USB 1.1 speeds? > Maybe someone can help! > *Maybe @Andre Przywara can help!* Why not use CC: in an email? Surely "@" doesn't work as you'd expect ;-) Cheers, Andre > > BR Ricardo > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20240219234911.77a81b00%40minigeek.lan.