changeset 11036:8e55228b6102

vidix equalizer support by Jake Page <jake@CS.Stanford.EDU>
author alex
date Tue, 07 Oct 2003 22:29:37 +0000
parents 094e0838e5a7
children 77ed12a4f0b1
files libvo/vo_fbdev.c
diffstat 1 files changed, 30 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Tue Oct 07 19:02:14 2003 +0000
+++ b/libvo/vo_fbdev.c	Tue Oct 07 22:29:37 2003 +0000
@@ -1150,5 +1150,35 @@
   case VOCTRL_QUERY_FORMAT:
     return query_format(*((uint32_t*)data));
   }
+
+#ifdef CONFIG_VIDIX
+  if (vidix_name) {
+      switch (request) {
+      case VOCTRL_SET_EQUALIZER:
+	  {
+	      va_list ap;
+	      int value;
+	      
+	      va_start(ap, data);
+	      value = va_arg(ap, int);
+	      va_end(ap);
+	      
+	      return vidix_control(request, data, (int *)value);
+         }
+      case VOCTRL_GET_EQUALIZER:
+	  {
+	      va_list ap;
+	      int *value;
+	      
+	      va_start(ap, data);
+	      value = va_arg(ap, int*);
+	      va_end(ap);
+	      
+	      return vidix_control(request, data, value);
+	  }
+      }
+  }
+#endif
+
   return VO_NOTIMPL;
 }