projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5edba4
)
ALSA: jack: Add dummy snd_jack_set_key() definition
author
Takashi Iwai
<tiwai@suse.de>
Mon, 8 Dec 2014 14:44:47 +0000
(15:44 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 8 Dec 2014 14:44:47 +0000
(15:44 +0100)
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>
include/sound/jack.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/jack.h
b/include/sound/jack.h
index 67f2bbcd515e40cc3df56d67256a8dc533ce8cbe..218235030ebc19c47dc3020e67fad3272587e02e 100644
(file)
--- 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)
{
}