• 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 » Android » Android forum » Audio record does not work in Froyo
Share
Android
  • Forum
Options
  • Subscribe via RSS

Forums

Audio record does not work in Froyo

This question is not answered
Chris Westervelt
Posted by Chris Westervelt
on Mar 10 2011 10:51 AM
Intellectual430 points

What if anything is being done to fix the record audio problems with Froyo?  There is a FIXME at line 127 of alsa_module.cpp that seems to be the problem in that the names of the audio mux devices referenced, don’t match the names in the alsa device driver so they never get set right.  Also, the sample rate gets set in the TLV320aic23 to 88khz which is obviously too fast.  Anybody have light to shed on this?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on Mar 11 2011 06:12 AM
    Genius9580 points

    Using the 'default' alsa device does not give any problems with recording or playback on AM37x evm.

    I am not in a position to comment about the sample rate setting on the TLV320aic23 device. Perhaps someone else here can answer that.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Westervelt
    Posted by Chris Westervelt
    on Mar 11 2011 08:20 AM
    Intellectual430 points

    I'm using the AM3517evm and it does not work.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • khasim
    Posted by khasim
    on Mar 11 2011 08:28 AM
    Intellectual1740 points

    We have tested Audio record and playback on AM3517 EVM, it works with out any issues. We use the sound recorder to test the same.

    Please try with the pre-built binaries in the release. Also, there are multiple ports on the board, please use the line in to record.

    Regards,

    Khasim

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Westervelt
    Posted by Chris Westervelt
    on Mar 11 2011 08:46 AM
    Intellectual430 points

    Ok so here are the details.  I am using a stock AM3517EVM and booting the latese git from rowboat via NFS.  I had to ad the 'auto' to the vold.fstab file to get the SD card mounted and it is recognized in the recorder app.  When I run the recorder app with audio connected to line 1 in, i get he following in logcat

     

    D/TIALSAModule(  815): open called for devices 00000000 in mode 0...
    I/TIALSAModule(  815): Initialized ALSA PLAYBACK device default
    E/AudioHardwareALSA(  815): RE-OPEN AFTER STANDBY:: took 59 msecs
    E/audio_input(  815): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
    E/audio_input(  815): VerifyAndSetParameter failed
    E/PVOMXEncNode(  815): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle
    D/TIALSAModule(  815): open called for devices 00040000 in mode 0...
    E/ALSAControl(  815): Control 'Analog Left AUXL Capture Switch' cannot get element info: -2
    E/ALSAControl(  815): Control 'Analog Right AUXR Capture Switch' cannot get element info: -2
    E/ALSAControl(  815): Control 'Analog Left Main Mic Capture Switch' cannot get element info: -2
    E/ALSAControl(  815): Control 'Analog Right Sub Mic Capture Switch' cannot get element info: -2
    I/TIALSAModule(  815): Initialized ALSA CAPTURE device default
    D/AcousticsModule(  815): Acoustics set_params stub called with 7.
    D/TIALSAModule(  815): route called for devices 00040000 in mode 0...
    D/AudioHardwareALSA(  815): INFO: EPIPE
    D/AudioHardwareALSA(  815): INFO: EPIPE
    W/AudioFlinger(  815): RecordThread: buffer overflow
    D/AudioHardwareALSA(  815): INFO: EPIPE
    W/AudioFlinger(  815): RecordThread: buffer overflow
    W/AudioFlinger(  815): RecordThread: buffer overflow
    W/AudioFlinger(  815): RecordThread: buffer overflow

    the buffer overflows will continue until i stop recording.  I added a printk to the alsa driver so I could see what was being sent to the codec.  Register 8h gets 7fh written to it which sets the codec to 88khz sample rate and accounts for the overflow.  If i use the alsa_arecord tool, the audio records fine to a wav file.  It just doesn't work in the recorder app.  Previous notes from last fall indicated that this was still in a state of flux.  I have not seen any revision notes to the contrary.  Also, as mention earlier, the code in alsa_module.cpp clearly has a FIXME where the defaults would be setup which lead me to belive there was work to be done to make this work properly.  I cant just use the pre-built binaries as I have to customize the code for my own design which uses a microphone.  So I need to be able to set the source as well as stream audio.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • khasim
    Posted by khasim
    on Mar 11 2011 09:58 AM
    Intellectual1740 points

    If you are using AM3517 EVM and rowboat sources then it should have worked. Thanks for the detailed info, one last question, which manifest file are you using to pull the sources and how are you compiling the code base ?

    Regards,

    Khasim

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Westervelt
    Posted by Chris Westervelt
    on Mar 11 2011 10:04 AM
    Intellectual430 points

    I'm green with git so I could use some help getting the information you need.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Westervelt
    Posted by Chris Westervelt
    on Mar 11 2011 10:10 AM
    Intellectual430 points

    If I understand you want to know the manifest I used to initialize which would be "rowboat-froyo.xml"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • khasim
    Posted by khasim
    on Mar 11 2011 10:13 AM
    Intellectual1740 points

    And the command you used to build the sources did you specify am3517evm as product ?

    Regards,

    Khasim

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris Westervelt
    Posted by Chris Westervelt
    on Mar 11 2011 10:32 AM
    Intellectual430 points

    yes

    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