Lines Matching full:wcd

24 #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
1318 wcd = wcd937x->sdw_priv[dai_id]; in wcd937x_get_swr_port()
1319 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_get_swr_port()
1321 ucontrol->value.integer.value[0] = wcd->port_enable[portidx]; in wcd937x_get_swr_port()
1332 struct wcd937x_sdw_priv *wcd; in wcd937x_set_swr_port() local
1338 wcd = wcd937x->sdw_priv[dai_id]; in wcd937x_set_swr_port()
1340 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_set_swr_port()
1344 if (enable == wcd->port_enable[portidx]) { in wcd937x_set_swr_port()
1345 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
1349 wcd->port_enable[portidx] = enable; in wcd937x_set_swr_port()
1350 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
2474 static int wcd937x_irq_init(struct wcd937x_priv *wcd, struct device *dev) in wcd937x_irq_init() argument
2476 wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL); in wcd937x_irq_init()
2477 if (!(wcd->virq)) { in wcd937x_irq_init()
2482 return devm_regmap_add_irq_chip(dev, wcd->regmap, in wcd937x_irq_init()
2483 irq_create_mapping(wcd->virq, 0), in wcd937x_irq_init()
2485 &wcd->irq_chip); in wcd937x_irq_init()
2600 struct wcd937x_priv *wcd = dev_get_drvdata(comp->dev); in wcd937x_codec_set_jack() local
2604 ret = wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack); in wcd937x_codec_set_jack()
2606 wcd_mbhc_stop(wcd->wcd_mbhc); in wcd937x_codec_set_jack()
2625 static void wcd937x_dt_parse_micbias_info(struct device *dev, struct wcd937x_priv *wcd) in wcd937x_dt_parse_micbias_info() argument
2633 wcd->micb1_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
2639 wcd->micb2_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
2645 wcd->micb3_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
2668 struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id]; in wcd937x_codec_hw_params() local
2670 return wcd937x_sdw_hw_params(wcd, substream, params, dai); in wcd937x_codec_hw_params()
2677 struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id]; in wcd937x_codec_free() local
2679 return sdw_stream_remove_slave(wcd->sdev, wcd->sruntime); in wcd937x_codec_free()
2686 struct wcd937x_sdw_priv *wcd = wcd937x->sdw_priv[dai->id]; in wcd937x_codec_set_sdw_stream() local
2688 wcd->sruntime = stream; in wcd937x_codec_set_sdw_stream()
2703 .stream_name = "WCD AIF Playback",
2716 .stream_name = "WCD AIF Capture",
2777 dev_err(dev, "Could not devlink WCD and TX\n"); in wcd937x_bind()
2783 dev_err(dev, "Could not devlink WCD and RX\n"); in wcd937x_bind()
2878 "failed to reset wcd gpio\n"); in wcd937x_probe()