Patchwork [v2,5/6] pcspk: initialize PC speaker if compiled in

login
register
mail settings
Submitter Hervé Poussineau
Date April 14, 2012, 8:51 p.m.
Message ID <1334436694-3469-6-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/152556/
State New
Headers show

Comments

Hervé Poussineau - April 14, 2012, 8:51 p.m.
PC speaker has been moved to target-independant code in 71093711589dafcb920dc3bc9bb811eaf8b14101,
so do not depend of target to include it or not.

Cc: malc <av1474@comtv.ru>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 arch_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
malc - April 15, 2012, 4:57 a.m.
On Sat, 14 Apr 2012, Herv? Poussineau wrote:

> PC speaker has been moved to target-independant code in 71093711589dafcb920dc3bc9bb811eaf8b14101,
> so do not depend of target to include it or not.
> 
> Cc: malc <av1474@comtv.ru>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Herv? Poussineau <hpoussin@reactos.org>

Thanks, applied.

Patch

diff --git a/arch_init.c b/arch_init.c
index 595badf..9a35aee 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -475,7 +475,7 @@  struct soundhw {
 
 static struct soundhw soundhw[] = {
 #ifdef HAS_AUDIO_CHOICE
-#if defined(TARGET_I386) || defined(TARGET_MIPS)
+#ifdef CONFIG_PCSPK
     {
         "pcspk",
         "PC speaker",