This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB-AUDIO

Other Parts Discussed in Thread: OMAPL138
  • i want to play AUDIO stream from my computer(host) on my OMAP L-138 kit USB otg ,for that i wanna write some wrapper level driver ,then after insmod utilize it to play Audio which is currently play in UBUNTU...
  • is there any documentation or link to provide some proper way to do it ,..i have already seen it on DSP5535 kit ,but this time i wanna do on kernel level....
  • Hi Chirag,

    Are you trying to interface USB-audio device on OMAPL138 device ?

    USB sound card like that ?

    Please elaborate bit about your requirement.

  • Thanks stalin for your response,

                               i don't plan to connect externaly sound card to board,i am decide to make OMAP a "gadget" And my laptop to "HOST" ,then while playong song in UBUNTU ,wanna transfer that audio to OMAP ,after play that to AUDIO out port of OMAP. i have some knowledge of gadget driver ,but stuck at sound profile...

                            i have seen ALSA project doc, also search /driver/usb/gadget/ directory , though this codes are bulky and took time to understand , i need your help to establish just above functionality for education purpose.

  • Hi Chirag,

    Good, we understand your requirement.

    To configure the OMAPL38 as a audio gadget device, first, while configuring the kernel, enable the USB OTG gadget support drivers and its appropriate gadget driver.

     

    Regards,

    Shankari

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

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

  • Thanks Shankari ,

                              i know this ,but i wanna write my own driver with functionality for only my application,i am not intrested to use prebuilt library.

  • Hi Chirag,

    All the very best for attempting to write your own driver.

    Would you please tell us what type of help you expect from us?

    Audio gadget driver is available as a part of Linux .You can do a code walk through and do a tailoring on what is needed and what is not needed. 

    If you are looking for the design architecture, you can refer any generic Audio gadget driver

     

    Regards,

    Shankari.

     

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

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

  • Thanks Shankari to wish me,

                   i am need some help from TI ,recently i tried linux 3.3-psp-22.00.06-SDK and also psp-20.00.13 kernel to check them support for

    omap l138 kit ,but both of them fail to "modprobe g_audio file=path stall=0 removable=1" . i have try it with or without musb in menuconfig

    .will you say me the kernel name or PATCH to successfully  run "g_audio" .After that i will be go through that kernel API and then step by step

    write driver on the wrapper layer of ALSA .

                   And i found audio.c in every kernel /driver/usb/gadget folder directory , is that wrapper on all u_audio.c and other audio driver?

    psp-22.00.06 give me error for wrong snd-pcm ioctl at the time of modprobe

    And 20.00.13 can't insmod And give FATAL error at time of modprobe.

  • Hi Chirag,

    Have you tried enabling the AUDIO gadget driver in the linux 3.3 and ran it on your hardware? and resulted with errors?

    If you enable the above said option( refer the above snapshot of menuconfig) , then the Audio gaget driver will be an inbuilt driver; you need not insert it as a module....right?

    Would you post the complete logs including your boot logs and error messages while "insmod/modprobe"?

    Is it a custom board or a TI EVM? Is it a OMAPL138 LCDK board or DA850 SDI board?

    Have you mentioned the DaVinci PSP version incorrect in your post? Is it DaVinci PSP 03.22.00.06 ?

    I will also experiment from our end and get back to you.

    (Note: Do not verify the post if you are not done with it. In my earlier post, I guess you accidentally clicked verified button; which means, you got sufficient information on your query)

    Regards,

    Shankari

     

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

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

  • Hii Shankari,

    i have try DaVinci PSP 03.22.00.06 for g_audio module insmod, i have resolved my insmod problem for kernel.

    i have enable ALSA for Davinci and OMAP in sound card support ,Also try to insmod musb_hrd ,CPP41,CPP41-dma to run g_audio. other g_filestorage run correctly but for g_audio it gives error in interfacing .i tried lot in kernel source but can't remove that error.

    i got "aplay -l "o/p in my PC as a AUDIO subsystem added after g_audio insmod ,from ALSA it work correct ,but in dmesg continuous error "usb_set_interface failed (-32) " .Also same error at target system side.

  • Hi Chirag,

    I have tried from our end; The USB_audio driver didnot work properly for us too. I guess, that's where they are in the support of audio side of Linux PSP driver ( as the driver name implies, USB-audio gadget "experimental" ).

    We will try to forward it to expert's attention and try to provide you more information. Please bare with us.

     

    Regards,

    Shankari

     

  • Hii Shankari

    Thanks for your reply, sorry for to forget  mention my board name ,its OMAP L138 LCDK .

    will you mention any other Davinci PSP version ,that will help me to conduct g_audio and above that Kernel API stduy , i can start to write my Linux driver . And also do favour to attach your mentioned kernel .config file.

    I have already tried linux SDK kernel 3.1.10 come with SD card ,but i can't even insmod musb_hrdc.ko file .its give me error ?dma? otg (peripheral + host ) : ERROR .