summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index f417b79..75a707b 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -32,4 +32,10 @@
#include <qcombobox.h>
+#include <sys/utsname.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <sys/stat.h>
SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
@@ -61,5 +67,15 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
sampleRate->setCurrentItem(4);
- stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0));
+ stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only
+ struct utsname name; /* check for embedix kernel running on the zaurus*/
+ if (uname(&name) != -1) {
+ QString release=name.release;
+
+ if( release.find("embedix",0,TRUE) !=-1)
+ stereoCheckBox->hide();
+// else
+// stereoCheckBox->hide();
+
+
sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1));