]> git.karo-electronics.de Git - linux-beck.git/commit
[media] saa7164: fix poll bugs
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 28 Aug 2015 11:48:28 +0000 (08:48 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 11:22:41 +0000 (08:22 -0300)
commit45053edc054ac9467adfdaf4f8a39db15af22b37
treea6955a24f14419f083f8479b28b1d3cbda6f9d40
parentd6d3fe2fe118ad13ac3a24c1e45a37312b44c462
[media] saa7164: fix poll bugs

- poll doesn't return negative values, so you can't return -EINVAL.
  Instead return POLLERR.
- poll can't be called if !video_is_registered(), so this test can
  be dropped.
- poll can never do a blocking wait, so remove that check.
- poll shouldn't attempt to start streaming if the caller isn't interested
  in read events.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7164/saa7164-encoder.c