Re: noise on USB audio on RPI 4B

2021-05-21 Thread Alexandre Ratchov
On Thu, May 20, 2021 at 11:48:20PM +0200, Christian Weisgerber wrote: > > On Tuesday, May 18, 2021, 10:42:53 AM EDT, Alexandre Ratchov > > wrote: > > >On Tue, May 18, 2021 at 02:19:49PM +, Doug Moss wrote: > > >> Another topic: > > >> arm64 sndiod cannot be built with 24bit > > >> > > >> in

Re: noise on USB audio on RPI 4B

2021-05-20 Thread Christian Weisgerber
> On Tuesday, May 18, 2021, 10:42:53 AM EDT, Alexandre Ratchov > wrote: > >On Tue, May 18, 2021 at 02:19:49PM +, Doug Moss wrote: > >> Another topic: > >> arm64 sndiod cannot be built with 24bit > >> > >> in /usr/src/usr.bin/sndiod > >> make COPTS=-DADATA_BITS=24 > >> produces: > >> dsp.h:8

Re: noise on USB audio on RPI 4B

2021-05-20 Thread Doug Moss
On Tuesday, May 18, 2021, 10:42:53 AM EDT, Alexandre Ratchov wrote: >On Tue, May 18, 2021 at 02:19:49PM +, Doug Moss wrote: >> Another topic: >> arm64 sndiod cannot be built with 24bit >> >> in /usr/src/usr.bin/sndiod >> make COPTS=-DADATA_BITS=24 >> produces: >> dsp.h:85:2: error "no 24-bi

Re: noise on USB audio on RPI 4B

2021-05-18 Thread Patrick Wildt
Am Tue, May 18, 2021 at 07:42:07AM +0200 schrieb Alexandre Ratchov: > On Mon, May 17, 2021 at 10:19:59PM +0200, Patrick Wildt wrote: > > The thing though is that I thought xhci(4) was already calling syncmem > > on that buffer. I mean, it's happening in xhci_device_isoc_start(), > > isn't it? It'

Re: noise on USB audio on RPI 4B

2021-05-17 Thread Doug Moss
On Monday, May 17, 2021, 3:08:58 PM EDT, Luca Castagnini wrote: >Hi Alexandre, >the patch works for me, both with the C-Media and Startech, for both USB2 and >USB3. >Thanks and best wishes >Luca Alexandre, Patch works for me, too. (on StarTech and Logitech devices - I have not had chance to ch

Re: noise on USB audio on RPI 4B

2021-05-17 Thread Alexandre Ratchov
On Mon, May 17, 2021 at 10:19:59PM +0200, Patrick Wildt wrote: > The thing though is that I thought xhci(4) was already calling syncmem > on that buffer. I mean, it's happening in xhci_device_isoc_start(), > isn't it? It's doing > > usb_syncmem(&xfer->dmabuf, 0, xfer->length, > usbd_xfer_isr

Re: noise on USB audio on RPI 4B

2021-05-17 Thread Patrick Wildt
The thing though is that I thought xhci(4) was already calling syncmem on that buffer. I mean, it's happening in xhci_device_isoc_start(), isn't it? It's doing usb_syncmem(&xfer->dmabuf, 0, xfer->length, usbd_xfer_isread(xfer) ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); and unless th

Re: noise on USB audio on RPI 4B

2021-05-17 Thread Luca Castagnini
Hi Alexandre, the patch works for me, both with the C-Media and Startech, for both USB2 and USB3. Thanks and best wishes Luca > On 17 May 2021, at 18:44, Alexandre Ratchov wrote: > > On Sat, May 15, 2021 at 04:18:08PM +, Doug Moss wrote: >>> On 11 May 2021, Luca wrote: >>> Thanks guys.

Re: noise on USB audio on RPI 4B

2021-05-17 Thread Alexandre Ratchov
On Sat, May 15, 2021 at 04:18:08PM +, Doug Moss wrote: > On 11 May 2021, Luca wrote: > >Thanks guys. I've ordered one, let's see if I am lucky. > > > >Cheers > >Luca > > > I have the same problem: OpenBSD 6.9 arm64, USB audio is not working > > I wrote before about this, as well as Luca > (

Re: noise on USB audio on RPI 4B

2021-05-15 Thread Doug Moss
On 11 May 2021, Luca wrote: >Thanks guys. I've ordered one, let's see if I am lucky. > >Cheers >Luca I have the same problem: OpenBSD 6.9 arm64, USB audio is not working I wrote before about this, as well as Luca ( https://marc.info/?l=openbsd-arm&m=159691773016835&w=2 ) Thank you to Luca for s

Re: noise on USB audio on RPI 4B

2021-05-11 Thread Luca Castagnini
Thanks guys. I've ordered one, let's see if I am lucky. Cheers Luca

Re: noise on USB audio on RPI 4B

2021-05-11 Thread Jim Erickson
https://www.amazon.com/StarTech-com-Sound-SPDIF-Digital-Stereo/dp/B00F7120TQ/ref=sr_1_4?crid=2DCWMU5DGRVNH&dchild=1&keywords=startech+usb+audio+adapter&qid=1620751731&sprefix=starttech+usb+audio+adapter%2Caps%2C221&sr=8-4 thats the one i use with no problems. hope that helps!

Re: noise on USB audio on RPI 4B

2021-05-11 Thread Luca Castagnini
Hi, I cannot find any Speed Dragon online, could send (me) a link to or a pic of the product? Thanks Luca > On 11 May 2021, at 16:21, Jim Erickson wrote: > > i had the same problem with C-Media usb dac's. so i switched to StarTech > and have had no problems since. relevent portion of dmesg f

Re: noise on USB audio on RPI 4B

2021-05-11 Thread Alan Corey
I was doing a bunch of recording last summer. When I could run the laptop on batteries it worked quite well but if I plugged in the AC adapter there was so much noise it was unusable. And I was using a StarTech card but I don't remember the "Speed Dragon", just cm106-like. I picked up a couple c

noise on USB audio on RPI 4B

2021-05-11 Thread Jim Erickson
i had the same problem with C-Media usb dac's. so i switched to StarTech and have had no problems since. relevent portion of dmesg follows: uaudio0 at uhub5 port 2 configuration 1 interface 1 "Speed Dragon USB Advanced Audio Device" rev 2.00/1.04 addr 9 uaudio0: class v1, full-speed, sync, channel