Hi,

on my original problem with alsa module cs46xx freezing during a suspend, I noticed that cs46xx survives hibernation (initiated with the Thinkpad utility tpctl --H). Quite strange then that suspending (using either 'apm -s' or 'tpctl --Z' freezes alsa.

Any ideas how to approach this problem?

Thank you.

best regards,

Jan

P.S. Also I upgraded to the latest Thinkpad BIOS version - which didn't help.

-------- Original Message --------
Subject: alsa freezes on resume from apm suspend (cs46xx on Thinkpad A22p)
Date: Wed, 13 Aug 2003 20:59:59 +0900
From: Jan Meyer <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hi,

when I suspend on my

Thinkpad A22p (Crystal cs4614/22/24 sound chip)

running a fresh

(and seperate) alsa 0.9.6 installation,

the alsa module cs46xx seems to freeze (i.e. various sound players can
open the sound device either natively or as oss emulation but not start
playing anything).

After reloading snd-cs46xx.o by

  rmmod snd-cs46xx; usleep 500; modprobe snd-cs46xx; sleep 1; alsactl
restore

the sound system can be made functional again. (sometimes a second
attempt or setting the volume manually is necessary though). Unloading
the module before suspending and modprobing the module after resume
doesn't help but gives the following message in /var/log/messages:

  kernel: ALSA ../../alsa-kernel/pci/cs46xx/dsp_spos.c:1840: dsp_spos:
SPIOWriteTask not responding

(Hence work arounds a la apmd will not be really reliable)

Also sometimes when reloading the module I get:

insmod: insmod: a module named snd-cs46xx already exists

This is quite a nuissance to me. Suspend actually worked well with alsa
ov the v0.5 series but with kernel 2.4.20 I understand that I can not
downgrade (got many compilations errors).

If you look at my configuration details below, can you recognize any
errors on my side? If not, how could this be fixed? Even though I am not
a kernel programmer, I could help in running test code with debugging
settings on my machine.

Any help/hints would be greatly appreciated.

regards,

Jan


BTW: I do always have to run depmod -a to activate changes in /etc/modules.conf, correct?

P.S. I have CC:'ed you, Chris Gianniotis, in case you're still
interested in my modules.conf - or maybe you even have the same problem
on your A22p.

P.P.S. Putting the machine in suspend mode was done with any of the
following three methods: calling 'apm -s', pressing the suspend button,
calling tpctl --Z to suspend through the BIOS. ACPI is disabled but
compiled into the kernel.

===========================================
Thinkpad A22p
Model: 2629-YVU
   the PCI Power Management (if I have it) could be on - I could check
   that if needed
SuSE v8.2
(custom, SuSE derived) Kernel 2.4.20
  compiled with both APM and ACPI but ACPI is disabled by kernel option
  acpi=off, suspend/hibernation work only with apm
  devfs is off - strange SuSE default
(seperate) Alsa packages v0.9.6

---- /var/log/messages ----

loading snd-cs46xx with option thinkpad=1 gives:

Aug  6 00:16:54 linux kernel: PCI: Found IRQ 11 for device 00:05.0
Aug  6 00:16:54 linux kernel: PCI: Sharing IRQ 11 with 00:02.0
Aug  6 00:16:54 linux kernel: PCI: Sharing IRQ 11 with 01:00.0
Aug  6 00:16:54 linux kernel: ALSA cs46xx_lib.c:3817: hack for Thinkpad
600X/A20/T20 enabled


loading the module snd-cs46xx without the thinkpad=1 option, I get the following:

Aug 12 20:46:42 nyx kernel: PCI: Found IRQ 11 for device 00:05.0
Aug 12 20:46:42 nyx kernel: PCI: Sharing IRQ 11 with 00:02.0
Aug 12 20:46:42 nyx kernel: PCI: Sharing IRQ 11 with 01:00.0
Aug 12 20:46:43 nyx kernel: ALSA
../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:416: cs46xx: failure waiting
for FIFO command to complete

---------------

---- modules.conf section -----
alias char-major-116 snd
alias snd-card-0 snd-cs46xx
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=1
options snd-cs46xx index=0 thinkpad=1
---------

---------
# lspci -vv -s 00:05.0
00:05.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24
[CrystalClear SoundFusion Audio Accelerator] (rev 01)
        Subsystem: IBM: Unknown device 0153
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1000ns min, 6000ns max)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at f0122000 (32-bit, non-prefetchable) [size=4K]
        Region 1: Memory at f0000000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
---------

---- kernel .config section on APM ---
CONFIG_PM=y
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
------------






------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to