OSDN Git Service

[media] mem2mem_testdev: pick default format with try_fmt
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Mar 2014 13:58:24 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 13:30:08 +0000 (10:30 -0300)
commit4e8ec0a46f48c86b215a5b76f621927aa40a2440
tree2185b2db3186556aebdbb8831665d01f947ba82c
parent4340583159b354f0c967b71518699bcc814c8614
[media] mem2mem_testdev: pick default format with try_fmt

This resolves an issue raised by v4l2-compliance: if the given format does
not exist, then pick a default format.

While there is an exception regarding this for TV capture drivers, this
m2m driver should do the right thing.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/mem2mem_testdev.c