Lines Matching +full:bypass +full:- +full:enable
1 // SPDX-License-Identifier: GPL-2.0-only
3 * isabelle.c - Low power high fidelity audio codec driver
22 #include <sound/soc-dapm.h>
342 static const DECLARE_TLV_DB_SCALE(afm_amp_tlv, -3300, 300, 0);
343 static const DECLARE_TLV_DB_SCALE(dac_tlv, -1200, 200, 0);
344 static const DECLARE_TLV_DB_SCALE(hf_tlv, -5000, 200, 0);
346 /* from -63 to 0 dB in 1 dB steps */
347 static const DECLARE_TLV_DB_SCALE(dpga_tlv, -6300, 100, 1);
349 /* from -63 to 9 dB in 1 dB steps */
350 static const DECLARE_TLV_DB_SCALE(rx_tlv, -6300, 100, 1);
352 static const DECLARE_TLV_DB_SCALE(st_tlv, -2700, 300, 1);
353 static const DECLARE_TLV_DB_SCALE(tx_tlv, -600, 100, 0);
414 SOC_SINGLE("ATX1 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
416 SOC_SINGLE("ATX2 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
418 SOC_SINGLE("ARX1 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
420 SOC_SINGLE("ARX2 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
422 SOC_SINGLE("ARX3 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
424 SOC_SINGLE("ARX4 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
426 SOC_SINGLE("ARX5 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
428 SOC_SINGLE("ARX6 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
430 SOC_SINGLE("VRX1 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
432 SOC_SINGLE("VRX2 Filter Bypass Switch", ISABELLE_AUDIO_HPF_CFG_REG,
435 SOC_SINGLE("ATX1 Filter Enable Switch", ISABELLE_ALU_TX_EN_REG,
437 SOC_SINGLE("ATX2 Filter Enable Switch", ISABELLE_ALU_TX_EN_REG,
439 SOC_SINGLE("VTX1 Filter Enable Switch", ISABELLE_ALU_TX_EN_REG,
441 SOC_SINGLE("VTX2 Filter Enable Switch", ISABELLE_ALU_TX_EN_REG,
443 SOC_SINGLE("RX1 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
445 SOC_SINGLE("RX2 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
447 SOC_SINGLE("RX3 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
449 SOC_SINGLE("RX4 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
451 SOC_SINGLE("RX5 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
453 SOC_SINGLE("RX6 Filter Enable Switch", ISABELLE_ALU_RX_EN_REG,
726 { "ULATX1", "ATX1 Filter Enable Switch", "ATX Select" },
727 { "ULATX1", "ATX1 Filter Bypass Switch", "ATX Select" },
728 { "ULATX2", "ATX2 Filter Enable Switch", "ATX Select" },
729 { "ULATX2", "ATX2 Filter Bypass Switch", "ATX Select" },
731 { "ULVTX1", "VTX1 Filter Enable Switch", "VTX Select" },
732 { "ULVTX1", "VTX1 Filter Bypass Switch", "VTX Select" },
733 { "ULVTX2", "VTX2 Filter Enable Switch", "VTX Select" },
734 { "ULVTX2", "VTX2 Filter Bypass Switch", "VTX Select" },
750 { "RX1 Playback", "VRX1 Filter Bypass Switch", "RX1 Mixer" },
751 { "RX1 Playback", "ARX1 Filter Bypass Switch", "RX1 Mixer" },
752 { "RX1 Playback", "RX1 Filter Enable Switch", "RX1 Mixer" },
754 { "RX2 Playback", "VRX2 Filter Bypass Switch", "RX2 Mixer" },
755 { "RX2 Playback", "ARX2 Filter Bypass Switch", "RX2 Mixer" },
756 { "RX2 Playback", "RX2 Filter Enable Switch", "RX2 Mixer" },
758 { "RX3 Playback", "ARX3 Filter Bypass Switch", "RX3 Mixer" },
759 { "RX3 Playback", "RX3 Filter Enable Switch", "RX3 Mixer" },
761 { "RX4 Playback", "ARX4 Filter Bypass Switch", "RX4 Mixer" },
762 { "RX4 Playback", "RX4 Filter Enable Switch", "RX4 Mixer" },
764 { "RX5 Playback", "ARX5 Filter Bypass Switch", "RX5 Mixer" },
765 { "RX5 Playback", "RX5 Filter Enable Switch", "RX5 Mixer" },
767 { "RX6 Playback", "ARX6 Filter Bypass Switch", "RX6 Mixer" },
768 { "RX6 Playback", "RX6 Filter Enable Switch", "RX6 Mixer" },
865 snd_soc_component_update_bits(dai->component, ISABELLE_DAC1_SOFTRAMP_REG, in isabelle_hs_mute()
873 snd_soc_component_update_bits(dai->component, ISABELLE_DAC2_SOFTRAMP_REG, in isabelle_hf_mute()
881 snd_soc_component_update_bits(dai->component, ISABELLE_DAC3_SOFTRAMP_REG, in isabelle_line_mute()
914 struct snd_soc_component *component = dai->component; in isabelle_hw_params()
947 return -EINVAL; in isabelle_hw_params()
962 return -EINVAL; in isabelle_hw_params()
973 struct snd_soc_component *component = codec_dai->component; in isabelle_set_dai_fmt()
984 return -EINVAL; in isabelle_set_dai_fmt()
998 return -EINVAL; in isabelle_set_dai_fmt()
1043 .name = "isabelle-dl1",
1054 .name = "isabelle-dl2",
1065 .name = "isabelle-lineout",
1076 .name = "isabelle-ul",
1118 dev_err(&i2c->dev, "Failed to allocate register map: %d\n", in isabelle_i2c_probe()
1124 ret = devm_snd_soc_register_component(&i2c->dev, in isabelle_i2c_probe()
1128 dev_err(&i2c->dev, "Failed to register component: %d\n", ret); in isabelle_i2c_probe()