• Home
  • Raw
  • Download

Lines Matching +full:audio +full:- +full:tx

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pxa2xx-i2s.c -- ALSA Soc Audio Layer
21 #include <sound/pxa2xx-lib.h>
25 #include <mach/audio.h>
27 #include "pxa2xx-i2s.h"
33 #define SACR1 __REG(0x40400004) /* Serial Audio I 2 S/MSB-Justified Control Register */
34 #define SASR0 __REG(0x4040000C) /* Serial Audio I 2 S/MSB-Justified Interface and FIFO Status Reg…
35 #define SAIMR __REG(0x40400014) /* Serial Audio Interrupt Mask Register */
36 #define SAICR __REG(0x40400018) /* Serial Audio Interrupt Clear Register */
37 #define SADIV __REG(0x40400060) /* Audio Clock Divider Register. */
38 #define SADR __REG(0x40400080) /* Serial Audio Data Register (TX and RX FIFO access Register). */
41 #define SACR0_TFTH(x) ((x) << 8) /* Tx FIFO Interrupt or DMA Trigger Threshold */
54 #define SASR0_TUR (1 << 5) /* Tx FIFO Underrun */
56 #define SASR0_TFS (1 << 3) /* Tx FIFO Service Request */
59 #define SASR0_TNF (1 << 0) /* Tx FIFO Not Empty */
62 #define SAICR_TUR (1 << 5) /* Clear Tx FIFO Underrun Interrupt */
65 #define SAIMR_TUR (1 << 5) /* Enable Tx FIFO Underrun Condition Interrupt */
67 #define SAIMR_TFS (1 << 3) /* Enable Tx FIFO Service Interrupt */
84 .chan_name = "tx",
151 return -ENODEV; in pxa2xx_i2s_set_dai_sysclk()
163 return -EINVAL; in pxa2xx_i2s_hw_params()
168 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
184 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params()
223 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_trigger()
236 ret = -EINVAL; in pxa2xx_i2s_trigger()
245 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in pxa2xx_i2s_shutdown()
299 clk_i2s = clk_get(dai->dev, "I2SCLK"); in pxa2xx_i2s_probe()
325 clk_i2s = ERR_PTR(-ENOENT); in pxa2xx_i2s_remove()
360 .name = "pxa-i2s",
377 return devm_snd_soc_register_component(&pdev->dev, &pxa_i2s_component, in pxa2xx_i2s_drv_probe()
385 .name = "pxa2xx-i2s",
391 clk_i2s = ERR_PTR(-ENOENT); in pxa2xx_i2s_init()
407 MODULE_ALIAS("platform:pxa2xx-i2s");