Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing an odd soundcard (M-Audio Transit USB)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Thu Jan 13, 2022 12:26 am    Post subject: Installing an odd soundcard (M-Audio Transit USB) Reply with quote

Hi,

years ago I asked here for help about a similar problem, which in the end wasn't a problem at all. But now it is...

I am using Daphile, a Gentoo based audio distribution (a headless music server/player/streamer), running on an old mini-pc (fit-pc2), which has beside the analogue outputs a coax-S/PDIF output. But now I want to connect it to a device which uses ideally optical S/PDIF (analogue output would result in a weird D/A->A/D->D/A chain, since the target device, a hub for some streaming loudspeakers, digitalizes analogue signals to stream them to the speakers). Now the straightforward solution would be buying something which converts either USB or coax-S/PDIF to optical, but that wouldn't be complicated enough, right?

So, I have this old tiny USB-soundcard with optical in- and output, a M-Audio Transit USB. Problem: This thing needs to load a firmware via USB to do something. I had it running years ago successfully on Ubuntu and on a Raspberry Pi, it uses a package called madfuload to load the required firmware. The problem: While I am ok with Debian/Ubuntu, I have no glue about Gentoo. I have root access to the device via ssh.

I found here a Gentoo related bug report (and probably solution?) for this card, but I am not sure how to handle this: https://bugs.gentoo.org/145009
For Ubuntu, the required package is here: https://help.ubuntu.com/community/MaudioTransitUSB
And here more generic: http://www.theory.physics.ubc.ca/transit.html

Is there anyone who could help me?

Here a very first step: Plugging the card in shows at least up:
Code:
daphile ~ # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 03eb:21fe Atmel Corp. AVR309:USB to UART protocol converter (simple)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0763:2806 M-Audio M-Audio Transit DFU
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jan 13, 2022 1:42 am    Post subject: Reply with quote

How about downloading the Ubuntu deb, converting it to tgz, unpacking and executing?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Thu Jan 13, 2022 1:30 pm    Post subject: Reply with quote

Yes, that's something I had in mind, I just have no idea how to do it. When searching, I find online some converters, which I find a bit odd, but maybe the easiest if there is one which can be trusted? Otherwise I can do it manually (how?), ideally on Ubuntu... I will try as described in https://ubuntuforums.org/showthread.php?t=1676492, let's see how it works.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jan 13, 2022 1:45 pm    Post subject: Reply with quote

Don't know about Ubuntu, in Gentoo we use app-arch/deb2targz.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 307

PostPosted: Thu Jan 13, 2022 2:06 pm    Post subject: Reply with quote

Another option, you can use ar to unpack a .deb directly.

http://www.miketaylor.org.uk/tech/deb/#gsc.tab=0
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Thu Jan 13, 2022 6:46 pm    Post subject: Reply with quote

Thanks everyone, I'll try this (later when I am back at home). My first approach would be downloading the the deb (done), and using alien on Ubuntu to convert to tgz. Once I have this, I send it to the other computer which runs daphile. How to go on from there? Where to place it? Unpacking should be straightforward, anything I should do special when executing (just calling the files, or using a certain tool to call them?).

I guess deb2targz and alien would be similar? I try it in case I run with alien into some problems, good to know. And ar would allow me to install the deb directly on Gentoo? If this works, it might be the easiest way.

Alright, I have some stuff to try out!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Thu Jan 13, 2022 6:49 pm    Post subject: Reply with quote

ant!,

Once you have the tgz, you can unpack it and look at the pieces.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Fri Jan 14, 2022 7:17 pm    Post subject: Reply with quote

Here the content of the tgz (converted using alien on Ubuntu from the deb):

Code:
anton@anton-ThinkPad-T540p:~/Downloads$ tar zxvf madfuload-1.2.tgz
./
./lib/
./lib/udev/
./lib/udev/rules.d/
./lib/udev/rules.d/42-madfuload.rules
./usr/
./usr/share/
./usr/share/man/
./usr/share/man/man1/
./usr/share/man/man1/madfuload.1.gz
./usr/share/usb/
./usr/share/usb/maudio/
./usr/share/usb/maudio/ma006100.bin
./usr/share/usb/maudio/ma003101.bin
./usr/share/usb/maudio/ma005101.bin
./usr/share/usb/maudio/ma008100.bin
./usr/share/usb/maudio/ma004103.bin
./usr/share/doc/
./usr/share/doc/madfuload/
./usr/share/doc/madfuload/copyright
./usr/share/doc/madfuload/changelog.Debian.gz
./usr/share/doc/madfuload/README
./usr/share/doc/madfuload/changelog.gz
./usr/sbin/
./usr/sbin/madfuload


This is still on Ubuntu, just easier to copy paste here.

The README file says:
Quote:
Installing
----------

1) Run './configure'.

2) Run 'make'.

3) As root, run 'make install'.



So, I will move the tgz to the Daphile/Gentoo target PC. What then, where should I move it to, a specific place or any temporary place? Then unpack or not? Or running the things mentioned in the README (how? using these commands when just being in this folder?

Thanks for your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Fri Jan 14, 2022 7:41 pm    Post subject: Reply with quote

ant!,

That list is a pile of binaries. They just need to be copied into the right places

The
Code:
1) Run './configure'.

2) Run 'make'.

3) As root, run 'make install'.
cannot work are there are no sources in you list of files.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Fri Jan 14, 2022 8:04 pm    Post subject: Reply with quote

Which means I need to copy the files listed as lib to lib, usr/share to that one, etc? Is this correct?
Do I need to copy all files, or only bin, lib, rules? Or everything beside the doc folder?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Fri Jan 14, 2022 8:21 pm    Post subject: Reply with quote

ant!,

That's correct.

Before you start, run
Code:
lddtree madfuload
to see what madfuload depends on and if you have all the bits to support it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Fri Jan 14, 2022 8:34 pm    Post subject: Reply with quote

Thanks for your help!

Code:
daphile ~ # lddtree madfuload
-bash: lddtree: command not found


Any other way to check for dependencies, or how do I install lddtree (I guess Gentoo doesn't use apt install...)?

I copied anyways all files except the doc folder, since the bin alone was not working. After a reboot, I see now the soundcard in the GUI! I have still to test the output later (doing this remotely while not being in the room where this thing is...), but it looked like it might have worked!

Aplay looks also nice:
Code:
daphile ~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: MID [HDA Intel MID], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: USB [Transit USB], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: USB [Transit USB], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


The M-Audio Transit USB has two outputs, optical and analog, which might explain the two entries for card 2.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Fri Jan 14, 2022 8:41 pm    Post subject: Reply with quote

ant!,

That looks promising.
The *.bin files are the firmware. You needed al least one of those.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 881

PostPosted: Sat Jan 15, 2022 9:09 am    Post subject: Reply with quote

I found some pointers which may be useful:
The source of the "madfuload" tool is actually available, i found it in the debian archive: https://sources.debian.org/src/madfuload/1.2-4.2/
That suits the gentoo way of working a bit better, you might actually be able to make an ebuild for it.

On the other hand, i found this page: http://usb-midi-fw.sourceforge.net/
Your Transit is listed as using "DFU technology", dfu-util is available as app-mobilephone/dfu-util in portage so that might work.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 307

PostPosted: Sat Jan 15, 2022 7:49 pm    Post subject: Reply with quote

ant! wrote:

And ar would allow me to install the deb directly on Gentoo?

No.
ar means archiver; it is a basic tool similar to tar (check the manuals).
It can be used to unpack .a or .deb.

It provides yet another alernative to alien and deb2targz.
Back to top
View user's profile Send private message
ant!
n00b
n00b


Joined: 17 Sep 2016
Posts: 12

PostPosted: Sun Jan 16, 2022 2:38 am    Post subject: Reply with quote

Thanks everyone, this was very helpful. I finally found the time to test the thing I did, the deb to tgz and then copying. I do get both analogue and optical output from this soundcard! Both have still some cracking sounds every few seconds, but I hope I can fix this by using longer audio buffers, I need to try this a bit. I assume this isn't really related to the driver installation, or could it be?

The other installation options are definitely good to know for the future, but I guess they shouldn't make something different since I got it in general running now?

As mentioned above, the card shows up as two sub-entries in aplay, and both analogue and optical work on the first only, I get nothing on the second. Could this second be the inputs only, but why would it show then in aplay?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum