Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366743
b: refs/heads/master
c: 598728e
h: refs/heads/master
i:
  366741: 6e1db0e
  366739: 0190237
  366735: db732b4
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 6fc6a55 commit 04ac018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 28cafc38eca54851dd342b49bad9dd693890cb5c
refs/heads/master: 598728e9200a17970184b3d7d58a042accab7ecc
8 changes: 4 additions & 4 deletions trunk/drivers/media/pci/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,6 @@ audio_mux(struct bttv *btv, int input, int mute)
bttv_tvcards[btv->c.type].gpiomask);
signal = btread(BT848_DSTATUS) & BT848_DSTATUS_HLOC;

btv->mute = mute;
btv->audio = input;

/* automute */
Expand Down Expand Up @@ -1031,7 +1030,7 @@ audio_mux(struct bttv *btv, int input, int mute)

ctrl = v4l2_ctrl_find(btv->sd_msp34xx->ctrl_handler, V4L2_CID_AUDIO_MUTE);
if (ctrl)
v4l2_ctrl_s_ctrl(ctrl, btv->mute);
v4l2_ctrl_s_ctrl(ctrl, mute);

/* Note: the inputs tuner/radio/extern/intern are translated
to msp routings. This assumes common behavior for all msp3400
Expand Down Expand Up @@ -1080,15 +1079,15 @@ audio_mux(struct bttv *btv, int input, int mute)
ctrl = v4l2_ctrl_find(btv->sd_tvaudio->ctrl_handler, V4L2_CID_AUDIO_MUTE);

if (ctrl)
v4l2_ctrl_s_ctrl(ctrl, btv->mute);
v4l2_ctrl_s_ctrl(ctrl, mute);
v4l2_subdev_call(btv->sd_tvaudio, audio, s_routing,
input, 0, 0);
}
if (btv->sd_tda7432) {
ctrl = v4l2_ctrl_find(btv->sd_tda7432->ctrl_handler, V4L2_CID_AUDIO_MUTE);

if (ctrl)
v4l2_ctrl_s_ctrl(ctrl, btv->mute);
v4l2_ctrl_s_ctrl(ctrl, mute);
}
return 0;
}
Expand Down Expand Up @@ -1300,6 +1299,7 @@ static int bttv_s_ctrl(struct v4l2_ctrl *c)
break;
case V4L2_CID_AUDIO_MUTE:
audio_mute(btv, c->val);
btv->mute = c->val;
break;
case V4L2_CID_AUDIO_VOLUME:
btv->volume_gpio(btv, c->val);
Expand Down

0 comments on commit 04ac018

Please sign in to comment.