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.

Audio Routing problem in TI SDK 8

Other Parts Discussed in Thread: TLV320AIC3100, TLV320DAC3100, TLV320AIC3106

This is the log as ti,audio-routing: we are using Am335x processor, 3.14 kernel --


[    2.606978] evm_aic3x_init,ret:0
[    2.615042] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin MONO_LOUT
[    2.622280] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPLCOM
[    2.629158] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPRCOM
[    2.638245] davinci_evm sound.12: tlv320aic31xx-hifi <-> 4803c000.mcasp mapping ok
[    2.646387] davinci_evm sound.12: ASoC: no source widget found for HPLOUT
[    2.653617] davinci_evm sound.12: ASoC: Failed to add route HPLOUT -> direct -> Headphone Jack
[    2.662721] davinci_evm sound.12: ASoC: no source widget found for HPROUT
[    2.669894] davinci_evm sound.12: ASoC: Failed to add route HPROUT -> direct -> Headphone Jack
[    2.678974] davinci_evm sound.12: ASoC: no source widget found for LLOUT
[    2.686017] davinci_evm sound.12: ASoC: Failed to add route LLOUT -> direct -> Line Out
[    2.694462] davinci_evm sound.12: ASoC: no source widget found for LROUT
[    2.701533] davinci_evm sound.12: ASoC: Failed to add route LROUT -> direct -> Line Out



in the Audio Dac Example in the wikipedia:

The snd_soc_dapm_widget and snd_soc_dapm_route structures are not going to be utilized in this case; they there if power management capabilities are taken into account. These structures can be deleted.

can we delete the widgets and damp_route structures:  below is the structure from davinci-evm.c

/* davinci-evm machine dapm widgets */
static const struct snd_soc_dapm_widget aic3x_dapm_widgets[] = {
    SND_SOC_DAPM_HP("Headphone Jack", NULL),
    SND_SOC_DAPM_LINE("Line Out", NULL),
    SND_SOC_DAPM_MIC("Mic Jack", NULL),
    SND_SOC_DAPM_LINE("Line In", NULL),
};

/* davinci-evm machine audio_mapnections to the codec pins */
static const struct snd_soc_dapm_route audio_map[] = {
    /* Headphone connected to HPLOUT, HPROUT */
    {"Headphone Jack", NULL, "HPLOUT"},
    {"Headphone Jack", NULL, "HPROUT"},

    /* Line Out connected to LLOUT, RLOUT */
    {"Line Out", NULL, "LLOUT"},
    {"Line Out", NULL, "RLOUT"},

    /* Mic connected to (MIC3L | MIC3R) */
    {"MIC3L", NULL, "Mic Bias"},
    {"MIC3R", NULL, "Mic Bias"},
    {"Mic Bias", NULL, "Mic Jack"},

    /* Line In connected to (LINE1L | LINE2L), (LINE1R | LINE2R) */
    {"LINE1L", NULL, "Line In"},
    {"LINE2L", NULL, "Line In"},
    {"LINE1R", NULL, "Line In"},
    {"LINE2R", NULL, "Line In"},
};

as i given the ti, audio routing in the dts file as like this :

        ti,audio-routing =
            "Headphone Jack",       "HPLOUT",
            "Headphone Jack",       "HPROUT",
            "Line Out",             "LLOUT",
            "Line Out",             "LROUT";

please any one help in this --

Awaiting for your replies.....

regards,

Viswanath K

  • Hi, Viswanath,

    I replied to your earlier post.

    -d2
  • Hi Don ,

    these two post are different scenario's --
    1. Earlier post is belongs to loading/adding a new codec driver.
    2. this post is about after successful adding a new codec driver -- audio routing related issues -- which is given in device tree file and those will come to davinci-evm.c -- and this file is also done for tlv320aic3106 only -- which is default one with EVM-SK board -- which is successfully loaded in EVM-SK board and audio is also coming and too loaded in our custom board also -- but NO sound -- becoz of the registers are different from tlv320aic3106 and to tlv320aic3100/tlv320dac3100(almost these two are same with 1 or 2 features).

    here we are facing the problem -- while adding a new audio codec driver --
    As the Audio DAC eaxmple -- wiki is covering only up to -- adding/loading a new codec driver --

    One point i felt very strange -- TI only not giving support for the TI - products. then who else ... here i am not having words to say..

    I am struggling from 10 days to bring-up new audio-codec.. if at all having -- FULL description -- for the Audio codec as various codec features -- why we have to post -- in the community. we will only do.

    Dont mind for my words... those are came from the issues that i faced from last 10 days.

    I need to say thank to you , at-least you replied for the post. Thanks once again.

    Regards,

    Viswanath K