Welcome! Log In Create A New Profile

Advanced

USB Sound not working with Debian 2.6.37

Posted by BigRon 
USB Sound not working with Debian 2.6.37
March 11, 2011 04:46AM
Hi there
I have installed debian onto the dockstar (USB Stick) and installed also the 2.6.37 Kernel from here:
http://www.hs-augsburg.de/~ingmar_k/emdebian/

The system is working flawelessly but the sound is making me crazy.

I wanted to get my USB Soundstick "Terratec Aureon Dual USB" working but I have some major issues.

Ive installed following packages:
alsa-base, alsa-oss, alsa-utils, mplayer (zum testen)

lsusb gives me this:
root@debian:~# lsusb
Bus 001 Device 004: ID 0ccd:0077 TerraTec Electronic GmbH Aureon Dual USB
Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg is giving me following:
root@debian:~# dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Linux version 2.6.37-dockstar (root@lenny.domain.loc) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 Tue Feb 8 18:29:47 CET 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c05b4528, node_mem_map c0629000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 121168k/121168k available, 9904k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc8800000 - 0xfe800000   ( 864 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc002d000   ( 148 kB)
[    0.000000]       .text : 0xc002d000 - 0xc058b000   (5496 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05c0dc0   ( 212 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474966] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714885] pid_max: default: 32768 minimum: 301
[   21.714960] Security Framework initialized
[   21.714979] SELinux:  Disabled at boot.
[   21.715018] Mount-cache hash table entries: 512
[   21.715283] Initializing cgroup subsys ns
[   21.715296] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
[   21.715310] Initializing cgroup subsys cpuacct
[   21.715323] Initializing cgroup subsys freezer
[   21.715332] Initializing cgroup subsys net_cls
[   21.715386] CPU: Testing write buffer coherency: ok
[   21.716057] devtmpfs: initialized
[   21.717378] NET: Registered protocol family 16
[   21.717684] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.717699] Feroceon L2: Cache support initialised, in WT override mode.
[   21.718286] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[   21.718310]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[   21.720831] bio: create slab <bio-0> at 0
[   21.721193] vgaarb: loaded
[   21.721462] SCSI subsystem initialized
[   21.721620] libata version 3.00 loaded.
[   21.722320] Switching to clocksource orion_clocksource
[   21.743450] NET: Registered protocol family 2
[   21.743654] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.744344] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.744445] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.744505] TCP: Hash tables configured (established 4096 bind 4096)
[   21.744515] TCP reno registered
[   21.744525] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   21.744548] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   21.744762] NET: Registered protocol family 1
[   21.744797] PCI: CLS 0 bytes, default 32
[   21.744953] Unpacking initramfs...
[   21.935280] Freeing initrd memory: 2432K
[   21.935555] audit: initializing netlink socket (disabled)
[   21.935592] type=2000 audit(0.450:1): initialized
[   21.943465] VFS: Disk quotas dquot_6.5.2
[   21.943741] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.946196] NTFS driver 2.1.29 [Flags: R/W DEBUG].
[   21.946630] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[   21.947301] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[   21.949286] SGI XFS Quota Management subsystem
[   21.949323] msgmni has been set to 241
[   21.951118] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[   21.951133] io scheduler noop registered
[   21.951142] io scheduler deadline registered (default)
[   21.951242] io scheduler cfq registered
[   21.951329] pci-stub: invalid id string ""
[   21.951925] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.972605] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.370915] console [ttyS0] enabled
[   22.375753] ONFI flash detected
[   22.379005] ONFI param page 0 valid
[   22.382534] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
[   22.391112] Scanning device for bad blocks
[   22.460153] Bad eraseblock 874 at 0x000006d40000
[   22.489034] Bad eraseblock 1201 at 0x000009620000
[   22.519852] Bad eraseblock 1553 at 0x00000c220000
[   22.549269] Bad eraseblock 1886 at 0x00000ebc0000
[   22.565965] 4 cmdlinepart partitions found on MTD device orion_nand
[   22.572261] Creating 4 MTD partitions on "orion_nand":
[   22.577440] 0x000000000000-0x000000100000 : "u-boot"
[   22.583340] 0x000000100000-0x000000500000 : "uImage"
[   22.589207] 0x000000500000-0x000002500000 : "rootfs"
[   22.595005] 0x000002500000-0x000010000000 : "data"
[   22.601281] mice: PS/2 mouse device common for all mice
[   23.612375] rtc-mv rtc-mv: internal RTC not ticking
[   23.617430] cpuidle: using governor ladder
[   23.621664] cpuidle: using governor menu
[   23.625643] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   23.632047] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   23.672403] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   23.712397] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   23.752395] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   23.792395] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   23.798207] Registered led device: dockstar:green:health
[   23.798317] Registered led device: dockstar:orange:misc
[   23.799024] zram: num_devices not specified. Using default: 1
[   23.804818] zram: Creating 1 devices ...
[   23.810306] TCP cubic registered
[   23.813576] NET: Registered protocol family 17
[   23.818055] lib80211: common routines for IEEE802.11 drivers
[   23.823751] lib80211_crypt: registered algorithm 'NULL'
[   23.823762] Registering the dns_resolver key type
[   23.828542] VFP support v0.3: not present
[   23.832590] Gating clock of unused units
[   23.832599] before: 0x00dfc3fd
[   23.832607]  after: 0x00c701c9
[   23.833074] registered taskstats version 1
[   23.837951] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   23.844453] Freeing init memory: 148K
[   23.892722] udev[68]: starting version 164
[   24.075553] usbcore: registered new interface driver usbfs
[   24.081162] usbcore: registered new interface driver hub
[   24.180230] MV-643xx 10/100/1000 ethernet driver version 1.4
[   24.186073] mv643xx_eth smi: probed
[   24.245958] usbcore: registered new device driver usb
[   24.268238] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   24.282174] net eth0: port 0 with MAC address 00:10:75:1a:xx:xx
[   24.289647] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   24.294979] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   24.332401] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   24.352396] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   24.358403] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   24.365247] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   24.372516] usb usb1: Product: Marvell Orion EHCI
[   24.377249] usb usb1: Manufacturer: Linux 2.6.37-dockstar ehci_hcd
[   24.383470] usb usb1: SerialNumber: orion-ehci.0
[   24.388636] hub 1-0:1.0: USB hub found
[   24.392440] hub 1-0:1.0: 1 port detected
[   24.712376] usb 1-1: new high speed USB device using orion-ehci and address 2
[   24.863798] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   24.870533] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   24.877713] usb 1-1: Product: USB2.0 Hub
[   24.883431] hub 1-1:1.0: USB hub found
[   24.887578] hub 1-1:1.0: 4 ports detected
[   25.172698] usb 1-1.2: new high speed USB device using orion-ehci and address 3
[   25.360298] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
[   25.367222] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   25.374596] usb 1-1.2: Product: Mass Storage
[   25.378880] usb 1-1.2: Manufacturer: Generic
[   25.383182] usb 1-1.2: SerialNumber: 061C987C
[   25.406977] usb 1-1.2: selecting invalid altsetting 1
[   25.412123] usbcore: registered new interface driver uas
[   25.445965] Initializing USB Mass Storage driver...
[   25.451990] scsi0 : usb-storage 1-1.2:1.0
[   25.456877] usbcore: registered new interface driver usb-storage
[   25.462939] USB Mass Storage support registered.
[   25.502701] usb 1-1.4: new full speed USB device using orion-ehci and address 4
[   25.719296] usb 1-1.4: New USB device found, idVendor=0ccd, idProduct=0077
[   25.726224] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   25.733593] usb 1-1.4: Product: USB PnP Sound Device
[   25.739453] usb 1-1.4: Manufacturer: C-Media Electronics Inc.
[   25.801299] input: C-Media Electronics Inc.       USB PnP Sound Device           as /devices/platform/orion-ehci.0/usb1/1-1/1-1.4/1-1.4:1.3/input/input0
[   25.815456] generic-usb 0003:0CCD:0077.0001: input,hidraw0: USB HID v1.00 Device [C-Media Electronics Inc.       USB PnP Sound Device          ] on usb-orion-ehci.0-1.4/input3
[   25.831424] usbcore: registered new interface driver usbhid
[   25.837035] usbhid: USB HID core driver
[   26.464600] scsi 0:0:0:0: Direct-Access                               8.07 PQ: 0 ANSI: 2
[   26.477340] sd 0:0:0:0: [sda] 3788800 512-byte logical blocks: (1.93 GB/1.80 GiB)
[   26.492922] sd 0:0:0:0: [sda] Write Protect is off
[   26.497747] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   26.497758] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   26.508198] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   26.578324]  sda: sda1 sda2
[   26.585467] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   26.591600] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   35.147357] udev[176]: starting version 164
[   36.027491] Adding 524284k swap on /dev/sda2.  Priority:-1 extents:1 across:524284k
[   37.186165] NET: Registered protocol family 10
[   37.192122] lo: Disabled Privacy Extensions
[   37.197816] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   37.661818] sshd (521): /proc/521/oom_adj is deprecated, please use /proc/521/oom_score_adj instead.
[   61.438036] eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   61.444872] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   71.832348] eth0: no IPv6 routers present

When I try to start alsamixer its giving me this error (alsamixer is located at /usr/bin):
root@debian:/home# alsamixer
cannot open mixer: No such device or address

Reloading alsa shows this:
root@debian:~# alsa reload
Unloading ALSA sound driver modules: (none loaded).
Loading ALSA sound driver modules: (none to reload).


aplay -l shows this error:
root@debian:/home# aplay -l
aplay: device_list:235: no soundcards found...

When I try to play a mp3 file with mplayer following messages are shown:

root@debian:/home# mplayer 03\ Alicia\ Keys\ -\ Heartburn.mp3
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 03 Alicia Keys - Heartburn.mp3.
Audio only file format detected.
Clip info:
 Title: Heartburn
 Artist: Alicia Keys
 Album: Unplugged
 Year: 2005
 Comment:
 Track: 3
 Genre: Unknown
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa'
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl:aalib'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
root@debian:/home#



I dont know where the issue is located. I reinstalled alsa two times in hope it could resolve this issue but to no avail

Someone an Idea?


Greetings from Germany!

Ron
Re: USB Sound not working with Debian 2.6.37
March 14, 2011 12:51PM
Hi,
You need to do as Peter said
Quote
petergunn
To make everything work after reboot you need to edit /etc/modprobe.d/alsa-base.conf

