26 Nov
2010
26 Nov
'10
10:18 a.m.
Hi
I am trying to add an output control which is basically a switch between headset and earpiece. The H/W register for this asks me to write 0x40 for EP and 0x3 for enabling Headset
So I did this:
static const char *headset_switch_text[] = { "Earpiece", "HeadSet" };
static const struct snd_kcontrol_new intel_msic_snd_controls[] = { SOC_ENUM_SINGLE(OUTEN, 0x43, 0x40, headset_switch_text), };
Would this be the right thing, I am interpreting that 0x40 will be written for earpiece in above and 0x3 for headset
~Vinod