Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Dominique Michel
Le Mon, 03 Jul 2006 12:13:53 +0930,
Arthur Marsh [EMAIL PROTECTED] a écrit :

 I have a PII-266 with Intel 440LX chipset, 256 MiB RAM, and SB Live! 5.1 
 model 0220 sound card which has the EMU10K1 chipset. I'm running Debian 
 Sid with 2.6.17-686 kernel.
 
 lspci reports:
 
 00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge 
 (rev 03)
 00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge 
 (rev 03)
 00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
 00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
 00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
 00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
 00:08.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
 00:08.1 Input device controller: Creative Labs SB Live! MIDI/Game Port 
 (rev 0a)
 00:0a.0 USB Controller: NEC Corporation USB (rev 43)
 00:0a.1 USB Controller: NEC Corporation USB (rev 43)
 00:0a.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
 00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
 RTL-8139/8139C/8139C+ (rev 10)
 01:00.0 VGA compatible controller: Cirrus Logic GD 5465 [Laguna] (rev 03)
 
 I like to record from line-in and mic-in, playback in stereo, and play 
 MIDI files with the on-board synth (this machine is too slow for timidity).
 
 While all the above functions work, MIDI playback whilst there is 
 significant hard disk activity causes a complete system lock-up )-: (see 
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).
 
 Can anyone suggest a known good sound card for hardware MIDI playback, 
 mic and line in that doesn't cause a system lock-up like reported with 
 the EMU10K1 based cards?
 
An emu10k1 sound card must do it just fine, I think at you have a hardware 
problem or a bad configuration. You have 256Mb ram, how big is the soundfont? 
Harddisk activity can come from swaping, so which wm are you using? I would use 
a light one as fluxbox or xfwm with so little ram. Are you sure at the program 
you are using is configured to use the synth in the emu10k1 and not a softsynth?

lock-up - check which modules are loaded, if the soundfont is loaded and the 
IRQs.
# lsmod  | grep snd
# asfxload your-soundfont.sf2
# cat /proc/interrupts

Dominique

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Arthur Marsh
Dominique Michel wrote:

 While all the above functions work, MIDI playback whilst there is 
 significant hard disk activity causes a complete system lock-up )-: (see 
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).

 Can anyone suggest a known good sound card for hardware MIDI playback, 
 mic and line in that doesn't cause a system lock-up like reported with 
 the EMU10K1 based cards?

 An emu10k1 sound card must do it just fine, I think at you have a hardware 
 problem or a bad configuration.
   You have 256Mb ram, how big is the soundfont?

-rwxr-xr-x 1 root root 7557598 2005-12-26 13:03 8mbgmsfx.sf2

The sound font loads onto the sound card, so isn't resident in main RAM.

  Harddisk activity can come from swaping, so which wm are you using?

I've reproduced the problem under kwin, twm and no window manager.

  I would use a light one as fluxbox or xfwm with so little ram.
  Are you sure at the program you are using is configured to use the
  synth in the emu10k1 and not a softsynth?

Yes, running aplaymidi -p17:0, playmidi -a and kmid using port 17:0

$ aplaymidi -l
  PortClient name  Port name
  14:0Midi Through Midi Through Port-0
  16:0EMU10K1 MPU-401 (UART)   EMU10K1 MPU-401 (UART)
  17:0Emu10k1 WaveTableEmu10k1 Port 0
  17:1Emu10k1 WaveTableEmu10k1 Port 1
  17:2Emu10k1 WaveTableEmu10k1 Port 2
  17:3Emu10k1 WaveTableEmu10k1 Port 3


 
 lock-up - check which modules are loaded, if the soundfont is loaded and the 
 IRQs.
 # lsmod  | grep snd
 # asfxload your-soundfont.sf2
 # cat /proc/interrupts
 
 Dominique

As previously mentioned, I can cause the lock-up even without any 
graphical desktop loaded.

$ lsmod|grep snd
snd_emu10k1_synth   6912  0
snd_emux_synth 30496  1 snd_emu10k1_synth
snd_seq_virmidi 6912  1 snd_emux_synth
snd_seq_midi_emul   5920  1 snd_emux_synth
snd_seq_dummy   3812  0
snd_seq_oss28672  0
snd_seq_midi8128  0
snd_seq_midi_event  6976  3 snd_seq_virmidi,snd_seq_oss,snd_seq_midi
snd_seq46224  9 
snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_emu10k1   101444  2 snd_emu10k1_synth
snd_rawmidi22560  3 snd_seq_virmidi,snd_seq_midi,snd_emu10k1
snd_ac97_codec 82720  1 snd_emu10k1
snd_ac97_bus2368  1 snd_ac97_codec
snd_pcm_oss35936  0
snd_mixer_oss  15872  1 snd_pcm_oss
snd_pcm74500  3 snd_emu10k1,snd_ac97_codec,snd_pcm_oss
snd_seq_device  7756  8 
snd_emu10k1_synth,snd_emux_synth,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_emu10k1,snd_rawmidi
snd_timer  20836  3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc  9512  2 snd_emu10k1,snd_pcm
snd_util_mem4608  2 snd_emux_synth,snd_emu10k1
snd_hwdep   8676  2 snd_emux_synth,snd_emu10k1
snd48100  15 
snd_emux_synth,snd_seq_virmidi,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore   9216  1 snd

