[Bug 233344] New: No sound from Crystal Audio sound card

https://bugzilla.novell.com/show_bug.cgi?id=233344 Summary: No sound from Crystal Audio sound card Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@novell.com ReportedBy: VladCodrea@mail.utexas.edu QAContact: qa@suse.de The Crystal Audio sound card on my Dell Inspiron 3200 laptop is not properly detected and no sound applications work. Using YAST to detect legacy audio cards freezes the system. When I try to play a WAVE file, I get: user@laptop:~> playwave compilation-ogg-q0.wav ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default Opened audio at 22050 Hz 16 bit stereo On an earlier Debian installation (kernel 2.6.19) I was able to hear very faint music through the laptop speakers, but the application (mpg321) still triggered ALSA errors. Another person who has an Inspiron 3200 reported (http://audacityteam.org/forum/thread/184) that the sound card works after the following commands: modprobe sound modprobe ad1848 insmod uart401 insmod cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=5 However, typing these commands doesn't enable sound for me on OpenSuse 10.2. I am attaching the dmesg below. I'd be happy to provide any other information, try out patches, or give developers SSH access to the affected computer. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #1 from VladCodrea@mail.utexas.edu 2007-01-10 13:01 MST ------- Created an attachment (id=112317) --> (https://bugzilla.novell.com/attachment.cgi?id=112317&action=view) The full dmesg showing the kernel's attempt to detect and enable the sound card -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #2 from tiwai@novell.com 2007-01-16 04:04 MST ------- First check whether alsaconf script works. If not, (and suppose cs4232 is really the correct chip), try to write the following to /etc/modprobe.d/sound alias snd-card0 snd-cs4232 options snd-cs4232 isapnp=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 Then run "rcalsasound start". (This alone won't make the driver automatically loaded at boot time, though.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #3 from VladCodrea@mail.utexas.edu 2007-01-16 16:18 MST ------- Created an attachment (id=113247) --> (https://bugzilla.novell.com/attachment.cgi?id=113247&action=view) Alsaconf error Alsaconf detected my card as snd-cs4232, but at one point it gave the error shown in the attached screenshot. I tried running "playwave compilation-ogg-q0.wav" after alsaconf finished, but playwave gave the same ALSA errors as in the original description. However, I could hear very faint music from the laptop speakers. I then tried plugging in external speakers, and noticed that they also outputted very faint music. I rebooted the computer and tried running "playwave compilation-ogg-q0.wav", but the same errors occurred and the sound was still very faint. I then modified /etc/modprobe.d/sound as you suggested and ran "rcalsasound start". The output was: Starting sound driver done Afterwards I ran "playwave compilation-ogg-q0.wav" but the same errors occurred and the sound was still very faint. Windows 98 is dual booted on this laptop and sound works well in that OS. Following are the sound card settings from Windows 98 in case they might be of any help: Sound, video and game controllers 1) Crystal PnP Audio System CODEC Manufacturer: Crystal Semiconductor Corporation "Use Automatic Settings" checkbox checked off. Direct Memory Access 00 Direct Memory Access 01 Interrupt Request 05 Input/Output Range 0530-0537 Input/Output Range 0388-038B Input/Output Range 0220-022F 2) Crystal PnP Audio System Control Registers "Use Automatic Settings" checkbox checked off. Input/Output Range 0F00-0F07 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #4 from VladCodrea@mail.utexas.edu 2007-01-16 17:39 MST ------- I forgot to mention that ever since I ran alsaconf, I get the following line repeated 10 times in dmesg every time I run "playwave compilation-ogg-q0.wav": Sound: DMA (output) timed out - IRQ/DRQ config error? Playwave continued to generate this line in dmesg even after I modified /etc/modprobe.d/sound and ran "rcalsasound start". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #5 from tiwai@novell.com 2007-01-19 04:58 MST ------- Which error do you mean exactly? Also, don't use playwave program but just use aplay for testing ALSA apps. The steps to check are like following: 1. create a correct /etc/modprobe.d/sound file including proper parameters. 2. check /etc/sysconfig/hardware/* files whether any of them has snd-cs4232 entry. 3. If 2 is not found, load the driver manually via "rcalsasound start" as root. 4. Check /proc/asound/cards whether the driver is set up. 5. If the driver appears, try aplay. 6. If aplay produces the errors (no device found, etc), try aplay as root user. If this works, a part of the problem is the permission. 7. If you get IRQ/DMA config error in the kernel message with repeated sound, adjust parameters differently, e.g. swap dma1 and dma2, set cport=-1. 8. The faint sound is often a mixer issue. Adjust mixer elements. If you have still problems, reboot freshly once. Then show the kernel message, the content of /etc/modprobe.d/sound. If the driver is ready, show the content of /proc/asound/cards. And, run "alsactl -f somefile store", then show the content of generated file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #6 from VladCodrea@mail.utexas.edu 2007-01-27 20:47 MST ------- Created an attachment (id=115680) --> (https://bugzilla.novell.com/attachment.cgi?id=115680&action=view) 1) Dmesg after a fresh reboot; and 2) Dmesg after adding "options snd-cs4232 isapnp=0 cport=0xf00 port=0x530 irq=5 dma1=1 dma2=0 mpu_port=0x330 fm_port=0x388 mpu_irq=9"
1. create a correct /etc/modprobe.d/sound file including proper parameters.
Alsaconf created a /etc/modprobe.d/sound file with the following content: alias snd-card-0 snd-cs4232 alias sound-slot-0 snd-cs4232
2. check /etc/sysconfig/hardware/* files whether any of them has snd-cs4232 entry.
Yes, there is a /etc/sysconfig/hardware/hwcfg-snd-cs4232 file with the following content: MODULE='snd-cs4232' STARTMODE='auto'
4. Check /proc/asound/cards whether the driver is set up.
The file /proc/asound/cards says "--- no soundcards ---", even though modules cs4232, ad1848, uart401, sound, snd_opl3_lib, snd_hwdep, snd_cs4231_lib, snd_pcm, snd_timer, snd_page_alloc, snd_mpu401_uart, snd_rawmidi, snd_seq_device, snd, and soundcore are loaded at boot-time according to lsmod.
5. If the driver appears, try aplay.
The driver doesn't appear in /proc/asound/cards, but running aplay gives: ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:550: audio open error: No such device In dmesg, there is the following message after running aplay: CS4232 soundcard not found or device busy
6. If aplay produces the errors (no device found, etc), try aplay as root user.
I am running aplay (and everything else pertaining to this bug) as root.
7. If you get IRQ/DMA config error in the kernel message with repeated sound, adjust parameters differently, e.g. swap dma1 and dma2, set cport=-1.
The kernel message "Sound: DMA (output) timed out - IRQ/DRQ config error?" occurrs repeatedly as playwave is playing the faint music, but this message does not occur at all when running aplay.
8. The faint sound is often a mixer issue.
Aplay returns immediately after printing its error and doesn't even produce a faint sound. Playwave, on the other hand, prints its error and then proceeds to play the faint music.
If you have still problems, reboot freshly once.
Done...
Then show the kernel message
Please see the attachment.
Show the content of /etc/modprobe.d/sound
alias snd-card-0 snd-cs4232 alias sound-slot-0 snd-cs4232
If the driver is ready, show the content of /proc/asound/cards.
The file /proc/asound/cards says "--- no soundcards ---".
And, run "alsactl -f somefile store", then show the content of generated file.
laptop:~ # alsactl -f alsactl.out store alsactl: save_state:1254: No soundcards found... No file was generated by alsactl. If I swap dma1 and dma2 (ie. options snd-cs4232 isapnp=0 port=0x530 cport=0x538 irq=5 dma1=0 dma2=1), the following messages occurs repeatedly in dmesg: ALSA sound/isa/cs423x/cs4231_lib.c:1446: cs4231: can't grab port 0x530 snd_cs4232: probe of snd_cs4232.0 failed with error -16 CS4232 soundcard not found or device busy If I set cport=-1 (ie. options snd-cs4232 isapnp=0 port=0x530 cport=-1 irq=5 dma1=1 dma2=0), the same error occurs. Finally, I tried adding "options snd-cs4232 isapnp=0 cport=0xf00 port=0x530 irq=5 dma1=1 dma2=0 mpu_port=0x330 fm_port=0x388 mpu_irq=9" to /etc/modprobe.d/sound, ran "rcalsasound start" and rebooted. The dmesg after rebooting can be found in the second part of the attachment. Also, some Inspiron 3200 users said (http://forums.xandros.com/viewtopic.php?t=154&postdays=0&postorder=asc&start=0) they had success running "modprobe opl3 io=0x388", but this doesn't work for me. I'm not sure if/how I should include opl3 in /etc/modprobe.d/sound... Thank you very much for your assistance. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #7 from VladCodrea@mail.utexas.edu 2007-01-28 13:04 MST ------- Created an attachment (id=115782) --> (https://bugzilla.novell.com/attachment.cgi?id=115782&action=view) File generated by alsactl and dmesg after rebooting I wrote the following lines to etc/modprobe.d/sound as you suggested earlier: alias snd-card0 snd-cs4232 options snd-cs4232 isapnp=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 I then ran "rcalsasound start". After rebooting, /proc/asound/cards contained: 0 [CS4236 ]: CS4236 - CS4236 CS4236 at 0x530, irq 5, dma 1&0 I have attached the file somefile.exactly_iwai, which is the result of running "alsactl -f alsactl_out.txt store". Below that, I have also attached the dmesg of that session. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #8 from tiwai@novell.com 2007-02-26 05:11 MST ------- I guess the card is actually PnP (but not ISA PnP), so the device couldn't get set up properly with isapnp=no option. Do you have /sys/bus/pnp/devices/* entry that corresponds to this device? Anyways, it's a bug in the upstream driver, so maybe hard to put the fix in the openSUSE 10.2 kernel, unfortunately. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #9 from VladCodrea@mail.utexas.edu 2007-03-11 17:23 MST -------
Do you have /sys/bus/pnp/devices/* entry that corresponds to this device?
Following are all the devices: # ls /sys/bus/pnp/devices/ 00:00 00:02 00:04 00:06 00:08 00:0a 00:11 00:16 00:1a 00:01 00:03 00:05 00:07 00:09 00:0b 00:15 00:18 I think the soundcard is device 00:11. # cat /sys/bus/pnp/devices/00:11/id CSC0000 PNPb007 # cat sys/bus/pnp/devices/00:11/options port 0x530-0x560, align 0xf, size 0x8, 16-bit address decoding port 0x388-0x3a0, align 0x7, size 0x4, 16-bit address decoding port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding irq 5,7,2/9,11 High-Edge dma 0,1,3 8-bit compatible dma 0,1,3 8-bit compatible # cat sys/bus/pnp/devices/00:11/power/state 0 # cat sys/bus/pnp/devices/00:11/resources state = active io 0x530-0x537 io 0x388-0x38b io 0x220-0x22f irq 5 dma 0 dma 1
It's a bug in the upstream driver, so maybe hard to put the fix in the openSUSE 10.2 kernel.
I'd be happy to compile the latest upstream kernel and to try out patches. Would that be the best way forward? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #10 from tiwai@novell.com 2007-03-12 09:48 MST ------- Then simply try to load snd-cs4232 module instead of snd-cs4236. You don't need any option. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #11 from VladCodrea@mail.utexas.edu 2007-03-12 11:41 MST ------- Created an attachment (id=123903) --> (https://bugzilla.novell.com/attachment.cgi?id=123903&action=view) lsmod output
Then simply try to load snd-cs4232 module instead of snd-cs4236. You don't need any option.
The attached lsmod output shows that it is snd-cs4232 (and not snd-cs4236) that is loaded. No options are included in /etc/modprobe.d/sound: alias snd-card-0 snd-cs4232 alias sound-slot-0 snd-cs4232 This is with the OpenSUSE 10.2 kernel. I'll post the information using the upstream 2.6.20 kernel soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #12 from VladCodrea@mail.utexas.edu 2007-03-14 11:00 MST ------- Created an attachment (id=124419) --> (https://bugzilla.novell.com/attachment.cgi?id=124419&action=view) lsmod output Same as Comment #11 except that vanilla kernel 2.6.20.2 is used here.
Then simply try to load snd-cs4232 module instead of snd-cs4236. You don't need any option.
The attached lsmod output shows that it is snd-cs4232 (and not snd-cs4236) that is loaded. No options are included in /etc/modprobe.d/sound: alias snd-card-0 snd-cs4232 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #13 from tiwai@novell.com 2007-03-14 11:53 MST ------- And and nothing was detected in both cases...? Check kernel message and see /proc/asound/cards... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #14 from VladCodrea@mail.utexas.edu 2007-03-14 20:12 MST ------- Created an attachment (id=124510) --> (https://bugzilla.novell.com/attachment.cgi?id=124510&action=view) dmesg with kernel 2.6.20.2
And and nothing was detected in both cases...? Check kernel message and see /proc/asound/cards...
The attached dmesg from kernel 2.6.20.2 (compiled with CONFIG_PNP_DEBUG=y in the .config file) shows that the card is "somewhat" detected: pnp: match found with the PnP device '00:11' and the driver 'cs4232-pnpbios' However, "cat /proc/asound/cards" yields: --- no soundcards --- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #15 from tiwai@novell.com 2007-03-15 07:59 MST ------- Try to build with CONFIG_SND_DEBUG=y and CONFIG_SND_DEBUG_DETECT=y. Also, make sure that you really have no module options, e.g. in /etc/modprobe.d/sound file. After loading the module, you can see the parameters in /sys/module/snd_cs4232/parameters/* files. At least, enable=1 and isapnp=1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #16 from VladCodrea@mail.utexas.edu 2007-03-15 08:21 MST ------- Created an attachment (id=124682) --> (https://bugzilla.novell.com/attachment.cgi?id=124682&action=view) config file used for compiling 2.6.20.2 kernel
Try to build with CONFIG_SND_DEBUG=y and CONFIG_SND_DEBUG_DETECT=y.
I used the attached .config file for compiling the kernel; CONFIG_SND_DEBUG and CONFIG_SND_DEBUG_DETECT are already set to y.
Also, make sure that you really have no module options, e.g. in /etc/modprobe.d/sound file.
After loading the module, you can see the
Just checked, and there are no options: # cat /etc/modprobe.d/sound alias snd-card-0 snd-cs4232 parameters in /sys/module/snd_cs4232/parameters/* files. The directory /sys/module/snd_cs4232 doesn't exist: # ls /sys/module/ 3c59x hid libata pcmcia_core serial_cs snd_page_alloc snd_seq_midi_event virtual_root 8250 i2c_core loop pcspkr serio_raw snd_pcm snd_seq_oss yenta_socket ata_piix i2c_piix4 mbcache printk snd snd_pcm_oss snd_timer eisa_bus i8042 mii psmouse snd_cs4231_lib snd_rawmidi soundcore evdev ipv6 mousedev rsrc_nonstatic snd_hwdep snd_seq tcp_bic ext3 jbd parport rtc snd_mixer_oss snd_seq_device tsdev firmware_class joydev parport_pc scsi_mod snd_mpu401_uart snd_seq_dummy uhci_hcd floppy keyboard pcmcia sd_mod snd_opl3_lib snd_seq_midi usbcore -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 tiwai@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu ------- Comment #17 from tiwai@novell.com 2007-03-15 08:27 MST ------- Hm, strange that then it really shows still no kernel error/warning messages. Anyway, I recommend you to build the latest ALSA driver instead of 2.6.20. Take the daily snapshot from ftp://ftp.suse.com/pub/projects/alsa/snapshot/ run "./configure --with-debug=detect --enable-dynamic-minors", then make. Install modules via "make install-modules" as root. Trace which line the probe is aborted by adding printk's appropriately. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #18 from VladCodrea@mail.utexas.edu 2007-03-31 18:33 MST -------
Trace which line the probe is aborted by adding printk's appropriately.
I can add printk's, but I'm not sure in which file the probing is taking place. I'm guessing it would be ./alsa-kernel/isa/cs423x/cs4236.c or /sound/isa/cs423x/cs4236.c (they are identical). Looking at these files, I see that there is a list of supported cards and parameters called snd_cs423x_pnpids[]. Perhaps I just need to add a line corresponding to my card... But how would I find out what to put in .id and devs?
From Comment #9 I see that the output of "cat /sys/bus/pnp/devices/00:11/id" is:
CSC0000 PNPb007 Should these strings go in .devs? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 VladCodrea@mail.utexas.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|VladCodrea@mail.utexas.edu | ------- Comment #19 from VladCodrea@mail.utexas.edu 2007-04-07 19:13 MST ------- Created an attachment (id=129763) --> (https://bugzilla.novell.com/attachment.cgi?id=129763&action=view) Dmesg after running commands that make the soundcard work I got the soundcard to work! Two steps were required. First was to run: # echo activate > /sys/devices/pnp0/00:11/resources The second step was to run: # modprobe snd-cs4236 isapnp=0 port=0x530 cport=0xf00 irq=5 dma1=1 dma2=0 The attached annotated dmesg shows what was printed after running each of these steps. How should I go about debugging why 00:11 is not active immediately after booting? Also, even after I manually activated 00:11, a simple "modprobe snd-cs4236" did not work (the error is shown in the attached dmesg). Is there any way to make snd-cs4236 work without having to specify the parameters by hand or in /etc/modprobe.d/sound? Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 ------- Comment #20 from VladCodrea@mail.utexas.edu 2007-04-08 19:59 MST ------- Created an attachment (id=129772) --> (https://bugzilla.novell.com/attachment.cgi?id=129772&action=view) Dmesg with printk's in drivers/pnp/manager.c and drivers/pnp/pnpbios/rsparser.c I think I've found the problem: the sound card appears as two PNP devices instead of a single device. The first PNP device is 00:11 and contains the soundcard's port, mpu_port, fm_port, irq, dma1 and dma2: # cat /sys/devices/pnp0/00:11/resources state = active io 0x530-0x537 io 0x388-0x38b io 0x220-0x22f irq 5 dma 1 dma 0 The second PNP device is 00:15 and contains the soundcard's cport: # cat /sys/devices/pnp0/00:15/resources state = active io 0xf00-0xf07 Linux's PnPBIOS parser (drivers/pnp/pnpbios/rsparser.c:pnpbios_parse_resource_option_data) gets confused when encountering these devices: PnPBIOS: Unknown tag '0x82' in pnpbios_parse_resource_option_data(), length '6': 82 6 0 57 53 53 PM: Adding info for pnp:00:11 PnPBIOS: Unknown tag '0x82' in pnpbios_parse_resource_option_data(), length '4': 82 4 0 43 PM: Adding info for pnp:00:15 The hexadecimal digits 57 53 53 stand for "WSS", while the hexadecimal digit 43 stands for "C". The cs4232-pnpbios driver fails at cs4236.c:snd_cs423x_pnp_init_wss() when running: err = pnp_manual_config_dev(pdev, cfg, 0); The err has a value of -EINVAL. I debugged drivers/pnp/manager.c:pnp_manual_config_dev() and saw that the condition (!dev || !res) evaluates to TRUE. The cs4232-pnpbios driver then fails again at cs4236.c:snd_cs423x_pnp_init_wss() when running: err = pnp_activate_dev(pdev); The err has a value of -EINVAL. I debugged drivers/pnp/manager.c:pnp_activate_dev() and saw that (!dev) evaluates to TRUE, so apparently the device is null. To summarize: WSS and C-port aren't recorded by Linux's PnPBIOS parser, which causes the WSS initialization to fail in the cs4232-pnpbios driver. Any ideas how to fix this? Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=233344 User tiwai@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=233344#c21 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |VladCodrea@mail.utexas.edu --- Comment #21 from Takashi Iwai <tiwai@novell.com> 2008-11-06 00:47:35 MST --- I thought this issue was fixed in the upstream on later version. Did you get it working in the later version? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=233344 User tiwai@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=233344#c22 --- Comment #22 from Takashi Iwai <tiwai@novell.com> 2008-12-09 00:07:48 MST --- Resolved as NORESPONSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com