]> asedeno.scripts.mit.edu Git - linux.git/commit
media: aspeed: set hsync and vsync polarities to normal before starting mode detection
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Fri, 13 Sep 2019 18:11:05 +0000 (15:11 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:30:36 +0000 (18:30 -0300)
commit5b3f3c41c5c791c1c22cd91655e7ef4b2a1dff7c
treed32e9fc9ec331769c2fbce31b27b86d47d1a5073
parent0e78795e95c540bc49c2e094103932eb6a06e6c8
media: aspeed: set hsync and vsync polarities to normal before starting mode detection

Sometimes it detects a weird resolution such as 1024x287 when the
actual resolution is 1024x768. To resolve such an issue, this
commit adds clearing for hsync and vsync polarity register bits
at the beginning of the first mode detection. This is recommended
in the datasheet.

Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/aspeed-video.c