snd_emu10kx patch (WAS: RE: SB Live 5.1 Digital - sysctl ?)

Yuriy Tsibizov Yuriy.Tsibizov at gfk.com
Wed Jul 4 07:13:18 UTC 2007


Dear SB Live! / Audigy users.

I'm going to ask ariff to (ask re@ and) commit this patch before 7.0
release:
http://chibis.persons.gfk.ru/audigy/snd_emu10kx_70_patch2


Update snd_emu10kx driver with recent perforce changes (and some other
changes too).

(without any real order)

1. Use device_get_nameunit for mutex naming
2. Add timer for low-latency playback
3. Move most mixer controls from sysctls to mixer(8) controls. This
is a largest part of this patch.
4. Add analog/digital switch (as a temporary sysctl)
5. Get back support for low-bitrate playback (with help of (2))
6. Change locking for exclusive I/O. Writing to non-PTR register
is almost safe and does not need to be ordered with PTR operations.
7. Disable MIDI until we get it to detach properly and fix memory
managment problems.
8. Enable multichannel playback by default. It is as stable as
single-channel mode. Multichannel recording is still an experimental
feature.
9. Add a way to disable card from a loader tunable.

Tested on:

emu10kx0: <Creative Audigy 2 Value [SB0400]> port 0x9000-0x903f irq 17
at device 9.0 on pci0
emu10kx0: [ITHREAD]
emu10kx1: <Creative Audigy [SB0090]> port 0x9400-0x941f irq 18 at device
10.0 on pci0
emu10kx1: [ITHREAD]
emu10kx2: <Creative Audigy 2 [SB0240]> port 0x9c00-0x9c3f irq 19 at
device 11.0 on pci0
emu10kx2: [ITHREAD]
emu10kx3: <Creative SBLive! 5.1 Digital [SB0220]> port 0xa400-0xa41f irq
16 at device 12.0 on pci0
emu10kx3: [ITHREAD]
pcm0: <EMU10Kx DSP front PCM interface> on emu10kx0
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
pcm1: <EMU10Kx DSP rear PCM interface> on emu10kx0
pcm2: <EMU10Kx DSP center PCM interface> on emu10kx0
pcm3: <EMU10Kx DSP subwoofer PCM interface> on emu10kx0
pcm4: <EMU10Kx DSP side PCM interface> on emu10kx0
pcm5: <EMU10Kx DSP front PCM interface> on emu10kx1
pcm5: <TriTech TR28602 AC97 Codec>
pcm6: <EMU10Kx DSP rear PCM interface> on emu10kx1
pcm7: <EMU10Kx DSP center PCM interface> on emu10kx1
pcm8: <EMU10Kx DSP subwoofer PCM interface> on emu10kx1
pcm9: <EMU10Kx DSP front PCM interface> on emu10kx2
pcm9: <SigmaTel STAC9721/23 AC97 Codec>
pcm10: <EMU10Kx DSP rear PCM interface> on emu10kx2
pcm11: <EMU10Kx DSP center PCM interface> on emu10kx2
pcm12: <EMU10Kx DSP subwoofer PCM interface> on emu10kx2
pcm13: <EMU10Kx DSP front PCM interface> on emu10kx3
pcm13: <eMicro EM28028 AC97 Codec>
pcm14: <EMU10Kx DSP rear PCM interface> on emu10kx3

I need your feedback on:

I) High-priority checks (that I can't do on my own equipment)

-- digitally connected speakers, without
SND_EMU10KX_MULTICHANNEL_DISABLED and with it.
-- S/PDIF output to external receiver / amplifier

2) Overall driver stability. I did some crash-tests, it shouldn't crash
your machine in few seconds after load :-)
3) Features you may need or features that are not user-friendly.
4) any unclear documentation


Hope for your help,

Yuriy



More information about the freebsd-multimedia mailing list