Skip to content

Commit

Permalink
v4l: xilinx: sdirxss: Add support to decode more ST352 payloads for 3…
Browse files Browse the repository at this point in the history
…G mode

Adds support to decode 0x88,0x89,0x8A,0x8B,0x8C byte1 from ST352 payload
in 3G mode.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
vishals-xlnx authored and Michal Simek committed Aug 28, 2017
1 parent 4258d83 commit 24ed4f9
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions drivers/media/platform/xilinx/xilinx-sdirxss.c
Expand Up @@ -852,15 +852,32 @@ static int xsdirxss_get_format(struct v4l2_subdev *sd,
break;
case XSDIRX_MODE_3G_MASK:
switch (payload & 0xFF) {
case 0x85:
case 0x88:
/* Sec 4.1.6.1 SMPTE 425-2008 */
case 0x8B:
/* Table 13 SMPTE 425-2008 */
fmt->format.width = 1280;
fmt->format.height = 720;
break;
case 0x89:
/* ST352 Table SMPTE 425-1 */
case 0x8A:
fmt->format.width = 1920;
/* Table 13 SMPTE 425-2008 */
case 0x8C:
/* Table 13 SMPTE 425-2008 */
fmt->format.height = 1080;
if (payload & 0x00400000)
/*
* bit 6 of byte 3 indicates whether
* 2048 (1) or 1920 (0)
*/
fmt->format.width = 2048;
else
fmt->format.width = 1920;
break;
default:
dev_dbg(core->dev, "Unknown SMPTE standard\n");
dev_dbg(core->dev, "Unknown 3G Mode SMPTE standard\n");
}

break;
case XSDIRX_MODE_6G_MASK:
switch (payload & 0xFF) {
Expand Down

0 comments on commit 24ed4f9

Please sign in to comment.