26 Nov
2010
26 Nov
'10
3:51 p.m.
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.