No shutdown code in soc-core.c
Quoted 2 lines
What are you trying to do ?
There was a "TAK" noise because of non-presence of this code. This soc_shutdown calls the respective shutdown code in codec for prevention of this kind of strange noise.In my code it is turning off the Amplifier because of which i no longer get the "TAK" sound.
So i am just wondering why this code is not present in the struct i mentioned in my previous mail.
Quoted 7 lines · ANISH KUMAR
Quoted 1 line
What are you trying to do ?
There was a "TAK" noise because of non-presence of this code. This
soc_shutdowncalls the respective shutdown code in codec for prevention of this kind of strange noise.In my code it is turning off the Amplifier because of which i no longer get the "TAK" sound.
Ok, so afaict you hear a "TAK" noise at stream shutdown and want to get rid of it. ASoC calls shutdown/close for each of it's components :-
if (cpu_dai->ops->shutdown) cpu_dai->ops->shutdown(substream, cpu_dai); if (codec_dai->ops->shutdown) codec_dai->ops->shutdown(substream, codec_dai); if (machine->ops && machine->ops->shutdown) machine->ops->shutdown(substream); if (platform->pcm_ops->close) platform->pcm_ops->close(substream);
Quoted 2 lines
So i am just wondering why this code is not present in the struct i mentioned in my previous mail.
You didn't mention any struct in your last mail.
Please explain your problems more clearly in the future. It's very difficult to help here without a good problem description or a detailed explanation of why you need this feature.
Liam
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk