diff options
Diffstat (limited to 'drivers/media/platform/davinci/vpbe.c')
-rw-r--r-- | drivers/media/platform/davinci/vpbe.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 4ca0f9a2ad8a..33b9660b7f77 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++; |
@@ -431,7 +431,7 @@ static int vpbe_enum_dv_timings(struct vpbe_device *vpbe_dev, | |||
431 | * Sets the standard if supported by the current encoder. Return the status. | 431 | * Sets the standard if supported by the current encoder. Return the status. |
432 | * 0 - success & -EINVAL on error | 432 | * 0 - success & -EINVAL on error |
433 | */ | 433 | */ |
434 | static int vpbe_s_std(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id) | 434 | static int vpbe_s_std(struct vpbe_device *vpbe_dev, v4l2_std_id std_id) |
435 | { | 435 | { |
436 | struct vpbe_config *cfg = vpbe_dev->cfg; | 436 | struct vpbe_config *cfg = vpbe_dev->cfg; |
437 | int out_index = vpbe_dev->current_out_index; | 437 | int out_index = vpbe_dev->current_out_index; |
@@ -442,14 +442,14 @@ static int vpbe_s_std(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id) | |||
442 | V4L2_OUT_CAP_STD)) | 442 | V4L2_OUT_CAP_STD)) |
443 | return -EINVAL; | 443 | return -EINVAL; |
444 | 444 | ||
445 | ret = vpbe_get_std_info(vpbe_dev, *std_id); | 445 | ret = vpbe_get_std_info(vpbe_dev, std_id); |
446 | if (ret) | 446 | if (ret) |
447 | return ret; | 447 | return ret; |
448 | 448 | ||
449 | mutex_lock(&vpbe_dev->lock); | 449 | mutex_lock(&vpbe_dev->lock); |
450 | 450 | ||
451 | ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, | 451 | ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, |
452 | s_std_output, *std_id); | 452 | s_std_output, std_id); |
453 | /* set the lcd controller output for the given mode */ | 453 | /* set the lcd controller output for the given mode */ |
454 | if (!ret) { | 454 | if (!ret) { |
455 | struct osd_state *osd_device = vpbe_dev->osd_device; | 455 | struct osd_state *osd_device = vpbe_dev->osd_device; |
@@ -513,9 +513,9 @@ static int vpbe_set_mode(struct vpbe_device *vpbe_dev, | |||
513 | */ | 513 | */ |
514 | if (preset_mode->timings_type & VPBE_ENC_STD) | 514 | if (preset_mode->timings_type & VPBE_ENC_STD) |
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); |