| /linux/sound/soc/codecs/ |
| H A D | wcd-mbhc-v2.c | 14 #include "wcd-mbhc-v2.h" 78 /* Holds mbhc detection method - ADC/Legacy */ 82 static inline int wcd_mbhc_write_field(const struct wcd_mbhc *mbhc, in wcd_mbhc_write_field() argument 85 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field() 88 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field() 89 mbhc->fields[field].reg, in wcd_mbhc_write_field() 90 mbhc->fields[field].mask, val); in wcd_mbhc_write_field() 93 static inline int wcd_mbhc_read_field(const struct wcd_mbhc *mbhc, int field) in wcd_mbhc_read_field() argument 95 if (!mbhc->fields[field].reg) in wcd_mbhc_read_field() 98 return snd_soc_component_read_field(mbhc->component, in wcd_mbhc_read_field() [all …]
|
| H A D | wcd-mbhc-v2.h | 272 int wcd_mbhc_start(struct wcd_mbhc *mbhc, struct wcd_mbhc_config *mbhc_cfg, 274 void wcd_mbhc_stop(struct wcd_mbhc *mbhc); 275 void wcd_mbhc_set_hph_type(struct wcd_mbhc *mbhc, int hph_type); 276 int wcd_mbhc_get_hph_type(struct wcd_mbhc *mbhc); 277 int wcd_mbhc_typec_report_plug(struct wcd_mbhc *mbhc); 278 int wcd_mbhc_typec_report_unplug(struct wcd_mbhc *mbhc); 284 int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl, 286 void wcd_mbhc_deinit(struct wcd_mbhc *mbhc); 287 int wcd_mbhc_event_notify(struct wcd_mbhc *mbhc, unsigned long event); 296 static inline void wcd_mbhc_stop(struct wcd_mbhc *mbhc) in wcd_mbhc_stop() 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 | 25 #include "wcd-mbhc-v2.h" 549 /* mbhc module */ 550 struct wcd_mbhc *mbhc; 2414 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2419 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2434 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2440 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2444 wcd_mbhc_event_notify(wcd934x->mbhc, in wcd934x_micbias_control() 2822 wcd_mbhc_set_hph_type(wcd934x->mbhc, WCD_MBHC_HPH_MONO); in wcd934x_wcd_mbhc_calc_impedance() 2846 wcd_mbhc_set_hph_type(wcd934x->mbhc, WCD_MBHC_HPH_STERE in wcd934x_wcd_mbhc_calc_impedance() 551 struct wcd_mbhc *mbhc; global() member [all...] |
| /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: 222 … qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 223 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 224 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
| H A D | qcom,wcd93xx-common.yaml | 65 qcom,mbhc-headset-vthreshold-microvolt: 70 qcom,mbhc-headphone-vthreshold-microvolt: 75 qcom,mbhc-buttons-vthreshold-microvolt:
|
| H A D | qcom,pm4125-sdw.yaml | 30 PM4125 TX Port 1 (ADC1,2 & DMIC0 & MBHC) <=> SWR0 Port 1 31 PM4125 TX Port 2 (ADC1 & DMIC0,1,2 & MBHC) <=> SWR0 Port 2
|
| H A D | qcom,wcd938x.yaml | 56 … qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 57 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
| H A D | qcom,wcd939x.yaml | 71 … qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 72 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | msm8916-motorola-harpia.dts | 61 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 62 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-wingtech-wt865x8.dtsi | 113 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 114 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-lg-m216.dts | 143 qcom,mbhc-vthreshold-low = <75 100 120 180 500>; 144 qcom,mbhc-vthreshold-high = <75 100 120 180 500>;
|
| H A D | msm8916-asus-z00l.dts | 144 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 145 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-gplus-fl8005a.dts | 151 qcom,mbhc-vthreshold-low = <150 180 237 450 500>; 152 qcom,mbhc-vthreshold-high = <150 180 237 450 500>;
|
| H A D | msm8916-acer-a1-724.dts | 148 qcom,mbhc-vthreshold-low = <150 237 450 500 590>; 149 qcom,mbhc-vthreshold-high = <150 237 450 500 590>;
|
| H A D | msm8916-wingtech-wt88047.dts | 184 qcom,mbhc-vthreshold-low = <75 100 120 180 500>; 185 qcom,mbhc-vthreshold-high = <75 100 120 180 500>;
|
| H A D | apq8039-t2.dts | 150 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 151 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-longcheer-l8910.dts | 192 qcom,mbhc-vthreshold-low = <75 100 120 180 500>; 193 qcom,mbhc-vthreshold-high = <75 100 120 180 500>;
|
| H A D | sdm850-samsung-w737.dts | 654 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 655 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 656 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
|
| 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 | msm8916-huawei-g7.dts | 233 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 234 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-longcheer-l8150.dts | 280 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 281 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
|
| H A D | msm8916-alcatel-idol347.dts | 229 qcom,mbhc-vthreshold-low = <75 100 120 180 500>; 230 qcom,mbhc-vthreshold-high = <75 100 120 180 500>;
|
| H A D | sm8750-qrd.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>; 1000 * WCD9395 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 (TX SWR_INPUT 4,5,6,7)
|