TLV320DAC3100 Audio routing or Serializer Problem- No Sound

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

TLV320DAC3100 Audio routing or Serializer Problem- No Sound

Postby viswanath » Sun May 03, 2015 10:22 am

We are using Am335x processor and 3.14 linux kernel version --
we taken tlv320aic31xx.c as the reference for the tlv320dac3100. Sound card is registered -- we are getting Audio routing problems and regulator and Remote IO error , below is the log:

tlv320aic31xx-codec 1-0018: ASoC: no sink widget found for HPLOUT
[ 2.606112] tlv320aic31xx-codec 1-0018: ASoC: Failed to add route Output Left -> Switch -> HPLOUT
[ 2.620089] tlv320aic31xx-codec 1-0018: ASoC: no sink widget found for HPROUT
[ 2.627722] tlv320aic31xx-codec 1-0018: ASoC: Failed to add route Output Right -> Switch -> HPROUT
[ 2.637300] evm_aic3x_init,np->name: sound : full name : /sound
[ 2.643646] evm_aic3x_init,ret:0
[ 2.647150] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin MONO_LOUT
[ 2.654261] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPLCOM
[ 2.661152] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPRCOM
[ 2.670229] davinci_evm sound.12: tlv320aic31xx-hifi <-> 4803c000.mcasp mapping ok


[ 2.680792] tlv320aic31xx-codec 1-0018: Failed to restore cache: -121
why this error is coming i am not getting : in the code it is related to regmap:

[ 2.885829] ALSA device list:
[ 2.889089] #0: AM335x-EVMSK


[ 4.549612] Error: Driver 'tlv320aic31xx-codec' is already registered, aborting...


[ 4.786730] Error: Driver 'davinci-mcasp' is already registered, aborting...
[ 5.614910] Error: Driver 'davinci_evm' is already registered, aborting...

ALSA: Restoring mixer settings...
No state is present for card AM335xEVMSK ----- this
Found hardware: "AM335x-EVMSK" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card AM335xEVMSK -- and this -- why two times this error was came --

As the card is loaded why this "NO State for card " error is occurring -- some thing we are missing -- in the setting or any configuration issue is there ???

--Please help in this --

in the dts file we given the audio routing as :

ti,audio-routing =
"Headphone Jack", "HPL",
"Headphone Jack", "HPR";

serializer :

serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
0 0 1 2 -- we are using AXR2 as transmit and which is a DIN pin to the codec.
>;

one more error:

[ 2.680792] tlv320aic31xx-codec 1-0018: Failed to restore cache: -121
why this error is coming i am not getting : in the code it is related to regmap:

in the the codec drvier: tlv320aic31xx.c --code -- please let me know anything we are missing here ???

regcache_cache_only(aic31xx->regmap, false);
ret = regcache_sync(aic31xx->regmap);
if (ret != 0) {
dev_err(codec->dev,
"Failed to restore cache: %d\n", ret);
regcache_cache_only(aic31xx->regmap, true);
regulator_bulk_disable(ARRAY_SIZE(aic31xx->supplies),
aic31xx->supplies);
return ret;
}

i forgot to mention one more point :

tlv320aic31xx-codec 1-0018: ASoC: no sink widget found for HPLOUT
[ 2.606112] tlv320aic31xx-codec 1-0018: ASoC: Failed to add route Output Left -> Switch -> HPLOUT
[ 2.620089] tlv320aic31xx-codec 1-0018: ASoC: no sink widget found for HPROUT
[ 2.627722] tlv320aic31xx-codec 1-0018: ASoC: Failed to add route Output Right -> Switch -> HPROUT
In DTS Audio routing is given as:
ti,audio-routing =
"Headphone Jack", "HPL",
"Headphone Jack", "HPR";

HPL and HPR because it is given in the codec driver: tlv320aic31xx.c -in this structure it is given like this
static const struct snd_soc_dapm_widget aic31xx_dapm_widgets

SND_SOC_DAPM_OUTPUT("HPL"),
SND_SOC_DAPM_OUTPUT("HPR"),

Please help me in this audio routing -- issue
-----------------------------------------------------------------------------------

and this below log is coming from davinci-evm.c : evm_aic3x_init function -- this is might because , they written this one for
tlv320aix3106 -- in and the codec driver is tlv320aic3x.c -- can we neglect this error .. ???

[ 2.647150] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin MONO_LOUT
[ 2.654261] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPLCOM
[ 2.661152] tlv320aic31xx-codec 1-0018: ASoC: DAPM unknown pin HPRCOM
viswanath
 
Posts: 1
Joined: Sun May 03, 2015 10:17 am

Re: TLV320DAC3100 Audio routing or Serializer Problem- No So

Postby WarheadsSE » Mon May 04, 2015 3:03 pm

This screams of an out-of-date pin mux. "unknown pin"
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 2 guests