aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 18:42:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 18:42:54 -0400
commit1eb63378354ac37b7e27d256bbf84684751bac32 (patch)
tree0775591a2dced778d1ba0bd8a946831e424d02d7 /drivers/media/radio
parent1a4ceab195e66bce9c1638fdded6d92988100ba4 (diff)
parentbac2dacd5fb9ddad093d7a2dc5ab44e764874821 (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (348 commits) [media] pctv452e: Remove bogus code [media] adv7175: Make use of media bus pixel codes [media] media: vb2: fix incorrect return value [media] em28xx: implement VIDIOC_ENUM_FRAMESIZES [media] cx23885: Stop the risc video fifo before reconfiguring it [media] cx23885: Avoid incorrect error handling and reporting [media] cx23885: Avoid stopping the risc engine during buffer timeout [media] cx23885: Removed a spurious function cx23885_set_scale() [media] cx23885: v4l2 api compliance, set the audioset field correctly [media] cx23885: hook the audio selection functions into the main driver [media] cx23885: add generic functions for dealing with audio input selection [media] cx23885: fixes related to maximum number of inputs and range checking [media] cx23885: Initial support for the MPX-885 mini-card [media] cx25840: Ensure AUDIO6 and AUDIO7 trigger line-in baseband use [media] cx23885: Enable audio line in support from the back panel [media] cx23885: Allow the audio mux config to be specified on a per input basis [media] cx25840: Enable support for non-tuner LR1/LR2 audio inputs [media] cx23885: Name an internal i2c part and declare a bitfield by name [media] cx23885: Ensure VBI buffers timeout quickly - bugfix for vbi hangs during streaming [media] cx23885: remove channel dump diagnostics when a vbi buffer times out ... Fix up trivial conflicts in drivers/misc/altera-stapl/altera.c (header file rename vs add)
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/Makefile2
-rw-r--r--drivers/media/radio/radio-si4713.c4
-rw-r--r--drivers/media/radio/radio-wl1273.c2
-rw-r--r--drivers/media/radio/si470x/radio-si470x-usb.c2
-rw-r--r--drivers/media/radio/wl128x/fmdrv_v4l2.c6
5 files changed, 6 insertions, 10 deletions
diff --git a/drivers/media/radio/Makefile b/drivers/media/radio/Makefile
index f484a6e04eb2..390daf94d847 100644
--- a/drivers/media/radio/Makefile
+++ b/drivers/media/radio/Makefile
@@ -27,4 +27,4 @@ obj-$(CONFIG_RADIO_TIMBERDALE) += radio-timb.o
27obj-$(CONFIG_RADIO_WL1273) += radio-wl1273.o 27obj-$(CONFIG_RADIO_WL1273) += radio-wl1273.o
28obj-$(CONFIG_RADIO_WL128X) += wl128x/ 28obj-$(CONFIG_RADIO_WL128X) += wl128x/
29 29
30EXTRA_CFLAGS += -Isound 30ccflags-y += -Isound
diff --git a/drivers/media/radio/radio-si4713.c b/drivers/media/radio/radio-si4713.c
index 444b4cf7e65c..d1fab5885061 100644
--- a/drivers/media/radio/radio-si4713.c
+++ b/drivers/media/radio/radio-si4713.c
@@ -92,10 +92,6 @@ static int radio_si4713_s_audout(struct file *file, void *priv,
92static int radio_si4713_querycap(struct file *file, void *priv, 92static int radio_si4713_querycap(struct file *file, void *priv,
93 struct v4l2_capability *capability) 93 struct v4l2_capability *capability)
94{ 94{
95 struct radio_si4713_device *rsdev;
96
97 rsdev = video_get_drvdata(video_devdata(file));
98
99 strlcpy(capability->driver, "radio-si4713", sizeof(capability->driver)); 95 strlcpy(capability->driver, "radio-si4713", sizeof(capability->driver));
100 strlcpy(capability->card, "Silicon Labs Si4713 Modulator", 96 strlcpy(capability->card, "Silicon Labs Si4713 Modulator",
101 sizeof(capability->card)); 97 sizeof(capability->card));
diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c
index 46cacf845049..6d1e4e750f63 100644
--- a/drivers/media/radio/radio-wl1273.c
+++ b/drivers/media/radio/radio-wl1273.c
@@ -2109,7 +2109,7 @@ static int __devinit wl1273_fm_radio_probe(struct platform_device *pdev)
2109 V4L2_CID_TUNE_ANTENNA_CAPACITOR, 2109 V4L2_CID_TUNE_ANTENNA_CAPACITOR,
2110 0, 255, 1, 255); 2110 0, 255, 1, 255);
2111 if (ctrl) 2111 if (ctrl)
2112 ctrl->is_volatile = 1; 2112 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;
2113 2113
2114 if (radio->ctrl_handler.error) { 2114 if (radio->ctrl_handler.error) {
2115 r = radio->ctrl_handler.error; 2115 r = radio->ctrl_handler.error;
diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c
index 4cf537043f99..a6ad707fae96 100644
--- a/drivers/media/radio/si470x/radio-si470x-usb.c
+++ b/drivers/media/radio/si470x/radio-si470x-usb.c
@@ -395,7 +395,6 @@ int si470x_disconnect_check(struct si470x_device *radio)
395static void si470x_int_in_callback(struct urb *urb) 395static void si470x_int_in_callback(struct urb *urb)
396{ 396{
397 struct si470x_device *radio = urb->context; 397 struct si470x_device *radio = urb->context;
398 unsigned char buf[RDS_REPORT_SIZE];
399 int retval; 398 int retval;
400 unsigned char regnr; 399 unsigned char regnr;
401 unsigned char blocknum; 400 unsigned char blocknum;
@@ -423,7 +422,6 @@ static void si470x_int_in_callback(struct urb *urb)
423 422
424 if (urb->actual_length > 0) { 423 if (urb->actual_length > 0) {
425 /* Update RDS registers with URB data */ 424 /* Update RDS registers with URB data */
426 buf[0] = RDS_REPORT;
427 for (regnr = 0; regnr < RDS_REGISTER_NUM; regnr++) 425 for (regnr = 0; regnr < RDS_REGISTER_NUM; regnr++)
428 radio->registers[STATUSRSSI + regnr] = 426 radio->registers[STATUSRSSI + regnr] =
429 get_unaligned_be16(&radio->int_in_buffer[ 427 get_unaligned_be16(&radio->int_in_buffer[
diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c
index ec1d52f38904..b93d8cf23b03 100644
--- a/drivers/media/radio/wl128x/fmdrv_v4l2.c
+++ b/drivers/media/radio/wl128x/fmdrv_v4l2.c
@@ -84,12 +84,14 @@ static ssize_t fm_v4l2_fops_write(struct file *file, const char __user * buf,
84 ret = copy_from_user(&rds, buf, sizeof(rds)); 84 ret = copy_from_user(&rds, buf, sizeof(rds));
85 fmdbg("(%d)type: %d, text %s, af %d\n", 85 fmdbg("(%d)type: %d, text %s, af %d\n",
86 ret, rds.text_type, rds.text, rds.af_freq); 86 ret, rds.text_type, rds.text, rds.af_freq);
87 if (ret)
88 return -EFAULT;
87 89
88 fmdev = video_drvdata(file); 90 fmdev = video_drvdata(file);
89 fm_tx_set_radio_text(fmdev, rds.text, rds.text_type); 91 fm_tx_set_radio_text(fmdev, rds.text, rds.text_type);
90 fm_tx_set_af(fmdev, rds.af_freq); 92 fm_tx_set_af(fmdev, rds.af_freq);
91 93
92 return 0; 94 return sizeof(rds);
93} 95}
94 96
95static u32 fm_v4l2_fops_poll(struct file *file, struct poll_table_struct *pts) 97static u32 fm_v4l2_fops_poll(struct file *file, struct poll_table_struct *pts)
@@ -557,7 +559,7 @@ int fm_v4l2_init_video_device(struct fmdev *fmdev, int radio_nr)
557 255, 1, 255); 559 255, 1, 255);
558 560
559 if (ctrl) 561 if (ctrl)
560 ctrl->is_volatile = 1; 562 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;
561 563
562 return 0; 564 return 0;
563} 565}