mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
envy24control: Changing the Multi Track Peak control from MIXER to PCM type
* The "Multi Track Peak" control is now of PCM type, to avoid confusing users in other alsa mixers. Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a940b9ea67
commit
4c11a92555
1 changed files with 7 additions and 1 deletions
|
|
@ -261,9 +261,15 @@ void level_meters_reset_peaks(GtkButton *button, gpointer data)
|
||||||
|
|
||||||
void level_meters_init(void)
|
void level_meters_init(void)
|
||||||
{
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
snd_ctl_elem_value_malloc(&peaks);
|
snd_ctl_elem_value_malloc(&peaks);
|
||||||
snd_ctl_elem_value_set_interface(peaks, SND_CTL_ELEM_IFACE_MIXER);
|
snd_ctl_elem_value_set_interface(peaks, SND_CTL_ELEM_IFACE_PCM);
|
||||||
snd_ctl_elem_value_set_name(peaks, "Multi Track Peak");
|
snd_ctl_elem_value_set_name(peaks, "Multi Track Peak");
|
||||||
|
if ((err = snd_ctl_elem_read(ctl, peaks)) < 0)
|
||||||
|
/* older ALSA driver, using MIXER type */
|
||||||
|
snd_ctl_elem_value_set_interface(peaks,
|
||||||
|
SND_CTL_ELEM_IFACE_MIXER);
|
||||||
}
|
}
|
||||||
|
|
||||||
void level_meters_postinit(void)
|
void level_meters_postinit(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue