Home
last modified time | relevance | path

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

/sound/soc/
Dsoc-topology.c939 struct snd_soc_tplg_enum_control *ec) in soc_tplg_denum_create_texts() argument
944 kcalloc(le32_to_cpu(ec->items), sizeof(char *), GFP_KERNEL); in soc_tplg_denum_create_texts()
948 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_texts()
950 if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_denum_create_texts()
956 se->dobj.control.dtexts[i] = kstrdup(ec->texts[i], GFP_KERNEL); in soc_tplg_denum_create_texts()
963 se->items = le32_to_cpu(ec->items); in soc_tplg_denum_create_texts()
983 struct snd_soc_tplg_enum_control *ec) in soc_tplg_denum_create_values() argument
987 if (le32_to_cpu(ec->items) > sizeof(*ec->values)) in soc_tplg_denum_create_values()
990 se->dobj.control.dvalues = kzalloc(le32_to_cpu(ec->items) * in soc_tplg_denum_create_values()
997 for (i = 0; i < le32_to_cpu(ec->items); i++) { 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.c1368 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_multi_config_set_get() local
1371 if (!ec) in skl_tplg_multi_config_set_get()
1374 if (is_set && ucontrol->value.enumerated.item[0] > ec->items) in skl_tplg_multi_config_set_get()
1377 pipe_id = ec->dobj.private; in skl_tplg_multi_config_set_get()
1487 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_mic_control_get() local
1488 u32 ch_type = *((u32 *)ec->dobj.private); in skl_tplg_mic_control_get()
1526 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; in skl_tplg_mic_control_set() local
1527 u32 ch_type = *((u32 *)ec->dobj.private); in skl_tplg_mic_control_set()
3081 struct snd_soc_tplg_enum_control *ec) in skl_init_enum_data() argument
3086 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);
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()
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()
/sound/soc/sof/
Dtopology.c1118 struct snd_soc_tplg_enum_control *ec = in sof_control_load_enum() local
1122 if (le32_to_cpu(ec->num_channels) > SND_SOC_TPLG_MAX_CHAN) in sof_control_load_enum()
1127 le32_to_cpu(ec->num_channels)); in sof_control_load_enum()
1133 scontrol->num_channels = le32_to_cpu(ec->num_channels); in sof_control_load_enum()
/sound/soc/codecs/
DMakefile48 snd-soc-cros-ec-codec-objs := cros_ec_codec.o
357 obj-$(CONFIG_SND_SOC_CROS_EC_CODEC) += snd-soc-cros-ec-codec.o