[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: any Libretto 100/110CT users out there?



Also sprach Digby Tarvin <digbyt@acm.org> (Fri, 27 Jan 2006 09:55:42
+0000):
> Hi,

Hi there,
 
> Kernel build finally completed - apparently sucessfully, though I
> havn't tried booting into it yet... so I have now tried a reboot...

How did you compile? What version? What .config?

> Sadly something still seems to be going wrong:
>  % cat /proc/asound/version
> Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17
> 14:31:44 2004 UTC). Compiled on Aug 16 2005 for kernel 2.6.8-2-386.
>  % cat /proc/asound/cards
>  --- no soundcards ---
> 
> A trawl through /var/log/kern.log gives
>  Jan 27 07:41:25 localhost kernel: Yamaha OPL3-SA soundcard not found
>  or device busy
>
> And checking my loaded modules:
>  % lsmod
>  Module                  Size  Used by
>  .
>  snd_opl3_lib            9728  0 
>  snd_hwdep               9092  1 snd_opl3_lib
>  snd_cs4231_lib         24832  0 
>  snd_mpu401_uart         7296  0 
>  snd_rawmidi            23204  1 snd_mpu401_uart
>  snd_seq_device          7944  2 snd_opl3_lib,snd_rawmidi
>  snd_pcm_oss            48168  0 
>  snd_mixer_oss          16640  1 snd_pcm_oss
>  snd_pcm                85384  2 snd_cs4231_lib,snd_pcm_oss
>  snd_page_alloc         11144  2 snd_cs4231_lib,snd_pcm
>  snd_timer              23300  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
>  snd                    50660  11
>  snd_opl3_lib,snd_hwdep,snd_cs4231_lib,snd_mpu401_uart,snd_rawmidi,sn
>  d_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore   
>             9824  1 snd
> 
> Which does seem rather different to what you listed in your earlier
> post:
>   ----------------8<--------------
>   Module                  Size  Used by
> .  wlan_wep                2976  1

Just my wirelss pcmcia

> .  toshiba                 1976  0

Toshiba's (non-acpi) driver for bios access.

>    snd_mixer_oss           9728  0
> .  snd_opl3sa2             4512  0

Necessary! This is the module which would get loaded with the
/etc/modules entry and is the main driver.

>    snd_opl3_lib            4320  1 snd_opl3sa2
>    snd_hwdep               3392  1 snd_opl3_lib
>    snd_cs4231_lib         12128  1 snd_opl3sa2
>    snd_mpu401_uart         2240  1 snd_opl3sa2
>    snd_rawmidi            10112  1 snd_mpu401_uart
>    snd_seq_device          3340  2 snd_opl3_lib,snd_rawmidi
>    snd_pcm                42856  2 snd_opl3sa2,snd_cs4231_lib
>    snd_timer              10564  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
>    snd_page_alloc          4104  2 snd_cs4231_lib,snd_pcm
> .  ath_pci                42972  0 
> .  ath_rate_sample         8392  1 ath_pci
> .  wlan                   79804  4 wlan_wep,ath_pci,ath_rate_sample
> .  ath_hal               133520  3 ath_pci,ath_rate_sample

Above 4 wireless again.

>   -------------8<-------------
> 
> I have highlighted the modules which are are at variance on the
> two systems. Here are my modules again, with the ones you don't list
> highlighted:
> 
>    snd_opl3_lib            9728  0 
>    snd_hwdep               9092  1 snd_opl3_lib
>    snd_cs4231_lib         24832  0 
>    snd_mpu401_uart         7296  0 
>    snd_rawmidi            23204  1 snd_mpu401_uart
>    snd_seq_device          7944  2 snd_opl3_lib,snd_rawmidi
> .  snd_pcm_oss            48168  0

This one is for the alsa -> oss emulation (should give you a Interface
for oss output).
 
>    snd_mixer_oss          16640  1 snd_pcm_oss
>    snd_pcm                85384  2 snd_cs4231_lib,snd_pcm_oss
>    snd_page_alloc         11144  2 snd_cs4231_lib,snd_pcm
>    snd_timer              23300  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
> .  snd                    50660  11

This one is the main alsa sound support, which is compiled into the
kernel here (no module), but shouldn't matter too much. 

> snd_opl3_lib,snd_hwdep,snd_cs4231_lib,snd_mpu401_uart,snd_rawmidi,snd
> _seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer 
.  soundcore              9824  1 snd

Like the above, but _general_ kernel sound support. Titto: compiled in
here.

> 
> There seem to be two drivers in the source tree:
> 	#    locate opl3sa2|grep .c$

You can find the modules to your kernel in /lib/modules/<version> -- it
depends on what you have configured, while looking into the source will
show you also not compiled things.

> 	/usr/src/kernel-source-2.6.8/sound/isa/opl3sa2.c
> 	/usr/src/kernel-source-2.6.8/sound/isa/snd-opl3sa2.mod.c

This one is what you need. If you have compiled your kernel with oss
support (it's depricated, since alsa is used) leave it out.

> 	/usr/src/kernel-source-2.6.8/sound/oss/opl3sa2.c
> 	/usr/src/kernel-source-2.6.8/sound/oss/opl3sa2.mod.c
> Grepping for the error string quoted above indicates that the
> 'isa' version is the one being loaded, which I am guessing is
> the correct one.
> 
> As a final test, I tried a manual load, and get:
>  # modprobe snd-opl3sa2 dma1=1 dma2=0 irq=5 midi_port=0x330
>  # fm_port=0x388 wss_port=0x530 sb_port=0x220 port=0x370
>  # opl3sa3_ymode=3
>  FATAL: Error inserting snd_opl3sa2
>  (/lib/modules/2.6.8-2-386/kernel/sound/isa/snd-opl3sa2.ko): No such
>  device FATAL: Error running install command for snd_opl3sa2

Are you sure you want load modules from this directory? This looks like
the path to a precompiled kernel (not the one you just compiled). Again,
how have you compiled/installed the kernel? Let's start there.

> Glancing at the source, it seems that the following is failing:
>         int dev, cards = 0;
> 
>         for (dev = 0; dev < SNDRV_CARDS; dev++) {
>                 if (!enable[dev])
>                         continue;
> 	#ifdef CONFIG_PNP
>                 if (isapnp[dev])
>                         continue;
> 	#endif
>                 if (snd_opl3sa2_probe(dev, NULL, NULL) >= 0)
>                         cards++;
>         }
> 	#ifdef CONFIG_PNP
>         cards += pnp_register_card_driver(&opl3sa2_pnpc_driver);
> 	#endif
> with 'cards' left as zero. It also seems to be compiled
> with 'CONFIG_PNP' set.

Forget about this.

> Any ideas?

Compare the .config from your kernel source dir with the one I send in
an earlier post. Configure your kernel the (nearly) same way. 

Compile the kernel with "make-kpkg --revision=yours.001 kernel_image".
Install the kernel-image-bla-yours.001.deb with dpkg -i <>.
That's the dabian-way doing this.

> Regards,
> Digby

sl ritch



Reply to: