How to configre Maudio micro soundcard on raspberry

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

Moderators: khz, MattKingUSA

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Re: How to configre Maudio micro soundcard on raspberry
by AutoStatic » Tue May 21, 2013 10:41 am

Ah, I thought you already added my repository, my bad. Pablo's link will bring you to a Wiki page explaining how to add the repository.
Thanks AutoStatic and Pablo, I am success to install madfuload . but still doesnt work.

Code: Select all

[madfuload
Please specify a firmware file.
/code] 

[code]aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  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
sorry for a lot question because I am new on linux world.

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Thanks AutoStatic and Pablo for your infomation and patience.
I am success for install madfuload from AutoStatic repository but I am still get trouble, sound card still not work.

Code: Select all

cat /proc/asound/cards
 0 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA

Code: Select all

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  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
and for madfuload

Code: Select all

madfuload
Please specify a firmware file.
what next step guys? i found some information http://www.pclinuxos.com/forum/index.php?topic=84723.0 , but still confuse.

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

Could you do a:

Code: Select all

tail -f /var/log/syslog
with the M-Audio Micro not connected and then connect it? Does the log show anything? Could you post that?
The lsusb output in your case doesn't show any references to 'DFU' though so I highly doubt the current firmware loaders can handle your interface. If it needs any firmware at all.

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

I don't think it will work. The M-Audio Micro is also a dongle for the Session software so it's probably a Windows only device.

Pablo
Established Member
Posts: 1271
Joined: Thu Apr 17, 2008 9:57 pm

Re: How to configre Maudio micro soundcard on raspberry

Post by Pablo »

I suggest you ask in the alsa users mailing list [1], [2]. Hopefully one of he alsa devs (driver programmers) can help you, or at least, give you a definitive answer. You will have to suscribe first

In your e-mail, post the output of:

lsusb -v -d 0763:201a

[1] http://www.alsa-project.org/main/index. ... ling-lists
[2] https://lists.sourceforge.net/lists/listinfo/alsa-user

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Thanks alot I will asking alsa proggramer mailing list. Thanks All

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Could you do a:
tail -f /var/log/syslog
yes this my output

May 26 13:33:50 raspberrypi kernel: [ 3339.391983] usb 1-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 26 13:33:50 raspberrypi kernel: [ 3339.392002] usb 1-1.2.2: Product: M-Audio Micro
May 26 13:33:50 raspberrypi kernel: [ 3339.392016] usb 1-1.2.2: Manufacturer: M-Audio
May 26 13:33:50 raspberrypi madfuload: control transfer failed: (32) Broken pipe
May 26 13:33:50 raspberrypi madfuload: control transfer failed: (32) Broken pipe
May 26 13:33:50 raspberrypi madfuload: control transfer failed: (32) Broken pipe
May 26 13:33:50 raspberrypi madfuload: downloading block 0 failed
May 26 13:33:50 raspberrypi madfuload: out of memory
May 26 13:34:00 raspberrypi /USR/SBIN/CRON[3564]: (pi) CMD (gtextcommand)
May 26 13:34:10 raspberrypi /USR/SBIN/CRON[3563]: (CRON) info (No MTA installed, discarding output)

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

So madfuload gets called but then fails because of an out of memory error. On the one side this is hopeful (madfuload gets triggered), on the other hand, how to get around the memory error? Just a shot in the dark, could you try:

Code: Select all

sudo mount -o remount,size=128M /dev/shm
and then insert the Micro again?

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Thanks Autostatic I will try sudo mount -o remount,size=128M /dev/shm and report result as soon possible. other guys from alsa user mailing list tell Me about The device needs a quirk in order to be recognized by snd_usb_audio with add entry on quirks-table.h but I dont know how to do that?. I must add the entry to the file sound/usb/quirks-table.h but I cant found a folder sound/usb/, would you tell Me about that? here quirks-table.h

Code: Select all

{
        USB_DEVICE(0x0763, 0x201a),
        .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
                /* .vendor_name = "M-Audio", */
                /* .product_name = "Micro", */
                .ifnum = QUIRK_ANY_INTERFACE,
                .type = QUIRK_COMPOSITE,
                .data = & (const struct snd_usb_audio_quirk[]) {
                        {
                                /* Control device */
                                .ifnum = 0,
                                .type = QUIRK_IGNORE_INTERFACE
                        },
                        {
                                .ifnum = 1,
                                .type = QUIRK_AUDIO_STANDARD_INTERFACE
                        },
                        {
                                .ifnum = 2,
                                .type = QUIRK_AUDIO_STANDARD_INTERFACE
                        },
                        {
                                .ifnum = -1
                        }
                }
        }
},

