# HG changeset patch # User alex # Date 1070809700 0 # Node ID 0d24c99199e2f576becb3f37c1732f91ed104d6b # Parent 95dd5eb117f06cb3b6841a69a4c56654b6634404 Some more vidix crap - vidix equalizer passthrough. Patch by Oleg I. Vdovikin diff -r 95dd5eb117f0 -r 0d24c99199e2 libvo/vo_svga.c --- a/libvo/vo_svga.c Sun Dec 07 14:54:39 2003 +0000 +++ b/libvo/vo_svga.c Sun Dec 07 15:08:20 2003 +0000 @@ -361,6 +361,37 @@ case VOCTRL_GET_IMAGE: return get_image(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); + } + } + return vidix_control(request, data); + } +#endif + return VO_NOTIMPL; } diff -r 95dd5eb117f0 -r 0d24c99199e2 libvo/vo_vesa.c --- a/libvo/vo_vesa.c Sun Dec 07 14:54:39 2003 +0000 +++ b/libvo/vo_vesa.c Sun Dec 07 15:08:20 2003 +0000 @@ -1065,5 +1065,36 @@ 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); + } + } + return vidix_control(request, data); + } +#endif + return VO_NOTIMPL; }