[media] media: ti-vpe: Make scaler library into its own module
authorBenoit Parrot <bparrot@ti.com>
Fri, 18 Nov 2016 23:20:39 +0000 (21:20 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 10:09:10 +0000 (08:09 -0200)
commit1c6e81783cff1a54e05b08691f5ae034af82ba0a
tree0b5d9fb50c5e370c0757a9535c230d2d89adc240
parentb8b3ac44ddf156d0719eee1b0fb23a10a86c8163
[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>
drivers/media/platform/Kconfig
drivers/media/platform/ti-vpe/Makefile
drivers/media/platform/ti-vpe/sc.c
drivers/media/platform/ti-vpe/sc.h
drivers/media/platform/ti-vpe/vpe.c