Skip to contentSkip to conversation

Driver version check

DISCUSSION Takashi Iwai 1 participant 1 message Sep 13, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I'm consdering about to add a driver-version check with alsa-lib configuration.

For example, emu10k1 code was changed to use IFACE_PCM instead of IFACE_MIXER. This results in that the new driver doesn't work with the old config although the newer config accepts both ifaces. The problem is that it's not obvious to know what is the problem. Thus, adding a check of version and showing error messages would be more user-friendly (and consequently, less workload for developers :)

The question is how to implement this.
One condition is:

The version number/string should be embedded in each card or pcm config file to compare with the driver.

So, we can add a new ioctl on control device or a new standard control element. The latter is a read-only control element such as IFACE_CARD:"Version", which represents the version number, etc.

And how to implement (or extend) the config syntax: it's still an open question, too.

One candidate is to add "version" to each PCM definition. Such as

in EMU10k1.conf:

	EMu10K1.pcm.front.0 {
		@args ....
		type hooks
		slave.pcm {
			type hw
			card $CARD
			device 0
==>			version "1.0.10"
		}
		...
	}

The expression of version is also a question. In some cases, the version must match exactly, and in some cases, it's backward compatible.

Comments please?

Takashi

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf