Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331144
b: refs/heads/master
c: 617ade6
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 26, 2012
1 parent 0b4cf70 commit 1d65974
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9611240b96fd18359531e939b09969fee556221
refs/heads/master: 617ade61ea88a370c89960918eddfa10c41316f5
3 changes: 3 additions & 0 deletions trunk/drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *priv,
if (seek->tuner != 0 || !seek->wrap_around)
return -EINVAL;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

retval = amradio_send_cmd(radio,
AMRADIO_SET_SEARCH_LVL, 0, buf, 8, false);
if (retval)
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/radio/radio-tea5777.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *fh,
if (a->tuner || a->wrap_around)
return -EINVAL;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

if (rangelow || rangehigh) {
for (i = 0; i < ARRAY_SIZE(bands); i++) {
if (i == BAND_AM && !tea->has_am)
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/radio/radio-wl1273.c
Original file line number Diff line number Diff line change
Expand Up @@ -1693,6 +1693,9 @@ static int wl1273_fm_vidioc_s_hw_freq_seek(struct file *file, void *priv,
if (seek->tuner != 0 || seek->type != V4L2_TUNER_RADIO)
return -EINVAL;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

if (mutex_lock_interruptible(&core->lock))
return -EINTR;

Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/radio/si470x/radio-si470x-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ static int si470x_vidioc_s_hw_freq_seek(struct file *file, void *priv,
if (seek->tuner != 0)
return -EINVAL;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

return si470x_set_seek(radio, seek);
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/radio/wl128x/fmdrv_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ static int fm_v4l2_vidioc_s_hw_freq_seek(struct file *file, void *priv,
struct fmdev *fmdev = video_drvdata(file);
int ret;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

if (fmdev->curr_fmmode != FM_MODE_RX) {
ret = fmc_set_mode(fmdev, FM_MODE_RX);
if (ret != 0) {
Expand Down
3 changes: 3 additions & 0 deletions trunk/sound/i2c/other/tea575x-tuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *fh,
if (a->tuner || a->wrap_around)
return -EINVAL;

if (file->f_flags & O_NONBLOCK)
return -EWOULDBLOCK;

if (a->rangelow || a->rangehigh) {
for (i = 0; i < ARRAY_SIZE(bands); i++) {
if ((i == BAND_FM && tea->tea5759) ||
Expand Down

0 comments on commit 1d65974

Please sign in to comment.