aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2006-08-25 15:53:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:00:58 -0500
commit5b261016f04eb5df1e1e652794f1f4d7dd072566 (patch)
tree6a5922211c7d95d54f671e9ed67e8437a7045abb /drivers/media/video/bt8xx/bttv-driver.c
parentc2806d03c090a1bf9c8c94bbecb92242b57469f3 (diff)
V4L/DVB (6413): Forward VIDIOCGAUDIO and VIDIOCSAUDIO through v4l1-compat
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index 061f52ba824a..2cdbac302092 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -1891,47 +1891,6 @@ static struct videobuf_queue_ops bttv_video_qops = {
1891static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg) 1891static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg)
1892{ 1892{
1893 switch (cmd) { 1893 switch (cmd) {
1894#ifdef CONFIG_VIDEO_V4L1
1895 case VIDIOCGAUDIO:
1896 {
1897 struct video_audio *v = arg;
1898
1899 memset(v,0,sizeof(*v));
1900 strcpy(v->name,"Television");
1901 v->flags |= VIDEO_AUDIO_MUTABLE;
1902 v->mode = VIDEO_SOUND_MONO;
1903
1904 mutex_lock(&btv->lock);
1905 bttv_call_i2c_clients(btv,cmd,v);
1906
1907 /* card specific hooks */
1908 if (btv->audio_hook)
1909 btv->audio_hook(btv,v,0);
1910
1911 mutex_unlock(&btv->lock);
1912 return 0;
1913 }
1914 case VIDIOCSAUDIO:
1915 {
1916 struct video_audio *v = arg;
1917 unsigned int audio = v->audio;
1918
1919 if (audio >= bttv_tvcards[btv->c.type].audio_inputs)
1920 return -EINVAL;
1921
1922 mutex_lock(&btv->lock);
1923 audio_mute(btv, (v->flags&VIDEO_AUDIO_MUTE) ? 1 : 0);
1924 bttv_call_i2c_clients(btv,cmd,v);
1925
1926 /* card specific hooks */
1927 if (btv->audio_hook)
1928 btv->audio_hook(btv,v,1);
1929
1930 mutex_unlock(&btv->lock);
1931 return 0;
1932 }
1933#endif
1934 /* *** v4l2 *** ************************************************ */
1935 case VIDIOC_ENUMSTD: 1894 case VIDIOC_ENUMSTD:
1936 { 1895 {
1937 struct v4l2_standard *e = arg; 1896 struct v4l2_standard *e = arg;