[PlanetCCRMA] Re: snd-virmidi problem: /dev/midi* absent

Cumhur Erkut Cumhur.Erkut@tkk.fi
Mon Jan 30 04:23:01 2006


Dear list,
For further investigation, I've commented out the snd-virmidi entries in the 
/etc/modprobe.conf, rebooted, and checked:

# cat /proc/asound/cards
0 [V8235          ]: VIA8233 - VIA 8235
                      VIA 8235 with ALC202 at 0x1000, irq 18
1 [modem          ]: VIA82XX-MODEM - VIA 82XX modem
                      VIA 82XX modem at 0x1400, irq 18

(snd-via82xx-modem is not in my modprobe.conf, I wonder how it got there. IRQ 
18 looks bad, but will try to handle it later). Since cards 0 and 1 are 
allocated, I try this (and get a nice Seg-fault):

[root@rumba ~]# modprobe snd-virmidi index=2
Segmentation fault

It however it is enlisted:

[root@rumba ~]# lsmod | grep snd
snd_virmidi             5200  1
snd_seq_virmidi         8320  1 snd_virmidi
snd_via82xx_modem      16520  0
snd_via82xx            30488  2
gameport               16264  1 snd_via82xx
snd_ac97_codec         93600  2 snd_via82xx_modem,snd_via82xx
snd_ac97_bus            2688  1 snd_ac97_codec
snd_seq_dummy           4228  0
snd_seq_oss            37760  0
snd_seq_midi_event      7808  2 snd_seq_virmidi,snd_seq_oss
snd_seq                59280  6 
snd_seq_virmidi,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            63136  0
snd_mixer_oss          19072  1 snd_pcm_oss
snd_pcm               104964  4 
snd_via82xx_modem,snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer              27140  2 snd_seq,snd_pcm
snd_page_alloc         11528  3 snd_via82xx_modem,snd_via82xx,snd_pcm
snd_mpu401_uart         8576  1 snd_via82xx
snd_rawmidi            27296  2 snd_seq_virmidi,snd_mpu401_uart
snd_seq_device          9356  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd                    65900  20 
snd_virmidi,snd_seq_virmidi,snd_via82xx_modem,snd_via82xx,snd_ac97_codec,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10336  1 snd

/etc/init.d/alsasound stop or restart indicates that snd-virmidi is in use	

[root@rumba ~]# /etc/init.d/alsasound restart
Shutting down sound driverERROR: Module snd_virmidi is in use
ERROR: Module snd_seq_virmidi is in use by snd_virmidi
ERROR: Module snd_seq_midi_event is in use by snd_seq_virmidi
ERROR: Module snd_seq is in use by snd_seq_virmidi,snd_seq_midi_event
ERROR: Module snd_timer is in use by snd_seq
ERROR: Module snd_rawmidi is in use by snd_seq_virmidi
ERROR: Module snd_seq_device is in use by snd_seq,snd_rawmidi
ERROR: Module snd is in use by 
snd_virmidi,snd_seq_virmidi,snd_seq_midi_event,snd_seq,snd_timer,snd_rawmidi,snd_seq_device
                                                            [  OK  ]
ALSA driver already running
Starting sound driver snd-via82xx                          [  OK  ]
Starting sequencer                       ,                 [  OK  ]
Starting sequencer driver snd-seq-oss                      [  OK  ]
Restoring sound driver settings                            [  OK  ]

but still nothing in /proc/asound/cards	

[root@rumba ~]# cat /proc/asound/cards
0 [V8235          ]: VIA8233 - VIA 8235
                      VIA 8235 with ALC202 at 0x1000, irq 18

(I wonder what happened to snd-via82xx-modem). Still no midi in /dev/snd, 
acconect -io now gives

client 0: 'System' [type=kernel]
     0 'Timer           '
     1 'Announce        '
[root@rumba ~]#

Any suggestions how to make snd-virmidi work?

Thanks,
Cumhur

