[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-xfce-devel] Bug#382274: xfce4-mixer-alsa does not recognize mixers



Package: xfce4-mixer-alsa
Version: 4.3.90.1

Hi!

Problem:
xfce4-mixer-alsa does not recognize the mixers of my soundcard, alsamixer works as expected.

Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller,
module: snd_hda_intel

Cause:
This seems to be the same problem as reported here:
http://bugzilla.xfce.org/show_bug.cgi?id=1489
(In short: xfce4-mixer doesn't know the names of the sliders, thus fails to detect a master)

Solution:
I added the name of my master slider ('Front'). The following patch solves the problem on my machine:

--- xfce4-mixer-4.3.90.1/lib/vc_alsa.c		2006-04-16 16:58:21.000000000 +0200
+++ xfce4-mixer-4.3.90.1-patched/vc_alsa.c	2006-08-09 22:57:53.000000000 +0200
@@ -71,10 +71,11 @@
 static void find_master(void)
 {
 	int		err;
-	snd_mixer_selem_id_t	*sid, *sid2, *sid3;
+	snd_mixer_selem_id_t	*sid, *sid2, *sid3, *sid4;
 	char buf[12] = "Master";
 	char buf2[12] = "PCM";
 	char buf3[13] = "Analog Front";
+	char buf4[12] = "Front";
 	
 	elem = NULL;
 
@@ -90,6 +91,10 @@
 	snd_mixer_selem_id_set_index(sid2, 0);
 	snd_mixer_selem_id_set_name(sid2, buf3);
 
+	snd_mixer_selem_id_alloca(&sid4);
+	snd_mixer_selem_id_set_index(sid2, 0);
+	snd_mixer_selem_id_set_name(sid2, buf4);
+
 	if (handle != NULL) {
 		snd_mixer_close(handle);
 		handle = NULL;
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




Reply to: