• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » 720p, TVP7002, and general weirdness
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

720p, TVP7002, and general weirdness

This question is not answered
John Anderson
Posted by John Anderson
on Apr 19 2012 14:42 PM
Genius5165 points

I'm using the latest SDK 4.2.0.6 for the DM368.  When I try to capture 720p on the component input it fails to detect the video standard.  This is because the 7002 driver reads 749 lines instead of 750. So I decide to give the driver a bit of fudge room on that compare and then I can capture.  However the picture jiggles in the vertical and isn't centered in the horz.

Now this is our own board design, but when I tried it on the EVM I got the same line count error.  This tells me to be suspicious of our video.  The video is from an upscaling DVD player that has no component output.  So I run the HDMI into an HDMI to component convertor.  My TV monitor tells me that it's 720p standard.  The fact that the EVM gets the same error tells me that my problem may be the converted signal.  But I thought that I would throw this question out to see if anyone has had this experience.

I would be more comforting to know that our encoder could handle signals as well as the TV monitor.

JohnA

tvp7002 720p
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • John Anderson
    Posted by John Anderson
    on Apr 23 2012 15:36 PM
    Genius5165 points

    Well, I don't think it has anything to do with the convertor.  I got it working on 525p60 right out of the DVD player and the picture isn't centered properly.  Nobody else has problems with the tvp7002 register settings?

    Also it doesn't appear that there is a way to detect sync on the video while encoding.  When you check to see if video is present it loads the 7002 registers and glitches the video.

    JohnA

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 24 2012 00:35 AM
    Genius4675 points

    Hi John,

    Can you try out this branch http://arago-project.org/git/projects/?p=linux-davinci.git;a=shortlog;h=refs/heads/422-420SP this has been tested

    for tvp7002 capture on dm365evm and dm368 evm. here are some sample apps

    http://arago-project.org/git/projects/?p=examples-davinci.git;a=shortlog;h=refs/heads/422-420SP

    in this branch.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Anderson
    Posted by John Anderson
    on Apr 27 2012 12:22 PM
    Genius5165 points

    I did get the 7002 to recognize the correct number of lines in the picture by adjusting the "Line Length Tolerance" to the recommended value.  The problem I'm having now is centering the picture.  Any advice on the registers that will modify the centering?

    JohnA

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Soto
    Posted by David Soto
    on Jun 04 2012 10:28 AM
    Intellectual455 points

    Hi JohnA,

         We are also using the DM368 with the latest DVSDK and HDMI to component converter (actually we have tried with several converters in order to discard that it is the problem) and we are having the same issue, have you made some progress on this? If so, could you share your thoughts? Any help on this will be really appreciated!

    Regards,
    -David 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Anderson
    Posted by John Anderson
    on Jun 04 2012 10:34 AM
    Genius5165 points

    Adjusting the Line Length Tolerance helped with the invalid number of lines, which was causing it to fail to detect the standard.  However I still have the video shifting by line or two in the vertical, which looks like occasional vertical jitter.  This design is going to be hooked up to a specific camera.  So I've suspended trying to tweak it until I get that camera and in the meantime working on other variations of the product.

    JohnA

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Soto
    Posted by David Soto
    on Jun 04 2012 12:50 PM
    Intellectual455 points

    Hi John,

              We were seeing the same problem, after changing the line length tolerance to the recommended value according to the tvp7002 datasheet. We were able to detect the standard without problems, it seems that these converters have some instability in their video, changing the value from the value set by TI (which is less than the recommended value in the datasheet!!!) we got the problem occasionally, so we change it from the recommended to the maximum value suggested in the datasheet as well and this solved the problem with the jitter. Moreover, we were seeing an horizontal offset which we were able to solve modifying the AVID pixel start in the driver as well, here are the changes the we did:

    Index: kernel/linux-2.6.32.17-psp03.01.01.39/drivers/media/video/tvp7002.c
    ===================================================================
    --- kernel.orig/linux-2.6.32.17-psp03.01.01.39/drivers/media/video/tvp7002.c 2012-06-04 10:37:58.748491323 -0600
    +++ kernel/linux-2.6.32.17-psp03.01.01.39/drivers/media/video/tvp7002.c 2012-06-04 10:37:59.158485341 -0600
    @@ -135,7 +135,7 @@
    /* 0x3a: read only */
    /* 0x3b: read only */
    /* 0x3c: read only */
    - { TVP7002_L_LENGTH_TOL, 0x03 },
    + { TVP7002_L_LENGTH_TOL, 0x06 },
    { TVP7002_VIDEO_BWTH_CTL, 0x00 },
    { TVP7002_AVID_START_PIXEL_LSBS, 0x01 },
    { TVP7002_AVID_START_PIXEL_MSBS, 0x2c },
    @@ -619,6 +619,10 @@
    tvp7002_write_reg(sd, TVP7002_AVID_START_PIXEL_HIGH,
    TVP7002_AVID_START_PIXEL_DEFAULT);

    + err |=
    + tvp7002_write_reg(sd, TVP7002_LINE_LENGTH_TOLERENCE,
    + TVP7002_LINE_LENGTH_TOLERENCE_MAX);
    +
    if (err < 0) {
    err = -EINVAL;
    return err;
    Index: kernel/linux-2.6.32.17-psp03.01.01.39/include/media/tvp7002.h
    ===================================================================
    --- kernel.orig/linux-2.6.32.17-psp03.01.01.39/include/media/tvp7002.h 2012-06-04 10:37:58.898485440 -0600
    +++ kernel/linux-2.6.32.17-psp03.01.01.39/include/media/tvp7002.h 2012-06-04 10:51:04.988527095 -0600
    @@ -234,6 +234,8 @@
    #define TVP7002_VSYNC_ALIGNMENT_DEFAULT 0x10
    #define TVP7002_SYNC_BYPASS_DEFAULT 0x00
    #define TVP7002_LINE_LENGTH_TOLERENCE_DEFAULT 0x03
    +#define TVP7002_LINE_LENGTH_TOLERENCE_REC 0x06
    +#define TVP7002_LINE_LENGTH_TOLERENCE_MAX 0x7F
    #define TVP7002_ADC_REF_SETUP_DEFAULT 0x04
    #define TVP7002_POWER_DOWN 0x7F
    #define TVP7002_VIDEO_BANDWIDTH_CONTROL_DEFAULT 0x01
    @@ -247,7 +249,7 @@
    #define PHASE_SELECT_720p 0x16
    #define POST_DIVIDER_720p 0x0
    #define HPLL_CONTROL_720p 0xA0
    -#define AVID_START_PIXEL_LSB_720p 0x43
    +#define AVID_START_PIXEL_LSB_720p 0x23
    #define AVID_START_PIXEL_MSB_720p 0x01
    #define AVID_STOP_PIXEL_LSB_720p 0x4B
    #define AVID_STOP_PIXEL_MSB_720p 0x06

    I hope this can solve your problem as well,

    Regards, 

    -David

    tvp7002
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Anderson
    Posted by John Anderson
    on Jun 04 2012 12:54 PM
    Genius5165 points

    Thanks David,

    I will give these changes a try.  I also have the horz offset problem.

    JohnA

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use