Old:
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
New:
# Allow snd-usb-audio to be loaded as first soundcard
options snd-usb-audio index=0
Which is he wrote here
http://forum.doozan.com/read.php?2,2840,2841#msg-2841
Re: USB Sound not working with Debian 2.6.37
March 15, 2011 07:21AM
bandan Wrote:
-------------------------------------------------------
> Hi,
> You need to do as Peter said
>
> To make everything work after reboot you need to
> edit /etc/modprobe.d/alsa-base.conf
>
> Old:
> # Keep snd-usb-audio from beeing loaded as first
> soundcard
> options snd-usb-audio index=-2
> New:
> # Allow snd-usb-audio to be loaded as first
> soundcard
> options snd-usb-audio index=0
>
> Which is he wrote here
> http://forum.doozan.com/read.php?2,2840,2841#msg-2
> 841


I'm not sure if I even compiled the kernel with support for audio. Why do you think it's that small and called emdebian? So, if you want to get it to work, first check my kernel config and see if the kernel even supports what you want to do. ;)
Could be as easy as that, or maybe it's something completely different. Just wanted to make that clear. It's a really stripped down kernel with only the most necessary included.

Edit: If you want a kernel with (nearly) everything included, then have a look at gorgone's kernels. Mine is something completely different, as I pointed out.



Edited 1 time(s). Last edit at 03/15/2011 07:26AM by ingmar_k.
Re: USB Sound not working with Debian 2.6.37
March 15, 2011 03:13PM
@ ingmar :

I didnt realize that your kernel is stripped down to the nessecary needs and therefore lacking support of USB Soundcards.

Although I like minimal Setups and therefore your build Kernel I used the Kernel from gorgone and got the Sound working flawelessly.

I indeed had some issues like the one mentioned from bandan and got this issue resolved by assinging the USB Card to "card0" instead of "card1".



Thank you all very much for helping me. I now have my 2nd dockstar set up as a mpd-Server . Also my WiFi-N 300 USB Stick from NetGear is working flawelessly. But the dockstar has some constant load from 20% and above when the wlan0 interface is "ifup-ed" ! But that a different story.

Thank you!

Greetings from Tschöhrmani!

:)
Re: USB Sound not working with Debian 2.6.37
March 15, 2011 03:56PM
Glad you got it sorted out. :)
As I already said, and as you realized now, if you need an "allrounder" kernel, then the one from gorgone is most likely the way to go. If you need a kernel that is as small as possible, but still contains the necessary parts for a "normal" server install in NAND, then mine could be the better way.

The best yet, is to start compiling your own kernel for your own needs. Anyway, have fun.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: