Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366746
b: refs/heads/master
c: 5f45678
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 6019b6d commit 81ed83b
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 2166f0a9710413ea60bd72a4983de11b764468e4
refs/heads/master: 5f45678173a79661409375ffa8b5c297cb932aad
18 changes: 12 additions & 6 deletions trunk/drivers/media/pci/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,11 +989,10 @@ static char *audio_modes[] = {
"audio: intern", "audio: mute"
};

static int
audio_mux(struct bttv *btv, int input, int mute)
static void
audio_mux_gpio(struct bttv *btv, int input, int mute)
{
int gpio_val, signal, mute_gpio;
struct v4l2_ctrl *ctrl;

gpio_inout(bttv_tvcards[btv->c.type].gpiomask,
bttv_tvcards[btv->c.type].gpiomask);
Expand All @@ -1020,8 +1019,14 @@ audio_mux(struct bttv *btv, int input, int mute)

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

static int
audio_mux(struct bttv *btv, int input, int mute)
{
struct v4l2_ctrl *ctrl;

audio_mux_gpio(btv, input, mute);

if (btv->sd_msp34xx) {
u32 in;
Expand Down Expand Up @@ -3846,7 +3851,8 @@ static irqreturn_t bttv_irq(int irq, void *dev_id)
bttv_irq_switch_video(btv);

if ((astat & BT848_INT_HLOCK) && btv->opt_automute)
audio_mute(btv, btv->mute); /* trigger automute */
/* trigger automute */
audio_mux_gpio(btv, btv->audio_input, btv->mute);

if (astat & (BT848_INT_SCERR|BT848_INT_OCERR)) {
pr_info("%d: %s%s @ %08x,",
Expand Down

0 comments on commit 81ed83b

Please sign in to comment.