On 11/06/2012 11:40 AM, Rajeev kumar wrote:
Please find below the implementation for dapm.
static const struct snd_soc_dapm_widget sta529_dapm_widgets[] = { SND_SOC_DAPM_DAC("DAC", "Play", SND_SOC_NOPM , 0, 0), SND_SOC_DAPM_ADC("ADC", "Capture", SND_SOC_NOPM, 0, 0), SND_SOC_DAPM_OUTPUT("HPL"), SND_SOC_DAPM_OUTPUT("HPR"), SND_SOC_DAPM_OUTPUT("SPKL"), SND_SOC_DAPM_OUTPUT("SPKR"), SND_SOC_DAPM_INPUT("MIC1"), };
static const struct snd_soc_dapm_route sta529_audio_map[] = { {"DAC", NULL, "output"}, {"ADC", NULL, "input"}, {"HPL", NULL, "HP Left Out"}, {"HPR", NULL, "HP Right Out"}, {"SPKL", NULL, "SPK Left Out"}, {"SPKR", NULL, "SPK Right Out"}, };
If this is all you have for DAPM routing I just wonder what the core will do with these... I mean you don't appear to have valid routing: no sign of "output", "input", "HP Left Out", etc.
But it is really odd that you can not have at least some power control bits along the paths.
This would look odd also but at least connects the widgets: static const struct snd_soc_dapm_route sta529_audio_map[] = { {"HPL", NULL, "DAC"}, {"HPR", NULL, "DAC"}, {"ADC", NULL, "MIC1"}, };
Don't you have messages during boot or module loading about DAPM route error?