Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92392
b: refs/heads/master
c: f13613a
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 8512dc6 commit 3751002
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 6a6179b6db401acde5798b4da0fdff32b126ee15
refs/heads/master: f13613acfb1a71895ac886dc831d6ae4e20e241a
11 changes: 5 additions & 6 deletions trunk/drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ static int simple_config_lookup(struct dvb_frontend *fe,

static int simple_std_setup(struct dvb_frontend *fe,
struct analog_parameters *params,
u8 *buffer, u8 *config, u8 *cb)
u8 *config, u8 *cb)
{
struct tuner_simple_priv *priv = fe->tuner_priv;
u8 tuneraddr;
Expand Down Expand Up @@ -323,14 +323,12 @@ static int simple_std_setup(struct dvb_frontend *fe,
break;

case TUNER_PHILIPS_TUV1236D:
{
/* 0x40 -> ATSC antenna input 1 */
/* 0x48 -> ATSC antenna input 2 */
/* 0x00 -> NTSC antenna input 1 */
/* 0x08 -> NTSC antenna input 2 */
buffer[0] = 0x14;
buffer[1] = 0x00;
buffer[2] = 0x17;
buffer[3] = 0x00;
u8 buffer[4] = { 0x14, 0x00, 0x17, 0x00};
*cb &= ~0x40;
if (params->std & V4L2_STD_ATSC) {
*cb |= 0x40;
Expand All @@ -351,6 +349,7 @@ static int simple_std_setup(struct dvb_frontend *fe,
/* FIXME: input */
break;
}
}

return 0;
}
Expand Down Expand Up @@ -509,7 +508,7 @@ static int simple_set_tv_freq(struct dvb_frontend *fe,
offset / 16, offset % 16 * 100 / 16, div);

/* tv norm specific stuff for multi-norm tuners */
simple_std_setup(fe, params, &buffer[1], &config, &cb);
simple_std_setup(fe, params, &config, &cb);

if (t_params->cb_first_if_lower_freq && div < priv->last_div) {
buffer[0] = config;
Expand Down

0 comments on commit 3751002

Please sign in to comment.