Re: usage of SOC_ENUM_SINGLE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> So this should do, right?

> SOC_VALUE_ENUM_SINGLE(MSIC_OUTEN, 0, 0x43,
> 		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.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux