[alsa-devel] usage of SOC_ENUM_SINGLE

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Nov 26 15:51:48 CET 2010

On Fri, Nov 26, 2010 at 08:15:11PM +0530, Koul, Vinod wrote:

> So this should do, right?

> 		ARRAY_SIZE(headset_switch_text),
> 		headset_switch_text, headset_switch_values)

> With, static const char *headset_switch_values[] = {
> 	"0x40", "0x03"
> };

No, that's not going to work and I'd be astonished if it compiled
cleanly.  You need to pass the *values* you want to set - look at the
uses of this in exiting CODEC drivers for examples of how to use this.

More information about the Alsa-devel mailing list