upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:58 +0000 (11:54 +0900)
commite69f32b64397862e00cb6745f9098a134480828e
tree3b066bd1bd4ab534be46569b93552e7613aafd9b
parenta5384a375cb90a4ceb269144392c26c167bc381e
upstream: [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