[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
f9611240b9
commit
617ade61ea
@@ -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) ||
|
||||
|
Reference in New Issue
Block a user