]> git.baikalelectronics.ru Git - kernel.git/commit
[media] adv7511: fix quantization range handling
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 28 Jun 2016 14:32:36 +0000 (11:32 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Jul 2016 16:33:56 +0000 (13:33 -0300)
commit4b89f01cb34c552faa25638ad02683a8c6ad1b5e
treef1195727ddcca9ba0c337c050e65ed23abf7b485
parent3a8ae78f3709a5996f9282a47a18e724e17311e8
[media] adv7511: fix quantization range handling

Commit 6dea6e3a4db7fbf0341f65a308aab30f63e61a08 (adv7511: improve
colorspace handling) introduced a number of bugs, specifically with
regards to YCbCr output and quantization range handling:

- if the output is not RGB, then disable the full-to-limited range
  CSC matrix since that is meant for RGB formats. YCbCr formats are
  always limited range, so there is nothing to convert. (OK, full
  range YCbCr is possible, but we don't support that right now).

- the mediabus code that was passed to adv7511_set_fmt was always cleared
  by the memset in adv7511_fill_format. This made it effectively impossible
  to select YCbCr output.

- adv7511_set_fmt never updated the rgb quantization range.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv7511.c