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.

dm8168 audio loop back

Dear sir,

we purchased the dm8168 kit and along with that we got sd card loaded with software ezsdk and programs.we are booting the board by sd card itself.we want to do just audio loopback program.

i saw that there are some programs in the sd card in the folder codec-engines,

1)can i do audio loopback by giving input to line-in and output from line-out.?if so which is that program(name the program)and where it is located in the sd card.?

how to run the program..?..can we do by this...

etc/init.d/matrix-gui-e stop

/etc/init.d/pvr-init stop

cd /usr/share/ti/ti-code engine....?

2)In OMX examples also we have audio decode examples,ca we run that program to get our desired out put that is by giving input to line-in and output from line-out.?if so can you tell me the procedure to run the code from sd card.

3)As we know that the video applicatio given in the sd card,can we get output in hd tv with 1680p configuration (not 1080p)?

4)what should be the output of this and what i have to get in hd tv as output?

etc/init.d/matrix-gui-e stop
/etc/init.d/pvr-init stop

./decode_display_a8host_debug.xv5T -i ./sample.h264 -w 1920 -h 1080 -f 60 –d 0 -g 0

thank you.

  • Hello,

    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop

    This lines will stop the graphics plane.

    ./decode_display_a8host_debug.xv5T -i ./sample.h264 -w 1920 -h 1080 -f 60 –d 0 -g 0

    This line will run the omx demo in /usr/share/ti/ti-omx folder.
    In /usr/share/ti/data/video there is video example.

    You could run
    ./decode_display_a8host_debug.xv5T -i /usr/share/ti/data/videos/dm816x_1080p_demo.264 -w 1920 -h 1080 -f 60 –d 0 -g 0

    This demo decode->display video.

    You could check the DM816x_EZ_Software_Developers_Guide.pdf.

    Regarding 1680p resolution for display component the pixel clock should be < 165MHz.

    BR
    Margarita

  • Hello,

    Then what about  my 1) and 2) question Regarding audio loop back,you dint answer.

    ./decode_display_a8host_debug.xv5T -i ./sample.h264 -w 1920 -h 1080 -f 60 –d 0 -g 0

    This line will run the omx demo in /usr/share/ti/ti-omx folder.

    --->>>will the above line(demo) does video loop back kind of demo.

    and ,

    if i run few demo examples of sd card,i got "permission denied",why this will comw,how to over come.

    thank you.

  • Hello,

    SaLoopBack demo demonstrates simple video loop back from capture to display.
    Check this guide:
    processors.wiki.ti.com/.../TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide

    You should rebuild the linux kernel to add v4l2 capture/display driver as it is described in the guide then you could refer to e2e.ti.com/.../525510

    Regarding the audio loopback :
    There is to examples for capture and playback in example-applications/linux-driver-examples-psp04.04.00.01/audio. This demos use alsa. You could create your application.
    processors.wiki.ti.com/.../TI81XX_PSP_AUDIO_Driver_User_Guide
    processors.wiki.ti.com/.../TI81XX_PSP_HDMI_Driver_User_Guide


    BR
    Margarita
  • Hi Margarita,

    I want to do codes what we got in  sd card only which  we got with  kit.Are we having that audio loop back code in that sd card.if so tell the location in the sd card only.

    If i do copy from my laptop from the  location "example-applications/linux-driver-examples-psp04.04.00.01/audio",it will give error as the ezsdk in the sd card(old ezsdk) is different and am having recent ezsdk.As i lready informed u in other thread and u told me to install on new sd card and with recent ezsdk.still now am not able to do video loop back.

    you also told me "Regarding 1680p resolution for display component the pixel clock should be < 165MHz"how to change it?

    thank you

  • Hello,

    MOHAMMAD NASEER M N said:
    Are we having that audio loop back code in that sd card.

    No.

    We have only demos one for capture and one for playback and they are not in sd card, they should be build and cp.

    You could create your  audio loopback demo. Check the guides which I posted.

    MOHAMMAD NASEER M N said:
    As i lready informed u in other thread and u told me to install on new sd card and with recent ezsdk.still now am not able to do video loop back.

    On your sd card,could contains an older EZSDK version that is why I recommended you to create a new one. Regarding video saLoopBack demo I posted you a guide which includes how to rebuild the kernel and how to add v4l2 capture display driver if it is not added in the kernel. In the other thread are steps how to run it.

    MOHAMMAD NASEER M N said:
    3)As we know that the video applicatio given in the sd card,can we get output in hd tv with 1680p configuration (not 1080p)?

    you also told me "Regarding 1680p resolution for display component the pixel clock should be < 165MHz"how to change it?

    Check the TRM   chapter High-Definition Multimedia Interface (HDMI).

    BR
    Margarita

  • Hi Margarita,

    when i do

    "modprobe cmemk phys_start=0x94000000 phys_end=0x947fffff \

    pools=20x4096,10x131072,2x1048576"

    I got error like"CMEMK Error: Failed to request_mem_region(0x94000000, 8388608) "

    what to do with this...am doing Running the Codec Engine examples.

    thank you
  • Hi Margarita,

    when i do

    "modprobe cmemk phys_start=0x94000000 phys_end=0x947fffff \

    pools=20x4096,10x131072,2x1048576"

    I got error like"CMEMK Error: Failed to request_mem_region(0x94000000, 8388608) "

    what to do with this...am doing Running the Codec Engine examples.

    thank you
  • Hello,

    Have you change in bootargs MEM=169M?

    The syslink samples use a different memory map from the default EZSDK installation. When booting, ensure that the linux
    bootargs is changed from the default values to MEM=169M.

    Please for the new issues/questions open a new topic.


    BR
    Margarita

  • MOHAMMAD NASEER M N said:
    I want to do codes what we got in  sd card only which  we got with  kit.Are we having that audio loop back code in that sd card.if so tell the location in the sd card only.

    Mohammad,


    You can get audio loop back (capture and play audio simultaneously) with the arecord and aplay commands. You can use the default SD card for running arecord/aplay. See the below wiki pages for more info:

    3. Use the ALSA user space applications to capture data

     http://processors.wiki.ti.com/index.php/Linux_Core_Audio_User's_Guide#Generic_commands_and_instructions

    Regards,
    Pavel