diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-12-08 09:44:47 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-08 09:44:47 -0500 |
commit | bf35df66f1c613b46e054ca35ceb5caddacc6fa8 (patch) | |
tree | ef9dfb802e815b88fb8193d63830eb5b085a939d /include/sound/jack.h | |
parent | e5edba464c11d9d42550f9e3ff97f25196ba50b2 (diff) |
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>
Diffstat (limited to 'include/sound/jack.h')
-rw-r--r-- | include/sound/jack.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, | |||
105 | { | 105 | { |
106 | } | 106 | } |
107 | 107 | ||
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 | |||
108 | static inline void snd_jack_report(struct snd_jack *jack, int status) | 115 | static inline void snd_jack_report(struct snd_jack *jack, int status) |
109 | { | 116 | { |
110 | } | 117 | } |