usb-audio for CM106

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greatings,

I have a usb headset, TRI-UA512 
(http://www.trittontechnologies.com/products/TRIUA512.htm) which seems 
to be based on the C-Media's CM106 chip based on:

lsusb: Bus 002 Device 006: ID 0d8c:0006 C-Media Electronics, Inc.

My full `lsusb -v` is posted here: http://phpfi.com/247489

The headset works, but only in stereo, and with no hardware mixing.  The 
output of `aplay -l` seems to indicate that it is being detected as a 
"generic" usb-audio device:

card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I'm using Gentoo Linux with

media-sound/alsa-driver-1.0.14_rc2-r1
media-sound/alsa-firmware-1.0.14_rc2-r1
media-sound/alsa-headers-1.0.14_rc2
media-sound/alsa-utils-1.0.14_rc2-r3
2.6.20-gentoo-r8 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+

I noticed on the cvs change log 
(http://www.alsa-project.org/changes/v1-0-12rc1--v1-0-12rc2.txt) that 
there was a patch to enable the more advanced features of the CM106.  
Clearly, it's not working for my specific headset.  So, my question is, 
is there a simple way to get the usb-audio driver to recognize this as a 
cm106?  Perhaps by adding the usb device id to the code, similar to the 
original patch.  Or, is there something far more complicated that needs 
to happen?

Out of curiosity, I did try to add this:

        if (id == USB_ID(0x0d8c, 0x0006)) {
                if (snd_usb_cm106_boot_quirk(dev) < 0)
                        goto __err_val;
        }

in usbaudio.c like in the original patch, but with my device id, but it 
didn't work.

I would appreciate any advice.  Thanks,

Jon

By the way, I just noticed that the change I made to the driver seemed 
to cause the following in the system log.  Hmmm... maybe I have 
something wrong in /etc/modules.conf?

usb 2-8: new full speed USB device using ohci_hcd and address 5
usb 2-8: new full speed USB device using ohci_hcd and address 6
usb 2-8: configuration #1 chosen from 1 choice
kobject_add failed for card1 with -EEXIST, don't try to register things 
with the same name in the same directory.

Call Trace:
 [<ffffffff8037730a>] kobject_add+0x16b/0x196
 [<ffffffff803c2c0a>] device_add+0x9d/0x56a
 [<ffffffff88066d15>] :snd_usb_audio:add_control_to_empty+0x45/0x78
 [<ffffffff80252382>] kobject_get+0x12/0x17
 [<ffffffff803c31a9>] device_create+0xc0/0xef
 [<ffffffff8023157e>] kref_put+0x5d/0x68
 [<ffffffff88024c04>] :snd:snd_device_new+0x26/0x8f
 [<ffffffff8806817b>] :snd_usb_audio:snd_usb_create_mixer+0x46a/0x4d3
 [<ffffffff88020a02>] :snd:snd_card_register+0x3d/0x2c0
 [<ffffffff88065349>] :snd_usb_audio:usb_audio_probe+0x6bb/0x799
 [<ffffffff802d44ae>] sysfs_new_dirent+0x34/0x75
 [<ffffffff80451240>] usb_probe_interface+0x7d/0xa4
 [<ffffffff803c4c4c>] __device_attach+0x0/0x5
 [<ffffffff803c4b18>] really_probe+0x87/0x10c
 [<ffffffff803c4c4c>] __device_attach+0x0/0x5
 [<ffffffff803c3f43>] bus_for_each_drv+0x40/0x72
 [<ffffffff803c4cbb>] device_attach+0x58/0x6b
 [<ffffffff803c3edd>] bus_attach_device+0x23/0x49
 [<ffffffff803c2f2e>] device_add+0x3c1/0x56a
 [<ffffffff8044fc51>] usb_set_configuration+0x369/0x3ed
 [<ffffffff80456856>] generic_probe+0x193/0x1d0
 [<ffffffff803c4c4c>] __device_attach+0x0/0x5
 [<ffffffff803c4b18>] really_probe+0x87/0x10c
 [<ffffffff803c4c4c>] __device_attach+0x0/0x5
 [<ffffffff803c3f43>] bus_for_each_drv+0x40/0x72
 [<ffffffff803c4cbb>] device_attach+0x58/0x6b
 [<ffffffff803c3edd>] bus_attach_device+0x23/0x49
 [<ffffffff803c2f2e>] device_add+0x3c1/0x56a
 [<ffffffff8044b9d2>] __usb_new_device+0x80/0xc0
 [<ffffffff8044cc20>] hub_thread+0x71f/0xafd
 [<ffffffff8028e272>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8044c501>] hub_thread+0x0/0xafd
 [<ffffffff8028e0da>] keventd_create_kthread+0x0/0x65
 [<ffffffff8022efe8>] kthread+0xd1/0x100
 [<ffffffff80258808>] child_rip+0xa/0x12
 [<ffffffff8028e0da>] keventd_create_kthread+0x0/0x65
 [<ffffffff8039af69>] vgacon_cursor+0x0/0x19c
 [<ffffffff8022ef17>] kthread+0x0/0x100
 [<ffffffff802587fe>] child_rip+0x0/0x12

input: USB Audio as /class/input/input7
input: USB HID v1.00 Device [USB Audio] on usb-0000:00:02.0-8


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux