/openbmc/linux/sound/soc/codecs/ |
H A D | wcd-mbhc-v2.c | 14 #include "wcd-mbhc-v2.h" 74 /* Holds mbhc detection method - ADC/Legacy */ 78 static inline int wcd_mbhc_write_field(const struct wcd_mbhc *mbhc, in wcd_mbhc_write_field() argument 81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() 85 mbhc->fields[field].reg, in wcd_mbhc_write_field() 86 mbhc->fields[field].mask, val); in wcd_mbhc_write_field() 89 static inline int wcd_mbhc_read_field(const struct wcd_mbhc *mbhc, int field) in wcd_mbhc_read_field() argument 91 if (!mbhc->fields[field].reg) in wcd_mbhc_read_field() 94 return snd_soc_component_read_field(mbhc->component, in wcd_mbhc_read_field() [all …]
|
H A D | wcd-mbhc-v2.h | 271 int wcd_mbhc_start(struct wcd_mbhc *mbhc, struct wcd_mbhc_config *mbhc_cfg, 273 void wcd_mbhc_stop(struct wcd_mbhc *mbhc); 274 void wcd_mbhc_set_hph_type(struct wcd_mbhc *mbhc, int hph_type); 275 int wcd_mbhc_get_hph_type(struct wcd_mbhc *mbhc); 281 int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl, 283 void wcd_mbhc_deinit(struct wcd_mbhc *mbhc); 284 int wcd_mbhc_event_notify(struct wcd_mbhc *mbhc, unsigned long event); 293 static inline void wcd_mbhc_stop(struct wcd_mbhc *mbhc) in wcd_mbhc_stop() argument 306 static inline void wcd_mbhc_set_hph_type(struct wcd_mbhc *mbhc, int hph_type) in wcd_mbhc_set_hph_type() argument 310 static inline int wcd_mbhc_get_hph_type(struct wcd_mbhc *mbhc) in wcd_mbhc_get_hph_type() argument [all …]
|
H A D | msm8916-wcd-analog.c | 507 /* enable MBHC clock */ in pm8916_wcd_setup_mbhc() 1164 "qcom,mbhc-vthreshold-low", in pm8916_wcd_analog_parse_dt() 1171 "qcom,mbhc-vthreshold-high", in pm8916_wcd_analog_parse_dt() 1180 "DT property missing, MBHC btn detection disabled\n"); in pm8916_wcd_analog_parse_dt() 1218 "mbhc switch irq", priv); in pm8916_wcd_analog_spmi_probe() 1220 dev_err(dev, "cannot request mbhc switch irq\n"); in pm8916_wcd_analog_spmi_probe() 1233 "mbhc btn press irq", priv); in pm8916_wcd_analog_spmi_probe() 1235 dev_err(dev, "cannot request mbhc button press irq\n"); in pm8916_wcd_analog_spmi_probe() 1247 "mbhc btn release irq", priv); in pm8916_wcd_analog_spmi_probe() 1249 dev_err(dev, "cannot request mbhc button release irq\n"); in pm8916_wcd_analog_spmi_probe()
|
H A D | wcd934x.c | 24 #include "wcd-mbhc-v2.h" 567 /* mbhc module */ 568 struct wcd_mbhc *mbhc; member 2469 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2474 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2489 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2495 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2499 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2886 wcd_mbhc_set_hph_type(wcd934x->mbhc, WCD_MBHC_HPH_MONO); in wcd934x_wcd_mbhc_calc_impedance() 2910 wcd_mbhc_set_hph_type(wcd934x->mbhc, WCD_MBHC_HPH_STEREO); in wcd934x_wcd_mbhc_calc_impedance() [all …]
|
H A D | wcd938x.c | 25 #include "wcd-mbhc-v2.h" 179 /* mbhc module */ 1942 /* MBHC related */ 2647 /* END MBHC */ 2682 SOC_SINGLE_EXT("MBHC Switch", WCD938X_MBHC, 1, 1, 0, 3195 dev_err(component->dev, "mbhc initialization failed\n"); in wcd938x_soc_codec_probe()
|
H A D | Makefile | 307 snd-soc-wcd-mbhc-objs := wcd-mbhc-v2.o 690 obj-$(CONFIG_SND_SOC_WCD_MBHC) += snd-soc-wcd-mbhc.o
|
H A D | wcd9335.c | 2585 * MIC BIAS can also be requested by MBHC, in __wcd9335_codec_enable_micbias() 5137 * HPH OCP, MBHC, MAD, VBAT, and SVA in wcd9335_irq_init()
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,pm8916-wcd-analog-codec.yaml | 51 qcom,mbhc-vthreshold-low: 55 headset when MBHC is powered by an internal current source. 59 qcom,mbhc-vthreshold-high: 63 headset when MBHC is powered from micbias. 117 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 118 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
H A D | qcom,wcd934x.yaml | 90 qcom,mbhc-headset-vthreshold-microvolt: 95 qcom,mbhc-headphone-vthreshold-microvolt: 100 qcom,mbhc-buttons-vthreshold-microvolt: 221 … qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 222 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 223 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | qcom,wcd938x.yaml | 81 qcom,mbhc-headset-vthreshold-microvolt: 86 qcom,mbhc-headphone-vthreshold-microvolt: 91 qcom,mbhc-buttons-vthreshold-microvolt: 128 … qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 129 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | apq8039-t2.dts | 148 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 149 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
H A D | sdm850-samsung-w737.dts | 657 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 658 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 659 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | msm8916-huawei-g7.dts | 230 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 231 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
H A D | sc7280-qcard.dtsi | 56 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 58 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 59 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sc7280-idp.dtsi | 54 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 56 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 57 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sdm850-lenovo-yoga-c630.dts | 797 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 798 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 799 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sm8550-mtp.dts | 37 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 38 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 39 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sm8550-qrd.dts | 38 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 39 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 40 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sm8250-mtp.dts | 41 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 42 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 43 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | sm8450-hdk.dts | 41 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 42 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 43 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
H A D | apq8016-sbc.dts | 263 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 264 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
H A D | sc8280xp-lenovo-thinkpad-x13s.dts | 48 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 49 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 50 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
/openbmc/linux/ |
H A D | MAINTAINERS | 17501 F: sound/soc/codecs/wcd-mbhc-v2.*
|
H A D | opengrok1.0.log | [all...] |
H A D | opengrok2.0.log | [all...] |