Commit 70255cf6 authored by Tzung-Bi Shih's avatar Tzung-Bi Shih Committed by Mark Brown

ASoC: rt5682: remove empty default case

Removes empty default case.  Also adds a missing break statement.
Signed-off-by: default avatarTzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20200430082231.151127-4-tzungbi@google.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5b8e0909
...@@ -950,6 +950,7 @@ static int rt5682_headset_detect(struct snd_soc_component *component, ...@@ -950,6 +950,7 @@ static int rt5682_headset_detect(struct snd_soc_component *component,
break; break;
default: default:
rt5682->jack_type = SND_JACK_HEADPHONE; rt5682->jack_type = SND_JACK_HEADPHONE;
break;
} }
} else { } else {
rt5682_enable_push_button_irq(component, false); rt5682_enable_push_button_irq(component, false);
...@@ -1526,9 +1527,6 @@ static int rt5682_hp_event(struct snd_soc_dapm_widget *w, ...@@ -1526,9 +1527,6 @@ static int rt5682_hp_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
RT5682_DAC_ADC_DIG_VOL1, 0x00c0, 0x0000); RT5682_DAC_ADC_DIG_VOL1, 0x00c0, 0x0000);
break; break;
default:
return 0;
} }
return 0; return 0;
...@@ -1550,9 +1548,6 @@ static int set_dmic_power(struct snd_soc_dapm_widget *w, ...@@ -1550,9 +1548,6 @@ static int set_dmic_power(struct snd_soc_dapm_widget *w,
/*Add delay to avoid pop noise*/ /*Add delay to avoid pop noise*/
msleep(delay); msleep(delay);
break; break;
default:
return 0;
} }
return 0; return 0;
...@@ -1576,9 +1571,6 @@ static int rt5682_set_verf(struct snd_soc_dapm_widget *w, ...@@ -1576,9 +1571,6 @@ static int rt5682_set_verf(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
RT5682_PWR_ANLG_1, RT5682_PWR_FV2, 0); RT5682_PWR_ANLG_1, RT5682_PWR_FV2, 0);
break; break;
default:
break;
} }
break; break;
...@@ -1596,14 +1588,8 @@ static int rt5682_set_verf(struct snd_soc_dapm_widget *w, ...@@ -1596,14 +1588,8 @@ static int rt5682_set_verf(struct snd_soc_dapm_widget *w,
RT5682_PWR_ANLG_1, RT5682_PWR_FV2, RT5682_PWR_ANLG_1, RT5682_PWR_FV2,
RT5682_PWR_FV2); RT5682_PWR_FV2);
break; break;
default:
break;
} }
break; break;
default:
return 0;
} }
return 0; return 0;
...@@ -2483,8 +2469,7 @@ static int rt5682_set_bias_level(struct snd_soc_component *component, ...@@ -2483,8 +2469,7 @@ static int rt5682_set_bias_level(struct snd_soc_component *component,
regmap_update_bits(rt5682->regmap, RT5682_PWR_ANLG_1, regmap_update_bits(rt5682->regmap, RT5682_PWR_ANLG_1,
RT5682_PWR_BG, 0); RT5682_PWR_BG, 0);
break; break;
case SND_SOC_BIAS_ON:
default:
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment