summaryrefslogtreecommitdiffstats
path: root/sys/sunaudio/gstsunaudiomixeroptions.c
diff options
context:
space:
mode:
authorJan Schmidt <jan.schmidt@sun.com>2009-06-05 16:54:48 +0100
committerJan Schmidt <jan.schmidt@sun.com>2009-06-05 16:54:48 +0100
commit7994f640063e583caf91346821566158d3904286 (patch)
tree44db28f5cd2c88a3d058465f6936251c64eef692 /sys/sunaudio/gstsunaudiomixeroptions.c
parent0fc43060e5e10e5a9fc24487d9fcb3e2865c0895 (diff)
sunaudio: Fix switch setting on some devices. Add debug. Fix a FIXME.
Fix the setting of toggle switches on some broken audio drivers which report that no audio ports are settable by ignoring the mod_port field there. Add some debug statements. Fix a FIXME now that Good relies on a new enough gst-plugins-base.
Diffstat (limited to 'sys/sunaudio/gstsunaudiomixeroptions.c')
-rw-r--r--sys/sunaudio/gstsunaudiomixeroptions.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sunaudio/gstsunaudiomixeroptions.c b/sys/sunaudio/gstsunaudiomixeroptions.c
index 0c0d95dc..1fa025b9 100644
--- a/sys/sunaudio/gstsunaudiomixeroptions.c
+++ b/sys/sunaudio/gstsunaudiomixeroptions.c
@@ -40,6 +40,9 @@
#include "gstsunaudiomixeroptions.h"
#include "gstsunaudiomixertrack.h"
+GST_DEBUG_CATEGORY_EXTERN (sunaudio_debug);
+#define GST_CAT_DEFAULT sunaudio_debug
+
static void gst_sunaudiomixer_options_init (GstSunAudioMixerOptions * sun_opts);
static void gst_sunaudiomixer_options_class_init (gpointer g_class,
gpointer class_data);
@@ -110,6 +113,9 @@ gst_sunaudiomixer_options_new (GstSunAudioMixerCtrl * mixer, gint track_num)
sun_opts = GST_SUNAUDIO_MIXER_OPTIONS (opts);
track = GST_MIXER_TRACK (opts);
+ GST_DEBUG_OBJECT (opts, "New mixer options, track %d: %s",
+ track_num, GST_STR_NULL (label));
+
/* save off names for the record sources */
sun_opts->names[0] = g_quark_from_string (_("Microphone"));
sun_opts->names[1] = g_quark_from_string (_("Line In"));
@@ -142,6 +148,8 @@ gst_sunaudiomixer_options_new (GstSunAudioMixerCtrl * mixer, gint track_num)
if ((1 << i) & audioinfo.record.avail_ports) {
const char *s = g_quark_to_string (sun_opts->names[i]);
opts->values = g_list_append (opts->values, g_strdup (s));
+ GST_DEBUG_OBJECT (opts, "option for track %d: %s",
+ track_num, GST_STR_NULL (s));
}
}