/sound/soc/ |
D | soc-dai.c | 115 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/ |
D | bcm2835-i2s.c | 117 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/ |
D | axg-card.c | 28 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()
|
D | axg-tdm-interface.c | 36 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()
|
D | axg-tdm.h | 75 u32 *rx_mask, unsigned int slots,
|
/sound/soc/codecs/ |
D | mc13783.c | 295 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()
|
D | adau1977.c | 497 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()
|
D | ssm4567.c | 234 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()
|
D | cs53l30.c | 766 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()
|
D | tas6424.c | 211 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()
|
D | pcm3168a.c | 383 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()
|
D | hdac_hda.c | 47 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()
|
D | max98504.c | 200 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()
|
D | nau8824.c | 1224 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()
|
D | ab8500-codec.c | 2222 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()
|
D | max98927.c | 403 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()
|
D | max98373.c | 312 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()
|
D | pcm186x.c | 429 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()
|
D | adau17x1.c | 624 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()
|
D | ssm2518.c | 524 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/ |
D | ux500_msp_dai.c | 49 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()
|
D | ux500_msp_dai.h | 53 unsigned int rx_mask; member
|
/sound/soc/fsl/ |
D | fsl_esai.c | 65 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/ |
D | mchp-i2s-mcc.c | 345 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/ |
D | sti_uniperif.c | 124 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()
|