patch-2.3.50 linux/drivers/char/tuner.c
Next file: linux/drivers/char/videodev.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Mar 6 15:32:30 2000
- Orig file:
v2.3.49/linux/drivers/char/tuner.c
- Orig date:
Tue Jan 4 13:57:16 2000
diff -u --recursive --new-file v2.3.49/linux/drivers/char/tuner.c linux/drivers/char/tuner.c
@@ -12,6 +12,7 @@
#include <linux/videodev.h>
#include "tuner.h"
+#include "audiochip.h"
/* Addresses to scan */
static unsigned short normal_i2c[] = {I2C_CLIENT_END};
@@ -334,6 +335,9 @@
t->type,tuners[t->type].name);
strncpy(client->name, tuners[t->type].name, sizeof(client->name));
break;
+ case AUDC_SET_RADIO:
+ t->radio = 1;
+ break;
/* --- v4l ioctls --- */
/* take care: bttv does userspace copying, we'll get a
@@ -342,6 +346,7 @@
{
struct video_channel *vc = arg;
+ t->radio = 0;
if (t->type == TUNER_PHILIPS_SECAM) {
t->mode = (vc->norm == VIDEO_MODE_SECAM) ? 1 : 0;
set_tv_freq(client,t->freq);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)