Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 8 of 8) sorted by relevance

/sound/soc/
Dsoc-topology.c856 struct snd_soc_tplg_enum_control *ec) in soc_tplg_denum_create_texts() argument
860 if (le32_to_cpu(ec->items) > ARRAY_SIZE(ec->texts)) in soc_tplg_denum_create_texts()
864 devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), sizeof(char *), GFP_KERNEL); in soc_tplg_denum_create_texts()
868 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_texts()
870 if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_denum_create_texts()
876 se->dobj.control.dtexts[i] = devm_kstrdup(tplg->dev, ec->texts[i], GFP_KERNEL); in soc_tplg_denum_create_texts()
883 se->items = le32_to_cpu(ec->items); in soc_tplg_denum_create_texts()
892 struct snd_soc_tplg_enum_control *ec) in soc_tplg_denum_create_values() argument
902 if (le32_to_cpu(ec->items) > SND_SOC_TPLG_NUM_TEXTS) in soc_tplg_denum_create_values()
905 se->dobj.control.dvalues = devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), in soc_tplg_denum_create_values()
[all …]
/sound/soc/tegra/
Dtegra210_admaif.c432 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in tegra210_admaif_pget_mono_to_stereo() local
435 admaif->mono_to_stereo[ADMAIF_TX_PATH][ec->reg]; in tegra210_admaif_pget_mono_to_stereo()
445 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in tegra210_admaif_pput_mono_to_stereo() local
448 if (value == admaif->mono_to_stereo[ADMAIF_TX_PATH][ec->reg]) in tegra210_admaif_pput_mono_to_stereo()
451 admaif->mono_to_stereo[ADMAIF_TX_PATH][ec->reg] = value; in tegra210_admaif_pput_mono_to_stereo()
461 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in tegra210_admaif_cget_mono_to_stereo() local
464 admaif->mono_to_stereo[ADMAIF_RX_PATH][ec->reg]; in tegra210_admaif_cget_mono_to_stereo()
474 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in tegra210_admaif_cput_mono_to_stereo() local
477 if (value == admaif->mono_to_stereo[ADMAIF_RX_PATH][ec->reg]) in tegra210_admaif_cput_mono_to_stereo()
480 admaif->mono_to_stereo[ADMAIF_RX_PATH][ec->reg] = value; in tegra210_admaif_cput_mono_to_stereo()
[all …]
/sound/soc/intel/skylake/
Dskl-topology.c1369 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_multi_config_set_get() local
1372 if (!ec) in skl_tplg_multi_config_set_get()
1375 if (is_set && ucontrol->value.enumerated.item[0] > ec->items) in skl_tplg_multi_config_set_get()
1378 pipe_id = ec->dobj.private; in skl_tplg_multi_config_set_get()
1488 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_mic_control_get() local
1489 u32 ch_type = *((u32 *)ec->dobj.private); in skl_tplg_mic_control_get()
1528 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_mic_control_set() local
1529 u32 ch_type = *((u32 *)ec->dobj.private); in skl_tplg_mic_control_set()
3113 struct snd_soc_tplg_enum_control *ec) in skl_init_enum_data() argument
3118 if (ec->priv.size) { in skl_init_enum_data()
[all …]
/sound/pci/ctxfi/
Dcthardware.h155 int (*dai_srt_set_ec)(void *blk, unsigned int ec);
Dcthw20k2.c850 static int dai_srt_set_ec(void *blk, unsigned int ec) in dai_srt_set_ec() argument
854 set_field(&ctl->srt, SRTCTL_EC, ec ? 1 : 0); in dai_srt_set_ec()
Dcthw20k1.c860 static int dai_srt_set_ec(void *blk, unsigned int ec) in dai_srt_set_ec() argument
864 set_field(&ctl->srtctl, SRTCTL_EC, ec ? 1 : 0); in dai_srt_set_ec()
/sound/soc/sof/
Dtopology.c1128 struct snd_soc_tplg_enum_control *ec = in sof_control_load_enum() local
1132 if (le32_to_cpu(ec->num_channels) > SND_SOC_TPLG_MAX_CHAN) in sof_control_load_enum()
1137 le32_to_cpu(ec->num_channels)); in sof_control_load_enum()
1143 scontrol->num_channels = le32_to_cpu(ec->num_channels); in sof_control_load_enum()
/sound/soc/codecs/
DMakefile51 snd-soc-cros-ec-codec-objs := cros_ec_codec.o
382 obj-$(CONFIG_SND_SOC_CROS_EC_CODEC) += snd-soc-cros-ec-codec.o