Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76285
b: refs/heads/master
c: 5b26101
h: refs/heads/master
i:
  76283: ff1e78e
v: v3
  • Loading branch information
Nickolay V. Shmyrev authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 754f19d commit ddd9f9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 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: c2806d03c090a1bf9c8c94bbecb92242b57469f3
refs/heads/master: 5b261016f04eb5df1e1e652794f1f4d7dd072566
41 changes: 0 additions & 41 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1891,47 +1891,6 @@ static struct videobuf_queue_ops bttv_video_qops = {
static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg)
{
switch (cmd) {
#ifdef CONFIG_VIDEO_V4L1
case VIDIOCGAUDIO:
{
struct video_audio *v = arg;

memset(v,0,sizeof(*v));
strcpy(v->name,"Television");
v->flags |= VIDEO_AUDIO_MUTABLE;
v->mode = VIDEO_SOUND_MONO;

mutex_lock(&btv->lock);
bttv_call_i2c_clients(btv,cmd,v);

/* card specific hooks */
if (btv->audio_hook)
btv->audio_hook(btv,v,0);

mutex_unlock(&btv->lock);
return 0;
}
case VIDIOCSAUDIO:
{
struct video_audio *v = arg;
unsigned int audio = v->audio;

if (audio >= bttv_tvcards[btv->c.type].audio_inputs)
return -EINVAL;

mutex_lock(&btv->lock);
audio_mute(btv, (v->flags&VIDEO_AUDIO_MUTE) ? 1 : 0);
bttv_call_i2c_clients(btv,cmd,v);

/* card specific hooks */
if (btv->audio_hook)
btv->audio_hook(btv,v,1);

mutex_unlock(&btv->lock);
return 0;
}
#endif
/* *** v4l2 *** ************************************************ */
case VIDIOC_ENUMSTD:
{
struct v4l2_standard *e = arg;
Expand Down

0 comments on commit ddd9f9f

Please sign in to comment.