Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366742
b: refs/heads/master
c: 28cafc3
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 6e1db0e commit 6fc6a55
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: b279265cfd677b618f2aee8089073a3e4632d85b
refs/heads/master: 28cafc38eca54851dd342b49bad9dd693890cb5c
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 @@ -992,7 +992,7 @@ static char *audio_modes[] = {
static int
audio_mux(struct bttv *btv, int input, int mute)
{
int gpio_val, signal;
int gpio_val, signal, mute_gpio;
struct v4l2_ctrl *ctrl;

gpio_inout(bttv_tvcards[btv->c.type].gpiomask,
Expand All @@ -1003,10 +1003,10 @@ audio_mux(struct bttv *btv, int input, int mute)
btv->audio = input;

/* automute */
mute = mute || (btv->opt_automute && (!signal || !btv->users)
mute_gpio = mute || (btv->opt_automute && (!signal || !btv->users)
&& !btv->has_radio_tuner);

if (mute)
if (mute_gpio)
gpio_val = bttv_tvcards[btv->c.type].gpiomute;
else
gpio_val = bttv_tvcards[btv->c.type].gpiomux[input];
Expand All @@ -1022,7 +1022,7 @@ audio_mux(struct bttv *btv, int input, int mute)
}

if (bttv_gpio)
bttv_gpio_tracking(btv, audio_modes[mute ? 4 : input]);
bttv_gpio_tracking(btv, audio_modes[mute_gpio ? 4 : input]);
if (in_interrupt())
return 0;

Expand Down

0 comments on commit 6fc6a55

Please sign in to comment.