/* Returns zero if successful, or a negative error code on failure. On success jack will be initialised.  */
int snd_soc_jack_new(struct snd_soc_card *card, const char *id, int type, struct snd_soc_jack *jack)
/* Returns zero if successful, or a negative error code on failure. On success jack will be initialised.  */
int snd_soc_jack_new(struct snd_soc_card *card, const char *id, int type, struct snd_soc_jack *jack)
{
	jack->card = card;
	INIT_LIST_HEAD(&jack->pins);
	return snd_jack_new(card->codec->card, id, type, &jack->jack);
}