aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-11-01 08:17:27 +0100
committerTakashi Iwai <tiwai@suse.de>2013-11-01 10:48:25 +0100
commit05c5a5c32299791083b16d5560b608c91224ffa2 (patch)
tree8211dcb57c2d87335a100f25fc1b451f45675654
parent5d66c403f3f77be9df1b5c0691f4e6a25bec05b2 (diff)
downloadhda-emu-05c5a5c32299791083b16d5560b608c91224ffa2.tar.gz
Implement tpacpi_set_led
This allows for testing the feature as well as avoiding a warning when testing the relevant codecs. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/wrapper.h3
-rw-r--r--snd-wrapper.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/include/wrapper.h b/include/wrapper.h
index f7dd65d..93a9f93 100644
--- a/include/wrapper.h
+++ b/include/wrapper.h
@@ -238,8 +238,7 @@ void mylock_write_unlock(int *lock, const char *file, int line);
/* FIXME */
#define IS_ENABLED(x) 1
-/* FIXME */
-#define symbol_request(x) NULL
+#define symbol_request(x) x
#define symbol_put(x)
static inline long copy_from_user(void *to, const void __user *from, unsigned long n)
diff --git a/snd-wrapper.c b/snd-wrapper.c
index 1ec8a49..dbc62c5 100644
--- a/snd-wrapper.c
+++ b/snd-wrapper.c
@@ -720,3 +720,10 @@ int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
return 0;
}
EXPORT_SYMBOL_GPL(snd_pcm_add_chmap_ctls);
+
+int tpacpi_led_set(int whichled, bool on)
+{
+ hda_log(HDA_LOG_INFO, "Setting thinkpad LED %d to %s\n", whichled, on ? "on" : "off" );
+ return 0;
+}
+