Home
last modified time | relevance | path

Searched refs:tx (Results 1 – 21 of 21) sorted by relevance

/sound/soc/fsl/
Dfsl_sai.h39 #define FSL_SAI_xCSR(tx) (tx ? FSL_SAI_TCSR : FSL_SAI_RCSR) argument
40 #define FSL_SAI_xCR1(tx) (tx ? FSL_SAI_TCR1 : FSL_SAI_RCR1) argument
41 #define FSL_SAI_xCR2(tx) (tx ? FSL_SAI_TCR2 : FSL_SAI_RCR2) argument
42 #define FSL_SAI_xCR3(tx) (tx ? FSL_SAI_TCR3 : FSL_SAI_RCR3) argument
43 #define FSL_SAI_xCR4(tx) (tx ? FSL_SAI_TCR4 : FSL_SAI_RCR4) argument
44 #define FSL_SAI_xCR5(tx) (tx ? FSL_SAI_TCR5 : FSL_SAI_RCR5) argument
45 #define FSL_SAI_xDR(tx) (tx ? FSL_SAI_TDR : FSL_SAI_RDR) argument
46 #define FSL_SAI_xFR(tx) (tx ? FSL_SAI_TFR : FSL_SAI_RFR) argument
47 #define FSL_SAI_xMR(tx) (tx ? FSL_SAI_TMR : FSL_SAI_RMR) argument
Dfsl_esai.c124 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
193 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal()
202 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal()
224 bool tx = clk_id <= ESAI_HCKT_EXTAL; in fsl_esai_set_dai_sysclk() local
231 if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx]) in fsl_esai_set_dai_sysclk()
235 esai_priv->sck_div[tx] = true; in fsl_esai_set_dai_sysclk()
238 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_set_dai_sysclk()
276 tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk()
283 ecr |= tx ? ESAI_ECR_ETO : ESAI_ECR_ERO; in fsl_esai_set_dai_sysclk()
288 tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk()
[all …]
Dfsl_sai.c133 bool tx = fsl_dir == FSL_FMT_TRANSMITTER; in fsl_sai_set_dai_sysclk_tr() local
153 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx), in fsl_sai_set_dai_sysclk_tr()
186 bool tx = fsl_dir == FSL_FMT_TRANSMITTER; in fsl_sai_set_dai_fmt_tr() local
280 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx), in fsl_sai_set_dai_fmt_tr()
282 regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx), in fsl_sai_set_dai_fmt_tr()
306 static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) in fsl_sai_set_bclk() argument
345 sai->mclk_id[tx] = id; in fsl_sai_set_bclk()
355 tx ? 'T' : 'R', freq); in fsl_sai_set_bclk()
359 if ((tx && sai->synchronous[TX]) || (!tx && !sai->synchronous[RX])) { in fsl_sai_set_bclk()
362 FSL_SAI_CR2_MSEL(sai->mclk_id[tx])); in fsl_sai_set_bclk()
[all …]
Dfsl_esai.h25 #define REG_ESAI_xFCR(tx) (tx ? REG_ESAI_TFCR : REG_ESAI_RFCR) argument
26 #define REG_ESAI_xFSR(tx) (tx ? REG_ESAI_TFSR : REG_ESAI_RFSR) argument
44 #define REG_ESAI_xCR(tx) (tx ? REG_ESAI_TCR : REG_ESAI_RCR) argument
45 #define REG_ESAI_xCCR(tx) (tx ? REG_ESAI_TCCR : REG_ESAI_RCCR) argument
50 #define REG_ESAI_xSMA(tx) (tx ? REG_ESAI_TSMA : REG_ESAI_RSMA) argument
51 #define REG_ESAI_xSMB(tx) (tx ? REG_ESAI_TSMB : REG_ESAI_RSMB) argument
Dfsl_ssi.c112 struct fsl_ssi_reg_val tx; member
381 vals->rx.sier | vals->tx.sier, in fsl_ssi_rxtx_config()
382 vals->rx.sier | vals->tx.sier); in fsl_ssi_rxtx_config()
384 vals->rx.srcr | vals->tx.srcr, in fsl_ssi_rxtx_config()
385 vals->rx.srcr | vals->tx.srcr); in fsl_ssi_rxtx_config()
387 vals->rx.stcr | vals->tx.stcr, in fsl_ssi_rxtx_config()
388 vals->rx.stcr | vals->tx.stcr); in fsl_ssi_rxtx_config()
391 vals->rx.srcr | vals->tx.srcr, 0); in fsl_ssi_rxtx_config()
393 vals->rx.stcr | vals->tx.stcr, 0); in fsl_ssi_rxtx_config()
395 vals->rx.sier | vals->tx.sier, 0); in fsl_ssi_rxtx_config()
[all …]
Dfsl_asrc_dma.c137 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_asrc_dma_hw_params() local
151 u8 dir = tx ? OUT : IN; in fsl_asrc_dma_hw_params()
205 tmp_chan = dma_request_slave_channel(dev_be, tx ? "tx" : "rx"); in fsl_asrc_dma_hw_params()
235 if (tx) { in fsl_asrc_dma_hw_params()
Dfsl_spdif.h96 #define SCR_DMA_xX_EN(tx) (tx ? SCR_DMA_TX_EN : SCR_DMA_RX_EN) argument
Dfsl-asoc-card.c131 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_asoc_card_hw_params() local
150 ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, cpu_priv->sysclk_id[tx], in fsl_asoc_card_hw_params()
151 cpu_priv->sysclk_freq[tx], in fsl_asoc_card_hw_params()
152 cpu_priv->sysclk_dir[tx]); in fsl_asoc_card_hw_params()
Dfsl_spdif.c40 #define SIE_INTR_FOR(tx) (tx ? INTR_FOR_PLAYBACK : INTR_FOR_CAPTURE) argument
590 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in fsl_spdif_trigger() local
591 u32 intr = SIE_INTR_FOR(tx); in fsl_spdif_trigger()
592 u32 dmaen = SCR_DMA_xX_EN(tx); in fsl_spdif_trigger()
/sound/firewire/dice/
Ddice-proc.c99 } tx; in dice_proc_read() member
173 quadlets = min_t(u32, tx_rx_header.size, sizeof(buf.tx) / 4); in dice_proc_read()
175 if (dice_proc_read_mem(dice, &buf.tx, sections[2] + 2 + in dice_proc_read()
180 snd_iprintf(buffer, " iso channel: %d\n", (int)buf.tx.iso); in dice_proc_read()
182 buf.tx.number_audio); in dice_proc_read()
183 snd_iprintf(buffer, " midi ports: %u\n", buf.tx.number_midi); in dice_proc_read()
184 snd_iprintf(buffer, " speed: S%u\n", 100u << buf.tx.speed); in dice_proc_read()
186 dice_proc_fixup_string(buf.tx.names, TX_NAMES_SIZE); in dice_proc_read()
187 snd_iprintf(buffer, " names: %s\n", buf.tx.names); in dice_proc_read()
191 buf.tx.ac3_caps); in dice_proc_read()
[all …]
/sound/soc/omap/
Domap-mcpdm.c278 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcpdm_dai_shutdown() local
279 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcpdm_dai_shutdown()
280 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcpdm_dai_shutdown()
386 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcpdm_prepare() local
387 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcpdm_prepare()
388 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcpdm_prepare()
Dmcbsp.c632 void omap_mcbsp_start(struct omap_mcbsp *mcbsp, int tx, int rx) in omap_mcbsp_start() argument
653 tx &= 1; in omap_mcbsp_start()
655 MCBSP_WRITE(mcbsp, SPCR2, w | tx); in omap_mcbsp_start()
678 w &= ~(tx ? XDISABLE : 0); in omap_mcbsp_start()
689 void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int tx, int rx) in omap_mcbsp_stop() argument
695 tx &= 1; in omap_mcbsp_stop()
698 w |= (tx ? XDISABLE : 0); in omap_mcbsp_stop()
702 MCBSP_WRITE(mcbsp, SPCR2, w & ~tx); in omap_mcbsp_stop()
Dmcbsp.h338 void omap_mcbsp_start(struct omap_mcbsp *mcbsp, int tx, int rx);
339 void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int tx, int rx);
/sound/soc/blackfin/
Dbf5xx-sport.h162 void sport_incfrag(struct sport_device *sport, int *frag, int tx);
163 void sport_decfrag(struct sport_device *sport, int *frag, int tx);
Dbf5xx-sport.c606 void sport_incfrag(struct sport_device *sport, int *frag, int tx) in sport_incfrag() argument
609 if (tx == 1 && *frag == sport->tx_frags) in sport_incfrag()
612 if (tx == 0 && *frag == sport->rx_frags) in sport_incfrag()
617 void sport_decfrag(struct sport_device *sport, int *frag, int tx) in sport_decfrag() argument
620 if (tx == 1 && *frag == 0) in sport_decfrag()
623 if (tx == 0 && *frag == 0) in sport_decfrag()
/sound/soc/codecs/
Dwm8960.c711 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wm8960_hw_params() local
742 if (tx) { in wm8960_hw_params()
755 wm8960->is_stream_in_use[tx] = true; in wm8960_hw_params()
758 !wm8960->is_stream_in_use[!tx]) in wm8960_hw_params()
769 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wm8960_hw_free() local
771 wm8960->is_stream_in_use[tx] = false; in wm8960_hw_free()
Dcs42xx8.c256 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in cs42xx8_hw_params() local
276 CS42XX8_FUNCMOD_xC_FM_MASK(tx) | mask, in cs42xx8_hw_params()
277 CS42XX8_FUNCMOD_xC_FM(tx, fm) | val); in cs42xx8_hw_params()
DMakefile104 snd-soc-spdif-tx-objs := spdif_transmitter.o
296 obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif-rx.o snd-soc-spdif-tx.o
/sound/soc/bcm/
Dbcm2835-i2s.c220 bool tx, bool rx) in bcm2835_i2s_clear_fifos() argument
231 off = tx ? BCM2835_I2S_TXON : 0; in bcm2835_i2s_clear_fifos()
234 clr = tx ? BCM2835_I2S_TXCLR : 0; in bcm2835_i2s_clear_fifos()
/sound/soc/intel/atom/
Dsst-atom-controls.h840 bool tx; member
849 (struct sst_enum){ .reg = s_ch_no, .tx = is_tx, .max = 4+1, .texts = xtexts, }
Dsst-atom-controls.c166 unsigned int is_tx = e->tx; in sst_slot_get()
225 unsigned int is_tx = e->tx; in sst_slot_put()