media: rename MEDIA_ENT_F_DTV_DECODER to MEDIA_ENT_F_DV_DECODER
The use of 'DTV' is very confusing since it normally refers to Digital TV e.g. DVB etc. Instead use 'DV' (Digital Video), which nicely corresponds to the DV Timings API used to configure such receivers and transmitters. We keep an alias to avoid breaking userspace applications. Since this alias is only available if __KERNEL__ is *not* defined (i.e. it is only available for userspace, not kernelspace), any drivers that use it also have to be converted to the new define. These drivers are adv7604, adv7842 and tda1997x. Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

zatwierdzone przez
Mauro Carvalho Chehab

rodzic
d2dc644adf
commit
d272bc92c4
@@ -3499,6 +3499,7 @@ static int adv76xx_probe(struct i2c_client *client,
|
||||
for (i = 0; i < state->source_pad; ++i)
|
||||
state->pads[i].flags = MEDIA_PAD_FL_SINK;
|
||||
state->pads[state->source_pad].flags = MEDIA_PAD_FL_SOURCE;
|
||||
sd->entity.function = MEDIA_ENT_F_DV_DECODER;
|
||||
|
||||
err = media_entity_pads_init(&sd->entity, state->source_pad + 1,
|
||||
state->pads);
|
||||
|
@@ -3541,6 +3541,7 @@ static int adv7842_probe(struct i2c_client *client,
|
||||
INIT_DELAYED_WORK(&state->delayed_work_enable_hotplug,
|
||||
adv7842_delayed_work_enable_hotplug);
|
||||
|
||||
sd->entity.function = MEDIA_ENT_F_DV_DECODER;
|
||||
state->pad.flags = MEDIA_PAD_FL_SOURCE;
|
||||
err = media_entity_pads_init(&sd->entity, 1, &state->pad);
|
||||
if (err)
|
||||
|
@@ -2570,7 +2570,7 @@ static int tda1997x_probe(struct i2c_client *client,
|
||||
id->name, i2c_adapter_id(client->adapter),
|
||||
client->addr);
|
||||
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS;
|
||||
sd->entity.function = MEDIA_ENT_F_DTV_DECODER;
|
||||
sd->entity.function = MEDIA_ENT_F_DV_DECODER;
|
||||
sd->entity.ops = &tda1997x_media_ops;
|
||||
|
||||
/* set allowed mbus modes based on chip, bus-type, and bus-width */
|
||||
|
Reference in New Issue
Block a user