Home
last modified time | relevance | path

Searched full:wcd (Results 1 – 25 of 52) sorted by relevance

123

/linux/sound/soc/codecs/
H A Dwcd9335.c26 #include "wcd-clsh-v2.h"
1260 struct wcd9335_codec *wcd = dev_get_drvdata(w->dapm->dev); in slim_rx_mux_get() local
1263 ucontrol->value.enumerated.item[0] = wcd->rx_port_value[port_id]; in slim_rx_mux_get()
1272 struct wcd9335_codec *wcd = dev_get_drvdata(w->dapm->dev); in slim_rx_mux_put() local
1277 if (wcd->rx_port_value[port_id] == ucontrol->value.enumerated.item[0]) in slim_rx_mux_put()
1280 wcd->rx_port_value[port_id] = ucontrol->value.enumerated.item[0]; in slim_rx_mux_put()
1283 list_del_init(&wcd->rx_chs[port_id].list); in slim_rx_mux_put()
1285 switch (wcd->rx_port_value[port_id]) { in slim_rx_mux_put()
1290 list_add_tail(&wcd->rx_chs[port_id].list, in slim_rx_mux_put()
1291 &wcd->dai[AIF1_PB].slim_ch_list); in slim_rx_mux_put()
[all …]
H A Dwcd934x.c23 #include "wcd-clsh-v2.h"
24 #include "wcd-mbhc-v2.h"
97 /* As fine version info cannot be retrieved before wcd probe.
98 * Define three coarse versions for possible future use before wcd probe.
1264 static int wcd934x_set_sido_input_src(struct wcd934x_codec *wcd, int sido_src) in wcd934x_set_sido_input_src() argument
1266 if (sido_src == wcd->sido_input_src) in wcd934x_set_sido_input_src()
1270 regmap_update_bits(wcd->regmap, WCD934X_ANA_RCO, in wcd934x_set_sido_input_src()
1275 wcd->sido_input_src = sido_src; in wcd934x_set_sido_input_src()
1280 static int wcd934x_enable_ana_bias_and_sysclk(struct wcd934x_codec *wcd) in wcd934x_enable_ana_bias_and_sysclk() argument
1282 mutex_lock(&wcd->sysclk_mutex); in wcd934x_enable_ana_bias_and_sysclk()
[all …]
H A Dwcd937x-sdw.c87 int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd, in wcd937x_sdw_hw_params() argument
96 wcd->sconfig.ch_count = 1; in wcd937x_sdw_hw_params()
97 wcd->active_ports = 0; in wcd937x_sdw_hw_params()
99 ch_mask = wcd->port_config[i].ch_mask; in wcd937x_sdw_hw_params()
104 wcd->sconfig.ch_count++; in wcd937x_sdw_hw_params()
106 port_config[wcd->active_ports] = wcd->port_config[i]; in wcd937x_sdw_hw_params()
107 wcd->active_ports++; in wcd937x_sdw_hw_params()
110 wcd->sconfig.bps = 1; in wcd937x_sdw_hw_params()
111 wcd->sconfig.frame_rate = params_rate(params); in wcd937x_sdw_hw_params()
112 wcd->sconfig.direction = wcd->is_tx ? SDW_DATA_DIR_TX : SDW_DATA_DIR_RX; in wcd937x_sdw_hw_params()
[all …]
H A Dwcd938x-sdw.c102 int wcd938x_sdw_hw_params(struct wcd938x_sdw_priv *wcd, in wcd938x_sdw_hw_params() argument
111 wcd->sconfig.ch_count = 1; in wcd938x_sdw_hw_params()
112 wcd->active_ports = 0; in wcd938x_sdw_hw_params()
114 ch_mask = wcd->port_config[i].ch_mask; in wcd938x_sdw_hw_params()
120 wcd->sconfig.ch_count++; in wcd938x_sdw_hw_params()
122 port_config[wcd->active_ports] = wcd->port_config[i]; in wcd938x_sdw_hw_params()
123 wcd->active_ports++; in wcd938x_sdw_hw_params()
126 wcd->sconfig.bps = 1; in wcd938x_sdw_hw_params()
127 wcd->sconfig.frame_rate = params_rate(params); in wcd938x_sdw_hw_params()
128 if (wcd->is_tx) in wcd938x_sdw_hw_params()
[all …]
H A Dwcd939x-sdw.c144 int wcd939x_sdw_hw_params(struct wcd939x_sdw_priv *wcd, in wcd939x_sdw_hw_params() argument
153 wcd->sconfig.ch_count = 1; in wcd939x_sdw_hw_params()
154 wcd->active_ports = 0; in wcd939x_sdw_hw_params()
156 ch_mask = wcd->port_config[i].ch_mask; in wcd939x_sdw_hw_params()
162 wcd->sconfig.ch_count++; in wcd939x_sdw_hw_params()
164 port_config[wcd->active_ports] = wcd->port_config[i]; in wcd939x_sdw_hw_params()
165 wcd->active_ports++; in wcd939x_sdw_hw_params()
168 wcd->sconfig.bps = 1; in wcd939x_sdw_hw_params()
169 wcd->sconfig.frame_rate = params_rate(params); in wcd939x_sdw_hw_params()
170 if (wcd->is_tx) in wcd939x_sdw_hw_params()
[all …]
H A Dmsm8916-wcd-analog.c350 struct pm8916_wcd_analog_priv *wcd = snd_soc_component_get_drvdata(component); in pm8916_wcd_analog_micbias_enable() local
358 if (wcd->micbias_mv) { in pm8916_wcd_analog_micbias_enable()
361 MICB_VOLTAGE_REGVAL(wcd->micbias_mv)); in pm8916_wcd_analog_micbias_enable()
366 if (wcd->micbias_mv >= 2700) in pm8916_wcd_analog_micbias_enable()
412 struct pm8916_wcd_analog_priv *wcd = snd_soc_component_get_drvdata(component); in pm8916_wcd_analog_enable_micbias1() local
415 wcd->micbias1_cap_mode); in pm8916_wcd_analog_enable_micbias1()
423 struct pm8916_wcd_analog_priv *wcd = snd_soc_component_get_drvdata(component); in pm8916_wcd_analog_enable_micbias2() local
426 wcd->micbias2_cap_mode); in pm8916_wcd_analog_enable_micbias2()
477 static void pm8916_wcd_setup_mbhc(struct pm8916_wcd_analog_priv *wcd) in pm8916_wcd_setup_mbhc() argument
479 struct snd_soc_component *component = wcd->component; in pm8916_wcd_setup_mbhc()
[all …]
H A Dwcd937x.c24 #include "wcd-clsh-v2.h"
25 #include "wcd-mbhc-v2.h"
1195 static int wcd937x_connect_port(struct wcd937x_sdw_priv *wcd, u8 port_idx, u8 ch_id, bool enable) in wcd937x_connect_port() argument
1197 struct sdw_port_config *port_config = &wcd->port_config[port_idx - 1]; in wcd937x_connect_port()
1198 const struct wcd937x_sdw_ch_info *ch_info = &wcd->ch_info[ch_id]; in wcd937x_connect_port()
1276 struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[AIF1_PB]; in wcd937x_set_compander() local
1297 portidx = wcd->ch_info[mc->reg].port_num; in wcd937x_set_compander()
1300 wcd937x_connect_port(wcd, portidx, mc->reg, true); in wcd937x_set_compander()
1302 wcd937x_connect_port(wcd, portidx, mc->reg, false); in wcd937x_set_compander()
1313 struct wcd937x_sdw_priv *wcd; in wcd937x_get_swr_port() local
[all …]
H A Dwcd938x.c24 #include "wcd-clsh-v2.h"
25 #include "wcd-mbhc-v2.h"
422 static int wcd938x_connect_port(struct wcd938x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable) in wcd938x_connect_port() argument
424 return wcd938x_sdw_connect_port(&wcd->ch_info[ch_id], in wcd938x_connect_port()
425 &wcd->port_config[port_num - 1], in wcd938x_connect_port()
1583 struct wcd938x_sdw_priv *wcd; in wcd938x_set_compander() local
1592 wcd = wcd938x->sdw_priv[AIF1_PB]; in wcd938x_set_compander()
1599 portidx = wcd->ch_info[mc->reg].port_num; in wcd938x_set_compander()
1602 wcd938x_connect_port(wcd, portidx, mc->reg, true); in wcd938x_set_compander()
1604 wcd938x_connect_port(wcd, portidx, mc->reg, false); in wcd938x_set_compander()
[all …]
H A Dwcd939x.c31 #include "wcd-clsh-v2.h"
32 #include "wcd-mbhc-v2.h"
434 static int wcd939x_connect_port(struct wcd939x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable) in wcd939x_connect_port() argument
436 return wcd939x_sdw_connect_port(&wcd->ch_info[ch_id], in wcd939x_connect_port()
437 &wcd->port_config[port_num - 1], in wcd939x_connect_port()
1539 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[AIF1_PB]; in wcd939x_set_compander() local
1541 int portidx = wcd->ch_info[mc->reg].port_num; in wcd939x_set_compander()
1549 wcd939x_connect_port(wcd, portidx, mc->reg, true); in wcd939x_set_compander()
1551 wcd939x_connect_port(wcd, portidx, mc->reg, false); in wcd939x_set_compander()
1793 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[mixer->shift]; in wcd939x_get_swr_port() local
[all …]
H A Dwcd937x.h537 int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd,
540 int wcd937x_sdw_set_sdw_stream(struct wcd937x_sdw_priv *wcd,
543 int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd,
551 int wcd937x_sdw_free(struct wcd937x_sdw_priv *wcd, in wcd937x_sdw_free() argument
558 int wcd937x_sdw_set_sdw_stream(struct wcd937x_sdw_priv *wcd, in wcd937x_sdw_set_sdw_stream() argument
565 int wcd937x_sdw_hw_params(struct wcd937x_sdw_priv *wcd, in wcd937x_sdw_hw_params() argument
H A Dwcd938x.h662 int wcd938x_sdw_free(struct wcd938x_sdw_priv *wcd,
665 int wcd938x_sdw_set_sdw_stream(struct wcd938x_sdw_priv *wcd,
668 int wcd938x_sdw_hw_params(struct wcd938x_sdw_priv *wcd,
678 static inline int wcd938x_sdw_free(struct wcd938x_sdw_priv *wcd, in wcd938x_sdw_free() argument
685 static inline int wcd938x_sdw_set_sdw_stream(struct wcd938x_sdw_priv *wcd, in wcd938x_sdw_set_sdw_stream() argument
692 static inline int wcd938x_sdw_hw_params(struct wcd938x_sdw_priv *wcd, in wcd938x_sdw_hw_params() argument
H A Dwcd939x.h922 int wcd939x_sdw_free(struct wcd939x_sdw_priv *wcd,
925 int wcd939x_sdw_set_sdw_stream(struct wcd939x_sdw_priv *wcd,
928 int wcd939x_sdw_hw_params(struct wcd939x_sdw_priv *wcd,
936 struct regmap *wcd939x_swr_get_regmap(struct wcd939x_sdw_priv *wcd);
939 static inline int wcd939x_sdw_free(struct wcd939x_sdw_priv *wcd, in wcd939x_sdw_free() argument
946 static inline int wcd939x_sdw_set_sdw_stream(struct wcd939x_sdw_priv *wcd, in wcd939x_sdw_set_sdw_stream() argument
953 static inline int wcd939x_sdw_hw_params(struct wcd939x_sdw_priv *wcd, in wcd939x_sdw_hw_params() argument
971 struct regmap *wcd939x_swr_get_regmap(struct wcd939x_sdw_priv *wcd) in wcd939x_swr_get_regmap() argument
/linux/Documentation/devicetree/bindings/sound/
H A Dqcom,msm8916-wcd-digital-codec.yaml4 $id: http://devicetree.org/schemas/sound/qcom,msm8916-wcd-digital-codec.yaml#
7 title: Qualcomm MSM8916 WCD Digital Audio Codec
13 The digital WCD audio codec found on Qualcomm MSM8916 LPASS.
17 const: qcom,msm8916-wcd-digital-codec
49 compatible = "qcom,msm8916-wcd-digital-codec";
H A Dqcom,pm8916-wcd-analog-codec.yaml4 $id: http://devicetree.org/schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
7 title: Qualcomm PM8916 WCD Analog Audio Codec
13 The analog WCD audio codec found on Qualcomm PM8916 PMIC.
17 const: qcom,pm8916-wcd-analog-codec
115 compatible = "qcom,pm8916-wcd-analog-codec";
H A Dgoogle,sc7280-herobrine.yaml125 link-name = "WCD Playback";
136 link-name = "WCD Capture";
H A Dqcom,apq8016-sbc-sndcard.yaml139 link-name = "WCD";
149 link-name = "WCD-Capture";
/linux/arch/arm64/boot/dts/qcom/
H A Dx1e80100-qcp.dts166 wcd-playback-dai-link {
167 link-name = "WCD Playback";
182 wcd-capture-dai-link {
183 link-name = "WCD Capture";
875 wcd_default: wcd-reset-n-active-state {
H A Dsm8550-mtp.dts125 wcd-playback-dai-link {
126 link-name = "WCD Playback";
141 wcd-capture-dai-link {
142 link-name = "WCD Capture";
916 wcd_default: wcd-reset-n-active-state {
H A Dapq8039-t2.dts177 link-name = "WCD";
187 link-name = "WCD-Capture";
H A Dsm8450-hdk.dts936 wcd-playback-dai-link {
937 link-name = "WCD Playback";
952 wcd-capture-dai-link {
953 link-name = "WCD Capture";
1153 wcd_default: wcd-reset-n-active-state {
H A Dsm8250-mtp.dts698 wcd-playback-dai-link {
699 link-name = "WCD Playback";
711 wcd-capture-dai-link {
712 link-name = "WCD Capture";
H A Dsm8550-qrd.dts143 wcd-playback-dai-link {
144 link-name = "WCD Playback";
159 wcd-capture-dai-link {
160 link-name = "WCD Capture";
1149 wcd_default: wcd-reset-n-active-state {
H A Dx1e80100-crd.dts196 wcd-playback-dai-link {
197 link-name = "WCD Playback";
212 wcd-capture-dai-link {
213 link-name = "WCD Capture";
1119 wcd_default: wcd-reset-n-active-state {
H A Dsdm845-wcd9340.dtsi79 wcd_intr_default: wcd-intr-default-state {
H A Dmsm8916-huawei-g7.dts302 link-name = "WCD";
312 link-name = "WCD-Capture";

123