usage of SOC_ENUM_SINGLE

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

 



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
_______________________________________________
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