Skip to content

Commit

Permalink
ALSA: jack: Add dummy snd_jack_set_key() definition
Browse files Browse the repository at this point in the history
For fixing a build error with CONFIG_SND_JACK=n
  sound/soc/codecs/ts3a227e.c:223:2: error: implicit declaration of function ‘snd_jack_set_key’ [-Werror=implicit-function-declaration]

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 8, 2014
1 parent e5edba4 commit bf35df6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/sound/jack.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ static inline void snd_jack_set_parent(struct snd_jack *jack,
{
}

static inline int snd_jack_set_key(struct snd_jack *jack,
enum snd_jack_types type,
int keytype)
{
return 0;
}

static inline void snd_jack_report(struct snd_jack *jack, int status)
{
}
Expand Down

0 comments on commit bf35df6

Please sign in to comment.