Lines Matching full:wcd
31 #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
1794 unsigned int portidx = wcd->ch_info[mixer->reg].port_num; in wcd939x_get_swr_port()
1796 ucontrol->value.integer.value[0] = wcd->port_enable[portidx] ? 1 : 0; in wcd939x_get_swr_port()
1820 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[mixer->shift]; in wcd939x_set_swr_port() local
1821 unsigned int portidx = wcd->ch_info[mixer->reg].port_num; in wcd939x_set_swr_port()
1823 wcd->port_enable[portidx] = !!ucontrol->value.integer.value[0]; in wcd939x_set_swr_port()
1825 wcd939x_connect_port(wcd, portidx, mixer->reg, wcd->port_enable[portidx]); in wcd939x_set_swr_port()
2976 static int wcd939x_irq_init(struct wcd939x_priv *wcd, struct device *dev) in wcd939x_irq_init() argument
2978 wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL); in wcd939x_irq_init()
2979 if (!(wcd->virq)) { in wcd939x_irq_init()
2984 return devm_regmap_add_irq_chip(dev, wcd->regmap, in wcd939x_irq_init()
2985 irq_create_mapping(wcd->virq, 0), in wcd939x_irq_init()
2987 &wcd->irq_chip); in wcd939x_irq_init()
3128 struct wcd939x_priv *wcd = dev_get_drvdata(comp->dev); in wcd939x_codec_set_jack() local
3131 return wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack); in wcd939x_codec_set_jack()
3133 wcd_mbhc_stop(wcd->wcd_mbhc); in wcd939x_codec_set_jack()
3186 static void wcd939x_dt_parse_micbias_info(struct device *dev, struct wcd939x_priv *wcd) in wcd939x_dt_parse_micbias_info() argument
3194 wcd->micb1_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3200 wcd->micb2_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3206 wcd->micb3_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3212 wcd->micb4_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3308 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id]; in wcd939x_codec_hw_params() local
3310 return wcd939x_sdw_hw_params(wcd, substream, params, dai); in wcd939x_codec_hw_params()
3317 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id]; in wcd939x_codec_free() local
3319 return wcd939x_sdw_free(wcd, substream, dai); in wcd939x_codec_free()
3326 struct wcd939x_sdw_priv *wcd = wcd939x->sdw_priv[dai->id]; in wcd939x_codec_set_sdw_stream() local
3328 return wcd939x_sdw_set_sdw_stream(wcd, dai, stream, direction); in wcd939x_codec_set_sdw_stream()
3341 .stream_name = "WCD AIF1 Playback",
3354 .stream_name = "WCD AIF1 Capture",
3425 dev_err(dev, "could not devlink wcd and tx\n"); in wcd939x_bind()
3432 dev_err(dev, "could not devlink wcd and rx\n"); in wcd939x_bind()