Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176850
b: refs/heads/master
c: faa5826
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 5c5655d commit 86c1ac0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 207970838186b2606896b03f590b89b13570a727
refs/heads/master: faa582610d87edf3ae1d07710a8f7e11c105686c
13 changes: 8 additions & 5 deletions trunk/drivers/media/video/tw9910.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
#define LCTL24 0x68
#define LCTL25 0x69
#define LCTL26 0x6A
#define HSGEGIN 0x6B
#define HSBEGIN 0x6B
#define HSEND 0x6C
#define OVSDLY 0x6D
#define OVSEND 0x6E
Expand Down Expand Up @@ -443,10 +443,11 @@ static int tw9910_set_cropping(struct i2c_client *client,
static int tw9910_set_hsync(struct i2c_client *client,
const struct tw9910_hsync_ctrl *hsync)
{
struct tw9910_priv *priv = to_tw9910(client);
int ret;

/* bit 10 - 3 */
ret = i2c_smbus_write_byte_data(client, HSGEGIN,
ret = i2c_smbus_write_byte_data(client, HSBEGIN,
(hsync->start & 0x07F8) >> 3);
if (ret < 0)
return ret;
Expand All @@ -457,10 +458,12 @@ static int tw9910_set_hsync(struct i2c_client *client,
if (ret < 0)
return ret;

/* So far only revisions 0 and 1 have been seen */
/* bit 2 - 0 */
ret = tw9910_mask_set(client, HSLOWCTL, 0x77,
(hsync->start & 0x0007) << 4 |
(hsync->end & 0x0007));
if (1 == priv->revision)
ret = tw9910_mask_set(client, HSLOWCTL, 0x77,
(hsync->start & 0x0007) << 4 |
(hsync->end & 0x0007));

return ret;
}
Expand Down

0 comments on commit 86c1ac0

Please sign in to comment.