From c103d051629c32e975aad5fca2d5e07ab44236cb Mon Sep 17 00:00:00 2001 From: Oliver Endriss Date: Sun, 18 Jul 2004 23:24:59 +0000 Subject: New ioctl OSD_GET_CAPABILITY/OSD_CAP_MEMSIZE - returns size of OSD memory. --- linux/drivers/media/dvb/ttpci/av7110_hw.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'linux/drivers/media/dvb/ttpci/av7110_hw.c') diff --git a/linux/drivers/media/dvb/ttpci/av7110_hw.c b/linux/drivers/media/dvb/ttpci/av7110_hw.c index a1093ae04..ff7b0b99a 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_hw.c +++ b/linux/drivers/media/dvb/ttpci/av7110_hw.c @@ -1034,4 +1034,18 @@ int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc) return -EINVAL; } } + +int av7110_osd_capability(struct av7110 *av7110, osd_cap_t *cap) +{ + switch (cap->cmd) { + case OSD_CAP_MEMSIZE: + if (FW_4M_SDRAM(av7110->arm_app)) + cap->val = 1000000; + else + cap->val = 92000; + return 0; + default: + return -EINVAL; + } +} #endif /* CONFIG_DVB_AV7110_OSD */ -- cgit v1.2.3