VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Patching sound module to add mixer map in alsa  (Read 1433 times)

florut

  • Member
  • *
  • Posts: 34
    • Personal Website
Patching sound module to add mixer map in alsa
« on: January 30, 2008, 12:29:22 pm »

Hi,

I'm running VL 5.9 GOLD DLX edition kernel 2.6.22.14

I have an USB external 5.1 sound card "Hercules Gamesurround Muse Pocket USB LT" (from Guillemot) which is recognized by default by kernel but...

Quote
root:# ls -l /dev/snd/
total 0
crw-rw-rw- 1 root audio 116,  0 2008-01-30 21:46 controlC0
crw-rw-rw- 1 root audio 116, 32 2008-01-30 20:47 controlC1
crw-rw--w- 1 root audio 116, 24 2008-01-30 21:46 pcmC0D0c
crw-rw-rw- 1 root audio 116, 16 2008-01-30 21:46 pcmC0D0p
crw-rw--w- 1 root audio 116, 56 2008-01-30 20:47 pcmC1D0c
crw-rw-rw- 1 root audio 116, 48 2008-01-30 20:47 pcmC1D0p
crw-rw-rw- 1 root audio 116, 49 2008-01-30 20:47 pcmC1D1p
crw-rw--w- 1 root audio 116, 58 2008-01-30 20:47 pcmC1D2c
crw-rw-rw- 1 root audio 116,  1 2008-01-30 20:47 seq
crw-rw-rw- 1 root audio 116, 33 2008-01-30 21:46 timer


root:# lsusb
Bus 2 Device 2: ID 06f8:c000 Guillemot Corp.
...

root:# lsmod | grep usb
snd_usb_audio          74336  0
snd_pcm                69256  3 snd_hda_intel,snd_pcm_oss,snd_usb_audio
snd_usb_lib            14336  1 snd_usb_audio
snd_rawmidi            19104  1 snd_usb_lib
snd_hwdep               6788  1 snd_usb_audio
snd                    43364  11 snd_hda_intel,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep

root:# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

...but works only in 2.0 stereo mode :'(. Impossible to get the other channels to work (with alsa tricks), no mixer entries for the other channels.
Quote
root:# amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Line',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Capture',0



A patch has been released to fix this problem http://www.spinics.net/lists/alsa-devel/msg00304.html which i applied manually (there is no reason for it not to work !) to vector 2.6.22.14 kernel recompiled with default config (I just changed the processor type, left alsa/oss option activated as modules) 
Well, after recompiling my kernel nothing has changed at all. I know the patch is good because someone made it work (but do not say how he made it) and the card id is correctly set (same as lsusb output)

Code: [Select]
       {
               /* Hercules Gamesurround Muse Pocket LT*/
               .id = USB_ID(0x06f8, 0xc000),
               .map = hercules_gamesurround_muse_pocket_lt_map,
               .selector_map = hercules_gamesurround_muse_pocket_lt_selectors_map,
               .ignore_ctl_error = 1,
       },


Did I miss some config after of before compiling ?
Has anything have to be activated or configured in alsa config so the mixer map is applied ??

« Last Edit: January 30, 2008, 12:32:25 pm by florut »
Logged
Proudly running VL 5.9 DLX GOLD 2.6.22.14 + KDE 3.8
...on my ASUS laptop with Pentium-M @1.8Ghz + ATI Mobility X700 + Intel Wireless 2200BG

bigpaws

  • Vectorian
  • ****
  • Posts: 1869
Re: Patching sound module to add mixer map in alsa
« Reply #1 on: January 30, 2008, 01:47:17 pm »

In the documentation there should be some
instruction on getting the module loaded.

example modprobe <name of module>

Use lsmod to see if the modules is loaded.

HTH

Bigpaws
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Patching sound module to add mixer map in alsa
« Reply #2 on: January 30, 2008, 02:17:30 pm »

Quote
Well, after recompiling my kernel nothing has changed at all. I know the patch is good because someone made it work (but do not say how he made it) and the card id is correctly set (same as lsusb output)
Have you recompiled just the kernel (make), or have you also recompiled the modules (make modules) and installed them (make modules_install {or modules-install, I forgot} )?

Quote
Has anything have to be activated or configured in alsa config so the mixer map is applied ??
You could try running alsa-config, but I'm not sure that'll work. If not, you might (not sure about this) get it to work with tweaking /usr/share/alsa/alsa.conf or one of the other files in that directory, but that is probably far too complicated for anyone who isn't an alsa coder, if possible at all.
Logged
Most music on my soundcloud page was arranged in programs running on VL.

florut

  • Member
  • *
  • Posts: 34
    • Personal Website
Re: Patching sound module to add mixer map in alsa
« Reply #3 on: January 31, 2008, 02:36:47 am »

Thanks for your answers guys !  :)

Quote
Have you recompiled just the kernel (make), or have you also recompiled the modules (make modules) and installed them (make modules_install {or modules-install, I forgot} )?
I recompiled using the provided doc in kernel sources which gives something like that :
make mrproper + make config + make + make modules_install + reconfiguration of lilo...
+ I copied /usr/src/linux-xx/System.map to overwrite the one placed in /boot directory (i do not understand the point of doing this, not everyone recommands to do this, but as I do not know what is this System.map file for...)

Quote
You could try running alsa-config, but I'm not sure that'll work. If not, you might (not sure about this) get it to work with tweaking /usr/share/alsa/alsa.conf or one of the other files in that directory, but that is probably far too complicated for anyone who isn't an alsa coder, if possible at all.
Indeed it looks a bit complicated to understand !!

I forgot to mention something : my usb card is not recognised at all by alsaconf...

Quote
In the documentation there should be some
instruction on getting the module loaded.

example modprobe <name of module>

Use lsmod to see if the modules is loaded.

HTH

Bigpaws
See in my first post, i've pasted an lsmod output... The right one is snd_usb_audio.
« Last Edit: January 31, 2008, 02:38:24 am by florut »
Logged
Proudly running VL 5.9 DLX GOLD 2.6.22.14 + KDE 3.8
...on my ASUS laptop with Pentium-M @1.8Ghz + ATI Mobility X700 + Intel Wireless 2200BG