You are not logged in.

#1 2011-03-10 10:05:15

Psyce
Member
Registered: 2008-05-06
Posts: 51

Alsamixer extra volume control

Hi @ all,

I got a problem with archlinux and the .asoundrc file. I want to create an extra volume control for MOC. This is my .asoundrc.

pcm.snd_card {
    type hw
    card 0 
    device 0
}

ctl.snd_card {
    type hw
    card 0
    device 0
}

# Das dmix-Plugin wird definiert.
pcm.dmixer {
    type dmix           # pcm.NAME: der Name jedes Gerätes kann angepasst werden
    ipc_key 1024
    ipc_perm 0666       # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen
    slave.pcm "snd_card"
    slave {
        channels 2
    }
}

ctl.dmixer {
    type hw
    card 0
}

# Das dsnoop-Plugin, welches es erlaubt, mehrere Programme gleichzeitig aufnehmen zu lassen.
pcm.dsnooper {
    type dsnoop
    ipc_key 2048
    ipc_perm 0666
    slave.pcm "snd_card"
    slave
    {
        channels 2
    }
}

# Dies definiert unser Fullduplex-Plugin als Standard für alle ALSA-Programme.
pcm.duplex {
    type asym
    playback.pcm "dmixer"    #natürlich muss dann auch das passende Gegenstück angepasst werden
    capture.pcm "dsnooper"
}

pcm.!default {
    type plug
    slave.pcm "duplex"  
}
# phonon
pcm.phonon {
    type plug
    slave.pcm "phonon_vol"
    hint {
        show on
        description "Alsa" # Anzeigename in den Phonon-Einstellungen
    }
}

# phonon-Lautstärkeregler

pcm.phonon_vol {
    type softvol
    slave.pcm "duplex"
    control {
        name "phonon_vol"
        card 0
    }
}

# ctrl for phonon_vol
ctl.phonon_vol {
    type hw
    card 0
}

I have a onboard snd_hda_intel and usb headset. The USB Headset is the default sound output device without using .asoundrc.
Then I set up this .asoundrc file to get the extra slider to control the volume but alsamixer doesn't show it. After some testing why it doesn't show it, I thought ok letz switch the onboard as default card.

So I changed it in the .asoundrc file. What I got was soundoutput on my snd_hda_intel card without the switch but the usb headset was stil alsamixer -c0. When I used LMDE for a few days there it switched and showed everything extra control and hda_intel was alsamixer -c0. What I am doing wrong.

Greetz
Psyce

Offline

#2 2011-03-12 11:06:40

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Alsamixer extra volume control

this is not a solution, but can you simplify your life. try pulseaudio is mature, DE-indipendent and updated with latest audio technologies (your usb headset)

this is only a suggestion

Last edited by nTia89 (2011-03-12 11:07:02)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-03-12 17:20:07

Psyce
Member
Registered: 2008-05-06
Posts: 51

Re: Alsamixer extra volume control

Can u add virtual volume controls to pulseaudio? Cause thats the issue i have atm.

Offline

#4 2011-03-12 17:38:06

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Alsamixer extra volume control

i don't know about virtual devices, but pulseaudio goes over alsa, so pulseaudio add feature, and you continue also to use alsa features.....


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2011-03-13 23:24:23

pigiron
Member
From: USA
Registered: 2009-07-14
Posts: 150

Re: Alsamixer extra volume control

I'm not sure this is related to your problem, but I have a system with a PCI soundcard along with a sound chip on the motherboard. Which sound device that would show up as Card 0 and Card 1, would change on almost every boot, until I modified some /etc/modprobe.d/ files.

Described here:

http://alsa.opensrc.org/MultipleCards
http://alsa.opensrc.org/MultipleUSBAudioDevices

Offline

#6 2011-03-14 21:42:09

heptapod
Member
Registered: 2010-06-24
Posts: 35

Re: Alsamixer extra volume control

Psyce wrote:

Can u add virtual volume controls to pulseaudio? Cause thats the issue i have atm.

If you install pavucontrol you get a mixer with a volume control for every program that uses pulseaudio.

Offline

Board footer

Powered by FluxBB