Loading asoc/codecs/wsa883x/wsa883x.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -620,9 +620,14 @@ static int wsa_get_temp(struct snd_kcontrol *kcontrol, { { struct snd_soc_component *component = struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); snd_soc_kcontrol_component(kcontrol); struct wsa883x_priv *wsa883x = snd_soc_component_get_drvdata(component); int temp = 0; int temp = 0; if (test_bit(SPKR_STATUS, &wsa883x->status_mask)) temp = wsa883x->curr_temp; else wsa883x_get_temperature(component, &temp); wsa883x_get_temperature(component, &temp); ucontrol->value.integer.value[0] = temp; ucontrol->value.integer.value[0] = temp; return 0; return 0; Loading Loading
asoc/codecs/wsa883x/wsa883x.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -620,9 +620,14 @@ static int wsa_get_temp(struct snd_kcontrol *kcontrol, { { struct snd_soc_component *component = struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); snd_soc_kcontrol_component(kcontrol); struct wsa883x_priv *wsa883x = snd_soc_component_get_drvdata(component); int temp = 0; int temp = 0; if (test_bit(SPKR_STATUS, &wsa883x->status_mask)) temp = wsa883x->curr_temp; else wsa883x_get_temperature(component, &temp); wsa883x_get_temperature(component, &temp); ucontrol->value.integer.value[0] = temp; ucontrol->value.integer.value[0] = temp; return 0; return 0; Loading