Skip to content

Commit

Permalink
ASoC: Remove snd_soc_jack_new()
Browse files Browse the repository at this point in the history
There are no users of snd_soc_jack_new() left and new users should use
snd_soc_card_jack_new() instead. So remove the function.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Mar 4, 2015
1 parent 7ba8cbb commit 77c7176
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1484,26 +1484,6 @@ static inline struct snd_soc_platform *snd_soc_kcontrol_platform(
return snd_soc_component_to_platform(snd_soc_kcontrol_component(kcontrol));
}

/**
* snd_soc_jack_new - Create a new jack
* @codec: ASoC CODEC
* @id: an identifying string for this jack
* @type: a bitmask of enum snd_jack_type values that can be detected by
* this jack
* @jack: structure to use for the jack
*
* Creates a new jack object.
*
* Returns zero if successful, or a negative error code on failure.
* On success jack will be initialised.
*/
static inline int snd_soc_jack_new(struct snd_soc_codec *codec, const char *id,
int type, struct snd_soc_jack *jack)
{
return snd_soc_card_jack_new(codec->component.card, id, type, jack,
NULL, 0);
}

int snd_soc_util_init(void);
void snd_soc_util_exit(void);

Expand Down

0 comments on commit 77c7176

Please sign in to comment.