diff options
| author | Banajit Goswami <bgoswami@codeaurora.org> | 2014-08-23 15:23:35 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:10:21 -0700 |
| commit | 3cf2122061379f30bb958d6f09c94e2a048371e6 (patch) | |
| tree | 33b24f692a24010a3b29589a5cf33b3b2e315ea1 /include | |
| parent | 6da5e2b94699ec2e250ac18f164bf43dd8419071 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc-dapm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 95a937eafb79..242a683c71c6 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -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 |
