summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-21 00:30:31 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-21 00:30:31 +0000
commitb47d82cb176427c78627d8791cc1361be9c0e971 (patch)
tree200e66261267e7fe5ab26bf5f069b741c7b33091 /linux/drivers/media/video/bt8xx/bttv-driver.c
parent9bd9162dad30b754a7e6eba27c238750f49d5e4e (diff)
downloadmediapointer-dvb-s2-b47d82cb176427c78627d8791cc1361be9c0e971.tar.gz
mediapointer-dvb-s2-b47d82cb176427c78627d8791cc1361be9c0e971.tar.bz2
cinergyT2: endianness annotations, endianness and race fixes
From: Al Viro <viro@ftp.linux.org.uk> Endianness annotations and fixes + fixing the handling of ->uncorrected_block_count Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r--linux/drivers/media/video/bt8xx/bttv-driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c
index bb9ad09f8..86aa590b3 100644
--- a/linux/drivers/media/video/bt8xx/bttv-driver.c
+++ b/linux/drivers/media/video/bt8xx/bttv-driver.c
@@ -3311,6 +3311,7 @@ static int bttv_open(struct inode *inode, struct file *file)
sizeof(struct bttv_buffer),
fh);
set_tvnorm(btv,btv->tvnorm);
+ set_input(btv, btv->input, btv->tvnorm);
btv->users++;
@@ -3371,6 +3372,10 @@ static int bttv_release(struct inode *inode, struct file *file)
btv->users--;
bttv_field_count(btv);
+
+ if (!btv->users)
+ audio_mute(btv, 1);
+
return 0;
}