mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
f9611240b9
commit
617ade61ea
6 changed files with 18 additions and 0 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue