make sure 'Wave' playback channel isn't muted. Fixes sound on emu10k1.
This commit is contained in:
parent
f4893ae98c
commit
5fcadeb4fb
@ -1,7 +1,7 @@
|
||||
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
||||
Name: alsa-utils
|
||||
Version: 1.0.9rc2
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPL
|
||||
Group: Applications/Multimedia
|
||||
URL: http://www.alsa-project.org/
|
||||
@ -57,6 +57,9 @@ install -m 755 salsa $RPM_BUILD_ROOT/etc/dev.d/sound/alsa.dev
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 16 2005 Bill Nottingham <notting@redhat.com> 1.0.9rc2-2
|
||||
- make sure 'Wave' playback channel isn't muted (#157850)
|
||||
|
||||
* Mon Apr 25 2005 Martin Stransky <stransky@redhat.com> 1.0.9rc2-1
|
||||
- New upstream version
|
||||
- add %find_lang macro (#155719)
|
||||
|
3
salsa.c
3
salsa.c
@ -133,7 +133,8 @@ int frob_mixer(int index)
|
||||
}
|
||||
if (snd_mixer_selem_has_playback_channel(elem, c)) {
|
||||
if (!snd_mixer_selem_has_capture_channel(elem, c) ||
|
||||
!strcmp(snd_mixer_selem_id_get_name(sid),"CD")) {
|
||||
!strcmp(snd_mixer_selem_id_get_name(sid),"CD") ||
|
||||
!strcmp(snd_mixer_selem_id_get_name(sid),"Wave")) {
|
||||
if (snd_mixer_selem_has_playback_switch(elem))
|
||||
snd_mixer_selem_set_playback_switch(elem, c, 1);
|
||||
if (snd_mixer_selem_has_playback_volume(elem))
|
||||
|
Loading…
Reference in New Issue
Block a user