/sound/soc/meson/ |
D | g12a-tohdmitx.c | 46 unsigned int mux, changed; in g12a_tohdmitx_i2s_mux_put_enum() local 51 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_i2s_mux_put_enum() 55 mux)); in g12a_tohdmitx_i2s_mux_put_enum() 67 FIELD_PREP(CTRL0_I2S_DAT_SEL, mux) | in g12a_tohdmitx_i2s_mux_put_enum() 68 FIELD_PREP(CTRL0_I2S_LRCLK_SEL, mux) | in g12a_tohdmitx_i2s_mux_put_enum() 69 FIELD_PREP(CTRL0_I2S_BCLK_SEL, mux)); in g12a_tohdmitx_i2s_mux_put_enum() 71 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_tohdmitx_i2s_mux_put_enum() 97 unsigned int mux, changed; in g12a_tohdmitx_spdif_mux_put_enum() local 102 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_spdif_mux_put_enum() 105 FIELD_PREP(CTRL0_SPDIF_SEL, mux)); in g12a_tohdmitx_spdif_mux_put_enum() [all …]
|
D | aiu-codec-ctrl.c | 31 unsigned int mux, changed; in aiu_codec_ctrl_mux_put_enum() local 33 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in aiu_codec_ctrl_mux_put_enum() 36 FIELD_PREP(CTRL_DATA_SEL, mux)); in aiu_codec_ctrl_mux_put_enum() 55 FIELD_PREP(CTRL_CLK_SEL, mux) | in aiu_codec_ctrl_mux_put_enum() 56 FIELD_PREP(CTRL_DATA_SEL, mux)); in aiu_codec_ctrl_mux_put_enum() 58 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in aiu_codec_ctrl_mux_put_enum()
|
D | aiu-acodec-ctrl.c | 39 unsigned int mux, changed; in aiu_acodec_ctrl_mux_put_enum() local 41 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in aiu_acodec_ctrl_mux_put_enum() 45 mux)); in aiu_acodec_ctrl_mux_put_enum() 56 FIELD_PREP(CTRL_DIN_LRCLK_SRC, mux) | in aiu_acodec_ctrl_mux_put_enum() 57 FIELD_PREP(CTRL_BCLK_MCLK_SRC, mux)); in aiu_acodec_ctrl_mux_put_enum() 59 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in aiu_acodec_ctrl_mux_put_enum()
|
D | g12a-toacodec.c | 72 unsigned int mux, reg; in g12a_toacodec_mux_put_enum() local 77 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_toacodec_mux_put_enum() 80 if (mux == reg) in g12a_toacodec_mux_put_enum() 86 regmap_field_write(priv->field_dat_sel, mux); in g12a_toacodec_mux_put_enum() 87 regmap_field_write(priv->field_lrclk_sel, mux); in g12a_toacodec_mux_put_enum() 88 regmap_field_write(priv->field_bclk_sel, mux); in g12a_toacodec_mux_put_enum() 103 FIELD_PREP(CTRL0_MCLK_SEL, mux)); in g12a_toacodec_mux_put_enum() 105 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_toacodec_mux_put_enum()
|
/sound/soc/codecs/ |
D | simple-mux.c | 14 unsigned int mux; member 30 ucontrol->value.enumerated.item[0] = priv->mux; in simple_mux_control_get() 46 if (priv->mux == ucontrol->value.enumerated.item[0]) in simple_mux_control_put() 49 priv->mux = ucontrol->value.enumerated.item[0]; in simple_mux_control_put() 51 gpiod_set_value_cansleep(priv->gpiod_mux, priv->mux); in simple_mux_control_put()
|
D | tlv320aic32x4-clk.c | 277 struct clk_aic32x4 *mux = to_clk_aic32x4(hw); in clk_aic32x4_codec_clkin_set_parent() local 279 return regmap_update_bits(mux->regmap, in clk_aic32x4_codec_clkin_set_parent() 286 struct clk_aic32x4 *mux = to_clk_aic32x4(hw); in clk_aic32x4_codec_clkin_get_parent() local 289 regmap_read(mux->regmap, AIC32X4_CLKMUX, &val); in clk_aic32x4_codec_clkin_get_parent() 363 struct clk_aic32x4 *mux = to_clk_aic32x4(hw); in clk_aic32x4_bdiv_set_parent() local 365 return regmap_update_bits(mux->regmap, AIC32X4_IFACE3, in clk_aic32x4_bdiv_set_parent() 371 struct clk_aic32x4 *mux = to_clk_aic32x4(hw); in clk_aic32x4_bdiv_get_parent() local 374 regmap_read(mux->regmap, AIC32X4_IFACE3, &val); in clk_aic32x4_bdiv_get_parent()
|
D | mt6358.c | 1360 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_hp_event() local 1367 mux); in mt_hp_event() 1379 priv->mux_select[MUX_HP_L] = mux; in mt_hp_event() 1381 if (mux == HP_MUX_HP) in mt_hp_event() 1383 else if (mux == HP_MUX_HPSPK) in mt_hp_event() 1403 priv->mux_select[MUX_HP_L] = mux; in mt_hp_event() 1901 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_mic_type_event() local 1904 __func__, event, mux); in mt_mic_type_event() 1908 priv->mux_select[MUX_MIC_TYPE] = mux; in mt_mic_type_event() 1911 switch (mux) { in mt_mic_type_event() [all …]
|
D | mt6359.c | 959 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_hp_event() local 963 __func__, event, priv->dev_counter[device], mux); in mt_hp_event() 968 if (mux == HP_MUX_HP) in mt_hp_event() 973 if (mux == HP_MUX_HP) in mt_hp_event() 1528 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_pga_l_mux_event() local 1530 dev_dbg(priv->dev, "%s(), mux %d\n", __func__, mux); in mt_pga_l_mux_event() 1531 priv->mux_select[MUX_PGA_L] = mux >> RG_AUDPREAMPLINPUTSEL_SFT; in mt_pga_l_mux_event() 1541 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_pga_r_mux_event() local 1543 dev_dbg(priv->dev, "%s(), mux %d\n", __func__, mux); in mt_pga_r_mux_event() 1544 priv->mux_select[MUX_PGA_R] = mux >> RG_AUDPREAMPRINPUTSEL_SFT; in mt_pga_r_mux_event() [all …]
|
D | wm8998.c | 110 unsigned int mux, inmode, src_val, mode_val; in wm8998_inmux_put() local 112 mux = ucontrol->value.enumerated.item[0]; in wm8998_inmux_put() 113 if (mux > 1) in wm8998_inmux_put() 119 mode_index = 1 + (2 * mux); in wm8998_inmux_put() 123 mode_index = (2 * mux); in wm8998_inmux_put() 133 src_val = mux << ARIZONA_IN1L_SRC_SHIFT; in wm8998_inmux_put()
|
D | madera.c | 550 unsigned int ep_sel, mux, change; in madera_out1_demux_put() local 557 mux = ucontrol->value.enumerated.item[0]; in madera_out1_demux_put() 561 ep_sel = mux << MADERA_EP_SEL_SHIFT; in madera_out1_demux_put() 621 ret = snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in madera_out1_demux_put() 658 unsigned int mux, val, mask; in madera_inmux_put() local 663 mux = ucontrol->value.enumerated.item[0]; in madera_inmux_put() 664 if (mux > 1) in madera_inmux_put() 667 val = mux << e->shift_l; in madera_inmux_put() 672 inmode = madera->pdata.codec.inmode[0][2 * mux]; in madera_inmux_put() 675 inmode = madera->pdata.codec.inmode[0][1 + (2 * mux)]; in madera_inmux_put() [all …]
|
D | cs47l92.c | 63 unsigned int ep_sel, mux, change, cur; in cs47l92_put_demux() local 70 mux = ucontrol->value.enumerated.item[0]; in cs47l92_put_demux() 74 ep_sel = mux << e->shift_l; in cs47l92_put_demux() 99 out_mono = madera->pdata.codec.out_mono[2 + mux]; in cs47l92_put_demux() 122 return snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in cs47l92_put_demux()
|
D | Makefile | 329 snd-soc-simple-mux-objs := simple-mux.o 663 obj-$(CONFIG_SND_SOC_SIMPLE_MUX) += snd-soc-simple-mux.o
|
D | wcd934x.c | 3323 static int slim_rx_mux_to_dai_id(int mux) in slim_rx_mux_to_dai_id() argument 3327 switch (mux) { in slim_rx_mux_to_dai_id()
|
/sound/soc/ti/ |
D | omap-dmic.c | 282 struct clk *parent_clk, *mux; in omap_dmic_select_fclk() local 330 mux = clk_get_parent(dmic->fclk); in omap_dmic_select_fclk() 331 if (IS_ERR(mux)) { in omap_dmic_select_fclk() 341 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk() 344 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk() 357 clk_put(mux); in omap_dmic_select_fclk()
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 167 unsigned int val, mux; in sst_slot_get() local 173 for (mux = e->max; mux > 0; mux--) in sst_slot_get() 174 if (map[mux - 1] & val) in sst_slot_get() 177 ucontrol->value.enumerated.item[0] = mux; in sst_slot_get() 182 e->texts[mux], mux ? map[mux - 1] : -1); in sst_slot_get() 228 unsigned int val, mux; in sst_slot_put() local 234 mux = ucontrol->value.enumerated.item[0]; in sst_slot_put() 235 if (mux > e->max - 1) in sst_slot_put() 243 if (mux == 0) { in sst_slot_put() 252 slot_channel_no = mux - 1; in sst_slot_put() [all …]
|
/sound/pci/asihpi/ |
D | hpicmn.c | 366 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache_single() 367 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache_single() 573 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single() 574 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg_single()
|
D | hpi_internal.h | 1344 struct hpi_control_cache_mux mux; member
|
/sound/soc/sof/ |
D | topology.c | 1838 struct sof_ipc_comp_mux *mux; in sof_widget_load_mux() local 1839 size_t ipc_size = sizeof(*mux); in sof_widget_load_mux() 1842 mux = (struct sof_ipc_comp_mux *) in sof_widget_load_mux() 1844 if (!mux) in sof_widget_load_mux() 1848 mux->comp.type = SOF_COMP_MUX; in sof_widget_load_mux() 1849 mux->config.hdr.size = sizeof(mux->config); in sof_widget_load_mux() 1851 ret = sof_parse_tokens(scomp, &mux->config, comp_tokens, in sof_widget_load_mux() 1857 kfree(mux); in sof_widget_load_mux() 1861 sof_dbg_comp_config(scomp, &mux->config); in sof_widget_load_mux() 1863 swidget->private = mux; in sof_widget_load_mux() [all …]
|
/sound/usb/ |
D | mixer_scarlett_gen2.c | 420 u8 mux[SCARLETT2_MUX_MAX]; member 1477 private->mux[dst_idx] = src_idx; in scarlett2_usb_populate_mux() 1560 port_count, private->mux[mux_idx++]); in scarlett2_usb_set_mux() 3357 ucontrol->value.enumerated.item[0] = private->mux[index]; in scarlett2_mux_src_enum_ctl_get() 3375 oval = private->mux[index]; in scarlett2_mux_src_enum_ctl_put() 3382 private->mux[index] = val; in scarlett2_mux_src_enum_ctl_put()
|
/sound/soc/ |
D | soc-dapm.c | 2277 struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e) in soc_dapm_mux_update_power() argument 2289 if (e && !(strcmp(path->name, e->texts[mux]))) in soc_dapm_mux_update_power() 2304 struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e, in snd_soc_dapm_mux_update_power() argument 2312 ret = soc_dapm_mux_update_power(card, kcontrol, mux, e); in snd_soc_dapm_mux_update_power()
|
/sound/pci/hda/ |
D | hda_codec.c | 264 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index() argument 270 nums = snd_hda_get_conn_list(codec, mux, &conn); in snd_hda_get_conn_index()
|