linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix emu10k1 init breakage in 2.2.18
@ 2000-12-19 12:01 Mikael Pettersson
  2000-12-19 18:44 ` Andreas M. Kirchwitz
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Pettersson @ 2000-12-19 12:01 UTC (permalink / raw)
  To: alan; +Cc: aheitner, juri.haberland, linux-kernel, rsousa

Alan,

2.2.18 broke the emu10k1 driver when compiled into the kernel.
The problem is that 2.2.18 now implements 2.4-style module_init,
so emu10k1 ended up being initialised twice when built non-modular,
which rendered it dysfunctional. The fix is to remove the now
obsolete explicit init calls. Patch below. Please apply.

/Mikael

--- linux-2.2.19pre2/drivers/sound/emu10k1/main.c.~1~	Mon Dec 11 22:10:15 2000
+++ linux-2.2.19pre2/drivers/sound/emu10k1/main.c	Tue Dec 19 12:28:33 2000
@@ -784,10 +784,3 @@
 
 module_init(emu10k1_init_module);
 module_exit(emu10k1_cleanup_module);
-
-#ifndef MODULE
-int __init init_emu10k1(void)
-{
-        return emu10k1_init_module();
-}
-#endif
--- linux-2.2.19pre2/drivers/sound/sound_core.c.~1~	Mon Dec 11 22:10:15 2000
+++ linux-2.2.19pre2/drivers/sound/sound_core.c	Tue Dec 19 12:28:20 2000
@@ -63,7 +63,6 @@
 extern int init_solo1(void);
 extern int init_ymf7xxsb_module(void);
 extern int cs_probe(void);
-extern int init_emu10k1(void);
 extern int cs4281_probe(void);
 extern void init_vwsnd(void);
 extern int ymf_probe(void);
@@ -434,9 +433,6 @@
 #endif
 #ifdef CONFIG_SOUND_CS4281
 	cs4281_probe();
-#endif
-#ifdef CONFIG_SOUND_EMU10K1
-	init_emu10k1();
 #endif
 #ifdef CONFIG_SOUND_YMFPCI
 	ymf_probe();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fix emu10k1 init breakage in 2.2.18
  2000-12-19 12:01 [PATCH] fix emu10k1 init breakage in 2.2.18 Mikael Pettersson
@ 2000-12-19 18:44 ` Andreas M. Kirchwitz
  2000-12-20  9:44   ` Juri Haberland
  2000-12-20 20:58   ` kees
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas M. Kirchwitz @ 2000-12-19 18:44 UTC (permalink / raw)
  To: linux-kernel

Mikael Pettersson wrote:

 > 2.2.18 broke the emu10k1 driver when compiled into the kernel.
 > The problem is that 2.2.18 now implements 2.4-style module_init,
 > so emu10k1 ended up being initialised twice when built non-modular,
 > which rendered it dysfunctional. The fix is to remove the now
 > obsolete explicit init calls. Patch below. Please apply.

Is there also a fix available to make the bass and treble settings
work again in mixer applications (for example, Gnome mix 1.2.0)?
This is (now, was) one of the biggest advantages of this card to have
control over bass and treble settings. 

It worked for the early 2.2.18pre patches, but stopped working in
the latest ones (including final 2.2.18).

	Greetings, Andreas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fix emu10k1 init breakage in 2.2.18
  2000-12-19 18:44 ` Andreas M. Kirchwitz
@ 2000-12-20  9:44   ` Juri Haberland
  2000-12-22  1:17     ` Andreas M. Kirchwitz
  2000-12-20 20:58   ` kees
  1 sibling, 1 reply; 5+ messages in thread
From: Juri Haberland @ 2000-12-20  9:44 UTC (permalink / raw)
  To: Andreas M. Kirchwitz; +Cc: linux-kernel

"Andreas M. Kirchwitz" wrote:
> 
> Mikael Pettersson wrote:
> 
>  > 2.2.18 broke the emu10k1 driver when compiled into the kernel.
>  > The problem is that 2.2.18 now implements 2.4-style module_init,
>  > so emu10k1 ended up being initialised twice when built non-modular,
>  > which rendered it dysfunctional. The fix is to remove the now
>  > obsolete explicit init calls. Patch below. Please apply.
> 
> Is there also a fix available to make the bass and treble settings
> work again in mixer applications (for example, Gnome mix 1.2.0)?
> This is (now, was) one of the biggest advantages of this card to have
> control over bass and treble settings.
> 
> It worked for the early 2.2.18pre patches, but stopped working in
> the latest ones (including final 2.2.18).

Yes, put something like "EXTRA_CFLAGS += -DTONE_CONTROL" into the
Makefile in drivers/sound/emu10k1/

Juri

-- 
juri.haberland@innominate.com
system engineer                                         innominate AG
clustering & security                            the linux architects
tel: +49-30-308806-45   fax: -77            http://www.innominate.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fix emu10k1 init breakage in 2.2.18
  2000-12-19 18:44 ` Andreas M. Kirchwitz
  2000-12-20  9:44   ` Juri Haberland
@ 2000-12-20 20:58   ` kees
  1 sibling, 0 replies; 5+ messages in thread
From: kees @ 2000-12-20 20:58 UTC (permalink / raw)
  To: Andreas M. Kirchwitz; +Cc: linux-kernel

Hello,

The patch indeed solves the problem with EMU10K. It now works well except
from the fact that the trebble and bass controls still have been vanished.

Thanks for the patch.

Kees

BTW could it be something simular for es1371?. This also fails with 2.2.18

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fix emu10k1 init breakage in 2.2.18
  2000-12-20  9:44   ` Juri Haberland
@ 2000-12-22  1:17     ` Andreas M. Kirchwitz
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas M. Kirchwitz @ 2000-12-22  1:17 UTC (permalink / raw)
  To: linux-kernel

Juri Haberland wrote:

 >>> 2.2.18 broke the emu10k1 driver when compiled into the kernel.
 >> 
 >> Is there also a fix available to make the bass and treble settings
 >> work again in mixer applications (for example, Gnome mix 1.2.0)?
 > 
 > Yes, put something like "EXTRA_CFLAGS += -DTONE_CONTROL" into the
 > Makefile in drivers/sound/emu10k1/

Ah, TONE_CONTROL... yeah, that's it. Do you know the reason why
bass/treble controls are disabled by default? Aren't they stable
enough for production use?

I'm just wondering why anybody wants to have this turned off. ;-)

	Greetings from Berlin to Berlin ... Andreas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-12-22  1:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-19 12:01 [PATCH] fix emu10k1 init breakage in 2.2.18 Mikael Pettersson
2000-12-19 18:44 ` Andreas M. Kirchwitz
2000-12-20  9:44   ` Juri Haberland
2000-12-22  1:17     ` Andreas M. Kirchwitz
2000-12-20 20:58   ` kees

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).