Hello,
edit: Forgot to mention im on Debian Wheezy
I'm trying to get ALSA setup on my computer with dmix.
My problem is that I can only have one sound source, for example if I listen to music I can't hear the sound of a YouTube video at the same time, so they first application to use the USB headset as output locks it.
I have tried soooo many ways without success and has been sitting with this for more than a day straight if you add up the hours.
What I want to achieve is being able to use multiple applications sound at the same time.
Here is some debug stuff that might help.
Code:
anon@anon:~$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation Lynx Point High Definition Audio Controller (rev 05)
01:00.1 Audio device: NVIDIA Corporation Device 0e1a (rev a1)
02:00.1 Audio device: NVIDIA Corporation Device 0e1a (rev a1)
Code:
anon@anon:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 174c:2074 ASMedia Technology Inc.
Bus 001 Device 003: ID 046d:c223 Logitech, Inc. G11/G15 Keyboard / USB Hub
Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc.
Bus 003 Device 002: ID 8087:8008 Intel Corp.
Bus 004 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 004: ID 046d:0a15 Logitech, Inc.
Bus 001 Device 005: ID 046d:c066 Logitech, Inc. <--- this is my headset
Bus 001 Device 006: ID 046d:c226 Logitech, Inc. G15 Refresh Keyboard
Bus 001 Device 007: ID 046d:c227 Logitech, Inc. G15 Refresh Keyboard
I have successfully made my headset the default device.
Code:
anon@anon:~$ cat /proc/asound/cards
0 [Headset ]: USB-Audio - Logitech G35 Headset
Logitech Logitech G35 Headset at usb-0000:00:14.0-3.1, full speed
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf5130000 irq 47
2 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf7080000 irq 17
3 [NVidia_1 ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf5080000 irq 18
/etc/modprobe.d/alsa-base.conf
Code:
anon@anon:~$ cat /etc/modprobe.d/alsa-base.conf
#alias snd-card-0 snd-usb-audio
#alias snd-card-1 snd-hda-intel
#options snd-hda-intel index=-2
#options snd-usb-audio index=0
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
#options snd-usb-audio index=-2
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
#alias snd-card-0 snd-usb-audio
#alias snd-card-1 snd-hda-intel
#options snd-usb-audio index=0
#options snd-usb-audio index=0 vid=0x046d pid=0xc066
options snd-usb-audio index=-1
I know that the configuration is wrong in the asoundrc file, but this is the only
way I have made the sound working, every attempt at a dmix configuration has failed. I'm pretty sure that this is the configuration that makes it hog the usb sound output to one application that first accuires the resource.
~/.asoundrc
Code:
anon@anon:~$ cat .asoundrc
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/anon/.asoundrc.asoundconf>
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
pcm.dsp {
type plug
slave.pcm "dmix"
}
Im really grateful for any help that I can get about this.
Im pretty much getting down on my knees for any help from all of the experts here.
Thanks!