Skip to content

Commit bf35df6

Browse files
committed
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: Takashi Iwai <tiwai@suse.de>
1 parent e5edba4 commit bf35df6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎include/sound/jack.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ static inline void snd_jack_set_parent(struct snd_jack *jack,
105105
{
106106
}
107107

108+
static inline int snd_jack_set_key(struct snd_jack *jack,
109+
enum snd_jack_types type,
110+
int keytype)
111+
{
112+
return 0;
113+
}
114+
108115
static inline void snd_jack_report(struct snd_jack *jack, int status)
109116
{
110117
}

0 commit comments

Comments
 (0)