30 Mar, 2009

1 commit

  • The v4l2_ctrl_query_fill_std() function wasn't one the best idea I ever had.
    It doesn't add anything valuable that cannot be expressed equally well with
    v4l2_ctrl_query_fill and only adds overhead.

    Replace it with v4l2_ctrl_query_fill() everywhere it is used and remove it
    from v4l2_common.c.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

03 Jan, 2009

2 commits

  • Since the i2c driver ID will be removed in the near future we have to
    modify the v4l2 debugging API to use the driver name instead of driver ID.

    Note that this API is not used in applications other than v4l2-dbg.cpp
    as it is for debugging and testing only.

    Should anyone use the old VIDIOC_G_CHIP_IDENT, then this will be logged
    with a warning that it is deprecated and will be removed in 2.6.30.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Since internal to v4l2 the ioctl prototype is the same regardless of it
    being called through .ioctl or .unlocked_ioctl, we need to convert it all
    to the long return type of unlocked_ioctl.

    Thanks to Jean-Francois Moine for posting an initial patch for this and
    thus bringing it to our attention.

    Cc: Jean-Francois Moine
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

30 Dec, 2008

2 commits


27 Jul, 2008

1 commit


24 Jul, 2008

1 commit


20 Jul, 2008

1 commit


19 May, 2008

1 commit

  • Update all the remaining new-style i2c drivers to use standard module
    aliasing instead of the old driver_name/type driver matching scheme.

    Note that the tuner driver is a bit quirky at the moment, as it
    overwrites i2c_client.name with arbitrary strings. We write "tuner"
    back on remove, to make sure that driver cycling will work properly,
    but there may still be troublesome corner cases.

    Signed-off-by: Jean Delvare

    Jean Delvare
     

30 Apr, 2008

1 commit

  • Based on earlier work by Jon Smirl and Jochen Friedrich.

    This patch allows new-style i2c chip drivers to have alias names using
    the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
    point, the old i2c driver binding scheme (driver_name/type) is still
    supported.

    Signed-off-by: Jean Delvare
    Cc: Jochen Friedrich
    Cc: Jon Smirl
    Cc: Kay Sievers

    Jean Delvare
     

25 Apr, 2008

1 commit


26 Jan, 2008

3 commits


10 Oct, 2007

2 commits


20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

19 Jul, 2007

1 commit


28 Apr, 2007

1 commit


27 Mar, 2007

2 commits


28 Dec, 2006

2 commits


08 Dec, 2006

1 commit


04 Oct, 2006

1 commit

  • The msp3430G and msp3435G models cannot do Automatic Standard Detection.
    So these should be forced to BTSC. These chips are early production versions
    for the msp34xxG series and are quite rare.
    The workaround for kernel 2.6.18 is to use 'standard=32' as msp3400
    module option. Due to broken handling of the 'standard' option in 2.6.17 there is
    no workaround possible for that kernel.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

30 Jul, 2006

1 commit


25 Jun, 2006

2 commits


02 Apr, 2006

4 commits

  • - Remove old DECODER_ commands from tvp5150.c, replacing them with newer
    ones if appropriate.
    - Small VIDIOC_G_TUNER fixes in msp3400 and tuner.
    - Fix VIDIOC_S_TUNER support in em28xx.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • - remove obsolete VIDIOC_S_INPUT i2c call in bttv
    - translate VIDIOCSFREQ to VIDIOC_S_FREQUENCY in i2c call
    - improve muting during carrier scan in msp3400
    - don't start scan unless really needed.
    - no longer reset chip for msp3400c/d.
    - remove v4l2 check in tuner-core (radio stops after using the TV)
    - add missing VIDIOC_INT_ strings in v4l2-common.c

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • - msp3400c did not detect the second carrier, thus being always mono.
    - properly mute the msp3400c while detecting the carrier.
    - fix checks on the presence of scart2/3 inputs and scart 2 output.
    - implement proper audio mode fallbacks for msp3400c/d, identical to the
    way msp3400g works.
    - MODE_STEREO no longer produces dual languages when set for a bilingual
    transmission, instead it falls back to LANG1. Use LANG1_LANG2 to hear
    both languages of a bilingual transmission. This is much more intuitive
    for the user and is in accordance with the preferred usage in the v4l2
    specification.
    - bttv tried to implement v4l2 calls with v4l1 calls to the i2c devices,
    completely mangling the audmode/rxsubchans handling. v4l2 calls now do
    v4l2 calls to the i2c devices.
    - fixed broken i2c_vidiocschan in bttv.
    - add start/end lines to LOG_STATUS.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The driver tried to set a register that is not present on msp3400c devices.
    Add the missing test.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

25 Mar, 2006

8 commits