• 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 » Data Converters » Audio Converters » Audio Converters Forum » Tas1020b sample rate change Trouble...
Share
Audio Converters
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 1 day ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 2 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 8 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

Tas1020b sample rate change Trouble...

This question is answered
Kim JinHyouk
Posted by Kim JinHyouk
on Mar 18 2012 22:30 PM
Prodigy30 points

8267.firmware.zip

I want to design TAS1020B only playback device.
I do not know English. Machine translation is used.

Thank you for your patience.

Until now, were attached to the modified firmware.

The question is ...

44.1,48,88.2,96 kHz, and the packet transmission from the host PC is changed.
But, TAS1020B is still I2S outputs 44.1khz.

44.1 / 48 / 88.2 / 96 kHz applied one by one by changing the source code was possible.

I received packets in real time according to changes in TAS1020B I2S output signal, 44.1, 48, 88.2, 96khz so I want to make changes.

I need the code modified,
Have a nice day.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Frank Minich
    Posted by Frank Minich
    on Mar 19 2012 07:24 AM
    Expert4110 points

    Mr. Kim,

    I have not yet looked at your project, but I will.

    In the mean time, to support additional sample rates, your application:

    1.  needs to indicate in the Type 1 Format Descriptor the sample rates that you support (from what you say in your email, you likely have done this correctly, since the host does send at alternate sample rates).

    2. need to handle the 'set sample rate' command from the host.  This command should result in setting-up the acg for the correct frequency.  If you're seeing only 44.1kHz I2S, this likely has not been done.

    3. modify the SOF interrupt handler so that the closed-loop acg algorithm tweaks the setting based on the current sample rate.  Again, if you're seeing only 44.1kHz I2S, this likely has not been done.

    4. will likely have to make the audio sample buffer larger, in order to hold the additional samples - this becomes apparent only when you listen to the audio.

    You may also have to send something to your DAC so that it knows the sample rate.

    Do you think that you have done all of this?  It may take me a few days to take a look at your application to see what's missing.

    One last thing:  a couple of posters have indicated that if you set the buffer size too big, the DMA doesn't work correctly.  I haven't tracked this down, but if what you are hearing is bad audio, you might want to look for forum postings regarding a maximum buffer size.

    Regards,

    Frank

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kim JinHyouk
    Posted by Kim JinHyouk
    on Mar 19 2012 08:36 AM
    Prodigy30 points

    Thanks for your reply.
    I'll get some tips above ^ ^

    I'm hardware developer. So I do not know the software.
    However, by analyzing the source code for many days,

    The description was complete update. But .....
    Word clock as measured by the oscilloscope in the 44.1KHZ did not change.

    - SoftPll.c
    # define SOF_EXPECTED_DELTA 11289
    # define SOF_EXPECTED_REMAINDER 600
    # define ACG_N 0x006A4B20
    # define ACGDCTL_VALUE 0x10
    # define ACGCTL_VALUE 0x44
    # define UPDATE_PERIOD 4

    This entry manually change it is possible to change the sampling.
    However, I am the host PC when changing the sampling in the application of this
    I want to be handled by the TAS1020.

    Change the sampling rate from the host PC,
    USB logic analyzer is shown as packet data is changing.

    This viewpoint, TAS1020B interrupt part of the firmware seems to be in need of improvement.

    Tas1020 Firmware Development Kit, or I could find some reference source alone is very difficult due to insufficient resources.

    Reference source is needed to improve interrupt.
    Let's modify based on what has given you.

    Thank you for your help. ^ ^

    Have a nice day.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Frank Minich
    Posted by Frank Minich
    on Mar 19 2012 08:54 AM
    Verified Answer
    Verified by Don Dapkus
    Expert4110 points

    Mr. Kim,

    The application in the TAS1020B FDK is written for an EVM that uses an AC97 codec.  With an AC97 codec, the clock to the codec is always at 48kHz, no matter whether the audio sample rate is 32kHz, 44.1kHz, or 48kHz;  that's why you don't see any adjustment to the ACG settings as a function of the sample rate that the host sends. 

    However, with an I2S codec, the clock must be a function of the sample rate, so when the TAS1020B receives a 'set sample rate' command, it needs to 'remember' the commanded rate, modify the ACG register settings so that the appropriate output rate is generated, and modify the softPll algorithm to close the feedback loop at that new sample rate.

    Regards,

    Frank

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kim JinHyouk
    Posted by Kim JinHyouk
    on Mar 19 2012 11:34 AM
    Prodigy30 points

    lt was a reference source for ac97.
    I understand. ^ ^

    Different sample rate to be applied,
    See the source code after the other will try to improve.

    Thanks in advice.

    Have a nice day ^ ^

    undefined
    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