diff options
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index abe373d57adc..e1ef63d4a5c4 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -244,10 +244,11 @@ struct device; | |||
244 | { .id = snd_soc_dapm_supply, .name = wname, .reg = wreg, \ | 244 | { .id = snd_soc_dapm_supply, .name = wname, .reg = wreg, \ |
245 | .shift = wshift, .invert = winvert, .event = wevent, \ | 245 | .shift = wshift, .invert = winvert, .event = wevent, \ |
246 | .event_flags = wflags} | 246 | .event_flags = wflags} |
247 | #define SND_SOC_DAPM_REGULATOR_SUPPLY(wname, wdelay) \ | 247 | #define SND_SOC_DAPM_REGULATOR_SUPPLY(wname, wdelay, wflags) \ |
248 | { .id = snd_soc_dapm_regulator_supply, .name = wname, \ | 248 | { .id = snd_soc_dapm_regulator_supply, .name = wname, \ |
249 | .reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \ | 249 | .reg = SND_SOC_NOPM, .shift = wdelay, .event = dapm_regulator_event, \ |
250 | .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD } | 250 | .event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD, \ |
251 | .invert = wflags} | ||
251 | 252 | ||
252 | 253 | ||
253 | /* dapm kcontrol types */ | 254 | /* dapm kcontrol types */ |
@@ -319,6 +320,9 @@ struct device; | |||
319 | #define SND_SOC_DAPM_EVENT_OFF(e) \ | 320 | #define SND_SOC_DAPM_EVENT_OFF(e) \ |
320 | (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)) | 321 | (e & (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)) |
321 | 322 | ||
323 | /* regulator widget flags */ | ||
324 | #define SND_SOC_DAPM_REGULATOR_BYPASS 0x1 /* bypass when disabled */ | ||
325 | |||
322 | struct snd_soc_dapm_widget; | 326 | struct snd_soc_dapm_widget; |
323 | enum snd_soc_dapm_type; | 327 | enum snd_soc_dapm_type; |
324 | struct snd_soc_dapm_path; | 328 | struct snd_soc_dapm_path; |
@@ -412,6 +416,7 @@ void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec); | |||
412 | 416 | ||
413 | /* Mostly internal - should not normally be used */ | 417 | /* Mostly internal - should not normally be used */ |
414 | void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason); | 418 | void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason); |
419 | void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); | ||
415 | 420 | ||
416 | /* dapm path query */ | 421 | /* dapm path query */ |
417 | int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, | 422 | int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, |
@@ -510,7 +515,6 @@ struct snd_soc_dapm_widget { | |||
510 | /* dapm control */ | 515 | /* dapm control */ |
511 | int reg; /* negative reg = no direct dapm */ | 516 | int reg; /* negative reg = no direct dapm */ |
512 | unsigned char shift; /* bits to shift */ | 517 | unsigned char shift; /* bits to shift */ |
513 | unsigned int saved_value; /* widget saved value */ | ||
514 | unsigned int value; /* widget current value */ | 518 | unsigned int value; /* widget current value */ |
515 | unsigned int mask; /* non-shifted mask */ | 519 | unsigned int mask; /* non-shifted mask */ |
516 | unsigned int on_val; /* on state value */ | 520 | unsigned int on_val; /* on state value */ |