Home
last modified time | relevance | path

Searched refs:rx_mask (Results 1 – 25 of 72) sorted by relevance

123

/sound/soc/
Dsoc-dai.c115 unsigned int *rx_mask) in snd_soc_xlate_tdm_slot_mask() argument
117 if (*tx_mask || *rx_mask) in snd_soc_xlate_tdm_slot_mask()
124 *rx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
153 unsigned int tx_mask, unsigned int rx_mask, in snd_soc_dai_set_tdm_slot() argument
158 &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
160 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
163 dai->rx_mask = rx_mask; in snd_soc_dai_set_tdm_slot()
166 return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, in snd_soc_dai_set_tdm_slot()
/sound/soc/bcm/
Dbcm2835-i2s.c117 unsigned int rx_mask; member
241 dev->rx_mask = 0x03; in bcm2835_i2s_set_dai_bclk_ratio()
250 unsigned int tx_mask, unsigned int rx_mask, in bcm2835_i2s_set_dai_tdm_slot() argument
260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
267 if (hweight_long((unsigned long) rx_mask) != 2 in bcm2835_i2s_set_dai_tdm_slot()
277 dev->rx_mask = rx_mask; in bcm2835_i2s_set_dai_tdm_slot()
337 unsigned int rx_mask, tx_mask; in bcm2835_i2s_hw_params() local
364 rx_mask = dev->rx_mask; in bcm2835_i2s_hw_params()
370 rx_mask = 0x03; in bcm2835_i2s_hw_params()
497 rx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/sound/soc/meson/
Daxg-card.c28 u32 *rx_mask; member
225 ret = axg_tdm_set_tdm_slots(rtd->cpu_dai, be->tx_mask, be->rx_mask, in axg_card_tdm_dai_init()
344 be->rx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
345 sizeof(*be->rx_mask), GFP_KERNEL); in axg_card_parse_cpu_tdm_slots()
346 if (!be->tx_mask || !be->rx_mask) in axg_card_parse_cpu_tdm_slots()
361 snd_soc_of_get_slot_mask(node, propname, &be->rx_mask[i]); in axg_card_parse_cpu_tdm_slots()
362 rx = max(rx, be->rx_mask[i]); in axg_card_parse_cpu_tdm_slots()
Daxg-tdm-interface.c36 u32 *rx_mask, unsigned int slots, in axg_tdm_set_tdm_slots() argument
48 rx_slots = axg_tdm_slots_total(rx_mask); in axg_tdm_set_tdm_slots()
90 rx->mask = rx_mask; in axg_tdm_set_tdm_slots()
Daxg-tdm.h75 u32 *rx_mask, unsigned int slots,
/sound/soc/codecs/
Dmc13783.c295 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument
317 switch (rx_mask) { in mc13783_set_tdm_slot_dac()
340 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument
362 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument
367 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
372 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
Dadau1977.c497 unsigned int rx_mask, int slots, int width) in adau1977_set_tdm_slot() argument
514 if (rx_mask == 0 || tx_mask != 0) in adau1977_set_tdm_slot()
519 slot[i] = __ffs(rx_mask); in adau1977_set_tdm_slot()
521 rx_mask &= ~(1 << slot[i]); in adau1977_set_tdm_slot()
524 if (rx_mask == 0) in adau1977_set_tdm_slot()
528 if (rx_mask != 0) in adau1977_set_tdm_slot()
Dssm4567.c234 unsigned int rx_mask, int slots, int width) in ssm4567_set_tdm_slot() argument
244 if (rx_mask && rx_mask != tx_mask) in ssm4567_set_tdm_slot()
Dcs53l30.c766 unsigned int tx_mask, unsigned int rx_mask, in cs53l30_set_dai_tdm_slot() argument
775 if (!rx_mask) { in cs53l30_set_dai_tdm_slot()
794 for (i = 0; rx_mask && i < CS53L30_TDM_SLOT_MAX; i++) { in cs53l30_set_dai_tdm_slot()
796 slot_next = __ffs(rx_mask); in cs53l30_set_dai_tdm_slot()
802 rx_mask &= ~(1 << slot_next); in cs53l30_set_dai_tdm_slot()
806 if (rx_mask && i == CS53L30_TDM_SLOT_MAX) { in cs53l30_set_dai_tdm_slot()
Dtas6424.c211 unsigned int tx_mask, unsigned int rx_mask, in tas6424_set_dai_tdm_slot() argument
219 tx_mask, rx_mask); in tas6424_set_dai_tdm_slot()
221 if (!tx_mask || !rx_mask) in tas6424_set_dai_tdm_slot()
230 last_slot = __fls(rx_mask); in tas6424_set_dai_tdm_slot()
Dpcm3168a.c383 unsigned int rx_mask, int slots, in pcm3168a_set_tdm_slot() argument
390 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in pcm3168a_set_tdm_slot()
393 tx_mask, rx_mask, slots); in pcm3168a_set_tdm_slot()
410 io_params->tdm_mask = rx_mask; in pcm3168a_set_tdm_slot()
Dhdac_hda.c47 unsigned int tx_mask, unsigned int rx_mask,
129 unsigned int tx_mask, unsigned int rx_mask, in hdac_hda_dai_set_tdm_slot() argument
141 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; in hdac_hda_dai_set_tdm_slot()
Dmax98504.c200 unsigned int tx_mask, unsigned int rx_mask, in max98504_set_tdm_slot() argument
210 max98504->pcm_rx_channels = rx_mask; in max98504_set_tdm_slot()
Dnau8824.c1224 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8824_set_tdm_slot() argument
1231 ((rx_mask & 0xf0) && (rx_mask & 0xf)) || in nau8824_set_tdm_slot()
1232 ((rx_mask & 0xf0) && (tx_mask & 0xf)) || in nau8824_set_tdm_slot()
1233 ((rx_mask & 0xf) && (tx_mask & 0xf0))) in nau8824_set_tdm_slot()
1243 if (rx_mask & 0xf0) in nau8824_set_tdm_slot()
1244 ctrl_val |= ((rx_mask >> 4) << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
1246 ctrl_val |= (rx_mask << NAU8824_TDM_DACR_RX_SFT); in nau8824_set_tdm_slot()
Dab8500-codec.c2222 unsigned int tx_mask, unsigned int rx_mask, in ab8500_codec_set_dai_tdm_slot() argument
2325 if (rx_mask & ~0xff) in ab8500_codec_set_dai_tdm_slot()
2328 rx_mask = rx_mask << AB8500_AD_DATA0_OFFSET; in ab8500_codec_set_dai_tdm_slot()
2329 slots_active = hweight32(rx_mask); in ab8500_codec_set_dai_tdm_slot()
2338 slot = ffs(rx_mask); in ab8500_codec_set_dai_tdm_slot()
2344 slot = ffs(rx_mask); in ab8500_codec_set_dai_tdm_slot()
2349 slot = fls(rx_mask); in ab8500_codec_set_dai_tdm_slot()
Dmax98927.c403 unsigned int tx_mask, unsigned int rx_mask, in max98927_dai_tdm_slot() argument
450 rx_mask & 0xFF); in max98927_dai_tdm_slot()
453 (rx_mask & 0xFF00) >> 8); in max98927_dai_tdm_slot()
Dmax98373.c312 unsigned int tx_mask, unsigned int rx_mask, in max98373_dai_tdm_slot() argument
322 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
363 mask = rx_mask; in max98373_dai_tdm_slot()
Dpcm186x.c429 unsigned int rx_mask, int slots, int slot_width) in pcm186x_set_tdm_slot() argument
437 __func__, tx_mask, rx_mask, slots, slot_width); in pcm186x_set_tdm_slot()
Dadau17x1.c624 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in adau17x1_set_dai_tdm_slot() argument
633 rx_mask = 3; in adau17x1_set_dai_tdm_slot()
681 switch (rx_mask) { in adau17x1_set_dai_tdm_slot()
Dssm2518.c524 unsigned int rx_mask, int slots, int width) in ssm2518_set_tdm_slot() argument
536 if (tx_mask == 0 || rx_mask != 0) in ssm2518_set_tdm_slot()
/sound/soc/ux500/
Dux500_msp_dai.c49 multi->rx_channel_0_enable = drvdata->rx_mask; in setup_pcm_multichan()
519 drvdata->rx_mask; in ux500_msp_dai_hw_params()
582 unsigned int rx_mask, in ux500_msp_dai_set_tdm_slot() argument
616 drvdata->rx_mask = rx_mask & cap; in ux500_msp_dai_set_tdm_slot()
761 drvdata->rx_mask = 0x01; in ux500_msp_drv_probe()
Dux500_msp_dai.h53 unsigned int rx_mask; member
/sound/soc/fsl/
Dfsl_esai.c65 u32 rx_mask; member
376 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
389 esai_priv->rx_mask = rx_mask; in fsl_esai_set_dai_tdm_slot()
646 mask = tx ? esai_priv->tx_mask : esai_priv->rx_mask; in fsl_esai_trigger_start()
1022 esai_priv->rx_mask = 0xFFFFFFFF; in fsl_esai_probe()
/sound/soc/atmel/
Dmchp-i2s-mcc.c345 unsigned int rx_mask, in mchp_i2s_mcc_set_dai_tdm_slot() argument
352 __func__, tx_mask, rx_mask, slots, slot_width); in mchp_i2s_mcc_set_dai_tdm_slot()
360 if (rx_mask != GENMASK(slots - 1, 0) || in mchp_i2s_mcc_set_dai_tdm_slot()
361 rx_mask != tx_mask) in mchp_i2s_mcc_set_dai_tdm_slot()
/sound/soc/sti/
Dsti_uniperif.c124 unsigned int rx_mask, int slots, in sti_uniperiph_set_tdm_slot() argument
140 uni->tdm_slot.mask = (tx_mask != 0) ? tx_mask : rx_mask; in sti_uniperiph_set_tdm_slot()

123