Lines Matching defs:wcd
30 #include "wcd-clsh-v2.h"
31 #include "wcd-common.h"
32 #include "wcd-mbhc-v2.h"
435 static int wcd939x_connect_port(struct wcd939x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable)
437 return wcd939x_sdw_connect_port(&wcd->ch_info[ch_id],
438 &wcd->port_config[port_num - 1],
1540 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[AIF1_PB];
1542 int portidx = wcd->ch_info[mc->reg].port_num;
1550 wcd939x_connect_port(wcd, portidx, mc->reg, true);
1552 wcd939x_connect_port(wcd, portidx, mc->reg, false);
1794 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[mixer->shift];
1795 unsigned int portidx = wcd->ch_info[mixer->reg].port_num;
1797 ucontrol->value.integer.value[0] = wcd->port_enable[portidx] ? 1 : 0;
1821 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[mixer->shift];
1822 unsigned int portidx = wcd->ch_info[mixer->reg].port_num;
1824 wcd->port_enable[portidx] = !!ucontrol->value.integer.value[0];
1826 wcd939x_connect_port(wcd, portidx, mixer->reg, wcd->port_enable[portidx]);
2954 static int wcd939x_irq_init(struct wcd939x_priv *wcd, struct device *dev)
2956 wcd->virq = irq_domain_create_linear(NULL, 1, &wcd_domain_ops, NULL);
2957 if (!(wcd->virq)) {
2962 return devm_regmap_add_irq_chip(dev, wcd->regmap,
2963 irq_create_mapping(wcd->virq, 0),
2965 &wcd->irq_chip);
3106 struct wcd939x_priv *wcd = dev_get_drvdata(comp->dev);
3109 return wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack);
3111 wcd_mbhc_stop(wcd->wcd_mbhc);
3247 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
3249 return wcd939x_sdw_hw_params(wcd, substream, params, dai);
3256 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
3258 return wcd939x_sdw_free(wcd, substream, dai);
3265 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id];
3267 return wcd939x_sdw_set_sdw_stream(wcd, dai, stream, direction);
3364 dev_err(dev, "could not devlink wcd and tx\n");
3371 dev_err(dev, "could not devlink wcd and rx\n");