diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 8eaf1b6e7ef2..613764638c7d 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1786,19 +1786,19 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol, | |||
1786 | mutex_lock(&widget->codec->mutex); | 1786 | mutex_lock(&widget->codec->mutex); |
1787 | widget->value = val; | 1787 | widget->value = val; |
1788 | dapm_mux_update_power(widget, kcontrol, mask, mux, val, e); | 1788 | dapm_mux_update_power(widget, kcontrol, mask, mux, val, e); |
1789 | if (widget->event) { | 1789 | |
1790 | if (widget->event_flags & SND_SOC_DAPM_PRE_REG) { | 1790 | if (widget->event_flags & SND_SOC_DAPM_PRE_REG) { |
1791 | ret = widget->event(widget, | 1791 | ret = widget->event(widget, |
1792 | kcontrol, SND_SOC_DAPM_PRE_REG); | 1792 | kcontrol, SND_SOC_DAPM_PRE_REG); |
1793 | if (ret < 0) | 1793 | if (ret < 0) |
1794 | goto out; | 1794 | goto out; |
1795 | } | 1795 | } |
1796 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); | 1796 | |
1797 | if (widget->event_flags & SND_SOC_DAPM_POST_REG) | 1797 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); |
1798 | ret = widget->event(widget, | 1798 | |
1799 | kcontrol, SND_SOC_DAPM_POST_REG); | 1799 | if (widget->event_flags & SND_SOC_DAPM_POST_REG) |
1800 | } else | 1800 | ret = widget->event(widget, |
1801 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); | 1801 | kcontrol, SND_SOC_DAPM_POST_REG); |
1802 | 1802 | ||
1803 | out: | 1803 | out: |
1804 | mutex_unlock(&widget->codec->mutex); | 1804 | mutex_unlock(&widget->codec->mutex); |
@@ -1883,19 +1883,19 @@ int snd_soc_dapm_put_value_enum_double(struct snd_kcontrol *kcontrol, | |||
1883 | mutex_lock(&widget->codec->mutex); | 1883 | mutex_lock(&widget->codec->mutex); |
1884 | widget->value = val; | 1884 | widget->value = val; |
1885 | dapm_mux_update_power(widget, kcontrol, mask, mux, val, e); | 1885 | dapm_mux_update_power(widget, kcontrol, mask, mux, val, e); |
1886 | if (widget->event) { | 1886 | |
1887 | if (widget->event_flags & SND_SOC_DAPM_PRE_REG) { | 1887 | if (widget->event_flags & SND_SOC_DAPM_PRE_REG) { |
1888 | ret = widget->event(widget, | 1888 | ret = widget->event(widget, |
1889 | kcontrol, SND_SOC_DAPM_PRE_REG); | 1889 | kcontrol, SND_SOC_DAPM_PRE_REG); |
1890 | if (ret < 0) | 1890 | if (ret < 0) |
1891 | goto out; | 1891 | goto out; |
1892 | } | 1892 | } |
1893 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); | 1893 | |
1894 | if (widget->event_flags & SND_SOC_DAPM_POST_REG) | 1894 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); |
1895 | ret = widget->event(widget, | 1895 | |
1896 | kcontrol, SND_SOC_DAPM_POST_REG); | 1896 | if (widget->event_flags & SND_SOC_DAPM_POST_REG) |
1897 | } else | 1897 | ret = widget->event(widget, |
1898 | ret = snd_soc_update_bits(widget->codec, e->reg, mask, val); | 1898 | kcontrol, SND_SOC_DAPM_POST_REG); |
1899 | 1899 | ||
1900 | out: | 1900 | out: |
1901 | mutex_unlock(&widget->codec->mutex); | 1901 | mutex_unlock(&widget->codec->mutex); |