alsactl init - fixed enumeration string setting, update Lenovo T61 config (dB)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2008-08-14 17:51:46 +02:00
parent e5b4241976
commit 460ff35c39
2 changed files with 3 additions and 3 deletions

View file

@ -25,10 +25,10 @@ LABEL="Lenovo T61"
# playback
CTL{reset}="mixer"
CTL{name}="Headphone Playback Switch", CTL{value}="on,on"
CTL{name}="PCM Playback Volume", CTL{value}="30,30"
CTL{name}="PCM Playback Volume", CTL{value}="-13.5dB,-13.5dB"
# capture
CTL{name}="Input Source", CTL{value}="Internal Mic"
CTL{name}="Internal Mic Boost", CTL{value}="1"
CTL{name}="Capture Volume", CTL{value}="45,45"
CTL{name}="Capture Volume", CTL{value}="9dB,9dB"
CTL{name}="Capture Switch", CTL{value}="on,on"
RESULT="true", EXIT="return"

View file

@ -423,7 +423,7 @@ static int set_ctl_value(struct space *space, const char *value)
remove_trailing_chars((char *)value, ' ');
items = snd_ctl_elem_info_get_items(space->ctl_info);
for (idx2 = 0; idx2 < items; idx2++) {
snd_ctl_elem_info_set_item(space->ctl_info, idx);
snd_ctl_elem_info_set_item(space->ctl_info, idx2);
elem = snd_hctl_find_elem(space->ctl_handle, space->ctl_id);
if (elem == NULL)
return -ENOENT;