Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137884
b: refs/heads/master
c: f1f8c90
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 970a496 commit 0c2b75d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3fda7f835b025f3c020fa0865086fd23609e7ca
refs/heads/master: f1f8c907b752ed281b1b4e6ca3605db50a8d6250
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/saa6588.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <media/rds.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-i2c-drv-legacy.h>

/* Addresses to scan */
Expand Down Expand Up @@ -431,6 +432,13 @@ static long saa6588_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
return 0;
}

static int saa6588_g_chip_ident(struct v4l2_subdev *sd, struct v4l2_dbg_chip_ident *chip)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);

return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_SAA6588, 0);
}

static int saa6588_command(struct i2c_client *client, unsigned cmd, void *arg)
{
return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg);
Expand All @@ -439,6 +447,7 @@ static int saa6588_command(struct i2c_client *client, unsigned cmd, void *arg)
/* ----------------------------------------------------------------------- */

static const struct v4l2_subdev_core_ops saa6588_core_ops = {
.g_chip_ident = saa6588_g_chip_ident,
.ioctl = saa6588_ioctl,
};

Expand Down
3 changes: 3 additions & 0 deletions trunk/include/media/v4l2-chip-ident.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ enum {
/* module tea6420: just ident 6420 */
V4L2_IDENT_TEA6420 = 6420,

/* module saa6588: just ident 6588 */
V4L2_IDENT_SAA6588 = 6588,

/* module saa6752hs: reserved range 6750-6759 */
V4L2_IDENT_SAA6752HS = 6752,
V4L2_IDENT_SAA6752HS_AC3 = 6753,
Expand Down

0 comments on commit 0c2b75d

Please sign in to comment.