summaryrefslogtreecommitdiff
path: root/drivers/media/platform/ti-vpe/sc.h
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2016-11-18 21:20:39 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-22 08:09:10 -0200
commit1c6e81783cff1a54e05b08691f5ae034af82ba0a (patch)
tree0b5d9fb50c5e370c0757a9535c230d2d89adc240 /drivers/media/platform/ti-vpe/sc.h
parentb8b3ac44ddf156d0719eee1b0fb23a10a86c8163 (diff)
[media] media: ti-vpe: Make scaler library into its own module
In preparation to add scaler support into VIP we need to turn sc.c into its own kernel module. Add support for multiple SC memory block as VIP contains 2 scaler instances. This is done by passing the resource name to sc_create() and modify the vpe invocation accordingly. Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/ti-vpe/sc.h')
-rw-r--r--drivers/media/platform/ti-vpe/sc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/sc.h b/drivers/media/platform/ti-vpe/sc.h
index de947db98990..d0aab5ef0eca 100644
--- a/drivers/media/platform/ti-vpe/sc.h
+++ b/drivers/media/platform/ti-vpe/sc.h
@@ -200,6 +200,6 @@ void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h,
void sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8,
u32 *sc_reg17, unsigned int src_w, unsigned int src_h,
unsigned int dst_w, unsigned int dst_h);
-struct sc_data *sc_create(struct platform_device *pdev);
+struct sc_data *sc_create(struct platform_device *pdev, const char *res_name);
#endif