Ultralite AVB

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: khz, MattKingUSA

t-legiaw
Established Member
Posts: 3
Joined: Mon Aug 03, 2020 1:47 pm

Re: Ultralite AVB

Post 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

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

New driver for Ultralite AVB

Post 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
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.
You do not have the required permissions to view the files attached to this post.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

New driver for UltraLite AVB (and 828ES)

Post 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.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

ahellquist
Established Member
Posts: 48
Joined: Mon Jul 01, 2013 12:28 am

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

Post 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.

KREAM
Established Member
Posts: 5
Joined: Wed Feb 13, 2019 7:03 pm

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

Post 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.

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

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

Post 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.
Last edited by bluebell on Thu Sep 03, 2020 3:26 pm, edited 1 time in total.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

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

Post 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.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

Driver works with stable kernel 5.8.6 as well.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

ahellquist
Established Member
Posts: 48
Joined: Mon Jul 01, 2013 12:28 am

Re: Ultralite AVB

Post by ahellquist »

Very well done!
bluebell wrote:
Thu Sep 03, 2020 4:06 pm
Driver works with stable kernel 5.8.6 as well.

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post 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.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

ahellquist
Established Member
Posts: 48
Joined: Mon Jul 01, 2013 12:28 am

Re: Ultralite AVB

Post 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.

Ulrich
Established Member
Posts: 13
Joined: Thu Jan 25, 2018 4:21 pm

Re: Ultralite AVB

Post 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 ?

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post 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?
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

Ulrich
Established Member
Posts: 13
Joined: Thu Jan 25, 2018 4:21 pm

Re: Ultralite AVB

Post by Ulrich »

Weird, I'll test further.

User avatar
bluebell
Established Member
Posts: 1434
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post 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?
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

Post Reply