asoc: codecs: Change WSA SPKRRECV control to bool

Update from SOC_ENUM to SOC_SINGLE to match rest of driver
implementation. Also remove remaining dev_mode enum references
in wsa884x driver.

Change-Id: I2a477c4fa8c29373ffa1e8e2eb599a0f1c61653d
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
This commit is contained in:
Matthew Rice
2022-04-27 10:45:29 -07:00
rodzic 16a78f8cb3
commit c117389d88
2 zmienionych plików z 5 dodań i 17 usunięć

Wyświetl plik

@@ -773,13 +773,6 @@ static void wsa_noise_gate_write(struct snd_soc_component *component,
}
}
static const char * const wsa_dev_mode_text[] = {
"speaker", "receiver"
};
static const struct soc_enum wsa_dev_mode_enum =
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(wsa_dev_mode_text), wsa_dev_mode_text);
static int wsa_dev_mode_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
@@ -805,7 +798,7 @@ static int wsa_dev_mode_put(struct snd_kcontrol *kcontrol,
int wsa_dev_index;
dev_mode = ucontrol->value.integer.value[0];
dev_dbg(component->dev, "%s: Dev Mode current: %d, new: %d = %ld\n",
dev_dbg(component->dev, "%s: Dev Mode current: %d, new: %d\n",
__func__, wsa884x->dev_mode, dev_mode);
/* Check if input parameter is in range */