asfxload is working correctly - the MIDI playback is silent if I omit 
asfxload between boot-up and attempting to play MIDI files.

$ cat /proc/interrupts
CPU0
   0:   14821358  XT-PIC  timer
   1:  15016  XT-PIC  i8042
   2:  0  XT-PIC  cascade
   7:  1  XT-PIC  parport0
   8:  4  XT-PIC  rtc
  10: 122818  XT-PIC  ohci_hcd:usb2, uhci_hcd:usb3, eth0
  11:   1638  XT-PIC  ehci_hcd:usb4, EMU10K1
  12: 186965  XT-PIC  ohci_hcd:usb1
  14:6970023  XT-PIC  ide0
  15: 879896  XT-PIC  ide1
NMI:  0
LOC:  0
ERR:  0
MIS:  0


Others have reported the problem at 
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952
so I don't think that it's a problem unique to me.

Regards...


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Dominique Michel
Le Mon, 03 Jul 2006 18:40:41 +0930,
Arthur Marsh [EMAIL PROTECTED] a écrit :

 Dominique Michel wrote:
 
  While all the above functions work, MIDI playback whilst there is 
  significant hard disk activity causes a complete system lock-up )-: (see 
  https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).
 
  Can anyone suggest a known good sound card for hardware MIDI playback, 
  mic and line in that doesn't cause a system lock-up like reported with 
  the EMU10K1 based cards?
 
  An emu10k1 sound card must do it just fine, I think at you have a hardware 
  problem or a bad configuration.
You have 256Mb ram, how big is the soundfont?
 
 -rwxr-xr-x 1 root root 7557598 2005-12-26 13:03 8mbgmsfx.sf2

Will be fine, the emu110k1 can use bigger soundfont, but you must first get it 
to work.

 
 The sound font loads onto the sound card, so isn't resident in main RAM.

Wrong, the sound card use ram memory.

 
 
 $ cat /proc/interrupts
 CPU0
0:   14821358  XT-PIC  timer
1:  15016  XT-PIC  i8042
2:  0  XT-PIC  cascade
7:  1  XT-PIC  parport0
8:  4  XT-PIC  rtc
   10: 122818  XT-PIC  ohci_hcd:usb2, uhci_hcd:usb3, eth0
   11:   1638  XT-PIC  ehci_hcd:usb4, EMU10K1
   12: 186965  XT-PIC  ohci_hcd:usb1
   14:6970023  XT-PIC  ide0
   15: 879896  XT-PIC  ide1
 NMI:  0
 LOC:  0
 ERR:  0
 MIS:  0
 

Here is your problem. The emu10k1 share the same IRQ as the usb, and it is very 
bad. The emu10k1 must be on its own IRQ. You must check in the bios if you can 
assign the IRQ and/or move the card in another slot. You can also try to use 
the APIC interface in the kernel, but it will be better to get ride of this 
problem at the PIC level.

You can read this if you want to know more about this:
http://www.gentoo.org/doc/en/articles/hardware-stability-p2.xml#doc_chap2

Dominique

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Arthur Marsh
Dominique Michel wrote:

 -rwxr-xr-x 1 root root 7557598 2005-12-26 13:03 8mbgmsfx.sf2
 
 Will be fine, the emu110k1 can use bigger soundfont, but you must first get 
 it to work.
 
 The sound font loads onto the sound card, so isn't resident in main RAM.
 
 Wrong, the sound card use ram memory.

I didn't know that.

 

 $ cat /proc/interrupts
 CPU0
0:   14821358  XT-PIC  timer
1:  15016  XT-PIC  i8042
2:  0  XT-PIC  cascade
7:  1  XT-PIC  parport0
8:  4  XT-PIC  rtc
   10: 122818  XT-PIC  ohci_hcd:usb2, uhci_hcd:usb3, eth0
   11:   1638  XT-PIC  ehci_hcd:usb4, EMU10K1
   12: 186965  XT-PIC  ohci_hcd:usb1
   14:6970023  XT-PIC  ide0
   15: 879896  XT-PIC  ide1
 NMI:  0
 LOC:  0
 ERR:  0
 MIS:  0

 
 Here is your problem. The emu10k1 share the same IRQ as the usb, and it is 
 very bad.
  The emu10k1 must be on its own IRQ.
  You must check in the bios if you can assign the IRQ and/or
  move the card in another slot.
 
 You can also try to use the APIC interface in the kernel, 
  but it will be better to get ride of this problem at the PIC level.
 
 You can read this if you want to know more about this:
 http://www.gentoo.org/doc/en/articles/hardware-stability-p2.xml#doc_chap2

