/linux-6.3-rc2/sound/soc/hisilicon/ |
A D | hi6210-i2s.c | 247 i2s->format = fmt; in hi6210_i2s_set_fmt() 248 i2s->master = (i2s->format & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) == in hi6210_i2s_set_fmt() 315 i2s->bits = 32; in hi6210_i2s_hw_params() 319 i2s->bits = 16; in hi6210_i2s_hw_params() 325 i2s->channel_length = i2s->channels * i2s->bits; in hi6210_i2s_hw_params() 455 if (!i2s->master) in hi6210_i2s_hw_params() 553 i2s = devm_kzalloc(dev, sizeof(*i2s), GFP_KERNEL); in hi6210_i2s_probe() 554 if (!i2s) in hi6210_i2s_probe() 557 i2s->dev = dev; in hi6210_i2s_probe() 577 i2s->clocks++; in hi6210_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/img/ |
A D | img-i2s-out.c | 182 img_i2s_out_enable(i2s); in img_i2s_out_reset() 204 img_i2s_out_reset(i2s); in img_i2s_out_trigger() 434 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in img_i2s_out_probe() 435 if (!i2s) in img_i2s_out_probe() 440 i2s->dev = &pdev->dev; in img_i2s_out_probe() 446 i2s->base = base; in img_i2s_out_probe() 459 if (IS_ERR(i2s->rst)) in img_i2s_out_probe() 474 i2s->max_i2s_chan, sizeof(*i2s->suspend_ch_ctl), GFP_KERNEL); in img_i2s_out_probe() 509 i2s->dai_driver.playback.channels_max = i2s->max_i2s_chan * 2; in img_i2s_out_probe() 562 i2s->suspend_ctl = img_i2s_out_readl(i2s, IMG_I2S_OUT_CTL); in img_i2s_out_suspend() [all …]
|
A D | img-i2s-in.c | 169 img_i2s_in_enable(i2s); in img_i2s_in_trigger() 205 dev_err(i2s->dev, in img_i2s_in_check_rate() 294 img_i2s_in_flush(i2s); in img_i2s_in_hw_params() 428 i2s = devm_kzalloc(dev, sizeof(*i2s), GFP_KERNEL); in img_i2s_in_probe() 429 if (!i2s) in img_i2s_in_probe() 434 i2s->dev = dev; in img_i2s_in_probe() 440 i2s->base = base; in img_i2s_in_probe() 473 i2s->dai_driver.capture.channels_max = i2s->max_i2s_chan * 2; in img_i2s_in_probe() 509 i2s->max_i2s_chan, sizeof(*i2s->suspend_ch_ctl), GFP_KERNEL); in img_i2s_in_probe() 562 i2s->suspend_ctl = img_i2s_in_readl(i2s, IMG_I2S_IN_CTL); in img_i2s_in_suspend() [all …]
|
/linux-6.3-rc2/sound/soc/rockchip/ |
A D | rockchip_i2s.c | 67 if (!IS_ERR(i2s->pinctrl) && !IS_ERR_OR_NULL(i2s->bclk_on)) in i2s_pinctrl_select_bclk_on() 68 ret = pinctrl_select_state(i2s->pinctrl, i2s->bclk_on); in i2s_pinctrl_select_bclk_on() 81 if (!IS_ERR(i2s->pinctrl) && !IS_ERR_OR_NULL(i2s->bclk_off)) in i2s_pinctrl_select_bclk_off() 82 ret = pinctrl_select_state(i2s->pinctrl, i2s->bclk_off); in i2s_pinctrl_select_bclk_off() 426 if (!IS_ERR(i2s->grf) && i2s->pins) { in rockchip_i2s_hw_params() 447 regmap_write(i2s->grf, i2s->pins->reg_offset, val); in rockchip_i2s_hw_params() 535 i2s->has_playback ? &i2s->playback_dma_data : NULL, in rockchip_i2s_dai_probe() 536 i2s->has_capture ? &i2s->capture_dma_data : NULL); in rockchip_i2s_dai_probe() 745 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in rockchip_i2s_probe() 746 if (!i2s) in rockchip_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/adi/ |
A D | axi-i2s.c | 143 i2s->has_playback ? &i2s->playback_dma_data : NULL, in axi_i2s_dai_probe() 144 i2s->has_capture ? &i2s->capture_dma_data : NULL); in axi_i2s_dai_probe() 190 struct axi_i2s *i2s; in axi_i2s_probe() local 194 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in axi_i2s_probe() 195 if (!i2s) in axi_i2s_probe() 208 if (IS_ERR(i2s->regmap)) in axi_i2s_probe() 212 if (IS_ERR(i2s->clk)) in axi_i2s_probe() 223 if (i2s->has_playback) { in axi_i2s_probe() 235 if (i2s->has_capture) { in axi_i2s_probe() 247 i2s->ratnum.num = clk_get_rate(i2s->clk_ref) / 2 / AXI_I2S_BITS_PER_FRAME; in axi_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/jz4740/ |
A D | jz4740-i2s.c | 279 &i2s->capture_dma_data); in jz4740_i2s_dai_probe() 448 struct jz4740_i2s *i2s) in jz4740_i2s_init_regmap_fields() argument 450 i2s->field_rx_fifo_thresh = in jz4740_i2s_init_regmap_fields() 456 i2s->field_tx_fifo_thresh = in jz4740_i2s_init_regmap_fields() 462 i2s->field_i2sdiv_capture = in jz4740_i2s_init_regmap_fields() 487 struct jz4740_i2s *i2s; in jz4740_i2s_dev_probe() local 492 i2s = devm_kzalloc(dev, sizeof(*i2s), GFP_KERNEL); in jz4740_i2s_dev_probe() 493 if (!i2s) in jz4740_i2s_dev_probe() 509 if (IS_ERR(i2s->clk_aic)) in jz4740_i2s_dev_probe() 513 if (IS_ERR(i2s->clk_i2s)) in jz4740_i2s_dev_probe() [all …]
|
/linux-6.3-rc2/sound/soc/stm/ |
A D | stm32_i2s.c | 297 i2s->div = div; in stm32_i2s_calc_clk_div() 298 i2s->odd = odd; in stm32_i2s_calc_clk_div() 609 i2s->fmt = fmt; in stm32_i2s_set_dai_fmt() 671 clk_set_parent(i2s->i2sclk, i2s->x11kclk); in stm32_i2s_configure_clock() 673 clk_set_parent(i2s->i2sclk, i2s->x8kclk); in stm32_i2s_configure_clock() 850 i2s->refcount++; in stm32_i2s_trigger() 856 if (STM32_I2S_IS_MASTER(i2s) && i2s->refcount == 1) in stm32_i2s_trigger() 884 i2s->refcount--; in stm32_i2s_trigger() 1115 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in stm32_i2s_probe() 1116 if (!i2s) in stm32_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/tegra/ |
A D | tegra30_i2s.c | 200 i2s->soc_data->set_audio_cif(i2s->regmap, reg, &cif_conf); in tegra30_i2s_hw_params() 301 &i2s->capture_dma_data); in tegra30_i2s_probe() 409 struct tegra30_i2s *i2s; in tegra30_i2s_platform_probe() local 416 if (!i2s) { in tegra30_i2s_platform_probe() 428 i2s->soc_data = soc_data; in tegra30_i2s_platform_probe() 443 if (IS_ERR(i2s->clk_i2s)) { in tegra30_i2s_platform_probe() 457 if (IS_ERR(i2s->regmap)) { in tegra30_i2s_platform_probe() 459 ret = PTR_ERR(i2s->regmap); in tegra30_i2s_platform_probe() 501 &i2s->dai, 1); in tegra30_i2s_platform_probe() 509 &i2s->dma_config, i2s->playback_dma_chan, in tegra30_i2s_platform_probe() [all …]
|
A D | tegra210_i2s.c | 191 regcache_sync(i2s->regmap); in tegra210_i2s_runtime_resume() 326 i2s->loopback = value; in tegra210_i2s_put_loopback() 355 i2s->fsync_width = value; in tegra210_i2s_put_fsync_width() 497 i2s->rx_fifo_th = value; in tegra210_i2s_pput_fifo_th() 523 i2s->bclk_ratio = value; in tegra210_i2s_put_bclk_ratio() 533 i2s->bclk_ratio = ratio; in tegra210_i2s_set_dai_bclk_ratio() 547 if (i2s->bclk_ratio) in tegra210_i2s_set_timing_params() 580 i2s->tx_mask, i2s->rx_mask); in tegra210_i2s_set_timing_params() 882 i2s = devm_kzalloc(dev, sizeof(*i2s), GFP_KERNEL); in tegra210_i2s_probe() 883 if (!i2s) in tegra210_i2s_probe() [all …]
|
A D | tegra20_i2s.c | 70 regcache_mark_dirty(i2s->regmap); in tegra20_i2s_runtime_resume() 260 &i2s->capture_dma_data); in tegra20_i2s_probe() 402 struct tegra20_i2s *i2s; in tegra20_i2s_platform_probe() local 408 if (!i2s) { in tegra20_i2s_platform_probe() 418 if (IS_ERR(i2s->reset)) { in tegra20_i2s_platform_probe() 420 return PTR_ERR(i2s->reset); in tegra20_i2s_platform_probe() 424 if (IS_ERR(i2s->clk_i2s)) { in tegra20_i2s_platform_probe() 426 ret = PTR_ERR(i2s->clk_i2s); in tegra20_i2s_platform_probe() 438 if (IS_ERR(i2s->regmap)) { in tegra20_i2s_platform_probe() 440 ret = PTR_ERR(i2s->regmap); in tegra20_i2s_platform_probe() [all …]
|
/linux-6.3-rc2/sound/soc/xtensa/ |
A D | xtfpga-i2s.c | 137 for (; i2s->tx_fifo_level < i2s->tx_fifo_high; \ 166 unsigned new_tx_ptr = i2s->tx_fn(i2s, tx_substream->runtime, in xtfpga_pcm_push_tx() 201 i2s->tx_fifo_level = i2s->tx_fifo_low; in xtfpga_pcm_refill_fifo() 248 i2s->tx_fifo_level = i2s->tx_fifo_low; in xtfpga_i2s_threaded_irq_handler() 322 i2s->tx_fifo_high = 2 * i2s->tx_fifo_low; in xtfpga_i2s_hw_params() 328 dev_dbg(i2s->dev, in xtfpga_i2s_hw_params() 535 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in xtfpga_i2s_probe() 536 if (!i2s) { in xtfpga_i2s_probe() 550 i2s->regmap = devm_regmap_init_mmio(&pdev->dev, i2s->regs, in xtfpga_i2s_probe() 578 pdev->name, i2s); in xtfpga_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/sunxi/ |
A D | sun4i-i2s.c | 384 bclk_parent_rate = i2s->variant->get_bclk_parent_rate(i2s); in sun4i_i2s_set_clk_rate() 392 mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); in sun4i_i2s_set_clk_rate() 605 if (i2s->slots) in sun4i_i2s_hw_params() 606 slots = i2s->slots; in sun4i_i2s_hw_params() 608 if (i2s->slot_width) in sun4i_i2s_hw_params() 611 ret = i2s->variant->set_chan_cfg(i2s, channels, slots, slot_width); in sun4i_i2s_hw_params() 946 ret = i2s->variant->set_fmt(i2s, fmt); in sun4i_i2s_set_fmt() 952 i2s->format = fmt; in sun4i_i2s_set_fmt() 1078 i2s->slots = slots; in sun4i_i2s_set_tdm_slot() 1507 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in sun4i_i2s_probe() [all …]
|
/linux-6.3-rc2/sound/soc/samsung/ |
A D | i2s.c | 149 if (!i2s) in tx_active() 165 return i2s->pri_dai ? : i2s->sec_dai; in get_other_dai() 179 return tx_active(i2s) || other_tx_active(i2s); in any_tx_active() 187 if (!i2s) in rx_active() 206 return rx_active(i2s) || other_rx_active(i2s); in any_rx_active() 218 return tx_active(i2s) || rx_active(i2s); in this_active() 224 return this_active(i2s) || other_active(i2s); in any_active() 236 if (i2s && (i2s->mode & DAI_OPENED)) in is_opened() 244 if (is_opened(i2s) && (i2s->mode & DAI_MANAGER)) in is_manager() 486 if (!i2s) in i2s_fifo() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/sound/ |
A D | allwinner,sun4i-a10-i2s.yaml | 19 - const: allwinner,sun4i-a10-i2s 20 - const: allwinner,sun6i-a31-i2s 21 - const: allwinner,sun8i-a83t-i2s 22 - const: allwinner,sun8i-h3-i2s 25 - const: allwinner,sun8i-h3-i2s 27 - const: allwinner,sun8i-v3-i2s 33 - const: allwinner,sun50i-h6-i2s 34 - const: allwinner,sun50i-r329-i2s 72 - allwinner,sun8i-h3-i2s 87 - allwinner,sun8i-h3-i2s [all …]
|
A D | rockchip-i2s.yaml | 22 - const: rockchip,rk3066-i2s 25 - rockchip,px30-i2s 26 - rockchip,rk1808-i2s 27 - rockchip,rk3036-i2s 28 - rockchip,rk3128-i2s 29 - rockchip,rk3188-i2s 30 - rockchip,rk3228-i2s 31 - rockchip,rk3288-i2s 32 - rockchip,rk3308-i2s 124 i2s@ff890000 { [all …]
|
A D | hisilicon,hi6210-i2s.txt | 1 * Hisilicon 6210 i2s controller 6 - "hisilicon,hi6210-i2s" 7 - reg: physical base address of the i2s controller unit and length of 9 - interrupts: should contain the i2s interrupt. 14 - "i2s-base" 25 Example for the hi6210 i2s controller: 27 i2s0: i2s@f7118000{ 28 compatible = "hisilicon,hi6210-i2s"; 29 reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */ 33 clock-names = "dacodec", "i2s-base"; [all …]
|
A D | ingenic,aic.yaml | 22 - ingenic,jz4740-i2s 23 - ingenic,jz4760-i2s 24 - ingenic,jz4770-i2s 25 - ingenic,jz4780-i2s 27 - const: ingenic,jz4725b-i2s 28 - const: ingenic,jz4740-i2s 47 - const: i2s 75 compatible = "ingenic,jz4740-i2s"; 85 clock-names = "aic", "i2s";
|
A D | nvidia,tegra210-i2s.yaml | 4 $id: http://devicetree.org/schemas/sound/nvidia,tegra210-i2s.yaml# 24 pattern: "^i2s@[0-9a-f]*$" 28 - const: nvidia,tegra210-i2s 31 - nvidia,tegra234-i2s 32 - nvidia,tegra194-i2s 33 - nvidia,tegra186-i2s 34 - const: nvidia,tegra210-i2s 55 - const: i2s 104 i2s@702d1000 { 105 compatible = "nvidia,tegra210-i2s"; [all …]
|
A D | nvidia,tegra30-i2s.txt | 4 - compatible : For Tegra30, must contain "nvidia,tegra30-i2s". For Tegra124, 5 must contain "nvidia,tegra124-i2s". Otherwise, must contain 6 "nvidia,<chip>-i2s" plus at least one of the above, where <chip> is 14 - i2s 20 i2s@70080300 { 21 compatible = "nvidia,tegra30-i2s"; 26 reset-names = "i2s";
|
A D | samsung-i2s.yaml | 4 $id: http://devicetree.org/schemas/sound/samsung-i2s.yaml# 19 samsung,s3c6410-i2s: for 8/16/24bit stereo I2S. 21 samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with 25 samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for 48 - samsung,s3c6410-i2s 49 - samsung,s5pv210-i2s 50 - samsung,exynos5420-i2s 51 - samsung,exynos7-i2s 53 - tesla,fsd-i2s 141 i2s0: i2s@3830000 { [all …]
|
A D | rockchip-max98090.txt | 6 - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's 21 rockchip,i2s-controller = <&i2s>; 30 rockchip,i2s-controller = <&i2s>; 38 rockchip,i2s-controller = <&i2s>;
|
A D | rockchip,i2s-tdm.yaml | 4 $id: http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml# 23 - rockchip,px30-i2s-tdm 24 - rockchip,rk1808-i2s-tdm 25 - rockchip,rk3308-i2s-tdm 26 - rockchip,rk3568-i2s-tdm 27 - rockchip,rk3588-i2s-tdm 28 - rockchip,rv1126-i2s-tdm 105 rockchip,i2s-rx-route: 115 rockchip,i2s-tx-route: 156 i2s@fe410000 { [all …]
|
A D | snps,designware-i2s.yaml | 4 $id: http://devicetree.org/schemas/sound/snps,designware-i2s.yaml# 16 - const: canaan,k210-i2s 17 - const: snps,designware-i2s 19 - snps,designware-i2s 59 const: canaan,k210-i2s 86 soc_i2s: i2s@7ff90000 { 87 compatible = "snps,designware-i2s";
|
A D | intel,keembay-i2s.yaml | 5 $id: http://devicetree.org/schemas/sound/intel,keembay-i2s.yaml# 23 - intel,keembay-i2s 25 - intel,keembay-hdmi-i2s 37 - const: i2s-regs 79 i2s3: i2s@20140000 { 80 compatible = "intel,keembay-i2s"; 84 reg-names = "i2s-regs", "i2s_gen_cfg";
|
/linux-6.3-rc2/Documentation/devicetree/bindings/pinctrl/ |
A D | ralink,rt305x-pinctrl.yaml | 38 enum: [gpio, gpio i2s, gpio uartf, i2c, i2s uartf, jtag, mdio, 39 pcm gpio, pcm i2s, pcm uartf, rgmii, sdram, spi, uartf, 43 enum: [gpio, gpio i2s, gpio uartf, i2c, i2s uartf, jtag, led, 44 lna, mdio, pa, pcm gpio, pcm i2s, pcm uartf, rgmii, spi, 48 enum: [gpio, gpio i2s, gpio uartf, i2c, i2s uartf, jtag, led, 49 pcm gpio, pcm i2s, pcm uartf, spi, spi_cs1, uartf, 84 const: gpio i2s 111 const: i2s uartf 174 const: pcm i2s
|