Page 26 of 60

Re: Ultralite AVB

Posted: Tue Aug 11, 2020 4:36 pm
by t-legiaw
root2 wrote: Tue Aug 11, 2020 8:54 am
It seems like it does:
The USBStreamer utilizes high speed USB2.0 along with the Audio Class 2.0 implementation to simultaneously provide up to 8channels of playback along with 8channel of recording over the ADAT standard
yes indeed. There's only one thing that sounds like it could cause problems (from https://www.minidsp.com/images/document ... Manual.pdf) ...
the USBStreamer always operates as clock master. That is, the clock lines are always outputs. The connected circuitry must therefore use the clocks provided by the USBStreamer

New driver for Ultralite AVB

Posted: Sun Aug 30, 2020 6:01 pm
by bluebell
root2 wrote: Mon Jul 27, 2020 11:41 am Seems to work fine for now, but channel hopping is still a problem
Drumfix made a new driver. It runs on my UltraLite AVB (old model) with most recent firmware without any channel hopping.

I can change jackd's buffer size down to 24 on the fly (jack_bufsize 24).
ua101.c
(35.72 KiB) Downloaded 222 times
I tested it with Linux 5.8.0-rc7. Should work with newer kernels, too.

Installation instructions:
- get the kernel's source code
- replace sound/usb/misc/ua101.c by the file in this posting
- go back into the kernel source's main dir

Code: Select all

make oldconfig (press ENTER for new options)
make (if you have 8 cores use make -j8)
sudo make INSTALL_MOD_STRIP=1 modules_install install
create a file /etc/modprobe.d/motuavb.conf with the content

Code: Select all

options snd_ua101 samplerate=48000 midi=1
(you might use another samplerate)

Reboot.

New driver for UltraLite AVB (and 828ES)

Posted: Thu Sep 03, 2020 12:41 pm
by bluebell
Note:
Don't apply other patches for MOTU Ultralite AVB. Just replace sound/usb/misc/ua101.c

Bonus:
One reader tested the driver successfully with his 828ES.

Re: New driver for UltraLite AVB (and 828ES)

Posted: Thu Sep 03, 2020 1:51 pm
by ahellquist
This is very good news!

What is the chance this patch finding it's way into the official kernel?

/Anders
bluebell wrote: Thu Sep 03, 2020 12:41 pm Note:
Don't apply other patches for MOTU Ultralite AVB. Just replace sound/usb/misc/ua101.c

Bonus:
One reader tested the driver successfully with his 828ES.

Re: New driver for UltraLite AVB (and 828ES)

Posted: Thu Sep 03, 2020 2:53 pm
by KREAM
bluebell wrote: Thu Sep 03, 2020 12:41 pm Note:
Don't apply other patches for MOTU Ultralite AVB. Just replace sound/usb/misc/ua101.c

Bonus:
One reader tested the driver successfully with his 828ES.
That's great news, I'm hoping this will work for my 1248. I installed Manjaro since I can get the 5.8 kernel easily but patching seems to be a headache so now I'm trying to learn their .patch format to get this integrated.

Re: New driver for UltraLite AVB (and 828ES)

Posted: Thu Sep 03, 2020 3:23 pm
by bluebell
ahellquist wrote: Thu Sep 03, 2020 1:51 pm This is very good news!

What is the chance this patch finding it's way into the official kernel?

/Anders
bluebell wrote: Thu Sep 03, 2020 12:41 pm Note:
Don't apply other patches for MOTU Ultralite AVB. Just replace sound/usb/misc/ua101.c

Bonus:
One reader tested the driver successfully with his 828ES.
Not sure. Drumfix wrote me that he wants to improve the driver first. As I understand he wants to eliminate the need for configuring the samplerate when loading the module. SInce I work at 48000 all the time that's not important for me.

Re: New driver for UltraLite AVB (and 828ES)

Posted: Thu Sep 03, 2020 3:24 pm
by bluebell
KREAM wrote: Thu Sep 03, 2020 2:53 pm
bluebell wrote: Thu Sep 03, 2020 12:41 pm Note:
Don't apply other patches for MOTU Ultralite AVB. Just replace sound/usb/misc/ua101.c

Bonus:
One reader tested the driver successfully with his 828ES.
That's great news, I'm hoping this will work for my 1248. I installed Manjaro since I can get the 5.8 kernel easily but patching seems to be a headache so now I'm trying to learn their .patch format to get this integrated.
I got the source from kernel.org and all I did was replacing sound/usb/misc/ua101.c completely.
I didn't apply any patches.

Re: Ultralite AVB

Posted: Thu Sep 03, 2020 4:06 pm
by bluebell
Driver works with stable kernel 5.8.6 as well.

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 9:08 am
by ahellquist
Very well done!
bluebell wrote: Thu Sep 03, 2020 4:06 pm Driver works with stable kernel 5.8.6 as well.

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 9:11 am
by bluebell
ahellquist wrote: Fri Sep 04, 2020 9:08 am Very well done!
bluebell wrote: Thu Sep 03, 2020 4:06 pm Driver works with stable kernel 5.8.6 as well.
All glory and kudos to @Drumfix who wrote the driver.

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 9:17 am
by ahellquist
Correct.

Thanks a lot @Drumfix


bluebell wrote: Fri Sep 04, 2020 9:11 am
ahellquist wrote: Fri Sep 04, 2020 9:08 am Very well done!
bluebell wrote: Thu Sep 03, 2020 4:06 pm Driver works with stable kernel 5.8.6 as well.
All glory and kudos to @Drumfix who wrote the driver.

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 10:42 am
by Ulrich
Hello,

I'm the user with the 828ES. I thought it worked but it did not today. The dmesg log is the same :

Code: Select all

[  +0,000000] usb 1-10: Product: 828ES
[  +0,000001] usb 1-10: Manufacturer: MOTU
[  +0,019292] usb 1-10: clock source 1 is not valid, cannot use
[  +0,832307] usb 1-10: clock source 1 is not valid, cannot use
[  +0,033965] usbcore: registered new interface driver snd-motu-avb
I have this in /etc/modprobe.d/alsa.conf

Code: Select all

options snd_ua101 samplerate=48000 midi=1 index=1
It seemed to work when I booted with the card on, this time I powered on the card after the computer was on. I'll check the other way around and edit this post.

EDIT :

So, when plugging the card while the computer is on, it loads snd-usb-audio :

Code: Select all

Class=Audio, Driver=snd-usb-audio, 480M
        ID 07fd:0005 Mark of the Unicorn
If I turn the card on, then the computer, it loads snd-motu-avb, and everything is great :

Code: Select all

Class=Audio, Driver=snd-motu-avb, 480M
        ID 07fd:0005 Mark of the Unicorn
How could I make this work so that it loads snd_ua101 when I plug the card after the computer ? Which happens, I don't turn on the Motu all the time. Is it possible ?

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 12:11 pm
by bluebell
Can't reproduce it with my UltraLite AVB.

Are you sure that you don't have other patches installed, e.g. those older patches from Drumfix?

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 12:59 pm
by Ulrich
Weird, I'll test further.

Re: Ultralite AVB

Posted: Fri Sep 04, 2020 1:30 pm
by bluebell
Ulrich wrote: Fri Sep 04, 2020 10:42 am

Code: Select all

Class=Audio, Driver=snd-usb-audio, 480M
        ID 07fd:0005 Mark of the Unicorn
How do you get this info?