/sound/soc/samsung/ |
D | i2s.c | 111 static inline bool is_secondary(struct i2s_dai *i2s) in is_secondary() argument 113 return i2s->pri_dai ? true : false; in is_secondary() 117 static inline bool is_slave(struct i2s_dai *i2s) in is_slave() argument 119 u32 mod = readl(i2s->addr + I2SMOD); in is_slave() 120 return (mod & (1 << i2s->variant_regs->mss_off)) ? true : false; in is_slave() 124 static inline bool tx_active(struct i2s_dai *i2s) in tx_active() argument 128 if (!i2s) in tx_active() 131 active = readl(i2s->addr + I2SCON); in tx_active() 133 if (is_secondary(i2s)) in tx_active() 142 static inline struct i2s_dai *get_other_dai(struct i2s_dai *i2s) in get_other_dai() argument [all …]
|
D | s3c-i2s-v2.c | 78 static void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on) in s3c2412_snd_txctrl() argument 80 void __iomem *regs = i2s->regs; in s3c2412_snd_txctrl() 108 dev_err(i2s->dev, "TXEN: Invalid MODE %x in IISMOD\n", in s3c2412_snd_txctrl() 137 dev_err(i2s->dev, "TXDIS: Invalid MODE %x in IISMOD\n", in s3c2412_snd_txctrl() 151 static void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on) in s3c2412_snd_rxctrl() argument 153 void __iomem *regs = i2s->regs; in s3c2412_snd_rxctrl() 181 dev_err(i2s->dev, "RXEN: Invalid MODE %x in IISMOD\n", in s3c2412_snd_rxctrl() 206 dev_err(i2s->dev, "RXDIS: Invalid MODE %x in IISMOD\n", in s3c2412_snd_rxctrl() 224 static int s3c2412_snd_lrsync(struct s3c_i2sv2_info *i2s) in s3c2412_snd_lrsync() argument 232 iiscon = readl(i2s->regs + S3C2412_IISCON); in s3c2412_snd_lrsync() [all …]
|
D | Makefile | 4 snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o 5 snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o 7 snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o 10 snd-soc-i2s-objs := i2s.o 13 obj-$(CONFIG_SND_S3C24XX_I2S) += snd-soc-s3c24xx-i2s.o 15 obj-$(CONFIG_SND_S3C2412_SOC_I2S) += snd-soc-s3c2412-i2s.o 16 obj-$(CONFIG_SND_S3C_I2SV2_SOC) += snd-soc-s3c-i2s-v2.o 19 obj-$(CONFIG_SND_SAMSUNG_I2S) += snd-soc-i2s.o
|
D | s3c2412-i2s.c | 97 struct s3c_i2sv2_info *i2s = snd_soc_dai_get_drvdata(cpu_dai); in s3c2412_i2s_hw_params() local 102 iismod = readl(i2s->regs + S3C2412_IISMOD); in s3c2412_i2s_hw_params() 114 writel(iismod, i2s->regs + S3C2412_IISMOD); in s3c2412_i2s_hw_params()
|
/sound/soc/tegra/ |
D | tegra30_i2s.c | 51 struct tegra30_i2s *i2s = dev_get_drvdata(dev); in tegra30_i2s_runtime_suspend() local 53 regcache_cache_only(i2s->regmap, true); in tegra30_i2s_runtime_suspend() 55 clk_disable_unprepare(i2s->clk_i2s); in tegra30_i2s_runtime_suspend() 62 struct tegra30_i2s *i2s = dev_get_drvdata(dev); in tegra30_i2s_runtime_resume() local 65 ret = clk_prepare_enable(i2s->clk_i2s); in tegra30_i2s_runtime_resume() 71 regcache_cache_only(i2s->regmap, false); in tegra30_i2s_runtime_resume() 79 struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra30_i2s_set_fmt() local 128 regmap_update_bits(i2s->regmap, TEGRA30_I2S_CTRL, mask, val); in tegra30_i2s_set_fmt() 139 struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra30_i2s_hw_params() local 157 regmap_update_bits(i2s->regmap, TEGRA30_I2S_CTRL, mask, val); in tegra30_i2s_hw_params() [all …]
|
D | tegra20_i2s.c | 52 struct tegra20_i2s *i2s = dev_get_drvdata(dev); in tegra20_i2s_runtime_suspend() local 54 clk_disable_unprepare(i2s->clk_i2s); in tegra20_i2s_runtime_suspend() 61 struct tegra20_i2s *i2s = dev_get_drvdata(dev); in tegra20_i2s_runtime_resume() local 64 ret = clk_prepare_enable(i2s->clk_i2s); in tegra20_i2s_runtime_resume() 76 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_set_fmt() local 124 regmap_update_bits(i2s->regmap, TEGRA20_I2S_CTRL, mask, val); in tegra20_i2s_set_fmt() 134 struct tegra20_i2s *i2s = snd_soc_dai_get_drvdata(dai); in tegra20_i2s_hw_params() local 159 regmap_update_bits(i2s->regmap, TEGRA20_I2S_CTRL, mask, val); in tegra20_i2s_hw_params() 166 ret = clk_set_rate(i2s->clk_i2s, i2sclock); in tegra20_i2s_hw_params() 180 regmap_write(i2s->regmap, TEGRA20_I2S_TIMING, val); in tegra20_i2s_hw_params() [all …]
|
D | Makefile | 6 snd-soc-tegra20-i2s-objs := tegra20_i2s.o 9 snd-soc-tegra30-i2s-objs := tegra30_i2s.o 15 obj-$(CONFIG_SND_SOC_TEGRA20_I2S) += snd-soc-tegra20-i2s.o 18 obj-$(CONFIG_SND_SOC_TEGRA30_I2S) += snd-soc-tegra30-i2s.o
|
/sound/soc/xtensa/ |
D | xtfpga-i2s.c | 79 unsigned (*tx_fn)(struct xtfpga_i2s *i2s, 134 struct xtfpga_i2s *i2s, struct snd_pcm_runtime *runtime, \ 140 for (; i2s->tx_fifo_level < i2s->tx_fifo_high; \ 141 i2s->tx_fifo_level += 2) { \ 143 i2s->regs + XTFPGA_I2S_CHAN0_DATA); \ 145 i2s->regs + XTFPGA_I2S_CHAN0_DATA); \ 159 static bool xtfpga_pcm_push_tx(struct xtfpga_i2s *i2s) in xtfpga_pcm_push_tx() argument 165 tx_substream = rcu_dereference(i2s->tx_substream); in xtfpga_pcm_push_tx() 168 unsigned tx_ptr = ACCESS_ONCE(i2s->tx_ptr); in xtfpga_pcm_push_tx() 169 unsigned new_tx_ptr = i2s->tx_fn(i2s, tx_substream->runtime, in xtfpga_pcm_push_tx() [all …]
|
D | Makefile | 1 snd-soc-xtfpga-i2s-objs := xtfpga-i2s.o 3 obj-$(CONFIG_SND_SOC_XTFPGA_I2S) += snd-soc-xtfpga-i2s.o
|
/sound/soc/rockchip/ |
D | rockchip_i2s.c | 48 struct rk_i2s_dev *i2s = dev_get_drvdata(dev); in i2s_runtime_suspend() local 50 clk_disable_unprepare(i2s->mclk); in i2s_runtime_suspend() 57 struct rk_i2s_dev *i2s = dev_get_drvdata(dev); in i2s_runtime_resume() local 60 ret = clk_prepare_enable(i2s->mclk); in i2s_runtime_resume() 62 dev_err(i2s->dev, "clock enable failed %d\n", ret); in i2s_runtime_resume() 74 static void rockchip_snd_txctrl(struct rk_i2s_dev *i2s, int on) in rockchip_snd_txctrl() argument 80 regmap_update_bits(i2s->regmap, I2S_DMACR, in rockchip_snd_txctrl() 83 regmap_update_bits(i2s->regmap, I2S_XFER, in rockchip_snd_txctrl() 87 i2s->tx_start = true; in rockchip_snd_txctrl() 89 i2s->tx_start = false; in rockchip_snd_txctrl() [all …]
|
D | Makefile | 2 snd-soc-rockchip-i2s-objs := rockchip_i2s.o 5 obj-$(CONFIG_SND_SOC_ROCKCHIP_I2S) += snd-soc-rockchip-i2s.o
|
/sound/soc/adi/ |
D | axi-i2s.c | 58 struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai); in axi_i2s_trigger() local 81 regmap_update_bits(i2s->regmap, AXI_I2S_REG_CTRL, mask, val); in axi_i2s_trigger() 89 struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai); in axi_i2s_hw_params() local 96 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params() 98 regmap_write(i2s->regmap, AXI_I2S_REG_CLK_CTRL, (word_size << 16) | in axi_i2s_hw_params() 107 struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai); in axi_i2s_startup() local 116 regmap_write(i2s->regmap, AXI_I2S_REG_RESET, mask); in axi_i2s_startup() 120 &i2s->rate_constraints); in axi_i2s_startup() 124 return clk_prepare_enable(i2s->clk_ref); in axi_i2s_startup() 130 struct axi_i2s *i2s = snd_soc_dai_get_drvdata(dai); in axi_i2s_shutdown() local [all …]
|
D | Makefile | 1 snd-soc-adi-axi-i2s-objs := axi-i2s.o 4 obj-$(CONFIG_SND_SOC_ADI_AXI_I2S) += snd-soc-adi-axi-i2s.o
|
/sound/soc/jz4740/ |
D | jz4740-i2s.c | 119 static inline uint32_t jz4740_i2s_read(const struct jz4740_i2s *i2s, in jz4740_i2s_read() argument 122 return readl(i2s->base + reg); in jz4740_i2s_read() 125 static inline void jz4740_i2s_write(const struct jz4740_i2s *i2s, in jz4740_i2s_write() argument 128 writel(value, i2s->base + reg); in jz4740_i2s_write() 134 struct jz4740_i2s *i2s = snd_soc_dai_get_drvdata(dai); in jz4740_i2s_startup() local 140 ctrl = jz4740_i2s_read(i2s, JZ_REG_AIC_CTRL); in jz4740_i2s_startup() 142 jz4740_i2s_write(i2s, JZ_REG_AIC_CTRL, ctrl); in jz4740_i2s_startup() 144 clk_prepare_enable(i2s->clk_i2s); in jz4740_i2s_startup() 146 conf = jz4740_i2s_read(i2s, JZ_REG_AIC_CONF); in jz4740_i2s_startup() 148 jz4740_i2s_write(i2s, JZ_REG_AIC_CONF, conf); in jz4740_i2s_startup() [all …]
|
D | Makefile | 4 snd-soc-jz4740-i2s-objs := jz4740-i2s.o 6 obj-$(CONFIG_SND_JZ4740_SOC_I2S) += snd-soc-jz4740-i2s.o
|
/sound/soc/blackfin/ |
D | Makefile | 3 snd-bf5xx-i2s-objs := bf5xx-i2s-pcm.o 7 snd-soc-bf5xx-i2s-objs := bf5xx-i2s.o 8 snd-soc-bf6xx-i2s-objs := bf6xx-i2s.o 11 obj-$(CONFIG_SND_BF5XX_I2S) += snd-bf5xx-i2s.o 15 obj-$(CONFIG_SND_BF5XX_SOC_I2S) += snd-soc-bf5xx-i2s.o 16 obj-$(CONFIG_SND_BF6XX_SOC_I2S) += snd-soc-bf6xx-i2s.o
|
/sound/soc/zte/ |
D | zx296702-i2s.c | 180 struct zx_i2s_info *i2s = snd_soc_dai_get_drvdata(cpu_dai); in zx_i2s_set_fmt() local 183 val = readl_relaxed(i2s->reg_base + ZX_I2S_TIMING_CTRL); in zx_i2s_set_fmt() 205 i2s->master = 1; in zx_i2s_set_fmt() 209 i2s->master = 0; in zx_i2s_set_fmt() 217 writel_relaxed(val, i2s->reg_base + ZX_I2S_TIMING_CTRL); in zx_i2s_set_fmt() 225 struct zx_i2s_info *i2s = snd_soc_dai_get_drvdata(socdai); in zx_i2s_hw_params() local 234 val = readl_relaxed(i2s->reg_base + ZX_I2S_TIMING_CTRL); in zx_i2s_hw_params() 278 writel_relaxed(val, i2s->reg_base + ZX_I2S_TIMING_CTRL); in zx_i2s_hw_params() 280 if (i2s->master) in zx_i2s_hw_params() 281 ret = clk_set_rate(i2s->dai_clk, in zx_i2s_hw_params()
|
D | Kconfig | 11 tristate "ZX296702 i2s" 17 zx296702 i2s interface
|
/sound/soc/bcm/ |
D | Makefile | 2 snd-soc-bcm2835-i2s-objs := bcm2835-i2s.o 4 obj-$(CONFIG_SND_BCM2835_SOC_I2S) += snd-soc-bcm2835-i2s.o
|
/sound/soc/davinci/ |
D | Makefile | 3 snd-soc-davinci-i2s-objs := davinci-i2s.o 8 obj-$(CONFIG_SND_DAVINCI_SOC_I2S) += snd-soc-davinci-i2s.o
|
/sound/soc/cirrus/ |
D | Makefile | 3 snd-soc-ep93xx-i2s-objs := ep93xx-i2s.o 7 obj-$(CONFIG_SND_EP93XX_SOC_I2S) += snd-soc-ep93xx-i2s.o
|
/sound/soc/au1x/ |
D | Makefile | 3 snd-soc-au1xpsc-i2s-objs := psc-i2s.o 12 obj-$(CONFIG_SND_SOC_AU1XPSC_I2S) += snd-soc-au1xpsc-i2s.o
|
/sound/soc/ux500/ |
D | Makefile | 3 snd-soc-ux500-plat-msp-i2s-objs := ux500_msp_dai.o ux500_msp_i2s.o 4 obj-$(CONFIG_SND_SOC_UX500_PLAT_MSP_I2S) += snd-soc-ux500-plat-msp-i2s.o
|
/sound/soc/pxa/ |
D | Makefile | 4 snd-soc-pxa2xx-i2s-objs := pxa2xx-i2s.o 11 obj-$(CONFIG_SND_PXA2XX_SOC_I2S) += snd-soc-pxa2xx-i2s.o
|
/sound/soc/sh/ |
D | siu_dai.c | 64 u32 i2s; member 80 .i2s = 0x50000000, 86 .i2s = 0x05000000, 94 .i2s = 0x00500000, 100 .i2s = 0x00050000, 619 ifctl = siu_flags[info->port_id].playback.i2s | in siu_dai_set_fmt() 620 siu_flags[info->port_id].capture.i2s; in siu_dai_set_fmt()
|