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.

Changes required to capture 4 stereo audio channels in DM8148

Hi,

We are using DM8148 based customized board in our project. We are able to capture single stereo channel perfectly. But when we try to capture four stereo channel we are not able to capture perfectly. We made below changes.

In board file :board-ti8148evm.c

static u8 ti8148_iis_serializer_direction[] = {
        RX_MODE,        RX_MODE,        RX_MODE,        RX_MODE,
        INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,
        INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,
        INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,  INACTIVE_MODE,
};

In sound/soc/davinci/davinci-pcm.c file

In function

static void davinci_pcm_enqueue_dma(struct snd_pcm_substream *substream)
{

fifo_level = 4; /*  Hard coded */

}

It  capture audio but it not perfect. We are not able hear it . It's noisey.  Can anyone suggest me if I am missing anything.

To avoid hard code I tried

.rxnumevt = 4 in board file .

But with this changes it give me an input/output error.

Reagads,

Jemish

  • Hello Jemish,

    Are you on EZSDK 5.05.02.00?

    You can refer to the below links, might be in help:

    http://processors.wiki.ti.com/index.php/TI81XX_Audio_Driver_User_Guide

    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Audio_driver_.28McASP.29

    Regards,
    Pavel

  • Hi Pavel,

    We are using  EZSDK 5.05.01.04. I have already referred the link suggested by you. But they don't provide any information of using more than one I2S lines in one mode (Rx or Tx). Can you suggest me what changes are required to capture audio with 4 I2S lines.

    Regards,

    Jemish

  • Jemish,

    Can you try to resolve with applying the following patches:

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=3894570994e9272cf6b268649d8f81ea86921eb4

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=9c46db32a1d5de85bab41a1479ebb4b03c683a81

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=73373d74349e3f476edfdf6acf194eaae7833f91

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=c44ea2c30dfc249b7ef645c71951fd4a3d62cafa

     Also, we have some info in the below thread:

    http://e2e.ti.com/support/embedded/linux/f/354/p/148881/538259.aspx#538259

    http://e2e.ti.com/support/embedded/linux/f/354/t/154752.aspx

    Regards,
    Pavel

  • Hi Pavel,

    Thanks for you suggestion. I will try with that and let you know if my query get resolved.

    Regards,

    Jemish