* [PATCH] hda-emu: Implement tpacpi_set_led
@ 2013-11-01 7:17 David Henningsson
2013-11-01 9:48 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: David Henningsson @ 2013-11-01 7:17 UTC (permalink / raw)
To: alsa-devel, tiwai; +Cc: David Henningsson
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>
---
include/wrapper.h | 3 +--
snd-wrapper.c | 7 +++++++
2 files changed, 8 insertions(+), 2 deletions(-)
Note: the i915 power well functions probably needs implementing as well now
that symbol_request is changed, but this does not seem to be a problem here,
maybe because hda_i915 is not in the kernel/Makefile.am file?
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;
+}
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hda-emu: Implement tpacpi_set_led
2013-11-01 7:17 [PATCH] hda-emu: Implement tpacpi_set_led David Henningsson
@ 2013-11-01 9:48 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2013-11-01 9:48 UTC (permalink / raw)
To: David Henningsson; +Cc: alsa-devel
At Fri, 1 Nov 2013 08:17:27 +0100,
David Henningsson wrote:
>
> 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>
Thanks, applied.
Takashi
> ---
> include/wrapper.h | 3 +--
> snd-wrapper.c | 7 +++++++
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> Note: the i915 power well functions probably needs implementing as well now
> that symbol_request is changed, but this does not seem to be a problem here,
> maybe because hda_i915 is not in the kernel/Makefile.am file?
>
> 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;
> +}
> +
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-01 9:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 7:17 [PATCH] hda-emu: Implement tpacpi_set_led David Henningsson
2013-11-01 9:48 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).