• 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 » /dev/dsp open failure
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

/dev/dsp open failure

This question is answered
Appalayagari Sreedhar
Posted by Appalayagari Sreedhar
on Oct 03 2011 09:17 AM
Intellectual885 points

Hi,

I have developed a audio driver, the audio ic is interfaced with the TI DM365 processor MCBSP ports.

I am working with the 2.6.32 kernel.

I am able to play the audio using the aplay command.  but when i try to open the device using /dev/dsp i am getting the -ve value. it fails to open the device.

when i check the

>> ls /dev/dsp

it is available in the device directory.

I have enabled the Sound OSS related options in the kernel menuconfig. with the same options i am able to open the device for the tlv320aic3x device on DM365 leopard evm.

Could anyone please suggest where i am doing wrong? and help to solve this problem.

Thank you, Sreedhar.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Appalayagari Sreedhar
    Posted by Appalayagari Sreedhar
    on Oct 04 2011 09:59 AM
    Intellectual885 points

    Hi,

    When i tried to open the /dev/dsp in Read only mode it is success.

    could you please tell me how i can open the /dev/dsp in read write mode.

    Thank you, Sreedhar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Appalayagari Sreedhar
    Posted by Appalayagari Sreedhar
    on Oct 12 2011 04:15 AM
    Intellectual885 points

    Hi,

    Any clue about this issue.

    TIA , Sreedhar

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vaibhav Bedia
    Posted by Vaibhav Bedia
    on Oct 12 2011 09:06 AM
    Expert5115 points

    Hi,

    You mentioned that you are able to use the dsp node with the aic codec. Can you describe what changes you have done after which it is not working.

    Regards,

    Vaibhav

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

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

    audio PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Appalayagari Sreedhar
    Posted by Appalayagari Sreedhar
    on Oct 13 2011 01:20 AM
    Intellectual885 points

    Hi,

    The menuconfig options are same for the aic3x codec and for the codec which i have developed,

    when i try to open the open the device using the /dev/dsp it is success for aic3x but failure for my audio codec in READWRITE mode.

    the failure happens in READWRITE mode. it is success in READONLY mode.

    i feel i am missing something in my audio driver which is causing the problem when i try to open the device using the /dev/dsp.

    but after i do aplay and try to open the device using the /dev/dsp in READWRITE mode it works.

    I could not figure it out where is the problem. please provide your suggestions.

    Thank you, Sreedhar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vaibhav Bedia
    Posted by Vaibhav Bedia
    on Oct 17 2011 05:56 AM
    Expert5115 points

    Hi,

    There might be some flag in the driver setup that you are missing. Can you compare the flags in the aic3x and your custom driver?

    Regards,

    Vaibhav

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

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

    audio PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Appalayagari Sreedhar
    Posted by Appalayagari Sreedhar
    on Oct 17 2011 07:34 AM
    Intellectual885 points

    Hi vaibhav,

    Thank you very much. i will do the same.
    on further probing and testing.

    i found that if i open the device separately O_WRONLY and O_RDONLY mode it works.
    if i try to open the device using the O_RDWR mode it fails.

    is there any configuration settings i need to check.

    -Sreedhar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Appalayagari Sreedhar
    Posted by Appalayagari Sreedhar
    on Dec 06 2011 04:21 AM
    Verified Answer
    Verified by Appalayagari Sreedhar
    Intellectual885 points

    Hi Vaibhav,

    I found the problem. in my audio driver.

    In snd_soc_dai structure i have commented the

    //.symmetric_rates = 1
    then this issue not coming.

    I verified this structure in tlv320aic3x.c file there is no such
    parameter, so i commented this and resolved this problem.

    -Sreedhar

    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