[PATCH v3] usbtv: Enforce standard for color decoding

2018-04-09 Thread Hugo Grostabussiat
was chosen. Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 45 --- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index 6cad50d1e5f8..767fab1cc5cf

[PATCH v2 4/6] usbtv: Keep norm parameter specific

2018-04-08 Thread Hugo Grostabussiat
user had specified V4L2_STD_NTSC, since this is always the first bitfield we match the norm value against before configuring the hardware. The norm_params array is only there to match a norm with an output resolution. The norm value itself should not be changed. Signed-off-by: Hugo Grostabussiat

[PATCH v2 5/6] usbtv: Enforce standard for color decoding

2018-04-08 Thread Hugo Grostabussiat
was chosen. Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 45 --- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index 6cad50d1e5f8..d0bf5eb217b1

[PATCH v2 2/6] usbtv: Add SECAM support

2018-04-08 Thread Hugo Grostabussiat
x21,0x16,0x36 Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 38 ++- drivers/media/usb/usbtv/usbtv.h | 2 +- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/

[PATCH v2 6/6] usbtv: Use the constant for supported standards

2018-04-08 Thread Hugo Grostabussiat
Use the USBTV_TV_STD define instead of repeating ourselves. Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index

[PATCH v2 1/6] usbtv: Use same decoder sequence as Windows driver

2018-04-08 Thread Hugo Grostabussiat
,0x2e,0x08,0x02, 0x02,0x59,0x16,0x35,0x17,0x16,0x36 Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 40 +++ 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c ind

[PATCH v2 3/6] usbtv: Use V4L2 defines to select capture resolution

2018-04-08 Thread Hugo Grostabussiat
Make use of the V4L2_STD_525_60 and V4L2_STD_625_50 defines to determine the vertical resolution to use when capturing. V4L2_STD_525_60 (resp. V4L2_STD_625_50) is the set of standards using 525 (resp. 625) lines per frame, independently of the color encoding. Signed-off-by: Hugo Grostabussiat

[PATCH v2 0/6] usbtv: Add SECAM support and fix color encoding selection

2018-04-08 Thread Hugo Grostabussiat
cific standards (e.g. NTSC-443) can actually be selected - minor cosmetic changes Hugo Grostabussiat (6): usbtv: Use same decoder sequence as Windows driver usbtv: Add SECAM support usbtv: Use V4L2 defines to select capture resolution usbtv: Keep norm parameter specific usbtv: Enforce sta

[PATCH 1/2] usbtv: Use same decoder sequence as Windows driver

2018-02-24 Thread Hugo Grostabussiat
,0x2e,0x08,0x02, 0x02,0x59,0x16,0x35,0x17,0x16,0x36 Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c ind

[PATCH 2/2] usbtv: Add SECAM support

2018-02-24 Thread Hugo Grostabussiat
x21,0x16,0x36 Signed-off-by: Hugo Grostabussiat --- drivers/media/usb/usbtv/usbtv-video.c | 34 +- drivers/media/usb/usbtv/usbtv.h | 2 +- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/medi

[PATCH 0/2] usbtv: Add SECAM support

2018-02-24 Thread Hugo Grostabussiat
file. The second patch adds the SECAM decoder configuration sequence found in the .INF file, and exposes SECAM support to userspace. Hugo Grostabussiat (2): usbtv: Use same decoder sequence as Windows driver usbtv: Add SECAM support drivers/media/usb/usbtv/usbtv-video.c