Log in Register FAQ Memberlist Search pcHDTV Forum Index
pcHDTV Forum

pcHDTV Forum Index -> Driver Issues -> Problem with cx88_alsa and stopping service.
Post new topic  This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic 
Problem with cx88_alsa and stopping service.
PostPosted: Wed Sep 06, 2006 3:51 pm Reply with quote
Lurker
 
Joined: 02 Mar 2005
Posts: 8




I am pretty sure the problem has something to do with the cx88_alsa driver. I am running the latest KnoppixMyth R5D1 and have it pretty much setup where it is working properly for ATSC recording/playback. Now the problem happens everytime I shutdown or stop the alsa driver. The system partially hangs and I get the following error when I stop the alsa service:
Code:

Broadcast message from root Tue Sep  5 23:32:25 2006...

The system is going down for system halt NOW !!

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: PREEMPT SMP

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: EIP is at snd_cx88_capture_volume_get+0xb/0x30 [cx88_alsa]

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: CPU:    0

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: Oops: 0000 [#1]

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: esi: 00000001   edi: 00000000   ebp: f61c9000   esp: cc753f04

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: Process alsactl (pid: 9936, threadinfo=cc752000 task=f462a030)

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel:        f7282000 f61c91e8 f61c9000 fb2c7891 f61c9000 f7282000 ffffffe7 f7f72500

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel:        bfdce320 c2c45512 c0182fbc f61c9000 bfdce320 bfdce320 f7f72500 bfdce320

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel:  <c0182fbc> do_ioctl+0x5c/0x70  <c0183143> vfs_ioctl+0x53/0x1c0

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: ds: 007b   es: 007b   ss: 0068

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: Stack: fb2c7828 f7a4e8c0 f7282000 f7a4e8c0 f61c914c bfdce320 00000003 00000000

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: eax: 00000000   ebx: 00000000   ecx: f7a4e8c0   edx: f7282000
mythtv kernel: EIP: [pg0+1004243435/1066120192] snd_cx88_capture_volume_get+0xb/0x30 [cx88_alsa] SS:ESP 0068:cc753f04

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel:  <c018330d> sys_ioctl+0x5d/0x70  <c0103177> syscall_call+0x7/0xb

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: Code: 00 00 c7 40 50 00 00 00 00 c7 40 54 3f 00 00 00 31 c0 c3 8d b6 00 00 00 00 8d bc 27 00 00 00 00 8b 44 24 04 8b 54 24 08 8b 40 5c <8b> 00 8b 40 38 8b 80 94 05 32 00 83 f0 ff 83 e0 3f 89 42 44 31

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel: Call Trace:

Message from syslogd@mythtv at Tue Sep  5 23:32:27 2006 ...
mythtv kernel:  <fb2c7828> snd_ctl_elem_read+0xe8/0xf0 [snd]  <fb2c7891> snd_ctl_elem_read_user+0x61/0xb0 [snd]


I am not really sure what I am looking at but it looks like something bad happened in the kernel with the cx88_alsa driver. Can anyone point me in the direction on how to fix this bug? As it stands, it really is the last major thing I need to fix because it makes me have to login to the machine remotely and kill the alsa stop command in order for the machine to power down.
View user's profile Send private message
PostPosted: Wed Sep 06, 2006 7:57 pm Reply with quote
xyzzy
 
Joined: 12 Feb 2006
Posts: 225




What kernel are you using? What version of the v4l-dvb drivers? Can you check if running /usr/sbin/alsactl store as root will also cause this crash?
View user's profile Send private message
PostPosted: Thu Sep 07, 2006 7:17 am Reply with quote
Lurker
 
Joined: 02 Mar 2005
Posts: 8




I will try it tonight, but I do remember seeing [alsactl] in the ps list and IIRC I couldn't kill that process.

I am not certain I am basically using whatever was included in knoppmyth R5D1 and haven't updated any of the drivers or kernel files. So from the change log the kernel should be 2.6.17-chw-8. The changelog does mention an update to the 4vl-dvb drivers to support the HD5500 and other cards but it doesn't mention a version.
View user's profile Send private message
PostPosted: Thu Sep 07, 2006 10:54 pm Reply with quote
Lurker
 
Joined: 02 Mar 2005
Posts: 8




Ok the kernel is 2.6.17-chw-8
and in syslog:
cx2388x dvb driver version 0.0.5 loaded
cx2388x v4l2 driver version 0.0.5 loaded

Yes running alsactl store crashes when I run it. Same error as above too.
View user's profile Send private message
PostPosted: Fri Sep 15, 2006 10:51 am Reply with quote
mmcgrath10
 
Joined: 15 Sep 2006
Posts: 2




I am also using a "fresh out of the box" install of knoppmyth R5D10 and I am getting the same errors as the poster above.
View user's profile Send private message
PostPosted: Fri Sep 15, 2006 11:13 am Reply with quote
mmcgrath10
 
Joined: 15 Sep 2006
Posts: 2




I should add that this problem prevents KnoppMyth from installing correctly becuase the auto configuration program that runs after the installation is completed hangs when configuring ALSA.

Any suggestions?
View user's profile Send private message
PostPosted: Sat Sep 23, 2006 9:10 pm Reply with quote
Lurker
 
Joined: 02 Mar 2005
Posts: 8




Well I didn't really solve the problem but I worked around it by simply calling:
rmmod cx88_alsa

before the alsactl store call in the script. Now powering down isn't a problem.

mmcgrath10: I didn't install R5D1 with the 5500 installed. I can think of maybe 2 ways to get around it. First install with audio disabled and then install alsa later. And the other, is to install regularly, but before you get to the alsa part try to switch to another terminal screen and just rmmod the cx88_alsa driver.
View user's profile Send private message
PostPosted: Sat Sep 23, 2006 11:56 pm Reply with quote
tscholl
 
Joined: 25 Aug 2006
Posts: 5




IF you try to install R5D1 with the HD5500 installed it gives kernel error when you run the alsa config
View user's profile Send private message
PostPosted: Sun Sep 24, 2006 4:04 pm Reply with quote
nybbler
 
Joined: 06 Jul 2006
Posts: 125




I wonder if perhaps you have one of the PCHDTV-5500 boards which doesn't have the sound function enabled. I'd expect this to just keep the driver from loading, but maybe there's a bug which causes this crash instead.

Do an "lspci" and see if you have a line like this:

0000:04:08.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
View user's profile Send private message
PostPosted: Wed Oct 04, 2006 9:04 am Reply with quote
tscholl
 
Joined: 25 Aug 2006
Posts: 5




Quote:
Lurker:
Well I didn't really solve the problem but I worked around it by simply calling:
rmmod cx88_alsa


What script does this get called in? /etc/init.d/alsasound ?

Thanks,

Tim
View user's profile Send private message
PostPosted: Sat Oct 07, 2006 8:56 pm Reply with quote
Lurker
 
Joined: 02 Mar 2005
Posts: 8




tscholl wrote:
Quote:
Lurker:
Well I didn't really solve the problem but I worked around it by simply calling:
rmmod cx88_alsa


What script does this get called in? /etc/init.d/alsasound ?

Thanks,

Tim


Sorry I can't access the computer right now so I don't know the filename, but yes one of the scripts in /etc/init.d/ is where I put it in. You should see a stop) case and then a couple of lines later you should see a 'alsactl store' command. I just put the line before that command. If you really want to properly do it you might want to make a small script to check if cx88_alsa is loaded before you try to unload it.
View user's profile Send private message
PostPosted: Mon Oct 16, 2006 10:22 pm Reply with quote
rworne
 
Joined: 14 Oct 2006
Posts: 1




Lurker wrote:
tscholl wrote:
Quote:
Lurker:
Well I didn't really solve the problem but I worked around it by simply calling:
rmmod cx88_alsa


What script does this get called in? /etc/init.d/alsasound ?

Thanks,

Tim


Sorry I can't access the computer right now so I don't know the filename, but yes one of the scripts in /etc/init.d/ is where I put it in. You should see a stop) case and then a couple of lines later you should see a 'alsactl store' command. I just put the line before that command. If you really want to properly do it you might want to make a small script to check if cx88_alsa is loaded before you try to unload it.


I'll try this again, since my post from a few days ago disappeared:

I am having this same issue on shutdown as well as when calling the alsactl store command.

I "solved" it for the time being by editing "/etc/rc0.d/K20alsa"

Find this section of the script:

Code:

function stop() {
  #
  # store driver settings
  #
  if [ -x $alsactl ]; then


and change it to this:

Code:

function stop() {
  #
  # store driver settings
  #
  rmmod cx88_alsa
  if [ -x $alsactl ]; then


That cleaned up the shutdown issues until a fix comes out.
View user's profile Send private message
Problem with cx88_alsa and stopping service.
  pcHDTV Forum Index -> Driver Issues
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  This topic is locked: you cannot edit posts or make replies.  


Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin