Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with USB audio (M-Audio Sonica with ALSA and udev)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Fri Apr 28, 2006 1:14 am    Post subject: problems with USB audio (M-Audio Sonica with ALSA and udev) Reply with quote

Hello,

So, I only found one other post about the M-Audio Sonica on this forum, from 2004. I have one of these things, and it worked under MacOS X. So recently I wanted to use it under Linux. After doing some exploring, it looks like after you load it up with new firmware, it should work with the "snd-usb-audio" module in ALSA.

So... I installed the program to load the firmware (madfuload-1.2), which uses udev rules (udev version 087). That seems to be working, although I'm not totally sure how to check. Anyway, udevmonitor sees udev set up the device. ALSA loads the module correctly, and things like alsamixer see the device.

However, despite having OSS emulation turned on, I don't seem to be able to write to /dev/dsp etc. Also, programs like XMMS can't seem to open the ALSA device.

Anyway, I always find setting up ALSA to be a chore, and this is no exception. It's really not clear to me where things are getting messed up. If anyone has any ideas, please let me know.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Fri Apr 28, 2006 11:53 am    Post subject: Reply with quote

Well... not sure anyone else can really help, but here is some more information from udev:

Code:

# udevinfo -a -p/class/sound/audio

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at device '/class/sound/audio':
    KERNEL=="audio"
    SUBSYSTEM=="sound"
    SYSFS{dev}=="14:4"

  looking at device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0':
    ID=="3-1:1.0"
    BUS=="usb"
    DRIVER=="snd-usb-audio"
    SYSFS{interface}=="Sonica Theater"
    SYSFS{modalias}=="usb:v0763p2007d0101dc00dsc00dp00ic01isc01ip00"
    SYSFS{bInterfaceProtocol}=="00"
    SYSFS{bInterfaceSubClass}=="01"
    SYSFS{bInterfaceClass}=="01"
    SYSFS{bNumEndpoints}=="00"
    SYSFS{bAlternateSetting}==" 0"
    SYSFS{bInterfaceNumber}=="00"

  looking at device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1':
    ID=="3-1"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{product}=="Sonica Theater"
    SYSFS{manufacturer}=="M-Audio"
    SYSFS{maxchild}=="0"
    SYSFS{version}==" 1.10"
    SYSFS{devnum}=="2"
    SYSFS{speed}=="12"
    SYSFS{bMaxPacketSize0}=="8"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="00"
    SYSFS{bcdDevice}=="0101"
    SYSFS{idProduct}=="2007"
    SYSFS{idVendor}=="0763"
    SYSFS{bMaxPower}=="200mA"
    SYSFS{bmAttributes}=="80"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 3"

  looking at device '/devices/pci0000:00/0000:00:1d.1/usb3':
    ID=="usb3"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{serial}=="0000:00:1d.1"
    SYSFS{product}=="UHCI Host Controller"
    SYSFS{manufacturer}=="Linux 2.6.16.1-imac uhci_hcd"
    SYSFS{maxchild}=="2"
    SYSFS{version}==" 1.10"
    SYSFS{devnum}=="1"
    SYSFS{speed}=="12"
    SYSFS{bMaxPacketSize0}=="64"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="09"
    SYSFS{bcdDevice}=="0206"
    SYSFS{idProduct}=="0000"
    SYSFS{idVendor}=="0000"
    SYSFS{bMaxPower}=="  0mA"
    SYSFS{bmAttributes}=="c0"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 1"

  looking at device '/devices/pci0000:00/0000:00:1d.1':
    ID=="0000:00:1d.1"
    BUS=="pci"
    DRIVER=="uhci_hcd"
    SYSFS{modalias}=="pci:v00008086d000027C9sv00008086sd00007270bc0Csc03i00"
    SYSFS{local_cpus}=="ff"
    SYSFS{irq}=="185"
    SYSFS{class}=="0x0c0300"
    SYSFS{subsystem_device}=="0x7270"
    SYSFS{subsystem_vendor}=="0x8086"
    SYSFS{device}=="0x27c9"
    SYSFS{vendor}=="0x8086"

  looking at device '/devices/pci0000:00':
    ID=="pci0000:00"
    BUS==""
    DRIVER==""


So it looks to me like udev is loading the device correctly, etc. but that the USB sound module for ALSA just isn't working. Thoughts?
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Fri Apr 28, 2006 5:53 pm    Post subject: Reply with quote

Can anyone at least point me to some tips on how to debug ALSA problems? I really can't figure out if this is a configuration or a driver issue, or both?
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
kyphros
n00b
n00b


Joined: 20 Jan 2006
Posts: 10

PostPosted: Fri Apr 28, 2006 10:04 pm    Post subject: Reply with quote

When you say that you can't open the alsa device, have you checked to make sure something like arts or esd aren't using the device already?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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