]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: aspeed: Correct value for h-total-pixels
authorJammy Huang <jammy_huang@aspeedtech.com>
Tue, 25 Jan 2022 06:44:07 +0000 (07:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:05:46 +0000 (14:05 +0200)
commit26ee497132e269896da859da37641d095622f450
tree196fd79258632eb6953c7f5397daf8e5aa4a5870
parent0526147bb21083e7891b69b30c8d2847036cfa03
media: aspeed: Correct value for h-total-pixels

[ Upstream commit 4b732a0016853eaff35944f900b0db66f3914374 ]

Previous reg-field, 0x98[11:0], stands for the period of the detected
hsync signal.
Use the correct reg, 0xa0, to get h-total in pixels.

Fixes: d2b4387f3bdf ("media: platform: Add Aspeed Video Engine driver")
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/aspeed-video.c