You are not logged in.

#1 2025-02-12 11:13:03

barath36
Member
Registered: 2025-02-12
Posts: 1

plug plugin problem in ALSA

I am trying to include equalizer and softvol for my audio output device. This is my asound.conf

pcm.defaultmaster {
    type plug
    slave.pcm "hw:0,1" 
    slave.channels 2
}

pcm.softvol2 {
    type softvol
    slave.pcm "defaultmaster" 
    control {
        name "Master"
        card 0
    }
    resolution 100
}

pcm.softvolequaldefault {
    type plug
    slave.pcm {
        type equal
        slave.pcm "plug:softvol2" 
        controls "/data/equalizer/.alsaequal.bin"
    }
}


This is not working since I am having three plug plugins . If I remove the plug in the defualtmaster it works. Is there any limit on using plug plugin in asound.conf pcms?

Offline

#2 2025-02-12 12:34:12

harriboman
Member
Registered: 2025-01-17
Posts: 2
Website

Re: plug plugin problem in ALSA

Avoid unnecessary plug layers
Since softvol and equal already include plug, try removing plug from defaultmaster:

pcm.defaultmaster {
    type hw
    card 0
    device 1
}

Use plughw instead of plug for defaultmaster
Instead of plug, try:

pcm.defaultmaster {
    type plughw
    card 0
    device 1
}


If the issue is due to format incompatibility, explicitly define the format in slave.pcm

pcm.defaultmaster {
    type plug
    slave {
        pcm "hw:0,1"
        format S16_LE
        rate 44100
    }
}

Last edited by harriboman (2025-02-12 12:36:52)


Best regards Cyril

Offline

Board footer

Powered by FluxBB