ASoC: dapm: add macro for MICBIAS
Add a new DAPM Macro for MICBIAS widget for use in codec drivers. Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
parent
6da5e2b946
commit
3cf2122061
1 changed files with 5 additions and 0 deletions
|
@ -314,6 +314,11 @@ struct device;
|
|||
.get = snd_soc_dapm_get_pin_switch, \
|
||||
.put = snd_soc_dapm_put_pin_switch, \
|
||||
.private_value = (unsigned long)xname }
|
||||
#define SND_SOC_DAPM_MICBIAS_E(wname, wreg, wshift, winvert, wevent, wflags) \
|
||||
{ .id = snd_soc_dapm_micbias, .name = wname, \
|
||||
SND_SOC_DAPM_INIT_REG_VAL(wreg, wshift, winvert), \
|
||||
.kcontrol_news = NULL, .num_kcontrols = 0, \
|
||||
.event = wevent, .event_flags = wflags}
|
||||
|
||||
/* dapm stream operations */
|
||||
#define SND_SOC_DAPM_STREAM_NOP 0x0
|
||||
|
|
Loading…
Add table
Reference in a new issue