Lines Matching full:wcd

24 #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()
1855 struct wcd938x_sdw_priv *wcd; in wcd938x_get_swr_port() local
1861 wcd = wcd938x->sdw_priv[dai_id]; in wcd938x_get_swr_port()
1862 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1864 ucontrol->value.integer.value[0] = wcd->port_enable[portidx]; in wcd938x_get_swr_port()
1874 struct wcd938x_sdw_priv *wcd; in wcd938x_set_swr_port() local
1882 wcd = wcd938x->sdw_priv[dai_id]; in wcd938x_set_swr_port()
1884 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1890 wcd->port_enable[portidx] = enable; in wcd938x_set_swr_port()
1892 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
3030 static int wcd938x_irq_init(struct wcd938x_priv *wcd, struct device *dev) in wcd938x_irq_init() argument
3033 wcd->virq = irq_domain_add_linear(NULL, 1, &wcd_domain_ops, NULL); in wcd938x_irq_init()
3034 if (!(wcd->virq)) { in wcd938x_irq_init()
3039 return devm_regmap_add_irq_chip(dev, wcd->regmap, in wcd938x_irq_init()
3040 irq_create_mapping(wcd->virq, 0), in wcd938x_irq_init()
3042 &wcd->irq_chip); in wcd938x_irq_init()
3183 struct wcd938x_priv *wcd = dev_get_drvdata(comp->dev); in wcd938x_codec_set_jack() local
3186 return wcd_mbhc_start(wcd->wcd_mbhc, &wcd->mbhc_cfg, jack); in wcd938x_codec_set_jack()
3188 wcd_mbhc_stop(wcd->wcd_mbhc); in wcd938x_codec_set_jack()
3207 static void wcd938x_dt_parse_micbias_info(struct device *dev, struct wcd938x_priv *wcd) in wcd938x_dt_parse_micbias_info() argument
3215 wcd->micb1_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3221 wcd->micb2_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3227 wcd->micb3_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3233 wcd->micb4_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3320 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id]; in wcd938x_codec_hw_params() local
3322 return wcd938x_sdw_hw_params(wcd, substream, params, dai); in wcd938x_codec_hw_params()
3329 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id]; in wcd938x_codec_free() local
3331 return wcd938x_sdw_free(wcd, substream, dai); in wcd938x_codec_free()
3338 struct wcd938x_sdw_priv *wcd = wcd938x->sdw_priv[dai->id]; in wcd938x_codec_set_sdw_stream() local
3340 return wcd938x_sdw_set_sdw_stream(wcd, dai, stream, direction); in wcd938x_codec_set_sdw_stream()
3354 .stream_name = "WCD AIF1 Playback",
3367 .stream_name = "WCD AIF1 Capture",
3421 dev_err(dev, "could not devlink wcd and tx\n"); in wcd938x_bind()
3428 dev_err(dev, "could not devlink wcd and rx\n"); in wcd938x_bind()