Lines Matching +full:mic2 +full:- +full:src

1 // SPDX-License-Identifier: GPL-2.0-only
3 * lm49453.c - LM49453 ALSA Soc Audio driver
23 #include <sound/soc-dapm.h>
210 static const char *lm49453_adcr_mux_text[] = { "MIC2", "Aux_R" };
491 static const DECLARE_TLV_DB_SCALE(adc_dac_tlv, -7650, 150, 1);
493 static const DECLARE_TLV_DB_SCALE(port_tlv, -1800, 600, 0);
494 static const DECLARE_TLV_DB_SCALE(stn_tlv, -7200, 150, 0);
513 /* mic1 and mic2 supports mono only */
515 SOC_SINGLE_TLV("Mic2 Volume", LM49453_P0_MICR_REG, 0, 15, 0, mic_tlv),
528 SOC_DAPM_ENUM("DMIC12 SRC", lm49453_dmic12_cfg_enum),
529 SOC_DAPM_ENUM("DMIC34 SRC", lm49453_dmic34_cfg_enum),
668 SND_SOC_DAPM_MUX("Mic2 Input",
1074 { "Mic2 Input", NULL, "AMIC2" },
1084 { "ADCR Mux", "MIC2", "Mic2 Input" },
1110 struct snd_soc_component *component = dai->component; in lm49453_hw_params()
1131 return -EINVAL; in lm49453_hw_params()
1142 struct snd_soc_component *component = codec_dai->component; in lm49453_set_dai_fmt()
1164 return -EINVAL; in lm49453_set_dai_fmt()
1182 return -EINVAL; in lm49453_set_dai_fmt()
1197 struct snd_soc_component *component = dai->component; in lm49453_set_dai_sysclk()
1211 return -EINVAL; in lm49453_set_dai_sysclk()
1221 snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(1)|BIT(0), in lm49453_hp_mute()
1228 snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(3)|BIT(2), in lm49453_lo_mute()
1235 snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(5)|BIT(4), in lm49453_ls_mute()
1242 snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(4), in lm49453_ep_mute()
1249 snd_soc_component_update_bits(dai->component, LM49453_P0_DAC_DSP_REG, BIT(7)|BIT(6), in lm49453_ha_mute()
1266 regcache_sync(lm49453->regmap); in lm49453_set_bias_level()
1419 lm49453 = devm_kzalloc(&i2c->dev, sizeof(struct lm49453_priv), in lm49453_i2c_probe()
1423 return -ENOMEM; in lm49453_i2c_probe()
1427 lm49453->regmap = devm_regmap_init_i2c(i2c, &lm49453_regmap_config); in lm49453_i2c_probe()
1428 if (IS_ERR(lm49453->regmap)) { in lm49453_i2c_probe()
1429 ret = PTR_ERR(lm49453->regmap); in lm49453_i2c_probe()
1430 dev_err(&i2c->dev, "Failed to allocate register map: %d\n", in lm49453_i2c_probe()
1435 ret = devm_snd_soc_register_component(&i2c->dev, in lm49453_i2c_probe()
1439 dev_err(&i2c->dev, "Failed to register component: %d\n", ret); in lm49453_i2c_probe()