diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-21 08:33:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 16:51:41 -0400 |
commit | 617ade61ea88a370c89960918eddfa10c41316f5 (patch) | |
tree | 454f435d429f26ba0268fd2b02cff539dc98fbfa /drivers/media/radio/radio-mr800.c | |
parent | f9611240b96fd18359531e939b09969fee556221 (diff) |
[media] radio drivers: in non-blocking mode return EAGAIN in hwseek
VIDIOC_S_HW_FREQ_SEEK should return EAGAIN when called in non-blocking
mode. This might change in the future if we add support for this in the
future, but right now this is not supported.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-mr800.c')
-rw-r--r-- | drivers/media/radio/radio-mr800.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 720bf0da599c..9c5a267b60b4 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c | |||
@@ -360,6 +360,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *priv, | |||
360 | if (seek->tuner != 0 || !seek->wrap_around) | 360 | if (seek->tuner != 0 || !seek->wrap_around) |
361 | return -EINVAL; | 361 | return -EINVAL; |
362 | 362 | ||
363 | if (file->f_flags & O_NONBLOCK) | ||
364 | return -EWOULDBLOCK; | ||
365 | |||
363 | retval = amradio_send_cmd(radio, | 366 | retval = amradio_send_cmd(radio, |
364 | AMRADIO_SET_SEARCH_LVL, 0, buf, 8, false); | 367 | AMRADIO_SET_SEARCH_LVL, 0, buf, 8, false); |
365 | if (retval) | 368 | if (retval) |