[media] media: i2c: adv748x: Map v4l2_std_id to the internal reg value
authorSimon Yuan <simon.yuan@navico.com>
Mon, 11 Sep 2017 22:26:53 +0000 (19:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 19:56:05 +0000 (16:56 -0300)
commitbc66c99a7e65d3964b4c5d10f574d462f40ae48e
tree8c09178e0cf2b315d4f149d8069fe964e9409b14
parent15a35ca66aaff3386f174cfd3daa4713976e6edc
[media] media: i2c: adv748x: Map v4l2_std_id to the internal reg value

The video standard was not mapped to the corresponding value of the
internal video standard in adv748x_afe_querystd, causing the wrong
video standard to be selected.

Fixes: 3e89586a64df ("media: i2c: adv748x: add adv748x driver")
[Kieran: Obtain the std from the afe->curr_norm]

Signed-off-by: Simon Yuan <simon.yuan@navico.com>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv748x/adv748x-afe.c