So today I starting to using on board audio and installing jack but not sucessfull how to install jack on raspberry , I am using your repository and confuse with patch jack

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

pukulsesuatu wrote:Thanks Autostatic I will try sudo mount -o remount,size=128M /dev/shm and report result as soon possible. other guys from alsa user mailing list tell Me about The device needs a quirk in order to be recognized by snd_usb_audio with add entry on quirks-table.h but I dont know how to do that?. I must add the entry to the file sound/usb/quirks-table.h but I cant found a folder sound/usb/, would you tell Me about that? here quirks-table.h
You need to modify the source of the USB sound driver so you have to download the RPi kernel source, modify quirks-table.h and recompile your kernel (or just the snd-usb-audio module itself).
pukulsesuatu wrote:So today I starting to using on board audio and installing jack but not sucessfull how to install jack on raspberry , I am using your repository and confuse with patch jack
My repository contains patched JACK versions that work on the Raspberry Pi. The JACK packages from the standard Raspbian repositories do not work. To use JACK with the onboard audio you need a fully updated Raspbian installation with the latest firmware and then you'll find out that the onboard audio really isn't made for real-time, low-latency audio. At least, I can't get it to work properly with JACK.

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

Thanks installing M-audio micro is getting complicated and make me crazy, so I am doing make a fresh install raspibian and change soundcard using E-MU 0202, now raspberry can detect E-MU

Code: Select all

[**** List of PLAYBACK Hardware Devices ****
card 0: USB [E-MU 0202 | USB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0

/code]
I following AutoStatic step on http://wiki.linuxaudio.org/wiki/raspber ... repository. I try follow instruction, please correct me if I making mistake?
1) make Setting the default soundcard
[#options snd-usb-audio index=-2/code]
2) add repository
wget -O - http://rpi.autostatic.com/autostatic.gpg.key| sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/autostatic-audio-raspbian.list http://rpi.autostatic.com/autostatic-au ... pbian.list
sudo apt-get update
3)Patching Jack but I dont know to do that? would you give me how to patching Jack?
4) installing package jack 2
sudo apt-get --no-install-recommends install jackd2
5) running Jack
sudo mount -o remount,size=128M /dev/shm
echo -n performance \
| sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
6) using external sound card
how to configuration jack command with E-Mu 0202 ? I am also still confuse.

Code: Select all

jackd -P70 -p16 -t2000 -dalsa -dhw:E-MU 0202  -p128 -n3 -r44100 -s &
[1] 2970
pi@raspberrypi ~ $ jackdmp 1.9.9
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
Cannot lock down 13589216 byte memory area (Cannot allocate memory)
creating alsa driver ... hw:E-MU|hw:E-MU|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
control open "hw:E-MU" (No such device)
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

Thanks a lot guys and please help Me.........

Pablo
Established Member
Posts: 1271
Joined: Thu Apr 17, 2008 9:57 pm

Re: How to configre Maudio micro soundcard on raspberry

Post by Pablo »

-dhw:E-MU 0202
This should be -dhw:USB

User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

pukulsesuatu wrote:3)Patching Jack but I dont know to do that? would you give me how to patching Jack?
You don't need to patch JACK, patched JACK packages are in my repository. I'll change this in the Wiki to make it clear you don't have to patch anything yourself when using my repository.
pukulsesuatu wrote:Cannot lock down 13589216 byte memory area (Cannot allocate memory)
You have to select 'Yes' when the JACK install asks if you want to enable real-time priorities. Please run sudo dpkg-reconfigure jackd2 and select 'Yes'. I'll add this step to the Wiki too.

pukulsesuatu
Established Member
Posts: 15
Joined: Sat May 11, 2013 5:12 am

Re: How to configre Maudio micro soundcard on raspberry

Post by pukulsesuatu »

now jack no error thanks you Guys but still I cant hear any sound came out.

Code: Select all

jackd -P70 -p16 -t2-dhw:USB -p128 -n3 -r44100 -s &
[1] 3209
$ jackdmp 1.9.9
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
creating alsa driver ... hw:USB|hw:USB|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian
ALSA: use 3 periods for playback

Code: Select all

aplay voice.wav
aplay: main:682: audio open error: Device or resource busy


User avatar
autostatic
Established Member
Posts: 1728
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Contact:

Re: How to configre Maudio micro soundcard on raspberry

Post by autostatic »

Great! aplay doesn't work with JACK. You need a player that supports JACK like Aqualung.

Post Reply