Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74809
b: refs/heads/master
c: f4b8b3a
h: refs/heads/master
i:
  74807: da92846
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 11, 2007
1 parent 47fd24d commit 16e366c
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 2b2c93ac998896db0d2b754a4fd83479bda7efde
refs/heads/master: f4b8b3ae13b2246cf7e1b998f0292f3297d03d41
11 changes: 11 additions & 0 deletions trunk/drivers/media/video/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ static inline void tvp5150_selmux(struct i2c_client *c)
int opmode=0;
struct tvp5150 *decoder = i2c_get_clientdata(c);
int input = 0;
unsigned char val;

if ((decoder->route.output & TVP5150_BLACK_SCREEN) || !decoder->enable)
input = 8;
Expand All @@ -315,6 +316,16 @@ static inline void tvp5150_selmux(struct i2c_client *c)

tvp5150_write(c, TVP5150_OP_MODE_CTL, opmode);
tvp5150_write(c, TVP5150_VD_IN_SRC_SEL_1, input);

/* Svideo should enable YCrCb output and disable GPCL output
* For Composite and TV, it should be the reverse
*/
val = tvp5150_read(c, TVP5150_MISC_CTL);
if (decoder->route.input == TVP5150_SVIDEO)
val = (val & ~0x40) | 0x10;
else
val = (val & ~0x10) | 0x40;
tvp5150_write(c, TVP5150_MISC_CTL, val);
};

struct i2c_reg_value {
Expand Down

0 comments on commit 16e366c

Please sign in to comment.