/* Attach our controls and configure the necessary codec mappings for our sound card instance.  */
static int simtec_hermes_init(struct snd_soc_codec *codec)
/* Attach our controls and configure the necessary codec mappings for our sound card instance.  */
static int simtec_hermes_init(struct snd_soc_codec *codec)
{
	snd_soc_dapm_new_controls(codec, dapm_widgets,
				  ARRAY_SIZE(dapm_widgets));
	snd_soc_dapm_add_routes(codec, base_map, ARRAY_SIZE(base_map));
	snd_soc_dapm_enable_pin(codec, "Headphone Jack");
	snd_soc_dapm_enable_pin(codec, "Line In");
	snd_soc_dapm_enable_pin(codec, "Line Out");
	snd_soc_dapm_enable_pin(codec, "Mic Jack");
	simtec_audio_init(codec);
	snd_soc_dapm_sync(codec);
	return 0;
}