> Dear planetccrma list,
> 
> I cannot get snd-virmidi working on FC4. I believe it is loaded, so is 
> snd-seq, but the /dev/snd/midi* files are absent; no sequencer clients 
> are created, and aconnect -io does not enlist any ports.
> 
> The following did not help:
> #modprobe snd-virmidi
> /sbin/depmod -a
> alsasound stop/start/restart
> /sbin/chkconfig alsasound on
> 
> Any help is appreciated. Thanks for your time.
> 
> [cerkut@rumba ~]$ uname -a
> Linux rumba.hut.fi 2.6.14-0.10.rrt.rhfc4.ccrma #1 PREEMPT Mon Dec 5 
> 15:50:29 EST 2005 i686 athlon i386 GNU/Linux
> 
> ALSA parts of /etc/modprobe.conf:
> ...
> ### ALSA portion
> alias char-major-116 snd
> alias snd-card-0 snd-via82xx
> options snd-via82xx index=0
> install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx && 
> /usr/sbin/alsactl restore >/dev/null 2>&1 || :
> remove snd-via82xx { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; 
> /sbin/modprobe -r --ignore-remove snd-via82xx
> 
> # OSS
> alias char-major-14 soundcore
> alias sound-slot-0 snd-via82xx
> 
> 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
> 
> # SND-VIRMIDI
> alias snd-card-1 snd-virmidi
> options snd-virmidi index=1
> alias sound-slot-1 snd-virmidi
> 
> [cerkut@rumba ~]$ /sbin/lsmod | grep snd
> snd_via82xx_modem      16520  0
> snd_virmidi             5200  1
> snd_seq_virmidi         8320  1 snd_virmidi
> snd_via82xx            30488  2
> gameport               16264  1 snd_via82xx
> snd_ac97_codec         93600  2 snd_via82xx_modem,snd_via82xx
> snd_ac97_bus            2688  1 snd_ac97_codec
> snd_seq_dummy           4228  0
> snd_seq_oss            37760  0
> snd_seq_midi_event      7808  2 snd_seq_virmidi,snd_seq_oss
> snd_seq                59280  6 
> snd_seq_virmidi,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
> snd_pcm_oss            63136  0
> snd_mixer_oss          19072  2 snd_pcm_oss
> snd_pcm               104964  4 
> snd_via82xx_modem,snd_via82xx,snd_ac97_codec,snd_pcm_oss
> snd_timer              27140  2 snd_seq,snd_pcm
> snd_page_alloc         11528  3 snd_via82xx_modem,snd_via82xx,snd_pcm
> snd_mpu401_uart         8576  1 snd_via82xx
> snd_rawmidi            27296  2 snd_seq_virmidi,snd_mpu401_uart
> snd_seq_device          9356  4 
> snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
> snd                    65900  18 
> snd_via82xx_modem,snd_virmidi,snd_seq_virmidi,snd_via82xx,snd_ac97_codec,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device 
> 
> soundcore              10336  2 snd
> 
> [cerkut@rumba ~]$ ls -l /dev/snd
> total 0
> crw-------  1 cerkut root 116,  0 Jan 26  2006 controlC0
> crw-------  1 cerkut root 116, 64 Jan 26  2006 controlC2
> crw-------  1 cerkut root 116, 24 Jan 26  2006 pcmC0D0c
> crw-------  1 cerkut root 116, 16 Jan 26  2006 pcmC0D0p
> crw-------  1 cerkut root 116, 25 Jan 26  2006 pcmC0D1c
> crw-------  1 cerkut root 116, 17 Jan 26  2006 pcmC0D1p
> crw-------  1 cerkut root 116, 88 Jan 26  2006 pcmC2D0c
> crw-------  1 cerkut root 116, 80 Jan 26  2006 pcmC2D0p
> crw-------  1 cerkut root 116,  1 Jan 26  2006 seq
> crw-------  1 cerkut root 116, 33 Jan 26  2006 timer
> 
> [cerkut@rumba ~]$ aconnect -io
> client 0: 'System' [type=kernel]
>     0 'Timer           '
>     1 'Announce        '
> client 62: 'Midi Through' [type=kernel]
>     0 'Midi Through Port-0'
>