From bf35df66f1c613b46e054ca35ceb5caddacc6fa8 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 8 Dec 2014 15:44:47 +0100 Subject: [PATCH] ALSA: jack: Add dummy snd_jack_set_key() definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- include/sound/jack.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/sound/jack.h b/include/sound/jack.h index 67f2bbcd515e..218235030ebc 100644 --- a/include/sound/jack.h +++ b/include/sound/jack.h @@ -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) { } -- 2.20.1