Commit 6d9f13c4 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (10314): cx25840: ignore TUNER_SET_CONFIG in the command callback.

These days TUNER_SET_CONFIG is broadcast to the other i2c devices
and that triggers a fw load on the cx25840. Ignore this command
since cx25840 isn't a tuner and you really do not want to load
the firmware that early.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d1a470fb
...@@ -1383,7 +1383,7 @@ static int cx25840_log_status(struct v4l2_subdev *sd) ...@@ -1383,7 +1383,7 @@ static int cx25840_log_status(struct v4l2_subdev *sd)
static int cx25840_command(struct i2c_client *client, unsigned cmd, void *arg) static int cx25840_command(struct i2c_client *client, unsigned cmd, void *arg)
{ {
/* ignore this command */ /* ignore this command */
if (cmd == TUNER_SET_TYPE_ADDR) if (cmd == TUNER_SET_TYPE_ADDR || cmd == TUNER_SET_CONFIG)
return 0; return 0;
/* Old-style drivers rely on initialization on first use, so /* Old-style drivers rely on initialization on first use, so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment