aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-mfc/s5p_mfc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 18:42:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 18:42:54 -0400
commit1eb63378354ac37b7e27d256bbf84684751bac32 (patch)
tree0775591a2dced778d1ba0bd8a946831e424d02d7 /drivers/media/video/s5p-mfc/s5p_mfc.c
parent1a4ceab195e66bce9c1638fdded6d92988100ba4 (diff)
parentbac2dacd5fb9ddad093d7a2dc5ab44e764874821 (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (348 commits) [media] pctv452e: Remove bogus code [media] adv7175: Make use of media bus pixel codes [media] media: vb2: fix incorrect return value [media] em28xx: implement VIDIOC_ENUM_FRAMESIZES [media] cx23885: Stop the risc video fifo before reconfiguring it [media] cx23885: Avoid incorrect error handling and reporting [media] cx23885: Avoid stopping the risc engine during buffer timeout [media] cx23885: Removed a spurious function cx23885_set_scale() [media] cx23885: v4l2 api compliance, set the audioset field correctly [media] cx23885: hook the audio selection functions into the main driver [media] cx23885: add generic functions for dealing with audio input selection [media] cx23885: fixes related to maximum number of inputs and range checking [media] cx23885: Initial support for the MPX-885 mini-card [media] cx25840: Ensure AUDIO6 and AUDIO7 trigger line-in baseband use [media] cx23885: Enable audio line in support from the back panel [media] cx23885: Allow the audio mux config to be specified on a per input basis [media] cx25840: Enable support for non-tuner LR1/LR2 audio inputs [media] cx23885: Name an internal i2c part and declare a bitfield by name [media] cx23885: Ensure VBI buffers timeout quickly - bugfix for vbi hangs during streaming [media] cx23885: remove channel dump diagnostics when a vbi buffer times out ... Fix up trivial conflicts in drivers/misc/altera-stapl/altera.c (header file rename vs add)
Diffstat (limited to 'drivers/media/video/s5p-mfc/s5p_mfc.c')
-rw-r--r--drivers/media/video/s5p-mfc/s5p_mfc.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc.c b/drivers/media/video/s5p-mfc/s5p_mfc.c
index 7dc7eab58b3..8be8b54eb74 100644
--- a/drivers/media/video/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/video/s5p-mfc/s5p_mfc.c
@@ -202,7 +202,7 @@ static void s5p_mfc_handle_frame_copy_time(struct s5p_mfc_ctx *ctx)
202 appropraite flags */ 202 appropraite flags */
203 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); 203 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list);
204 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { 204 list_for_each_entry(dst_buf, &ctx->dst_queue, list) {
205 if (vb2_dma_contig_plane_paddr(dst_buf->b, 0) == dec_y_addr) { 205 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dec_y_addr) {
206 memcpy(&dst_buf->b->v4l2_buf.timecode, 206 memcpy(&dst_buf->b->v4l2_buf.timecode,
207 &src_buf->b->v4l2_buf.timecode, 207 &src_buf->b->v4l2_buf.timecode,
208 sizeof(struct v4l2_timecode)); 208 sizeof(struct v4l2_timecode));
@@ -248,7 +248,7 @@ static void s5p_mfc_handle_frame_new(struct s5p_mfc_ctx *ctx, unsigned int err)
248 * check which videobuf does it correspond to */ 248 * check which videobuf does it correspond to */
249 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { 249 list_for_each_entry(dst_buf, &ctx->dst_queue, list) {
250 /* Check if this is the buffer we're looking for */ 250 /* Check if this is the buffer we're looking for */
251 if (vb2_dma_contig_plane_paddr(dst_buf->b, 0) == dspl_y_addr) { 251 if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dspl_y_addr) {
252 list_del(&dst_buf->list); 252 list_del(&dst_buf->list);
253 ctx->dst_queue_cnt--; 253 ctx->dst_queue_cnt--;
254 dst_buf->b->v4l2_buf.sequence = ctx->sequence; 254 dst_buf->b->v4l2_buf.sequence = ctx->sequence;
@@ -940,9 +940,8 @@ static int match_child(struct device *dev, void *data)
940 return !strcmp(dev_name(dev), (char *)data); 940 return !strcmp(dev_name(dev), (char *)data);
941} 941}
942 942
943
944/* MFC probe function */ 943/* MFC probe function */
945static int __devinit s5p_mfc_probe(struct platform_device *pdev) 944static int s5p_mfc_probe(struct platform_device *pdev)
946{ 945{
947 struct s5p_mfc_dev *dev; 946 struct s5p_mfc_dev *dev;
948 struct video_device *vfd; 947 struct video_device *vfd;
@@ -1236,7 +1235,7 @@ static const struct dev_pm_ops s5p_mfc_pm_ops = {
1236 NULL) 1235 NULL)
1237}; 1236};
1238 1237
1239static struct platform_driver s5p_mfc_pdrv = { 1238static struct platform_driver s5p_mfc_driver = {
1240 .probe = s5p_mfc_probe, 1239 .probe = s5p_mfc_probe,
1241 .remove = __devexit_p(s5p_mfc_remove), 1240 .remove = __devexit_p(s5p_mfc_remove),
1242 .driver = { 1241 .driver = {
@@ -1254,15 +1253,15 @@ static int __init s5p_mfc_init(void)
1254 int ret; 1253 int ret;
1255 1254
1256 pr_info("%s", banner); 1255 pr_info("%s", banner);
1257 ret = platform_driver_register(&s5p_mfc_pdrv); 1256 ret = platform_driver_register(&s5p_mfc_driver);
1258 if (ret) 1257 if (ret)
1259 pr_err("Platform device registration failed.\n"); 1258 pr_err("Platform device registration failed.\n");
1260 return ret; 1259 return ret;
1261} 1260}
1262 1261
1263static void __devexit s5p_mfc_exit(void) 1262static void __exit s5p_mfc_exit(void)
1264{ 1263{
1265 platform_driver_unregister(&s5p_mfc_pdrv); 1264 platform_driver_unregister(&s5p_mfc_driver);
1266} 1265}
1267 1266
1268module_init(s5p_mfc_init); 1267module_init(s5p_mfc_init);