Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155775
b: refs/heads/master
c: 2ea472f
h: refs/heads/master
i:
  155773: 40ae03d
  155771: a62cb53
  155767: 0a97005
  155759: 4efbffe
  155743: 15da71c
  155711: 8fbcd45
  155647: c683d11
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 24, 2009
1 parent 403ac0b commit 46563f9
Show file tree
Hide file tree
Showing 2 changed files with 18 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: c180604a87c5abb0a117998009d01a4499d58653
refs/heads/master: 2ea472ff704a8a94b3b9abec438db23e512be337
17 changes: 17 additions & 0 deletions trunk/drivers/media/video/mt9v011.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,22 @@ static int mt9v011_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
return 0;
}

static int mt9v011_s_config(struct v4l2_subdev *sd, int dumb, void *data)
{
struct mt9v011 *core = to_mt9v011(sd);
unsigned *xtal = data;

v4l2_dbg(1, debug, sd, "s_config called\n");

if (xtal) {
core->xtal = *xtal;
v4l2_dbg(1, debug, sd, "xtal set to %d.%03d MHz\n",
*xtal / 1000000, (*xtal / 1000) % 1000);
}

return 0;
}


#ifdef CONFIG_VIDEO_ADV_DEBUG
static int mt9v011_g_register(struct v4l2_subdev *sd,
Expand Down Expand Up @@ -388,6 +404,7 @@ static const struct v4l2_subdev_core_ops mt9v011_core_ops = {
.g_ctrl = mt9v011_g_ctrl,
.s_ctrl = mt9v011_s_ctrl,
.reset = mt9v011_reset,
.s_config = mt9v011_s_config,
.g_chip_ident = mt9v011_g_chip_ident,
#ifdef CONFIG_VIDEO_ADV_DEBUG
.g_register = mt9v011_g_register,
Expand Down

0 comments on commit 46563f9

Please sign in to comment.