Skip to contentSkip to conversation

Control renaming for EMU10k1

DISCUSSION Joachim Falk 2 participants 2 messages Jun 26, 2004

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey alsa-devel list,
I have a SB Live sound card
// 'Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07) // Subsystem: Creative Labs SB Live! 5.1 Model SB0100'
//
// numeric:
// 'Class 0401: 1102:0002 (rev 07)
// Subsystem: 1102:8064'
With AC97 Sigmatel 9708/11. The names for the AC97 controls from ac97_codec.c do not match how they are used on the Live.
So I have done some Control renaming in the emumixer.c
But the "AC97 Surround Playback control" is a stereo control but is used for the Live as control for Center and LFE.

So my question is how can i best rename this control to have two different names matching the functionality for the right and left channel of the stereo channel ?

Or is driver hacking here foolish and there exists a better mechanisme for this kind of stuff in userspace ?

My longterm goal is to improve the mixer for SB Lives.

MfG
Joachim Falk
- --
Joachim Falk <[email protected]>

You can always tell a really good idea by the enemies it makes. ~ --programmers' axiom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA3Yd1KwZcgs55jUMRAoLYAKDIOLMlPv46p59x7IBr+yx78Dhk0ACeKlmy 8K29AwabmQ9iRZr26gArP2w=
=wOBs
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#1 lore raw
Quoted 6 lines · Joachim Falk

With AC97 Sigmatel 9708/11. The names for the AC97 controls from ac97_codec.c do not match how they are used on the Live. So I have done some Control renaming in the emumixer.c But the "AC97 Surround Playback control" is a stereo control but is used for the Live as control for Center and LFE.

Quoted 6 lines

So my question is how can i best rename this control to have two different names matching the functionality for the right and left channel of the stereo channel ?

Or is driver hacking here foolish and there exists a better mechanisme for this kind of stuff in userspace ?

This is definitely an issue to be solved in userspace. Many configurations do not use a center/LFE, and those that do may want to use a different pair of outputs. Other configurations will have a full-range speaker (or a bass amp) connected to the LFE channel and will want to use a crossover/lowpass filter.

The mixer for the EMU10K1 is actually an FX8010 DSP microcode program that is currently hardcoded in the driver. Eventually this will be controlled by a userspace DSP patch loader/unloader. Peter Zubaj has written such a program, ld10k1 (http://ld10k1.sourceforge.net). It is "alpha-quality", but it can (for example) clear the DSP microcode and recreate the mixer configuration hardcoded in the driver. The more people test it, the faster it will stabilize.

I highly recommend you try the (Windows) driver from the kX Project
(http://www.kxproject.com), or at least look at the screenshots and the docs. They also distribute an SDK, the header files are interesting reading. This should give you some idea of some of the amazing things this hardware is capable of and how far the ALSA driver has to go. The ALSA driver is not as advanced as the kX driver yet, but this is being worked on.

Quoted 1 line

My longterm goal is to improve the mixer for SB Lives.

The best way you can help is to install ld10k1 and test it. If you try the kX drivers then you will see that a stable DSP patch loader is required to do anything interesting with this card. For the center/LFE issue, rather than tweaking the hardcoded DSP mixer code in the driver, this should let you make the changes to the 'mixer' DSP patch, then you can just load it in place of the default mixer. The kX drivers use a patch called 'Surrounder' for this.

Finally, I do not speak for ALSA or the author of ld10k1, I just like to hack the driver. The above is just my opinion.

Lee

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com