/* Logic for a wm8731 as connected on a Sharp SL-C7x0 Device  */
static int poodle_wm8731_init(struct snd_soc_codec *codec)
/* Logic for a wm8731 as connected on a Sharp SL-C7x0 Device  */
static int poodle_wm8731_init(struct snd_soc_codec *codec)
{
	int err;
	snd_soc_dapm_nc_pin(codec, "LLINEIN");
	snd_soc_dapm_nc_pin(codec, "RLINEIN");
	snd_soc_dapm_enable_pin(codec, "MICIN");
	err = snd_soc_add_controls(codec, wm8731_poodle_controls,
				ARRAY_SIZE(wm8731_poodle_controls));
	if (err < 0)
		return err;
	snd_soc_dapm_new_controls(codec, wm8731_dapm_widgets,
				  ARRAY_SIZE(wm8731_dapm_widgets));
	snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
	snd_soc_dapm_sync(codec);
	return 0;
}