Re: Create disfunctional volume control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Muffinman wrote:
> I want to create a disfunctional volume control. I'm running MPD for
> playing music which uses hw:0 for playing back sound. However, I want to
> route the volume control to a sortof 'null' device and have a
> selfwritten application listen for changes in the volume level,
> translate and send that data to my amplifier through a serial port
> without it affecting the actual audio data stream to my USB-dac.

> pcm.blackhole {
> type null # Null PCM
> }
>
> However MPD now says its an invallid CTL blackhole

Because pcm.xxx is a PCM device, not a control device.

There is no 'null' control plugin, but for the softvol plugin,
ALSA has the ability to add 'user' controls to kernel drivers.

Ask "alsactl --help" where it stores its mixer settings file, and
add the following entry:

        control.12345 {
                iface MIXER
                name 'Fake Playback Volume'
                value 100
                comment {
                        access 'read write user'
                        type INTEGER
                        count 1
                        range '0 - 100'
                }
        }

Then run "alsactl restore", check that it shows up in alsamixer,
and tell MPD to use that control.


Regards,
Clemens

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux