Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241845
b: refs/heads/master
c: 5620094
h: refs/heads/master
i:
  241843: 446f539
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 0ecbdf6 commit da22ab9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 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: 121ec13267fabcf2c81e4584f1505069e234b30d
refs/heads/master: 5620094a2eaa6527d7f038ad3d65ce6a76c8272a
21 changes: 0 additions & 21 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ struct tuner {
struct i2c_client *i2c;
struct v4l2_subdev sd;
struct list_head list;
unsigned int using_v4l2:1;

/* keep track of the current settings */
v4l2_std_id std;
Expand Down Expand Up @@ -717,19 +716,6 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
return 0;
}

#define switch_v4l2() if (!t->using_v4l2) \
tuner_dbg("switching to v4l2\n"); \
t->using_v4l2 = 1;

static inline int check_v4l2(struct tuner *t)
{
/* bttv still uses both v4l1 and v4l2 calls to the tuner (v4l2 for
TV, v4l1 for radio), until that is fixed this code is disabled.
Otherwise the radio (v4l1) wouldn't tune after using the TV (v4l2)
first. */
return 0;
}

static int tuner_s_type_addr(struct v4l2_subdev *sd, struct tuner_setup *type)
{
struct tuner *t = to_tuner(sd);
Expand Down Expand Up @@ -803,8 +789,6 @@ static int tuner_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
if (set_mode(client, t, V4L2_TUNER_ANALOG_TV, "s_std") == -EINVAL)
return 0;

switch_v4l2();

t->std = std;
tuner_fixup_std(t);
if (t->tv_freq)
Expand All @@ -819,7 +803,6 @@ static int tuner_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)

if (set_mode(client, t, f->type, "s_frequency") == -EINVAL)
return 0;
switch_v4l2();
set_freq(client, f->frequency);

return 0;
Expand All @@ -832,7 +815,6 @@ static int tuner_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)

if (check_mode(t, "g_frequency") == -EINVAL)
return 0;
switch_v4l2();
f->type = t->mode;
if (fe_tuner_ops->get_frequency) {
u32 abs_freq;
Expand All @@ -856,7 +838,6 @@ static int tuner_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)

if (check_mode(t, "g_tuner") == -EINVAL)
return 0;
switch_v4l2();

vt->type = t->mode;
if (analog_ops->get_afc)
Expand Down Expand Up @@ -906,8 +887,6 @@ static int tuner_s_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
if (check_mode(t, "s_tuner") == -EINVAL)
return 0;

switch_v4l2();

/* do nothing unless we're a radio tuner */
if (t->mode != V4L2_TUNER_RADIO)
return 0;
Expand Down

0 comments on commit da22ab9

Please sign in to comment.