Skip to contentSkip to conversation

vivid: fix typo causing incorrect CEC physical addresses

PATCH New Hans Verkuil 1 participant 1 message Jul 14, 2016 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vivid: fix typo causing incorrect CEC physical addresses

Fix typo in vivid that caused all HDMI outputs to have the same physical address.

drivers/media/platform/vivid/vivid-core.c +1 -1
index 9966828..7f93713 100644
@@ -1232,7 +1232,7 @@ static int vivid_create_instance(struct platform_device *pdev, int inst)
 				goto unreg_dev;
 			}
 			bus_cnt++;
-			if (bus_cnt <= in_type_counter[HDMI])
+			if (bus_cnt <= out_type_counter[HDMI])
 				cec_s_phys_addr(adap, bus_cnt << 12, false);
 			else
 				cec_s_phys_addr(adap, 0x1000, false);