Thanks for the link.

I tried the suggestions and ended up with:

$ cat /proc/interrupts
CPU0
   0: 100423  XT-PIC  timer
   1:121  XT-PIC  i8042
   2:  0  XT-PIC  cascade
   5:455  XT-PIC  ohci_hcd:usb2
   7:  2  XT-PIC  parport0
   8:  4  XT-PIC  rtc
  10:655  XT-PIC  uhci_hcd:usb1, ohci_hcd:usb3, eth0
  11:  2  XT-PIC  ehci_hcd:usb4
  12:413  XT-PIC  EMU10K1
  14: 395118  XT-PIC  ide0
  15:   4406  XT-PIC  ide1
NMI:  0
LOC:  0
ERR:  0
MIS:  0

but can still reproduce the lockup in single user mode by running 
playmidi -a somefile.mid and then running a disk intensive program like 
mandb at the same time.

I also disabled IDE block mode in the BIOS.

I'll look a few hard disk settings in the meantime.

Regards...


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Clemens Ladisch
Arthur Marsh wrote:
 While all the above functions work, MIDI playback whilst there is 
 significant hard disk activity causes a complete system lock-up )-: (see 
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).
 
 Can anyone suggest a known good sound card for hardware MIDI playback, 
 mic and line in that doesn't cause a system lock-up like reported with 
 the EMU10K1 based cards?

That lock-up seems to be a bug in the ALSA core, not in the Emu10k1
driver.


Regards,
Clemens

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Lee Revell
On Mon, 2006-07-03 at 12:00 +0200, Dominique Michel wrote:
 Here is your problem. The emu10k1 share the same IRQ as the usb, and
 it is very bad. The emu10k1 must be on its own IRQ. You must check in
 the bios if you can assign the IRQ and/or move the card in another
 slot. You can also try to use the APIC interface in the kernel, but it
 will be better to get ride of this problem at the PIC level.

This is not the problem at all.  PCI devices are allowed to share IRQs.

The problem is a bug in the emu10k1 MIDI driver.

Lee


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Lee Revell
On Mon, 2006-07-03 at 15:37 +0200, Clemens Ladisch wrote:
 Arthur Marsh wrote:
  While all the above functions work, MIDI playback whilst there is 
  significant hard disk activity causes a complete system lock-up )-: (see 
  https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).
  
  Can anyone suggest a known good sound card for hardware MIDI playback, 
  mic and line in that doesn't cause a system lock-up like reported with 
  the EMU10K1 based cards?
 
 That lock-up seems to be a bug in the ALSA core, not in the Emu10k1
 driver.
 

Arthur,

There's a patch from tiwai attached to bug #952 now, can you try it?

Lee


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Arthur Marsh
Lee Revell wrote:
 On Mon, 2006-07-03 at 15:37 +0200, Clemens Ladisch wrote:
 Arthur Marsh wrote:
 While all the above functions work, MIDI playback whilst there is 
 significant hard disk activity causes a complete system lock-up )-: (see 
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).

 Can anyone suggest a known good sound card for hardware MIDI playback, 
 mic and line in that doesn't cause a system lock-up like reported with 
 the EMU10K1 based cards?
 That lock-up seems to be a bug in the ALSA core, not in the Emu10k1
 driver.

 
 Arthur,
 
 There's a patch from tiwai attached to bug #952 now, can you try it?
 
 Lee

I just tried the Debian packages built from the patch and received the 
same lock-ups both in single user mode and with KDE running if there was 
significant hard disk activity )-:.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] need mic-in, line-in, line out, hardware MIDI, have SB Live! 5.1 0220 (EMU10K1)

2006-07-03 Thread Arthur Marsh
Arthur Marsh wrote:
 Lee Revell wrote:
 On Mon, 2006-07-03 at 15:37 +0200, Clemens Ladisch wrote:
 Arthur Marsh wrote:
 While all the above functions work, MIDI playback whilst there is 
 significant hard disk activity causes a complete system lock-up )-: (see 
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952 ).

 Can anyone suggest a known good sound card for hardware MIDI playback, 
 mic and line in that doesn't cause a system lock-up like reported with 
 the EMU10K1 based cards?
 That lock-up seems to be a bug in the ALSA core, not in the Emu10k1
 driver.

 Arthur,

 There's a patch from tiwai attached to bug #952 now, can you try it?

 Lee
 
 I just tried the Debian packages built from the patch and received the 
 same lock-ups both in single user mode and with KDE running if there was 
 significant hard disk activity )-:.

To answer my own question, when I tried kernel 2.6.16-2-686 (uni 
processor) on Debian unstable instead of the 2.6.17-686 kernel on Debian 
unstable, the problem disappeared. (Note that the 2.6.17-686 kernel is 
SMP-aware).

So the problem seems to either be having 2.6.17 kernel or an SMP kernel 
in combination with the EMU10K1 playing MIDI files under heavy disk 
activity.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user