Home
last modified time | relevance | path

Searched refs:tdm_slot (Results 1 – 6 of 6) sorted by relevance

/linux/sound/soc/sti/
H A Dsti_uniperif.c138 uni->tdm_slot.slots = slots; in sti_uniperiph_set_tdm_slot()
139 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
141 uni->tdm_slot.mask = (tx_mask != 0) ? tx_mask : rx_mask; in sti_uniperiph_set_tdm_slot()
144 for (i = 0, avail_slots = 0; i < uni->tdm_slot.slots; i++) { in sti_uniperiph_set_tdm_slot()
145 if ((uni->tdm_slot.mask >> i) & 0x01) in sti_uniperiph_set_tdm_slot()
148 uni->tdm_slot.avail_slots = avail_slots; in sti_uniperiph_set_tdm_slot()
151 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
170 t.min = uni->tdm_slot.avail_slots; in sti_uniperiph_fix_tdm_chan()
171 t.max = uni->tdm_slot.avail_slots; in sti_uniperiph_fix_tdm_chan()
186 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
[all …]
H A Duniperif.h1333 struct dai_tdm_slot tdm_slot; member
1399 return (uni->tdm_slot.slots * uni->tdm_slot.slot_width / 8); in sti_uniperiph_get_unip_tdm_frame_size()
/linux/sound/soc/codecs/
H A Dadau17x1.c206 val = (adau->tdm_slot[stream] * 2) + 1; in adau17x1_dsp_mux_enum_put()
704 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 0; in adau17x1_set_dai_tdm_slot()
708 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 1; in adau17x1_set_dai_tdm_slot()
712 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 2; in adau17x1_set_dai_tdm_slot()
716 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 3; in adau17x1_set_dai_tdm_slot()
725 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 0; in adau17x1_set_dai_tdm_slot()
729 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 1; in adau17x1_set_dai_tdm_slot()
733 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 2; in adau17x1_set_dai_tdm_slot()
737 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 3; in adau17x1_set_dai_tdm_slot()
757 (adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] * 2) + 1); in adau17x1_set_dai_tdm_slot()
[all …]
H A Dadau17x1.h50 unsigned int tdm_slot[2]; member
/linux/sound/soc/intel/avs/
H A Dutils.h39 int *ssp_port, int *tdm_slot) in avs_mach_get_ssp_tdm() argument
54 *tdm_slot = avs_mach_ssp_tdm(mach, *ssp_port); in avs_mach_get_ssp_tdm()
H A Dtopology.c403 int ssp_port, tdm_slot; in parse_link_formatted_string() local
416 tdm_slot = avs_mach_ssp_tdm(mach, ssp_port); in parse_link_formatted_string()
418 avs_ssp_sprint(val, SNDRV_CTL_ELEM_ID_NAME_MAXLEN, tuple->string, ssp_port, tdm_slot); in parse_link_formatted_string()
845 int ssp_port, tdm_slot; in assign_copier_gtw_instance() local
871 tdm_slot = avs_mach_ssp_tdm(mach, ssp_port); in assign_copier_gtw_instance()
874 cfg->copier.vindex.i2s.time_slot = tdm_slot; in assign_copier_gtw_instance()
1548 int ssp_port, tdm_slot; in avs_route_load() local
1558 tdm_slot = avs_mach_ssp_tdm(mach, ssp_port); in avs_route_load()
1563 avs_ssp_sprint(buf, len, route->source, ssp_port, tdm_slot); in avs_route_load()
1569 avs_ssp_sprint(buf, len, route->sink, ssp_port, tdm_slot); in avs_route_load()
[all …]