Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61332
b: refs/heads/master
c: aac0ca6
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Bilski authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent e74fa09 commit b11c9cd
Show file tree
Hide file tree
Showing 3 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: 6d7930e0cde1b27c3beca399e233be058ac0b93f
refs/heads/master: aac0ca6a8b84541b28af9d18d8b84f90653ce0d0
16 changes: 11 additions & 5 deletions trunk/drivers/media/video/saa7134/saa7134-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ typedef struct snd_card_saa7134 {
struct saa7134_dev *dev;

unsigned long iobase;
int irq;
s16 irq;
u16 mute_was_on;

spinlock_t lock;
} snd_card_saa7134_t;
Expand Down Expand Up @@ -589,8 +590,10 @@ static int snd_card_saa7134_capture_close(struct snd_pcm_substream * substream)
snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
struct saa7134_dev *dev = saa7134->dev;

dev->ctl_mute = 1;
saa7134_tvaudio_setmute(dev);
if (saa7134->mute_was_on) {
dev->ctl_mute = 1;
saa7134_tvaudio_setmute(dev);
}
return 0;
}

Expand Down Expand Up @@ -637,8 +640,11 @@ static int snd_card_saa7134_capture_open(struct snd_pcm_substream * substream)
runtime->private_free = snd_card_saa7134_runtime_free;
runtime->hw = snd_card_saa7134_capture;

dev->ctl_mute = 0;
saa7134_tvaudio_setmute(dev);
if (dev->ctl_mute != 0) {
saa7134->mute_was_on = 1;
dev->ctl_mute = 0;
saa7134_tvaudio_setmute(dev);
}

if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/saa7134/saa7134-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ struct saa7134_board saa7134_boards[] = {
.inputs = {{
.name = name_tv,
.vmux = 1,
.amux = LINE2,
.amux = TV,
.tv = 1,
.gpio = 0x20000,
},{
Expand Down

0 comments on commit b11c9cd

Please sign in to comment.