aboutsummaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-21 08:33:35 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 16:51:41 -0400
commit617ade61ea88a370c89960918eddfa10c41316f5 (patch)
tree454f435d429f26ba0268fd2b02cff539dc98fbfa /sound/i2c
parentf9611240b96fd18359531e939b09969fee556221 (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 'sound/i2c')
-rw-r--r--sound/i2c/other/tea575x-tuner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c
index 4a8fad674f02..3c6c1e3226f3 100644
--- a/sound/i2c/other/tea575x-tuner.c
+++ b/sound/i2c/other/tea575x-tuner.c
@@ -368,6 +368,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *fh,
368 if (a->tuner || a->wrap_around) 368 if (a->tuner || a->wrap_around)
369 return -EINVAL; 369 return -EINVAL;
370 370
371 if (file->f_flags & O_NONBLOCK)
372 return -EWOULDBLOCK;
373
371 if (a->rangelow || a->rangehigh) { 374 if (a->rangelow || a->rangehigh) {
372 for (i = 0; i < ARRAY_SIZE(bands); i++) { 375 for (i = 0; i < ARRAY_SIZE(bands); i++) {
373 if ((i == BAND_FM && tea->tea5759) || 376 if ((i == BAND_FM && tea->tea5759) ||