https://bugzilla.novell.com/show_bug.cgi?id=325764#c3
Alexander Lavirnenko changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|lavrinenko_alex@mail.ru |
--- Comment #3 from Alexander Lavirnenko 2007-09-18 13:38:32 MST ---
Hello Takashi,
restarting just slmodemd doesn't help. Please find requested information below.
This is just after resume from suspend-to-disk. As seen, modem is in SUSPENDED
state (card0/pcm6c/sub0/status):
###### Modem's capture ######
[superuser@shark :: ~]cat /proc/asound/card0/codec#1
Codec: Generic 11c1 Si3054
Address: 1
Vendor Id: 0x11c13026
Subsystem Id: 0x103c30ad
Revision Id: 0x100700
Modem Function Group: 0x1
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/info
card: 0
device: 6
subdevice: 0
stream: CAPTURE
id: Si3054 Modem
name: Si3054 Modem
subname: subdevice #0
class: 2
subclass: 0
subdevices_count: 1
subdevices_avail: 0
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 9600 (9600/1)
period_size: 64
buffer_size: 2048
tick_time: 4000
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/info
card: 0
device: 6
subdevice: 0
stream: CAPTURE
id: Si3054 Modem
name: Si3054 Modem
subname: subdevice #0
class: 2
subclass: 0
subdevices_count: 1
subdevices_avail: 0
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/prealloc
64
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/prealloc_max
1024
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/status
state: SUSPENDED
trigger_time: 1190090726.110448808
tstamp : 1190142689.752536030
delay : 0
avail : 0
avail_max : 0
-----
hw_ptr : 2719104
appl_ptr : 2719104
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/sw_params
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 4
xfer_align: 4
start_threshold: 2147483647
stop_threshold: 2048
silence_threshold: 0
silence_size: 0
boundary: 1073741824
###### Modem's playback ######
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/info
card: 0
device: 6
subdevice: 0
stream: PLAYBACK
id: Si3054 Modem
name: Si3054 Modem
subname: subdevice #0
class: 2
subclass: 0
subdevices_count: 1
subdevices_avail: 0
superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 9600 (9600/1)
period_size: 64
buffer_size: 2048
tick_time: 4000
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/info
card: 0
device: 6
subdevice: 0
stream: PLAYBACK
id: Si3054 Modem
name: Si3054 Modem
subname: subdevice #0
class: 2
subclass: 0
subdevices_count: 1
subdevices_avail: 0
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/prealloc
64
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/prealloc_max
1024
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/status
state: SUSPENDED
trigger_time: 1190090726.110446154
tstamp : 1190142735.362890424
delay : 0
avail : 1496
avail_max : 1920
-----
hw_ptr : 2719072
appl_ptr : 2719624
[superuser@shark :: ~]cat /proc/asound/card0/pcm6p/sub0/sw_params
tstamp_mode: NONE
period_step: 1
sleep_min: 0
avail_min: 4
xfer_align: 4
start_threshold: 2147483647
stop_threshold: 2048
silence_threshold: 0
silence_size: 0
boundary: 1073741824
###### Other stuff that might be interested ######
[superuser@shark :: ~]cat /proc/asound/devices
2: : timer
3: [ 0- 6]: digital audio playback
4: [ 0- 6]: digital audio capture
5: [ 0- 0]: digital audio playback
6: [ 0- 0]: digital audio capture
7: [ 0] : control
8: : sequencer
[superuser@shark :: ~]cat /proc/asound/timers
G0: system timer : 4000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-6-0: PCM playback 0-6-0 : SLAVE
P0-6-1: PCM capture 0-6-1 : SLAVE
[superuser@shark :: ~]cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25
2007 UTC).
[superuser@shark :: ~]cat /proc/asound/modules
0 snd_hda_intel
[superuser@shark :: ~]cat /proc/asound/pcm
00-06: Si3054 Modem : Si3054 Modem : playback 1 : capture 1
00-00: AD198x Analog : AD198x Analog : playback 1 : capture 1
[superuser@shark :: ~]cat /proc/asound/seq/clients
Client info
cur clients : 1
peak clients : 1
max clients : 192
Client 0 : "System" [Kernel]
Port 0 : "Timer" (Rwe-)
Port 1 : "Announce" (R-e-)
Client 14 : "Midi Through" [Kernel]
Port 0 : "Midi Through Port-0" (RWe-)
[superuser@shark :: ~]cat /proc/asound/card0/id
Intel
[superuser@shark :: ~]cat /proc/asound/card0/oss_mixer
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "" 0
PCM "PCM" 0
SPEAKER "" 0
LINE "" 0
MIC "Mic" 0
CD "" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "" 0
LINE1 "" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "Digital" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "" 0
PHONEOUT "" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0
###### CODEC#0 - Intel HDA soundcard itsef (don't beleive it's needed, but in
case...) ######
[superuser@shark :: ~]cat /proc/asound/card0/codec#0
Codec: Analog Devices AD1981
Address: 0
Vendor Id: 0x11d41981
Subsystem Id: 0x103c30ad
Revision Id: 0x100200
No Modem Function Group found
Default PCM:
rates [0x7f]: 8000 11025 16000 22050 32000 44100 48000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Default Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Node 0x02 [Audio Output] wcaps 0x30311: Stereo Digital
PCM:
rates [0x60]: 44100 48000
bits [0x2]: 16
formats [0x5]: PCM AC3
Connection: 2
0x01* 0x04
Node 0x03 [Audio Output] wcaps 0x441: Stereo
Power: 0x0
Node 0x04 [Audio Input] wcaps 0x100511: Stereo
PCM:
rates [0x7f]: 8000 11025 16000 22050 32000 44100 48000
bits [0x6]: 16 20
formats [0x1]: PCM
Power: 0x0
Connection: 1
0x15
Node 0x05 [Pin Complex] wcaps 0x400187: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Amp-Out vals: [0x18 0x18]
Pincap 0x081173f: IN OUT HP EAPD Detect
Pin Default 0x92174110: [Fixed] Speaker at Int Front
Conn = Analog, Color = Green
Pin-ctls: 0x40: OUT
Connection: 2
0x03 0x0e*
Node 0x06 [Pin Complex] wcaps 0x400185: Stereo Amp-Out
Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Amp-Out vals: [0x18 0x18]
Pincap 0x081f: OUT HP Detect
Pin Default 0x0321201f: [Jack] HP Out at Ext Left
Conn = 1/8, Color = Grey
Pin-ctls: 0xc0: OUT HP
Connection: 2
0x03 0x0e*
Node 0x07 [Pin Complex] wcaps 0x400104: Mono Amp-Out
Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Amp-Out vals: [0x80]
Pincap 0x0810: OUT
Pin Default 0x410710f0: [N/A] Line Out at Ext Rear
Conn = Analog, Color = Black
Pin-ctls: 0x40: OUT
Connection: 1
0x0f
Node 0x08 [Pin Complex] wcaps 0x400083: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals:
Pincap 0x081727: IN Detect
Pin Default 0x03a12020: [Jack] Mic at Ext Left
Conn = 1/8, Color = Grey
Pin-ctls: 0x24: IN
Node 0x09 [Pin Complex] wcaps 0x400187: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Amp-Out vals: [0xbf 0xbf]
Pincap 0x081737: IN OUT Detect
Pin Default 0x0181302e: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x20: IN
Connection: 2
0x03* 0x0e
Node 0x0a [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x4145f0f0: [N/A] SPDIF Out at Ext Rear
Conn = Optical, Color = Other
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0b [Audio Selector] wcaps 0x300101: Stereo
Connection: 6
0x03 0x0c 0x09 0x0e* 0x05 0x18
Node 0x0c [Audio Mixer] wcaps 0x200101: Stereo
Connection: 2
0x1e 0x1f
Node 0x0d [Audio Selector] wcaps 0x30010c: Mono Amp-Out
Amp-Out caps: ofs=0x0f, nsteps=0x0f, stepsize=0x0b, mute=1
Amp-Out vals: [0x80]
Connection: 2
0x10* 0x16
Node 0x0e [Audio Mixer] wcaps 0x200101: Stereo
Connection: 8
0x0d 0x11 0x12 0x13 0x1a 0x1b 0x1c 0x1d
Node 0x0f [Audio Mixer] wcaps 0x200100: Mono
Connection: 1
0x0b
Node 0x10 [Beep Generator Widget] wcaps 0x700000: Mono
Node 0x11 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x1f 0x1f]
Connection: 1
0x03
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x08
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x09
Node 0x14 [Power Widget] wcaps 0x500500: Mono
Power: 0x0
Connection: 13
0x0d* 0x0e 0x0f 0x10 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1d
Node 0x15 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
Amp-Out vals: [0x00 0x00]
Connection: 8
0x0c* 0x09 0x0e 0x0f 0x19 0x05 0x18 0x17
Node 0x16 [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x995711f0: [Fixed] Digital Out at Int ATAPI
Conn = Analog, Color = Black
Pin-ctls: 0x20: IN
Node 0x17 [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0827: IN Detect
Pin Default 0x5993e0f0: [N/A] Aux at Int ATAPI
Conn = ATAPI, Color = White
Pin-ctls: 0x20: IN
Node 0x18 [Pin Complex] wcaps 0x400187: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x01 0x01] [0x01 0x01]
Amp-Out caps: ofs=0x3d, nsteps=0x3f, stepsize=0x05, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x081737: IN OUT Detect
Pin Default 0x91a79121: [Fixed] Mic at Int Rear
Conn = Analog, Color = Pink
Pin-ctls: 0x24: IN
Connection: 2
0x03* 0x0e
Node 0x19 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x593310f0: [N/A] CD at Int ATAPI
Conn = ATAPI, Color = Black
Pin-ctls: 0x20: IN
Node 0x1a [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x05
Node 0x1b [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x17
Node 0x1c [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x18
Node 0x1d [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x19
Node 0x1e [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 1
0x08
Node 0x1f [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Connection: 1
0x18
[superuser@shark :: ~]
Here is the state after "alsa restart; rmmod & modprobe; lsmodemd restart":
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/status
state: OPEN
trigger_time: 0.000000000
tstamp : 0.000000000
delay : 0
avail : 0
avail_max : 0
-----
hw_ptr : 0
appl_ptr : 0
And here is the state while being connected after alsa/slmodem restart:
[superuser@shark :: ~]cat /proc/asound/card0/pcm6c/sub0/status
state: RUNNING
trigger_time: 1190142934.768894400
tstamp : 1190143819.450206663
delay : 64
avail : 64
avail_max : 160
-----
hw_ptr : 8477104
appl_ptr : 8477040
[superuser@shark :: ~]
Finally, here's what I have installed (I do frequent updates from factory and
KOTD):
[superuser@shark :: ~]rpm -qa|grep -Ei "alsa|kernel|modem" | sort
alsa-1.0.15-3.1
alsa-32bit-1.0.14a-0.pm.7
alsa-devel-1.0.15-3.1
alsa-utils-1.0.15-1.3
kernel-default-2.6.22.5-340.1
linux-kernel-headers-2.6.22-17
smartlink-softmodem-2.9.10-75
[superuser@shark :: ~]
Please note that I had to recompile slmodemd binary due to "period size 48 not
supported" bug after applying the following patch (available via google):
[superuser@shark :: ~]cat /usr/src/slmodem-2.9.11-alsa-period-size.patch
diff -rud slmodem-2.9.11-20060727-orig/modem/modem_main.c
slmodem-2.9.11-20060727/modem/modem_main.c
--- slmodem-2.9.11-20060727-orig/modem/modem_main.c 2005-09-22
10:05:27.000000000 -0300
+++ slmodem-2.9.11-20060727/modem/modem_main.c 2007-07-10 14:37:33.000000000
-0300
@@ -379,7 +379,7 @@
ERR("cannot set periods for %s: %s\n", stream_name,
snd_strerror(err));
return err;
}
- if ( rsize != size ) {
+ if ( rsize < size ) {
ERR("period size %ld is not supported by %s (%ld).\n",
size, stream_name, rsize);
return -1;
[superuser@shark :: ~]
Otherwize slmodemd was completely inoperational for me. But this is not the
root of the problem :)
PS: I don't have access to VIA chipset -based hardware anymore :(
--
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.