1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-12 22:23:55 +00:00
linux/drivers/media
Jammy Huang a922a0cb05 media: aspeed: Correct values for detected timing
Correct timing's fp/sync/bp value based on the information below.
It should be noticed that the calculation formula should be changed
per sync polarity.

The sequence of signal: sync - backporch - video data - frontporch

The following registers start counting from sync's rising edge:
1. VR090: frame edge's left and right
2. VR094: frame edge's top and bottom
3. VR09C: counting from sync's rising edge to falling edge

[Vertical timing]
            +--+     +-------------------+     +--+
            |  |     |     v i d e o     |     |  |
         +--+  +-----+                   +-----+  +---+
       vsync+--+
   frame_top+--------+
frame_bottom+----------------------------+

                  +-------------------+
                  |     v i d e o     |
      +--+  +-----+                   +-----+  +---+
         |  |                               |  |
         +--+                               +--+
       vsync+-------------------------------+
   frame_top+-----+
frame_bottom+-------------------------+

[Horizontal timing]
            +--+     +-------------------+     +--+
            |  |     |     v i d e o     |     |  |
         +--+  +-----+                   +-----+  +---+
       hsync+--+
  frame_left+--------+
 frame_right+----------------------------+

                  +-------------------+
                  |     v i d e o     |
      +--+  +-----+                   +-----+  +---+
         |  |                               |  |
         +--+                               +--+
       hsync+-------------------------------+
  frame_left+-----+
 frame_right+-------------------------+

Ex. 1920x1200@60 whose vsync polarity is negative
  VR098: c4d3efff, VR09C: 04cc001f
  v-total = 0x4D3 (VR098[27:16]) = 1235
  v-sync  = 0x4CC (VR09C[27:16]) = 1228

[hverkuil: drop unused variable mds]

Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-01-28 19:32:50 +01:00
..
cec media: platform: cros-ec: Add brask to the match table 2022-01-23 21:18:42 +01:00
common media: saa7146: fix error logic at saa7146_vv_init() 2021-12-14 15:09:14 +01:00
dvb-core media: dvb-core: dvb_frontend: address some clang warnings 2021-11-29 10:15:04 +01:00
dvb-frontends media: media si2168: Fix spelling mistake "previsously" -> "previously" 2021-12-07 11:29:57 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: i2c: dw9714: add optional regulator support 2022-01-28 19:32:49 +01:00
mc bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
mmc
pci media: bttv: fix WARNING regression on tunerless devices 2022-01-23 21:18:43 +01:00
platform media: aspeed: Correct values for detected timing 2022-01-28 19:32:50 +01:00
radio media: media/radio: make array probe_ports static const 2022-01-23 21:18:43 +01:00
rc media: mtk-cir: simplify code 2022-01-24 01:38:32 +01:00
spi media: cxd2880: Eliminate dead code 2021-12-07 11:29:57 +01:00
test-drivers media: vivid: fix timestamp and sequence wrapping 2022-01-23 21:18:42 +01:00
tuners media: si2157: add support for DVB-C Annex C 2022-01-10 15:56:50 +01:00
usb media: gspca: make array regs_to_read static const 2022-01-23 21:18:43 +01:00
v4l2-core media: v4l: Avoid unaligned access warnings when printing 4cc modifiers 2022-01-28 19:32:49 +01:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2021-11-15 08:12:06 +00:00
Makefile