From bf6af9920fe446ec2233e02b84e3b4fb64d086dd Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 7 Oct 2003 22:29:37 +0000 Subject: [PATCH] vidix equalizer support by Jake Page git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11037 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_fbdev.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index be694b91fd..79e8fccbce 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -1150,5 +1150,35 @@ static uint32_t control(uint32_t request, void *data, ...) 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; }