]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] davinci: remove VPBE_ENC_DV_PRESET and rename VPBE_ENC_CUSTOM_TIMINGS
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 15 Feb 2013 18:06:28 +0000 (15:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 19:09:53 +0000 (16:09 -0300)
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>
arch/arm/mach-davinci/board-dm644x-evm.c
arch/arm/mach-davinci/dm644x.c
drivers/media/platform/davinci/vpbe.c
drivers/media/platform/davinci/vpbe_display.c
drivers/media/platform/davinci/vpbe_venc.c
include/media/davinci/vpbe_types.h

index 71735e7797cc147d89590d27570802fa57979f3e..a02180052a761cef0b871c402829024284791adc 100644 (file)
@@ -649,7 +649,7 @@ static struct vpbe_enc_mode_info dm644xevm_enc_std_timing[] = {
 static struct vpbe_enc_mode_info dm644xevm_enc_preset_timing[] = {
        {
                .name           = "480p59_94",
-               .timings_type   = VPBE_ENC_CUSTOM_TIMINGS,
+               .timings_type   = VPBE_ENC_DV_TIMINGS,
                .dv_timings     = V4L2_DV_BT_CEA_720X480P59_94,
                .interlaced     = 0,
                .xres           = 720,
@@ -661,7 +661,7 @@ static struct vpbe_enc_mode_info dm644xevm_enc_preset_timing[] = {
        },
        {
                .name           = "576p50",
-               .timings_type   = VPBE_ENC_CUSTOM_TIMINGS,
+               .timings_type   = VPBE_ENC_DV_TIMINGS,
                .dv_timings     = V4L2_DV_BT_CEA_720X576P50,
                .interlaced     = 0,
                .xres           = 720,
index db1dd92e00af44c13f7f55f0ae364f08be1035c4..ee0e994748e0b65a0c3c40493025cd858584ff7d 100644 (file)
@@ -706,7 +706,7 @@ static int dm644x_venc_setup_clock(enum vpbe_enc_timings_type type,
                v |= DM644X_VPSS_DACCLKEN;
                writel(v, DAVINCI_SYSMOD_VIRT(SYSMOD_VPSS_CLKCTL));
                break;
-       case VPBE_ENC_CUSTOM_TIMINGS:
+       case VPBE_ENC_DV_TIMINGS:
                if (pclock <= 27000000) {
                        v |= DM644X_VPSS_DACCLKEN;
                        writel(v, DAVINCI_SYSMOD_VIRT(SYSMOD_VPSS_CLKCTL));
index 4ca0f9a2ad8a76ae07d4c463e18115b0ee2ce09c..2a49f00c454337cadfa9ceee808fc48f1a92f9fe 100644 (file)
@@ -344,7 +344,7 @@ static int vpbe_s_dv_timings(struct vpbe_device *vpbe_dev,
                return -EINVAL;
 
        for (i = 0; i < output->num_modes; i++) {
-               if (output->modes[i].timings_type == VPBE_ENC_CUSTOM_TIMINGS &&
+               if (output->modes[i].timings_type == VPBE_ENC_DV_TIMINGS &&
                    !memcmp(&output->modes[i].dv_timings,
                                dv_timings, sizeof(*dv_timings)))
                        break;
@@ -385,7 +385,7 @@ static int vpbe_g_dv_timings(struct vpbe_device *vpbe_dev,
                     struct v4l2_dv_timings *dv_timings)
 {
        if (vpbe_dev->current_timings.timings_type &
-         VPBE_ENC_CUSTOM_TIMINGS) {
+         VPBE_ENC_DV_TIMINGS) {
                *dv_timings = vpbe_dev->current_timings.dv_timings;
                return 0;
        }
@@ -412,7 +412,7 @@ static int vpbe_enum_dv_timings(struct vpbe_device *vpbe_dev,
                return -EINVAL;
 
        for (i = 0; i < output->num_modes; i++) {
-               if (output->modes[i].timings_type == VPBE_ENC_CUSTOM_TIMINGS) {
+               if (output->modes[i].timings_type == VPBE_ENC_DV_TIMINGS) {
                        if (j == timings->index)
                                break;
                        j++;
@@ -515,7 +515,7 @@ static int vpbe_set_mode(struct vpbe_device *vpbe_dev,
                                return vpbe_s_std(vpbe_dev,
                                                 &preset_mode->std_id);
                        if (preset_mode->timings_type &
-                                               VPBE_ENC_CUSTOM_TIMINGS) {
+                                               VPBE_ENC_DV_TIMINGS) {
                                dv_timings =
                                        preset_mode->dv_timings;
                                return vpbe_s_dv_timings(vpbe_dev, &dv_timings);
index 9f9f2c1a073f838cda52ad8caef82869ac57e0e7..8290fddbd47d75cf62b00104f6e49bd2254dc963 100644 (file)
@@ -1202,7 +1202,7 @@ vpbe_display_g_dv_timings(struct file *file, void *priv,
        /* Get the given standard in the encoder */
 
        if (vpbe_dev->current_timings.timings_type &
-                               VPBE_ENC_CUSTOM_TIMINGS) {
+                               VPBE_ENC_DV_TIMINGS) {
                *dv_timings = vpbe_dev->current_timings.dv_timings;
        } else {
                return -EINVAL;
index bdbebd59df98b9ee091f3177c8f18ee6c67cb632..9546d268e2dbf4206513e102086a38c37bd954fa 100644 (file)
@@ -313,7 +313,7 @@ static int venc_set_480p59_94(struct v4l2_subdev *sd)
                return -EINVAL;
 
        /* Setup clock at VPSS & VENC for SD */
-       if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 27000000) < 0)
+       if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0)
                return -EINVAL;
 
        venc_enabledigitaloutput(sd, 0);
@@ -360,7 +360,7 @@ static int venc_set_576p50(struct v4l2_subdev *sd)
            venc->venc_type != VPBE_VERSION_2)
                return -EINVAL;
        /* Setup clock at VPSS & VENC for SD */
-       if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 27000000) < 0)
+       if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0)
                return -EINVAL;
 
        venc_enabledigitaloutput(sd, 0);
@@ -400,7 +400,7 @@ static int venc_set_720p60_internal(struct v4l2_subdev *sd)
        struct venc_state *venc = to_state(sd);
        struct venc_platform_data *pdata = venc->pdata;
 
-       if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 74250000) < 0)
+       if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0)
                return -EINVAL;
 
        venc_enabledigitaloutput(sd, 0);
@@ -428,7 +428,7 @@ static int venc_set_1080i30_internal(struct v4l2_subdev *sd)
        struct venc_state *venc = to_state(sd);
        struct venc_platform_data *pdata = venc->pdata;
 
-       if (pdata->setup_clock(VPBE_ENC_CUSTOM_TIMINGS, 74250000) < 0)
+       if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0)
                return -EINVAL;
 
        venc_enabledigitaloutput(sd, 0);
index 9b85396514be33390705fdc34c4bad826fd609e1..05dbe0ba514c0bc3e657df60d5c15258b7a9dcf5 100644 (file)
@@ -26,8 +26,7 @@ enum vpbe_version {
 /* vpbe_timing_type - Timing types used in vpbe device */
 enum vpbe_enc_timings_type {
        VPBE_ENC_STD = 0x1,
-       VPBE_ENC_DV_PRESET = 0x2,
-       VPBE_ENC_CUSTOM_TIMINGS = 0x4,
+       VPBE_ENC_DV_TIMINGS = 0x4,
        /* Used when set timings through FB device interface */
        VPBE_ENC_TIMINGS_INVALID = 0x8,
 };