You are not logged in.

#1 2013-04-10 17:27:20

ooo
Member
Registered: 2013-04-10
Posts: 1,638

[SOLVED] alsa softvol with jack plug (need some help with .asoundrc)

Hi,

I need a bit of help with alsa configuration

I have set up jack and alsa working together with alsa's jack plugin, and its working perfectly.

Now I'd like to be able to control the volume of alsa applications without effecting the volume of jack applications (I want all volume controls set to 0db for audio applications).

so I created a software volume control device in my .asoundrc and added the jack plugin device as its slave, but it doesn't seem to work and I'm getting an error like this:

alsa-lib: pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable

Do I need to install something to enable the software volume control (alsa-plugins is installed) or is it just not possible to use softvol with jack slave?

I've never really messed about with .asoundrc before, so most likely I'm just missing something there..

Any ideas will be appreciated :)

# ~/.asoundrc

pcm.!default {
    type plug
    slave.pcm "softvol"
#    slave.pcm "jack"
}

ctl.mixer0 {
    type hw
    card 1
}

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

pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

Last edited by ooo (2013-04-10 23:13:11)

Offline

#2 2013-04-10 23:12:46

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] alsa softvol with jack plug (need some help with .asoundrc)

ok, I figured it out..

Here's the .asoundrc if anyone is interested.

# ~/.asoundrc

pcm.!default {
    type plug
    slave.pcm "softvol"
}

ctl.mixer0 {
    type hw
    card 1
}

pcm.softvol {
    type            softvol
    slave.pcm       "jackplug"
    control {
        name        "Master2"
        card        0
    }
}

pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

pcm.jackplug {
   type plug
   slave.pcm "jack"
}

use Master2 to control volume for alsa applications without effecting jack output volume.

Offline

Board footer

Powered by FluxBB