[media] saa6588: add support for non-blocking mode
saa6588 always blocked while waiting for data, even if the filehandle was in non-blocking mode. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

کامیت شده توسط
Mauro Carvalho Chehab

والد
a101b947d4
کامیت
09092787e0
@@ -3266,7 +3266,9 @@ static ssize_t radio_read(struct file *file, char __user *data,
|
||||
struct bttv_fh *fh = file->private_data;
|
||||
struct bttv *btv = fh->btv;
|
||||
struct saa6588_command cmd;
|
||||
cmd.block_count = count/3;
|
||||
|
||||
cmd.block_count = count / 3;
|
||||
cmd.nonblocking = file->f_flags & O_NONBLOCK;
|
||||
cmd.buffer = data;
|
||||
cmd.instance = file;
|
||||
cmd.result = -ENODEV;
|
||||
|
مرجع در شماره جدید
Block a user