diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-21 14:33:35 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 22:51:41 +0200 |
commit | 617ade61ea88a370c89960918eddfa10c41316f5 (patch) | |
tree | 454f435d429f26ba0268fd2b02cff539dc98fbfa /drivers/media/radio/radio-tea5777.c | |
parent | [media] DocBook: in non-blocking mode return EAGAIN in hwseek (diff) | |
download | linux-617ade61ea88a370c89960918eddfa10c41316f5.tar.xz linux-617ade61ea88a370c89960918eddfa10c41316f5.zip |
[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-tea5777.c')
-rw-r--r-- | drivers/media/radio/radio-tea5777.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-tea5777.c b/drivers/media/radio/radio-tea5777.c index c1a2ea6e87a3..4b5190d4fea5 100644 --- a/drivers/media/radio/radio-tea5777.c +++ b/drivers/media/radio/radio-tea5777.c @@ -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) |