﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
996	KDE / ALSA interaction problems	bdubbs@…	blfs-book@…	"From Denis Trofimenko:

It seems like this patch should fix the problem. 
http://bugs.kde.org/show_bug.cgi?id=69320
Don't know if it was backported to KDE_3_3_BRANCH, but at least in kde-3.3.0 
sources I have, I don't have this. I can try this patch at our evening and if 
it will fix the problem, then I think it should be added to the BOOK, because 
this fix will be only available in CVS or kde-3.3.1
I will try it and will write to this list tomorrow.

diff -u -r1.76 mixer.cpp
--- mixer.cpp   19 Jun 2004 22:01:08 -0000      1.76
+++ mixer.cpp   23 Aug 2004 17:26:24 -0000
@@ -144,6 +144,13 @@
 void Mixer::volumeLoad( KConfig *config )
 {
    QString grp = QString(""Mixer"") + mixerName();
+   if ( ! config->hasGroup(grp) ) {
+      // no such group. Volumes (of this mixer) were never saved beforehand.
+      // Thus don't restore anything (also see Bug #69320 for understanding 
the real reason)
+      return; // make sure to bail out immediately
+   }
+
+   // else restore the volumes
    m_mixDevices.read( config, grp );

    // set new settings"	defect	closed	high		BOOK	SVN	medium	fixed		
