[alsa-devel] soc_enum has issues

Jon Smirl jonsmirl at gmail.com
Thu Jul 24 00:00:52 CEST 2008


It is treating mask like a max:

dapm_connect_mux...
	struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
	int i;

	for (i = 0; i < e->mask; i++) {
		if (!(strcmp(control_name, e->texts[i]))) {

This looks like an error. I don't think there is a requirement that
the number of elements in an enum be a power of two.

-- 
Jon Smirl
jonsmirl at gmail.com


More information about the Alsa-devel mailing list