Sound Support
Alejandro Pulver
alejandro at varnet.biz
Fri Jan 21 09:34:21 PST 2005
Hello:
I had a great multimedia experience with FreeBSD (much better than I
expected). I have read the Handbook and FAQ, and successfully
configured my two sound cards and NVIDIA video card. I enjoyed audio
and video playback, and OpenGL games (gl-117, quake3, etc.). However I
would like to do a final tuning. I have some questions:
----------------------------------------------------------------------
1) pcm device numbering
I have two sound cards connected to my machine: an integrated SiS
7012 (C-Media Electronics CMI9739 AC97 Codec), managed by the
kernel module "snd_ich" and a PCI Genius Sound Maker Value 5.1
(CMedia CMI8738), managed by the kernel module "snd_cmi".
I want to use my second sound card (Genius) as the default (pcm0,
dsp0, dspr0, mixer0, etc.). If I load the kernel modules manually
(with kldload) I obtain the desired results. But if I load them at
boot time (with *_load="YES" entries in /boot/loader.conf) the SiS
card is detected first and used as the first output device (pcm0).
I think that an rc.d script to do that will be very unprolix. Is
there a way to specify the pcm device numbering manually (maybe
with device.hints)?
----------------------------------------------------------------------
2) MIDI support (sequencer and synthetizer)
I saw that my Genius card shows a mixer entry called "synth" (I
suppose it is the input device to record MIDI, if not, please
inform me), but it has not a "/dev/sequencer" device. In my second
machine I have a Sound Blaster Live! 5.1 (emu10k1) and it also has
not a sequencer device (and it has not a mixer entry called
"synth").
I have read in the page of the "emu10kx" driver
(http://chibis.persons.gfk.ru/audigy/) the following:
"WARNING: -CURRENT since 2004/05/31 23:22:59 PDT does not have MIDI
subsystem!
NEWMIDI was removed without replacement."
Will be a MIDI sequencer (and synthetizer for SB Live!) in FreeBSD?
----------------------------------------------------------------------
3) Sound Blaster Live! 24-bit
Will be support for this sound cards (24-bit)?
----------------------------------------------------------------------
I have included the output of the following commands:
1) uname -a
FreeBSD ale.varnet.bsd 5.3-RELEASE FreeBSD 5.3-RELEASE #10: Sat Nov
27 16:20:29 ART 2004
ale at ale.varnet.bsd:/usr/src/sys/i386/compile/ATHLON i386
2) cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Installed devices:
pcm0: <CMedia CMI8738> at io 0xc800 irq 17 kld snd_cmi (1p/1r/4v
channels duplex default)
pcm1: <SiS 7012> at io 0xdc00, 0xd800 irq 18 bufsz 16384 kld
snd_ich (1p/1r/1v channels duplex)
3) kldload snd_cmi (log messages)
pcm0: <CMedia CMI8738> at io 0xc800 irq 17 kld snd_cmi (1p/1r/1v
channels duplex default)
4) kldload snd_ich (log messages)
pcm1: <SiS 7012> port 0xd800-0xd87f,0xdc00-0xdcff irq 18 at device
2.7 on pci0
pcm1: [GIANT-LOCKED]
pcm1: <C-Media Electronics CMI9739 AC97 Codec>
5) mixer -f /dev/mixer0
Mixer vol is currently set to 75:75
Mixer bass is currently set to 50:50
Mixer treble is currently set to 50:50
Mixer synth is currently set to 75:75
Mixer pcm is currently set to 75:75
Mixer speaker is currently set to 75:75
Mixer line is currently set to 75:75
Mixer mic is currently set to 0:0
Mixer cd is currently set to 75:75
Mixer igain is currently set to 0:0
Mixer ogain is currently set to 50:50
Mixer monitor is currently set to 75:75
Recording source: mic
6) mixer -f /dev/mixer1
Mixer vol is currently set to 75:75
Mixer pcm is currently set to 75:75
Mixer speaker is currently set to 75:75
Mixer line is currently set to 75:75
Mixer mic is currently set to 0:0
Mixer cd is currently set to 75:75
Mixer rec is currently set to 0:0
Mixer ogain is currently set to 50:50
Mixer line1 is currently set to 75:75
Mixer phin is currently set to 0:0
Mixer phout is currently set to 0:0
Mixer video is currently set to 75:75
Recording source: mic
7) pciconf -v -l
hostb0 at pci0:0:0: class=0x060000 card=0x07411849 chip=0x07411039
rev=0x03 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS741 CPU to PCI Bridge'
class = bridge
subclass = HOST-PCI
pcib1 at pci0:1:0: class=0x060400 card=0x00000000 chip=0x00031039
rev=0x00 hdr=0x01
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS648FX Virtual PCI to PCI Bridge (AGP)'
class = bridge
subclass = PCI-PCI
isab0 at pci0:2:0: class=0x060100 card=0x00000000 chip=0x00081039
rev=0x25 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS PCI to ISA Bridge (LPC Bridge)'
class = bridge
subclass = PCI-ISA
atapci0 at pci0:2:5: class=0x010180 card=0x55131849 chip=0x55131039
rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5513 EIDE Controller (A,B step)'
class = mass storage
subclass = ATA
none0 at pci0:2:6: class=0x070300 card=0x97391849 chip=0x70131039
rev=0xa0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7013 HSP56 MR, PCtel Serial Wave Device (Modem Riser)'
class = simple comms
pcm1 at pci0:2:7: class=0x040100 card=0x70121849 chip=0x70121039
rev=0xa0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7012 PCI Audio Accelerator'
class = multimedia
subclass = audio
ohci0 at pci0:3:0: class=0x0c0310 card=0x70011849 chip=0x70011039
rev=0x0f hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
ohci1 at pci0:3:1: class=0x0c0310 card=0x70011849 chip=0x70011039
rev=0x0f hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
none1 at pci0:3:2: class=0x0c0320 card=0x70021849 chip=0x70021039
rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7002 USB 2.0 Enhanced Host Controller'
class = serial bus
subclass = USB
sis0 at pci0:4:0: class=0x020000 card=0x09001849 chip=0x09001039
rev=0x90 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class = network
subclass = ethernet
pcm0 at pci0:9:0: class=0x040100 card=0x011113f6 chip=0x011113f6
rev=0x10 hdr=0x00
vendor = 'C-Media Electronics Inc.'
device = 'CMI8738/PCI C3DX PCI Audio Chip中国'
class = multimedia
subclass = audio
rl0 at pci0:10:0: class=0x020000 card=0x0027a0a0 chip=0x813910ec
rev=0x10 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
class = network
subclass = ethernet
nvidia0 at pci1:0:0: class=0x030000 card=0x00000000 chip=0x018110de
rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'GeForce4 MX 440 with AGP 8X [NV18.2]'
class = display
subclass = VGA
8) pcitweak -l
PCI: Probing config type using method 1
PCI: Config type is 1
PCI: PCI scan (all values are in hex)
PCI: 00:00:0: chip 1039,0741 card 1849,0741 rev 03 class 06,00,00 hdr 00
PCI: 00:01:0: chip 1039,0003 card 0000,0000 rev 00 class 06,04,00 hdr 01
PCI: 00:02:0: chip 1039,0008 card 0000,0000 rev 25 class 06,01,00 hdr 80
PCI: 00:02:5: chip 1039,5513 card 1849,5513 rev 00 class 01,01,8a hdr 00
PCI: 00:02:6: chip 1039,7013 card 1849,9739 rev a0 class 07,03,00 hdr 00
PCI: 00:02:7: chip 1039,7012 card 1849,7012 rev a0 class 04,01,00 hdr 00
PCI: 00:03:0: chip 1039,7001 card 1849,7001 rev 0f class 0c,03,10 hdr 80
PCI: 00:03:1: chip 1039,7001 card 1849,7001 rev 0f class 0c,03,10 hdr 00
PCI: 00:03:2: chip 1039,7002 card 1849,7002 rev 00 class 0c,03,20 hdr 00
PCI: 00:04:0: chip 1039,0900 card 1849,0900 rev 90 class 02,00,00 hdr 00
PCI: 00:09:0: chip 13f6,0111 card 13f6,0111 rev 10 class 04,01,00 hdr 00
PCI: 00:0a:0: chip 10ec,8139 card a0a0,0027 rev 10 class 02,00,00 hdr 00
PCI: 01:00:0: chip 10de,0181 card 0000,0000 rev a2 class 03,00,00 hdr 00
PCI: 44:1f:0: chip ffff,ffff card ffff,ffff rev ff class ff,ff,ff hdr 00
PCI: End of PCI scan
9) cat /boot/loader.conf
# /boot/loader.conf
# Linux Binary Compatibility
linux_load="YES"
# Linux Proc Filesystem
linprocfs_load="YES"
# NTFS Filesystem
ntfs_load="YES"
# NVIDIA Official Video Driver
nvidia_load="YES"
# CMI8738
sound_load="YES"
snd_cmi_load="YES"
10) dmesg
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991,
1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.3-RELEASE #10: Sat Nov 27 16:20:29 ART 2004
ale at ale.varnet.bsd:/usr/src/sys/i386/compile/ATHLON
ACPI APIC Table: <AMIINT SiS740XX>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP 2400+ (2019.94-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x681 Stepping = 1
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,
MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory = 536805376 (511 MB)
avail memory = 511430656 (487 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT SiS740XX> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
nvidia0: <GeForce4 MX 440 with AGP8X> mem 0xc8000000-0xcbffffff,
0xce000000-0xceffffff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 UDMA133 controller> port 0xff00-0xff0f,0x376,
0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.5 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <simple comms> at device 2.6 (no driver attached)
pci0: <multimedia, audio> at device 2.7 (no driver attached)
ohci0: <SiS 5571 USB controller> mem 0xcfffd000-0xcfffdfff irq 20
at device 3.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0xcfffe000-0xcfffefff irq 21
at device 3.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <serial bus, USB> at device 3.2 (no driver attached)
sis0: <SiS 900 10/100BaseTX> port 0xcc00-0xccff
mem 0xcfffc000-0xcfffcfff irq 19 at device 4.0 on pci0
miibus0: <MII bus> on sis0
rlphy0: <RTL8201L 10/100 media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:0b:6a:44:14:4c
pcm0: <CMedia CMI8738> port 0xc800-0xc8ff irq 17 at device 9.0
on pci0
rl0: <RealTek 8139 10/100BaseTX> port 0xc400-0xc4ff
mem 0xcfffbf00-0xcfffbfff irq 18 at device 10.0 on pci0
miibus1: <MII bus> on rl0
rlphy1: <RealTek internal media interface> on miibus1
rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:40:f4:1e:db:61
fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3
irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags
0x10 on acpi0
sio0: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1
on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcefff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2019940220 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 38146MB <ST340014A/3.16> [77504/16/63] at ata0-master UDMA100
acd0: CDRW <HL-DT-ST GCE-8523B/1.01> at ata0-slave UDMA33
ad2: 39205MB <Maxtor 6E040L0/NAR61590> [79656/16/63] at
ata1-master UDMA133
cd0 at ata0 bus 0 target 1 lun 0
cd0: <HL-DT-ST CD-RW GCE-8523B 1.01> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY,
Medium not present - tray closed
Mounting root from ufs:/dev/ad2s4a
----------------------------------------------------------------------
Did I miss some articles/forums/documents related to this?
Should I post this kind of questions to the mailing lists instead of
contacting questions at FreeBSD.org?
----------------------------------------------------------------------
Thanks and Best Regards
Alejandro Pulver
Buenos Aires, Argentina
----------------------------------------------------------------------
More information about the freebsd-questions
mailing list