diff options
author | Oliver Endriss <devnull@localhost> | 2004-07-18 23:24:59 +0000 |
---|---|---|
committer | Oliver Endriss <devnull@localhost> | 2004-07-18 23:24:59 +0000 |
commit | c103d051629c32e975aad5fca2d5e07ab44236cb (patch) | |
tree | dd375d771b5b95ab7a3b6631d6725d4884d27a18 /linux/drivers/media/dvb/ttpci/av7110_hw.c | |
parent | 383ee77ced096319aff72cee72d47e448f76411c (diff) | |
download | mediapointer-dvb-s2-c103d051629c32e975aad5fca2d5e07ab44236cb.tar.gz mediapointer-dvb-s2-c103d051629c32e975aad5fca2d5e07ab44236cb.tar.bz2 |
New ioctl OSD_GET_CAPABILITY/OSD_CAP_MEMSIZE - returns size of OSD memory.
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_hw.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_hw.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 */ |