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.
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;
}
Thanks in advance ... waiting for the reply from anyone..
regards,
Viswanath K.
This issue is fixed: it is because of configuration in the dts file. we are using i2c-0 bus but the codec details given in i2c-1 -- so that it is throwing the error.
As we changed to i2c-0 bus config- strucuture so that the error is fixed.
BUT we are NOT getting SOUND. not getting how to trace from here. as we are using tlc320aic31xx.c driver as the reference we took for the tlv320dac3100.
in this only ADC-gain -cnrl page 4-5 is only extra remaining all are same. Please kindly help me here.
regards,
Viswanath K