1. 03 3月, 2015 3 次提交
  2. 29 9月, 2014 1 次提交
    • A
      usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo · a173dc44
      Arnd Bergmann 提交于
      Patch "usb: gadget: uvc: rename functions to avoid conflicts with host uvc"
      renamed a lot of symbols but missed one references that was inside of
      an #ifdef:
      
      drivers/usb/gadget/function/uvc_v4l2.c:363:23: error: 'uvcg_v4l2_get_unmapped_area' undeclared here (not in a function)
        .get_unmapped_area = uvcg_v4l2_get_unmapped_area,
                             ^
      drivers/usb/gadget/function/uvc_v4l2.c:344:22: warning: 'uvc_v4l2_get_unmapped_area' defined but not used [-Wunused-function]
       static unsigned long uvc_v4l2_get_unmapped_area(struct file *file,
                            ^
      
      This renames the reference according the changed function name.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 7ea95b11 ("usb: gadget: uvc: rename functions to avoid conflicts with host uvc")
      Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
      Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a173dc44
  3. 09 9月, 2014 2 次提交
  4. 08 9月, 2014 2 次提交
  5. 21 8月, 2014 1 次提交
  6. 17 7月, 2014 1 次提交
  7. 02 4月, 2013 2 次提交
    • B
      usb: gadget/uvc: Add support for 'get_unmapped_area' for MMUless architectures · 2f1d5706
      Bhupesh Sharma 提交于
      This patch adds the support for 'get_unmapped_area' in UVC gadget
      which is called when the 'mmap' system call is executed on MMUless
      architectures.
      Signed-off-by: NBhupesh Sharma <bhupesh.sharma@st.com>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      2f1d5706
    • B
      usb: gadget/uvc: Port UVC webcam gadget to use videobuf2 framework · d6925225
      Bhupesh Sharma 提交于
      This patch reworks the videobuffer management logic present in the UVC
      webcam gadget and ports it to use the "more apt" videobuf2 framework for
      video buffer management.
      
      To support routing video data captured from a real V4L2 video capture
      device with a "zero copy" operation on videobuffers (as they pass from
      the V4L2 domain to UVC domain via a user-space application), we need to
      support USER_PTR IO method at the UVC gadget side.
      
      So the V4L2 capture device driver can still continue to use MMAP IO
      method and now the user-space application can just pass a pointer to the
      video buffers being dequeued from the V4L2 device side while queueing
      them at the UVC gadget end. This ensures that we have a "zero-copy"
      design as the videobuffers pass from the V4L2 capture device to the UVC
      gadget.
      
      Note that there will still be a need to apply UVC specific payload
      headers on top of each UVC payload data, which will still require a copy
      operation to be performed in the 'encode' routines of the UVC gadget.
      
      This patch also addresses one issue found out while porting the UVC
      gadget to videobuf2 framework:
      	- In case the usb requests queued by the gadget get completed
      	  with a status of -ESHUTDOWN (disconnected from host),
      	  the queue of videobuf2 should be cancelled to ensure that the
      	  application space daemon is not left in a state waiting for
      	  a vb2 to be successfully absorbed at the USB side.
      Signed-off-by: NBhupesh Sharma <bhupesh.sharma@st.com>
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      d6925225
  8. 18 3月, 2013 4 次提交
  9. 08 5月, 2012 1 次提交
  10. 25 4月, 2012 1 次提交
  11. 15 9月, 2011 1 次提交
  12. 10 9月, 2011 1 次提交
    • K
      usb gadget: clean up FSF boilerplate text · 28c9fc68
      Klaus Schwarzkopf 提交于
      remove the following two paragraphs as they are not needed:
      
      This program is distributed in the hope that it will be useful, but
      WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
      License for more details.
      
      You should have received a copy of the GNU General Public License along with
      this program; if not, write to the Free Software Foundation, Inc.,59
      Temple Place - Suite 330, Boston, MA  02111-1307, USA.
      Signed-off-by: NKlaus Schwarzkopf <schwarzkopf@sensortherm.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      28c9fc68
  13. 28 7月, 2011 2 次提交
    • H
      [media] v4l2-event/ctrls/fh: allocate events per fh and per type instead of just per-fh · f1e393de
      Hans Verkuil 提交于
      The driver had to decide how many events to allocate when the v4l2_fh struct
      was created. It was possible to add more events afterwards, but there was no
      way to ensure that you wouldn't miss important events if the event queue
      would fill up for that filehandle.
      
      In addition, once there were no more free events, any new events were simply
      dropped on the floor.
      
      For the control event in particular this made life very difficult since
      control status/value changes could just be missed if the number of allocated
      events and the speed at which the application read events was too low to keep
      up with the number of generated events. The application would have no idea
      what the latest state was for a control since it could have missed the latest
      control change.
      
      So this patch makes some major changes in how events are allocated. Instead
      of allocating events per-filehandle they are now allocated when subscribing an
      event. So for that particular event type N events (determined by the driver)
      are allocated. Those events are reserved for that particular event type.
      This ensures that you will not miss events for a particular type altogether.
      
      In addition, if there are N events in use and a new event is raised, then
      the oldest event is dropped and the new one is added. So the latest event
      is always available.
      
      This can be further improved by adding the ability to merge the state of
      two events together, ensuring that no data is lost at all. This will be
      added in the next patch.
      
      This also makes it possible to allow the user to determine the number of
      events that will be allocated. This is not implemented at the moment, but
      would be trivial.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f1e393de
    • H
      [media] v4l2-events/fh: merge v4l2_events into v4l2_fh · 523f46d6
      Hans Verkuil 提交于
      Drivers that supported events used to be rare, but now that controls can also
      raise events this will become much more common since almost all drivers have
      controls.
      
      This means that keeping struct v4l2_events as a separate struct make no more
      sense. Merging it into struct v4l2_fh simplifies things substantially as it
      is now an integral part of the filehandle struct.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      523f46d6
  14. 24 8月, 2010 1 次提交
  15. 12 7月, 2010 1 次提交
  16. 21 5月, 2010 1 次提交