diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-15 13:06:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-19 15:09:53 -0400 |
commit | ef2d41b19b8100ce63eabba9ee87953aa685921a (patch) | |
tree | e5fbedee4c7df5f62423453db180dd6c3d8e05c5 /drivers/media/platform/davinci | |
parent | 4bd3bb7129ac9a0ee3ba4b587c228f5f43b841cd (diff) |
[media] davinci: remove VPBE_ENC_DV_PRESET and rename VPBE_ENC_CUSTOM_TIMINGS
Remove VPBE_ENC_DV_PRESET (the DV_PRESET API is no longer supported) and
VPBE_ENC_CUSTOM_TIMINGS is renamed to VPBE_ENC_DV_TIMINGS since the old
"CUSTOM_TIMINGS" name is deprecated in favor of "DV_TIMINGS".
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/davinci')
-rw-r--r-- | drivers/media/platform/davinci/vpbe.c | 8 | ||||
-rw-r--r-- | drivers/media/platform/davinci/vpbe_display.c | 2 | ||||
-rw-r--r-- | drivers/media/platform/davinci/vpbe_venc.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 4ca0f9a2ad8a..2a49f00c4543 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c | |||
@@ -344,7 +344,7 @@ static int vpbe_s_dv_timings(struct vpbe_device *vpbe_dev, | |||
344 | return -EINVAL; | 344 | return -EINVAL; |
345 | 345 | ||
346 | for (i = 0; i < output->num_modes; i++) { | 346 | for (i = 0; i < output->num_modes; i++) { |
347 | if (output->modes[i].timings_type == VPBE_ENC_CUSTOM_TIMINGS && | 347 | if (output->modes[i].timings_type == VPBE_ENC_DV_TIMINGS && |
348 | !memcmp(&output->modes[i].dv_timings, | 348 | !memcmp(&output->modes[i].dv_timings, |
349 | dv_timings, sizeof(*dv_timings))) | 349 | dv_timings, sizeof(*dv_timings))) |
350 | break; | 350 | break; |
@@ -385,7 +385,7 @@ static int vpbe_g_dv_timings(struct vpbe_device *vpbe_dev, | |||
385 | struct v4l2_dv_timings *dv_timings) | 385 | struct v4l2_dv_timings *dv_timings) |
386 | { | 386 | { |
387 | if (vpbe_dev->current_timings.timings_type & | 387 | if (vpbe_dev->current_timings.timings_type & |
388 | VPBE_ENC_CUSTOM_TIMINGS) { | 388 | VPBE_ENC_DV_TIMINGS) { |
389 | *dv_timings = vpbe_dev->current_timings.dv_timings; | 389 | *dv_timings = vpbe_dev->current_timings.dv_timings; |
390 | return 0; | 390 | return 0; |
391 | } | 391 | } |
@@ -412,7 +412,7 @@ static int vpbe_enum_dv_timings(struct vpbe_device *vpbe_dev, | |||
412 | return -EINVAL; | 412 | return -EINVAL; |
413 | 413 | ||
414 | for (i = 0; i < output->num_modes; i++) { | 414 | for (i = 0; i < output->num_modes; i++) { |
415 | if (output->modes[i].timings_type == VPBE_ENC_CUSTOM_TIMINGS) { | 415 | if (output->modes[i].timings_type == VPBE_ENC_DV_TIMINGS) { |
416 | if (j == timings->index) | 416 | if (j == timings->index) |
417 | break; | 417 | break; |
418 | j++; | 418 | j++; |
@@ -515,7 +515,7 @@ static int vpbe_set_mode(struct vpbe_device *vpbe_dev, | |||
515 | return vpbe_s_std(vpbe_dev, | 515 | return vpbe_s_std(vpbe_dev, |
516 | &preset_mode->std_id); | 516 | &preset_mode->std_id); |
517 | if (preset_mode->timings_type & | 517 | if (preset_mode->timings_type & |
518 | VPBE_ENC_CUSTOM_TIMINGS) { | 518 | VPBE_ENC_DV_TIMINGS) { |
519 | dv_timings = | 519 | dv_timings = |
520 | preset_mode->dv_timings; | 520 | preset_mode->dv_timings; |
521 | return vpbe_s_dv_timings(vpbe_dev, &dv_timings); | 521 | return vpbe_s_dv_timings(vpbe_dev, &dv_timings); |
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 9f9f2c1a073f..8290fddbd47d 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c | |||
@@ -1202,7 +1202,7 @@ vpbe_display_g_dv_timings(struct file *file, void *priv, | |||
1202 | /* Get the given standard in the encoder */ | 1202 | /* Get the given standard in the encoder */ |
1203 | 1203 | ||
1204 | if (vpbe_dev->current_timings.timings_type & | 1204 | if (vpbe_dev->current_timings.timings_type & |
1205 | VPBE_ENC_CUSTOM_TIMINGS) { | 1205 | VPBE_ENC_DV_TIMINGS) { |
1206 | *dv_timings = vpbe_dev->current_timings.dv_timings; | 1206 | *dv_timings = vpbe_dev->current_timings.dv_timings; |
1207 | } else { | 1207 | } else { |
1208 | return -EINVAL; | 1208 | return -EINVAL; |
diff --git a/drivers/media/platform/davinci/vpbe_venc.c b/drivers/media/platform/davinci/vpbe_venc.c index bdbebd59df98..9546d268e2db 100644 --- a/drivers/media/platform/davinci/vpbe_venc.c +++ b/drivers/media/platform/davinci/vpbe_venc.c | |||
@@ -313,7 +313,7 @@ static int venc_set_480p59_94(struct v4l2_subdev *sd) | |||
313 | return -EINVAL; | 313 | return -EINVAL; |
314 | 314 | ||
315 | /* Setup clock at VPSS & VENC for SD */ | 315 | /* Setup clock at VPSS & VENC for SD */ |
316 | if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 27000000) < 0) | 316 | if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0) |
317 | return -EINVAL; | 317 | return -EINVAL; |
318 | 318 | ||
319 | venc_enabledigitaloutput(sd, 0); | 319 | venc_enabledigitaloutput(sd, 0); |
@@ -360,7 +360,7 @@ static int venc_set_576p50(struct v4l2_subdev *sd) | |||
360 | venc->venc_type != VPBE_VERSION_2) | 360 | venc->venc_type != VPBE_VERSION_2) |
361 | return -EINVAL; | 361 | return -EINVAL; |
362 | /* Setup clock at VPSS & VENC for SD */ | 362 | /* Setup clock at VPSS & VENC for SD */ |
363 | if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 27000000) < 0) | 363 | if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0) |
364 | return -EINVAL; | 364 | return -EINVAL; |
365 | 365 | ||
366 | venc_enabledigitaloutput(sd, 0); | 366 | venc_enabledigitaloutput(sd, 0); |
@@ -400,7 +400,7 @@ static int venc_set_720p60_internal(struct v4l2_subdev *sd) | |||
400 | struct venc_state *venc = to_state(sd); | 400 | struct venc_state *venc = to_state(sd); |
401 | struct venc_platform_data *pdata = venc->pdata; | 401 | struct venc_platform_data *pdata = venc->pdata; |
402 | 402 | ||
403 | if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 74250000) < 0) | 403 | if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0) |
404 | return -EINVAL; | 404 | return -EINVAL; |
405 | 405 | ||
406 | venc_enabledigitaloutput(sd, 0); | 406 | venc_enabledigitaloutput(sd, 0); |
@@ -428,7 +428,7 @@ static int venc_set_1080i30_internal(struct v4l2_subdev *sd) | |||
428 | struct venc_state *venc = to_state(sd); | 428 | struct venc_state *venc = to_state(sd); |
429 | struct venc_platform_data *pdata = venc->pdata; | 429 | struct venc_platform_data *pdata = venc->pdata; |
430 | 430 | ||
431 | if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 74250000) < 0) | 431 | if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0) |
432 | return -EINVAL; | 432 | return -EINVAL; |
433 | 433 | ||
434 | venc_enabledigitaloutput(sd, 0); | 434 | venc_enabledigitaloutput(sd, 0); |