Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf35df66 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: jack: Add dummy snd_jack_set_key() definition



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: default avatarTakashi Iwai <tiwai@suse.de>
parent e5edba46
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)
{
}