Lines Matching defs:wcd
24 #include "wcd-clsh-v2.h"
25 #include "wcd-common.h"
26 #include "wcd-mbhc-v2.h"
416 static int wcd938x_connect_port(struct wcd938x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable)
418 return wcd938x_sdw_connect_port(&wcd->ch_info[ch_id],
419 &wcd->port_config[port_num - 1],
1576 struct wcd938x_sdw_priv *wcd;
1585 wcd = wcd938x->sdw_priv[AIF1_PB];
1592 portidx = wcd->ch_info[mc->reg].port_num;
1595 wcd938x_connect_port(wcd, portidx, mc->reg, true);
1597 wcd938x_connect_port(wcd, portidx, mc->reg, false);
1848 struct wcd938x_sdw_priv *wcd;
1854 wcd = wcd938x->sdw_priv[dai_id];
1855 portidx = wcd->ch_info[ch_idx].port_num;
1857 ucontrol->value.integer.value[0] = wcd->port_enable[portidx];
1867 struct wcd938x_sdw_priv *wcd;
1875 wcd = wcd938x->sdw_priv[dai_id];
1877 portidx = wcd->ch_info[ch_idx].port_num;
1883 wcd->port_enable[portidx] = enable;
1885 wcd938x_connect_port(wcd, portidx, ch_idx, enable);
3002 static int wcd938x_irq_init(struct wcd938x_priv *wcd, struct device *dev)
3005 wcd->virq = irq_domain_create_linear(NULL, 1, &wcd_domain_ops, NULL);
3006 if (!(wcd->virq)) {
3011 return devm_regmap_add_irq_chip(dev, wcd->regmap,
3012 irq_create_mapping(wcd->virq, 0),
3014 &wcd->irq_chip);
3156 struct wcd938x_priv *wcd = dev_get_drvdata(comp->dev);
3159 return wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack);
3161 wcd_mbhc_stop(wcd->wcd_mbhc);
3279 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
3281 return wcd938x_sdw_hw_params(wcd, substream, params, dai);
3288 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
3290 return wcd938x_sdw_free(wcd, substream, dai);
3297 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id];
3299 return wcd938x_sdw_set_sdw_stream(wcd, dai, stream, direction);
3380 dev_err(dev, "could not devlink wcd and tx\n");
3387 dev_err(dev, "could not devlink wcd and rx\n");