https://github.com/torvalds/linux
Revision bba4449c637660d5a8b2aee5ad0206df9fd6f334 authored by Jean Delvare on 07 September 2008, 08:56:55 UTC, committed by Mauro Carvalho Chehab on 05 October 2008, 01:38:49 UTC
The zr36067 driver should return the actual bytes-per-line value when
queried with ioctl VIDIOC_G_FMT, instead of 0. Otherwise user-space
applications can get confused.

Likewise, with ioctl VIDIOC_S_FMT, we are supposed to fill the
bytes-per-line value. And we shouldn't fail if the caller sets the
initial value to something different from 0. This is perfectly valid
for applications to pre-fill this field with the value they expect.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent c014ec9
History
Tip revision: bba4449c637660d5a8b2aee5ad0206df9fd6f334 authored by Jean Delvare on 07 September 2008, 08:56:55 UTC
V4L/DVB (8958): zr36067: Return proper bytes-per-line value
Tip revision: bba4449
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.8 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top