mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-04-03 07:15:33 -04:00
Completed control and mixer API
This commit is contained in:
parent
c4f5780e6e
commit
f7fbb6ce1a
6 changed files with 50 additions and 50 deletions
|
|
@ -19,9 +19,9 @@
|
|||
|
||||
#include "envy24control.h"
|
||||
|
||||
static void control_value(snd_ctl_t *handle, void *private_data, snd_ctl_element_id_t *id)
|
||||
static void control_value(snd_ctl_t *handle, void *private_data, snd_ctl_elem_id_t *id)
|
||||
{
|
||||
if (id->iface == SND_CTL_ELEMENT_IFACE_PCM) {
|
||||
if (id->iface == SND_CTL_ELEM_IFACE_PCM) {
|
||||
if (!strcmp(id->name, "Multi Track Route")) {
|
||||
patchbay_update();
|
||||
return;
|
||||
|
|
@ -47,7 +47,7 @@ static void control_value(snd_ctl_t *handle, void *private_data, snd_ctl_element
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (id->iface == SND_CTL_ELEMENT_IFACE_MIXER) {
|
||||
if (id->iface == SND_CTL_ELEM_IFACE_MIXER) {
|
||||
if (!strcmp(id->name, "Multi Playback Volume")) {
|
||||
mixer_update_stream(id->index + 1, 1, 0);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue