1. 22 11月, 2016 16 次提交
  2. 21 10月, 2016 1 次提交
    • M
      [media] ti-vpe: don't break long lines · 637d5ac5
      Mauro Carvalho Chehab 提交于
      Due to the 80-cols restrictions, and latter due to checkpatch
      warnings, several strings were broken into multiple lines. This
      is not considered a good practice anymore, as it makes harder
      to grep for strings at the source code.
      
      As we're right now fixing other drivers due to KERN_CONT, we need
      to be able to identify what printk strings don't end with a "\n".
      It is a way easier to detect those if we don't break long lines.
      
      So, join those continuation lines.
      
      The patch was generated via the script below, and manually
      adjusted if needed.
      
      </script>
      use Text::Tabs;
      while (<>) {
      	if ($next ne "") {
      		$c=$_;
      		if ($c =~ /^\s+\"(.*)/) {
      			$c2=$1;
      			$next =~ s/\"\n$//;
      			$n = expand($next);
      			$funpos = index($n, '(');
      			$pos = index($c2, '",');
      			if ($funpos && $pos > 0) {
      				$s1 = substr $c2, 0, $pos + 2;
      				$s2 = ' ' x ($funpos + 1) . substr $c2, $pos + 2;
      				$s2 =~ s/^\s+//;
      
      				$s2 = ' ' x ($funpos + 1) . $s2 if ($s2 ne "");
      
      				print unexpand("$next$s1\n");
      				print unexpand("$s2\n") if ($s2 ne "");
      			} else {
      				print "$next$c2\n";
      			}
      			$next="";
      			next;
      		} else {
      			print $next;
      		}
      		$next="";
      	} else {
      		if (m/\"$/) {
      			if (!m/\\n\"$/) {
      				$next=$_;
      				next;
      			}
      		}
      	}
      	print $_;
      }
      </script>
      Acked-by: NBenoit Parrot <bparrot@ti.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      637d5ac5
  3. 20 9月, 2016 1 次提交
  4. 09 7月, 2016 2 次提交
  5. 18 12月, 2015 2 次提交
  6. 21 10月, 2015 1 次提交
  7. 01 10月, 2015 2 次提交
  8. 02 2月, 2015 1 次提交
  9. 23 12月, 2014 1 次提交
  10. 20 10月, 2014 1 次提交
  11. 23 9月, 2014 2 次提交
  12. 04 9月, 2014 1 次提交
  13. 27 8月, 2014 1 次提交
  14. 24 5月, 2014 4 次提交
    • A
      [media] v4l: ti-vpe: Add selection API in VPE driver · 2ef114f6
      Archit Taneja 提交于
      Add selection ioctl ops. For VPE, cropping makes sense only for the input to
      VPE(or V4L2_BUF_TYPE_VIDEO_OUTPUT/MPLANE buffers) and composing makes sense
      only for the output of VPE(or V4L2_BUF_TYPE_VIDEO_CAPTURE/MPLANE buffers).
      
      For the CAPTURE type, V4L2_SEL_TGT_COMPOSE results in VPE writing the output
      in a rectangle within the capture buffer. For the OUTPUT type, V4L2_SEL_TGT_CROP
      results in selecting a rectangle region within the source buffer.
      
      Setting the crop/compose rectangles should successfully result in
      re-configuration of registers which are affected when either source or
      destination dimensions change, set_srcdst_params() is called for this purpose.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      2ef114f6
    • A
      [media] v4l: ti-vpe: Fix some params in VPE data descriptors · 928bf2ba
      Archit Taneja 提交于
      Some parameters of the VPE descriptors were understood incorrectly. They are now
      fixed. The fixes are explained as follows:
      
      - When adding an inbound data descriptor to the VPDMA descriptor list, we intend
        to use c_rect as the cropped region fetched by VPDMA. Therefore, c_rect->width
        shouldn't be used to calculate the line stride, the original image width
        should be used for that. We add a 'width' argument which gives the buffer
        width in memory.
      
      - frame_width and frame_height describe the complete width and height of the
        client to which the channel is connected. If there are multiple channels
        fetching data and providing to the same client, the above 2 arguments should
        be the width and height of the region covered by all the channels. In the case
        where there is only one channel providing pixel data to the client
        (like in VPE), frame_width and frame_height should be the cropped width and
        cropped height respectively. The calculation of these params is done in the
        vpe driver now.
      
      - start_h and start_v is also used in the case of multiple channels to describe
        where each channel should start filling pixel data. We don't use this in VPE,
        and pass 0s to the vpdma_add_in_dtd() helper.
      
      - Some minor changes are made to the vpdma_add_out_dtd() helper. The c_rect
        param is used for specifying the 'composition' target, and 'width'  is added
        to calculate the line stride.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Acked-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      928bf2ba
    • A
      [media] v4l: ti-vpe: Allow DMABUF buffer type support · 668f91d4
      Archit Taneja 提交于
      For OMAP and DRA7x, we generally allocate video and graphics buffers through
      omapdrm since the corresponding omap-gem driver provides DMM-Tiler backed
      contiguous buffers. omapdrm is a dma-buf exporter. These buffers are used by
      other drivers in the video pipeline.
      
      Add VB2_DMABUF flag to the io_modes of the vb2 output and capture queues. This
      allows the driver to import dma shared buffers.
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      668f91d4
    • A
      [media] v4l: ti-vpe: register video device only when firmware is loaded · b2c9472f
      Archit Taneja 提交于
      vpe fops(vpe_open in particular) should be called only when VPDMA firmware
      is loaded. File operations on the video device are possible the moment it is
      registered.
      
      Currently, we register the video device for VPE at driver probe, after calling
      a vpdma helper to initialize VPDMA and load firmware. This function is
      non-blocking(it calls request_firmware_nowait()), and doesn't ensure that the
      firmware is actually loaded when it returns.
      
      We remove the device registration from vpe probe, and move it to a callback
      provided by the vpe driver to the vpdma library, through vpdma_create().
      
      The ready field in vpdma_data is no longer needed since we always have firmware
      loaded before the device is registered.
      
      A minor problem with this approach is that if the video_register_device
      fails(which doesn't really happen), the vpe platform device would be registered.
      however, there won't be any v4l2 device corresponding to it.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      b2c9472f
  15. 07 4月, 2014 4 次提交