mxb.c (b530a447bb588fdf43fdf4eb909e4ee1921d47ac) | mxb.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5) |
---|---|
1/* 2 mxb - v4l2 driver for the Multimedia eXtension Board 3 4 Copyright (C) 1998-2006 Michael Hunold <michael@mihu.de> 5 6 Visit http://www.themm.net/~mihu/linux/saa7146/mxb.html 7 for further details about this card. 8 --- 546 unchanged lines hidden (view full) --- 555 strlcpy(t->name, "TV Tuner", sizeof(t->name)); 556 t->type = V4L2_TUNER_ANALOG_TV; 557 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO | 558 V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2 | V4L2_TUNER_CAP_SAP; 559 t->audmode = mxb->cur_mode; 560 return call_all(dev, tuner, g_tuner, t); 561} 562 | 1/* 2 mxb - v4l2 driver for the Multimedia eXtension Board 3 4 Copyright (C) 1998-2006 Michael Hunold <michael@mihu.de> 5 6 Visit http://www.themm.net/~mihu/linux/saa7146/mxb.html 7 for further details about this card. 8 --- 546 unchanged lines hidden (view full) --- 555 strlcpy(t->name, "TV Tuner", sizeof(t->name)); 556 t->type = V4L2_TUNER_ANALOG_TV; 557 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO | 558 V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2 | V4L2_TUNER_CAP_SAP; 559 t->audmode = mxb->cur_mode; 560 return call_all(dev, tuner, g_tuner, t); 561} 562 |
563static int vidioc_s_tuner(struct file *file, void *fh, struct v4l2_tuner *t) | 563static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t) |
564{ 565 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 566 struct mxb *mxb = (struct mxb *)dev->ext_priv; 567 568 if (t->index) { 569 DEB_D("VIDIOC_S_TUNER: channel %d does not have a tuner attached\n", 570 t->index); 571 return -EINVAL; --- 315 unchanged lines hidden --- | 564{ 565 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 566 struct mxb *mxb = (struct mxb *)dev->ext_priv; 567 568 if (t->index) { 569 DEB_D("VIDIOC_S_TUNER: channel %d does not have a tuner attached\n", 570 t->index); 571 return -EINVAL; --- 315 unchanged lines hidden --- |