Revision 333408f21590d50397f3004e3f87070fa8f52c51 authored by Trent Piepho on 03 July 2007, 18:08:10 UTC, committed by Mauro Carvalho Chehab on 03 July 2007, 18:11:14 UTC
If one uses a V4L *one* application, such as vlc or mplayer's v4l driver, as the first user after the driver is loaded, the driver wedges itself and will never capture properly. Even if one uses a V4L2 application later, it still won't work. If one uses a V4L *two* application first, such as tvtime or mplayer's v4l2 driver, then the driver will be ok. One can then run a V4L1 application, and it will work. It turns out the problem is with norm changing and the crop support that was added in 2.6.21. The driver defaults to PAL, and keeps the last norm it was set too across opens. If one changes the norm via V4L1, the cropping parameters are not reset like they should be, and they'll remain broken across device opens. This patch removes the direct setting of btv->tvnorm in the V4L1 ioctl VIDIOCSCHAN handler. The norm is set via the existing call to set_input(), which calls set_tvnorm(), which will reset the cropping values now that it is able to detect the norm change. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
1 parent 872aad4
File | Mode | Size |
---|---|---|
irq | ||
power | ||
time | ||
.gitignore | -rw-r--r-- | 51 bytes |
Kconfig.hz | -rw-r--r-- | 1.6 KB |
Kconfig.preempt | -rw-r--r-- | 2.3 KB |
Makefile | -rw-r--r-- | 2.9 KB |
acct.c | -rw-r--r-- | 15.9 KB |
audit.c | -rw-r--r-- | 34.4 KB |
audit.h | -rw-r--r-- | 4.8 KB |
auditfilter.c | -rw-r--r-- | 44.0 KB |
auditsc.c | -rw-r--r-- | 52.2 KB |
capability.c | -rw-r--r-- | 6.7 KB |
compat.c | -rw-r--r-- | 27.7 KB |
configs.c | -rw-r--r-- | 3.1 KB |
cpu.c | -rw-r--r-- | 7.5 KB |
cpuset.c | -rw-r--r-- | 79.0 KB |
delayacct.c | -rw-r--r-- | 4.3 KB |
die_notifier.c | -rw-r--r-- | 780 bytes |
dma.c | -rw-r--r-- | 3.7 KB |
exec_domain.c | -rw-r--r-- | 4.3 KB |
exit.c | -rw-r--r-- | 43.2 KB |
extable.c | -rw-r--r-- | 2.0 KB |
fork.c | -rw-r--r-- | 40.8 KB |
futex.c | -rw-r--r-- | 49.2 KB |
futex_compat.c | -rw-r--r-- | 3.7 KB |
hrtimer.c | -rw-r--r-- | 35.2 KB |
itimer.c | -rw-r--r-- | 7.8 KB |
kallsyms.c | -rw-r--r-- | 11.9 KB |
kexec.c | -rw-r--r-- | 28.9 KB |
kfifo.c | -rw-r--r-- | 5.1 KB |
kmod.c | -rw-r--r-- | 9.5 KB |
kprobes.c | -rw-r--r-- | 25.9 KB |
ksysfs.c | -rw-r--r-- | 2.3 KB |
kthread.c | -rw-r--r-- | 6.8 KB |
latency.c | -rw-r--r-- | 8.4 KB |
lockdep.c | -rw-r--r-- | 69.1 KB |
lockdep_internals.h | -rw-r--r-- | 2.4 KB |
lockdep_proc.c | -rw-r--r-- | 10.3 KB |
module.c | -rw-r--r-- | 64.2 KB |
mutex-debug.c | -rw-r--r-- | 3.1 KB |
mutex-debug.h | -rw-r--r-- | 1.7 KB |
mutex.c | -rw-r--r-- | 9.4 KB |
mutex.h | -rw-r--r-- | 1.1 KB |
nsproxy.c | -rw-r--r-- | 3.7 KB |
panic.c | -rw-r--r-- | 6.7 KB |
params.c | -rw-r--r-- | 17.5 KB |
pid.c | -rw-r--r-- | 10.2 KB |
posix-cpu-timers.c | -rw-r--r-- | 42.5 KB |
posix-timers.c | -rw-r--r-- | 29.1 KB |
printk.c | -rw-r--r-- | 28.2 KB |
profile.c | -rw-r--r-- | 15.9 KB |
ptrace.c | -rw-r--r-- | 11.0 KB |
rcupdate.c | -rw-r--r-- | 17.5 KB |
rcutorture.c | -rw-r--r-- | 26.8 KB |
relay.c | -rw-r--r-- | 26.3 KB |
resource.c | -rw-r--r-- | 15.4 KB |
rtmutex-debug.c | -rw-r--r-- | 5.7 KB |
rtmutex-debug.h | -rw-r--r-- | 1.4 KB |
rtmutex-tester.c | -rw-r--r-- | 9.0 KB |
rtmutex.c | -rw-r--r-- | 25.9 KB |
rtmutex.h | -rw-r--r-- | 1.1 KB |
rtmutex_common.h | -rw-r--r-- | 3.2 KB |
rwsem.c | -rw-r--r-- | 2.4 KB |
sched.c | -rw-r--r-- | 181.3 KB |
seccomp.c | -rw-r--r-- | 1.1 KB |
signal.c | -rw-r--r-- | 63.7 KB |
softirq.c | -rw-r--r-- | 14.5 KB |
softlockup.c | -rw-r--r-- | 4.8 KB |
spinlock.c | -rw-r--r-- | 10.6 KB |
srcu.c | -rw-r--r-- | 8.5 KB |
stacktrace.c | -rw-r--r-- | 462 bytes |
stop_machine.c | -rw-r--r-- | 4.9 KB |
sys.c | -rw-r--r-- | 56.1 KB |
sys_ni.c | -rw-r--r-- | 4.1 KB |
sysctl.c | -rw-r--r-- | 55.2 KB |
taskstats.c | -rw-r--r-- | 12.0 KB |
time.c | -rw-r--r-- | 18.8 KB |
timer.c | -rw-r--r-- | 40.6 KB |
tsacct.c | -rw-r--r-- | 3.8 KB |
uid16.c | -rw-r--r-- | 5.1 KB |
user.c | -rw-r--r-- | 5.4 KB |
utsname.c | -rw-r--r-- | 1.4 KB |
utsname_sysctl.c | -rw-r--r-- | 3.4 KB |
wait.c | -rw-r--r-- | 7.3 KB |
workqueue.c | -rw-r--r-- | 20.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...