1. 08 7月, 2011 1 次提交
    • H
      [media] tuner-core: fix s_std and s_tuner · 4e4a31fb
      Hans Verkuil 提交于
      Both s_std and s_tuner are broken because set_mode_freq is called before the
      new std (for s_std) and audmode (for s_tuner) are set.
      
      This patch splits set_mode_freq in a set_mode and a set_freq and in s_std/s_tuner
      first calls set_mode, and if that returns 0 (i.e. the mode is supported)
      then they set t->std/t->audmode and call set_freq.
      
      This fixes a bug where changing std or audmode would actually change it to
      the previous value.
      
      Discovered while testing analog TV standards for cx18 with a tda18271 tuner.
      
      Cc: stable@kernel.org
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4e4a31fb
  2. 02 7月, 2011 13 次提交
  3. 01 7月, 2011 9 次提交
  4. 22 6月, 2011 1 次提交
    • H
      [media] pwc: better usb disconnect handling · 9a7b2d1f
      Hans de Goede 提交于
      Unplugging a pwc cam while an app has the /dev/video# node open leads
      to an oops in pwc_video_close when the app closes the node, because
      the disconnect handler has free-ed the pdev struct pwc_video_close
      tries to use. Instead of adding some sort of bandaid for this.
      fix it properly using the v4l2 core's new(ish) behavior of keeping the
      v4l2_dev structure around until both unregister has been called, and
      all file handles referring  to it have been closed:
      
      Embed the v4l2_dev structure in the pdev structure and define a v4l2 dev
      release callback releasing the pdev structure (and thus also the embedded
      v4l2 dev structure.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Cc: stable@kernel.org
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9a7b2d1f
  5. 11 6月, 2011 16 次提交