mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
Fixed range problems
This commit is contained in:
parent
0545cf711d
commit
f3da5548b3
1 changed files with 4 additions and 0 deletions
|
|
@ -1388,10 +1388,12 @@ void snd_mixer_selem_set_playback_volume_range(snd_mixer_elem_t *elem,
|
|||
selem_t *s;
|
||||
assert(elem);
|
||||
assert(elem->type == SND_MIXER_ELEM_SIMPLE);
|
||||
assert(min < max);
|
||||
s = elem->private_data;
|
||||
s->str[PLAY].range = 1;
|
||||
s->str[PLAY].min = min;
|
||||
s->str[PLAY].max = max;
|
||||
selem_read(elem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1648,10 +1650,12 @@ void snd_mixer_selem_set_capture_volume_range(snd_mixer_elem_t *elem,
|
|||
selem_t *s;
|
||||
assert(elem);
|
||||
assert(elem->type == SND_MIXER_ELEM_SIMPLE);
|
||||
assert(min < max);
|
||||
s = elem->private_data;
|
||||
s->str[CAPT].range = 1;
|
||||
s->str[CAPT].min = min;
|
||||
s->str[CAPT].max = max;
|
||||
selem_read(elem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue