return 0;
}
- ---- /* Add board specific DAPM widgets and routes */
- ---- ret = snd_soc_dapm_new_controls(dapm, ams_delta_dapm_widgets,
- ---- ARRAY_SIZE(ams_delta_dapm_widgets));
- ---- if (ret) {
- ---- dev_warn(card->dev,
- ---- "Failed to register DAPM controls, "
- ---- "will continue without any.\n");
- ---- return 0;
- ---- }
- ----
- ---- ret = snd_soc_dapm_add_routes(dapm, ams_delta_audio_map,
- ---- ARRAY_SIZE(ams_delta_audio_map));
- ---- if (ret) {
- ---- dev_warn(card->dev,
- ---- "Failed to set up DAPM routes, "
- ---- "will continue with codec default map.\n");
- ---- return 0;
- ---- }
- ----
/* Set up initial pin constellation */
snd_soc_dapm_disable_pin(dapm, "Mouthpiece");
------ snd_soc_dapm_enable_pin(dapm, "Earpiece");
------ snd_soc_dapm_enable_pin(dapm, "Microphone");
snd_soc_dapm_disable_pin(dapm, "Speaker");
snd_soc_dapm_disable_pin(dapm, "AGCIN");
snd_soc_dapm_disable_pin(dapm, "AGCOUT");