drm: tda998x: Add support for CEC address 0x35
Subsystems (2)
PATCH 1/1 drm: tda998x: Add support for CEC address 0x35
From: Liviu Dudau <[email protected]>
Currently the tda998x driver only attempts to instantiate the CEC at I2C address 0x34, meaning that if the CEC is instead at 0x35 (for example, due to a conflict with another device) we will not be able to use it. Attempt to handle some such situations by trying to instantiate the CEC at 0x35 if we fail at 0x34.
[Wrote commit message -- broonie]
Signed-off-by Liviu Dudau <[email protected]>
Signed-off-by Jon Medhurst <[email protected]>
Signed-off-by Mark Brown <[email protected]>
---
I'm aware this isn't wonderful and is tied in with the general questions about how to enumerate decomposed video devices, I'm partly looking for feedback on the best way forwards here.
drivers/gpu/drm/i2c/tda998x_drv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i2c/tda998x_drv.c +2 -0
@@ -1246,6 +1246,8 @@ tda998x_encoder_init(struct i2c_client *client, priv->current_page =0xff ; priv->hdmi = client; priv->cec =i2c_new_dummy (client->adapter,0x34 ); +if (!priv->cec) + priv->cec =i2c_new_dummy (client->adapter,0x35 );if (!priv->cec) {kfree (priv);return -ENODEV ;
Signature · 1 line
2.0.0.rc2