Skip to content

Commit 2d772da

Browse files
Hans Verkuilmchehab
authored andcommitted
media: vivid: fix incorrect PA assignment to HDMI outputs
The initial physical address was one too low for the outputs. E.g. if 1.0.0.0 was expected, then it was set to 0.0.0.0, and 2.0.0.0 became 1.0.0.0. Signed-off-by: Hans Verkuil <[email protected]> Cc: Johan Korsnes <[email protected]> Fixes: 4ee895e ("media: vivid: reorder CEC allocation and control set-up") Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 9a43ccb commit 2d772da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/vivid/vivid-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,8 @@ static int vivid_create_instance(struct platform_device *pdev, int inst)
15711571
}
15721572
v4l2_info(&dev->v4l2_dev, "CEC adapter %s registered for HDMI output %d\n",
15731573
dev_name(&dev->cec_tx_adap[i]->devnode.dev), i);
1574-
if (i <= out_type_counter[HDMI])
1575-
cec_s_phys_addr(dev->cec_tx_adap[i], i << 12, false);
1574+
if (i < out_type_counter[HDMI])
1575+
cec_s_phys_addr(dev->cec_tx_adap[i], (i + 1) << 12, false);
15761576
else
15771577
cec_s_phys_addr(dev->cec_tx_adap[i], 0x1000, false);
15781578
}

0 commit comments

Comments
 (0)