Re: Bug#320860: hw-detect: Should support basic sound card detection
Frans Pop wrote:
On Tuesday 02 August 2005 10:32, David Goodenough wrote:
Also the VIA MiniITX boards usually come with
this kind of support which you may not want to use.
In the bug report I proposed a way to test for the presence of a sound
card. Would embedded systems give "true" for that test?
For VIA EPIA ME6000 (MiniITX):
via2:~# cat /sys/bus/pci/devices/*/class 2>/dev/null | grep "0x040100"
0x040100
via2:~# uname -a
Linux via2 2.6.8-1-386 #1 Thu Nov 11 12:18:43 EST 2004 i686 GNU/Linux
via2:~# lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8623 [Apollo CLE266]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
0000:00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB
1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102
[Rhine-II] (rev74)
0000:00:14.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970
[PCnet32 LANCE] (rev 36)
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8623
[Apollo CLE266] integrated CastleRock graphics (rev 03)
via2:~# lsmod
Module Size Used by
drbd 132848 3
ipv6 229764 18
parport_pc 31936 0
parport 37320 1 parport_pc
tsdev 7168 0
mousedev 9996 2
floppy 54992 0
psmouse 17800 0
evdev 9088 0
pcspkr 3816 0
snd_via82xx 26660 0
snd_ac97_codec 59268 1 snd_via82xx
snd_pcm 85384 1 snd_via82xx
snd_timer 23172 1 snd_pcm
snd_page_alloc 11144 2 snd_via82xx,snd_pcm
gameport 4736 1 snd_via82xx
snd_mpu401_uart 7296 1 snd_via82xx
snd_rawmidi 23204 1 snd_mpu401_uart
snd_seq_device 7944 1 snd_rawmidi
snd 50660 7
snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
shpchp 87148 0
pciehp 83948 0
pci_hotplug 30640 2 shpchp,pciehp
via_agp 8832 1
agpgart 31784 1 via_agp
ehci_hcd 27908 0
uhci_hcd 29328 0
usbcore 104164 4 ehci_hcd,uhci_hcd
via82cxxx_audio 26248 0
uart401 11460 1 via82cxxx_audio
sound 75308 2 via82cxxx_audio,uart401
soundcore 9824 3 snd,via82cxxx_audio,sound
ac97_codec 16908 1 via82cxxx_audio
eth1394 19976 0
pcnet32 25864 0
via_rhine 19720 0
mii 4864 2 pcnet32,via_rhine
crc32 4608 2 pcnet32,via_rhine
via_ircc 20368 0
irda 167360 1 via_ircc
crc_ccitt 2432 1 irda
ohci1394 32004 0
dm_mod 51068 0
capability 4872 0
commoncap 7168 1 capability
ds1621 8452 0
vt1211 15876 0
i2c_sensor 2944 2 ds1621,vt1211
i2c_isa 2304 0
i2c_viapro 6924 0
i2c_core 22416 5 ds1621,vt1211,i2c_sensor,i2c_isa,i2c_viapro
sr_mod 15780 0
sd_mod 20480 0
sbp2 22408 0
scsi_mod 115148 3 sr_mod,sd_mod,sbp2
ieee1394 100408 3 eth1394,ohci1394,sbp2
ide_cd 38176 0
cdrom 35740 2 sr_mod,ide_cd
genrtc 9332 0
ext3 109544 1
jbd 54552 1 ext3
ide_generic 1664 0
via82cxxx 12956 1
ide_disk 16768 7
ide_core 125156 4 ide_cd,ide_generic,via82cxxx,ide_disk
unix 25908 84
font 8576 0
vesafb 6688 0
cfbcopyarea 3840 1 vesafb
cfbimgblt 3200 1 vesafb
cfbfillrect 3712 1 vesafb
Is there a test that could be used to exclude embedded systems?
Not a good idea.
Embedded system are also used for home entertainment and car navigation.
Only the admin can decide, which features should be installed.
A medium expert mode during installation would be nice. This could ask,
what the system is intended to be used. If it is
[File-|Web-|Mail-Server|Router|Firewall] the sound modules (and maybe
others too) could be left out. But on a deeper level, the admin maybe
wants to decide to install snd_*, e.g. to receive an accoustic time
signal as ntp-reference (but this is exotic;-).
E.g. my VIA EPIAS run in a server cluster, have no floppy, no CD-ROM,
parport is unused etc. I could customize the kernel and the module
configuration, but I need not.
Helmut Wollmersdorfer
Reply to: