Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37466
b: refs/heads/master
c: dafcaaf
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Cerqueira authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent fd958b9 commit f79f219
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8cd2ad3bb499ad684799b55ca10e260a9e2fd84
refs/heads/master: dafcaaf86a77c086ed663eb25da1ca42800e171c
8 changes: 8 additions & 0 deletions trunk/drivers/media/video/saa7134/saa7134-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,11 @@ static int snd_card_saa7134_hw_free(struct snd_pcm_substream * substream)

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);
return 0;
}

Expand Down Expand Up @@ -631,6 +636,9 @@ 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 ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
return err;

Expand Down

0 comments on commit f79f219

Please sign in to comment.