Home
last modified time | relevance | path

Searched full:spdif (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/linux-6.12.1/sound/soc/img/
Dimg-spdif-in.c3 * IMG SPDIF input controller driver
92 struct img_spdif_in *spdif = dev_get_drvdata(dev); in img_spdif_in_runtime_suspend() local
94 clk_disable_unprepare(spdif->clk_sys); in img_spdif_in_runtime_suspend()
101 struct img_spdif_in *spdif = dev_get_drvdata(dev); in img_spdif_in_runtime_resume() local
104 ret = clk_prepare_enable(spdif->clk_sys); in img_spdif_in_runtime_resume()
113 static inline void img_spdif_in_writel(struct img_spdif_in *spdif, in img_spdif_in_writel() argument
116 writel(val, spdif->base + reg); in img_spdif_in_writel()
119 static inline u32 img_spdif_in_readl(struct img_spdif_in *spdif, u32 reg) in img_spdif_in_readl() argument
121 return readl(spdif->base + reg); in img_spdif_in_readl()
124 static inline void img_spdif_in_aclkgen_writel(struct img_spdif_in *spdif, in img_spdif_in_aclkgen_writel() argument
[all …]
Dimg-spdif-out.c3 * IMG SPDIF output controller driver
54 struct img_spdif_out *spdif = dev_get_drvdata(dev); in img_spdif_out_runtime_suspend() local
56 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_runtime_suspend()
57 clk_disable_unprepare(spdif->clk_sys); in img_spdif_out_runtime_suspend()
64 struct img_spdif_out *spdif = dev_get_drvdata(dev); in img_spdif_out_runtime_resume() local
67 ret = clk_prepare_enable(spdif->clk_sys); in img_spdif_out_runtime_resume()
73 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_runtime_resume()
76 clk_disable_unprepare(spdif->clk_sys); in img_spdif_out_runtime_resume()
83 static inline void img_spdif_out_writel(struct img_spdif_out *spdif, u32 val, in img_spdif_out_writel() argument
86 writel(val, spdif->base + reg); in img_spdif_out_writel()
[all …]
DKconfig32 tristate "Imagination SPDIF Input Device Driver"
36 Say Y or M if you want to add support for SPDIF input driver for
37 Imagination Technologies SPDIF input device.
40 tristate "Imagination SPDIF Output Device Driver"
44 Say Y or M if you want to add support for SPDIF out driver for
45 Imagination Technologies SPDIF out device.
/linux-6.12.1/sound/soc/samsung/
Dspdif.c18 #include "spdif.h"
71 * @pclk: The peri-clock pointer for spdif master operation.
105 static void spdif_snd_txctrl(struct samsung_spdif_info *spdif, int on) in spdif_snd_txctrl() argument
107 void __iomem *regs = spdif->regs; in spdif_snd_txctrl()
110 dev_dbg(spdif->dev, "Entered %s\n", __func__); in spdif_snd_txctrl()
122 struct samsung_spdif_info *spdif = to_info(cpu_dai); in spdif_set_sysclk() local
125 dev_dbg(spdif->dev, "Entered %s\n", __func__); in spdif_set_sysclk()
127 clkcon = readl(spdif->regs + CLKCON); in spdif_set_sysclk()
134 writel(clkcon, spdif->regs + CLKCON); in spdif_set_sysclk()
136 spdif->clk_rate = freq; in spdif_set_sysclk()
[all …]
/linux-6.12.1/sound/soc/adi/
Daxi-spdif.c51 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_trigger() local
69 regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, in axi_spdif_trigger()
78 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_hw_params() local
97 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params()
101 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); in axi_spdif_hw_params()
102 regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, in axi_spdif_hw_params()
110 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_dai_probe() local
112 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in axi_spdif_dai_probe()
120 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_startup() local
125 &spdif->rate_constraints); in axi_spdif_startup()
[all …]
/linux-6.12.1/sound/soc/rockchip/
Drockchip_spdif.c44 { .compatible = "rockchip,rk3066-spdif",
46 { .compatible = "rockchip,rk3188-spdif",
48 { .compatible = "rockchip,rk3228-spdif",
50 { .compatible = "rockchip,rk3288-spdif",
52 { .compatible = "rockchip,rk3328-spdif",
54 { .compatible = "rockchip,rk3366-spdif",
56 { .compatible = "rockchip,rk3368-spdif",
58 { .compatible = "rockchip,rk3399-spdif",
60 { .compatible = "rockchip,rk3568-spdif",
68 struct rk_spdif_dev *spdif = dev_get_drvdata(dev); in rk_spdif_runtime_suspend() local
[all …]
/linux-6.12.1/sound/soc/tegra/
Dtegra20_spdif.c3 * tegra20_spdif.c - Tegra20 SPDIF driver
30 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_suspend() local
32 regcache_cache_only(spdif->regmap, true); in tegra20_spdif_runtime_suspend()
34 clk_disable_unprepare(spdif->clk_spdif_out); in tegra20_spdif_runtime_suspend()
41 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_resume() local
44 ret = reset_control_assert(spdif->reset); in tegra20_spdif_runtime_resume()
48 ret = clk_prepare_enable(spdif->clk_spdif_out); in tegra20_spdif_runtime_resume()
56 ret = reset_control_deassert(spdif->reset); in tegra20_spdif_runtime_resume()
60 regcache_cache_only(spdif->regmap, false); in tegra20_spdif_runtime_resume()
61 regcache_mark_dirty(spdif->regmap); in tegra20_spdif_runtime_resume()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/sound/
Drockchip-spdif.yaml4 $id: http://devicetree.org/schemas/sound/rockchip-spdif.yaml#
7 title: Rockchip SPDIF transceiver
20 - const: rockchip,rk3066-spdif
21 - const: rockchip,rk3228-spdif
22 - const: rockchip,rk3328-spdif
23 - const: rockchip,rk3366-spdif
24 - const: rockchip,rk3368-spdif
25 - const: rockchip,rk3399-spdif
26 - const: rockchip,rk3568-spdif
29 - rockchip,rk3128-spdif
[all …]
Dallwinner,sun4i-a10-spdif.yaml4 $id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-spdif.yaml#
21 - const: allwinner,sun4i-a10-spdif
22 - const: allwinner,sun6i-a31-spdif
23 - const: allwinner,sun8i-h3-spdif
24 - const: allwinner,sun50i-h6-spdif
25 - const: allwinner,sun50i-h616-spdif
27 - const: allwinner,sun8i-a83t-spdif
28 - const: allwinner,sun8i-h3-spdif
30 - const: allwinner,sun50i-a64-spdif
31 - const: allwinner,sun8i-h3-spdif
[all …]
Dfsl,spdif.yaml4 $id: http://devicetree.org/schemas/sound/fsl,spdif.yaml#
20 - fsl,imx35-spdif
21 - fsl,vf610-spdif
22 - fsl,imx6sx-spdif
23 - fsl,imx8qm-spdif
24 - fsl,imx8qxp-spdif
25 - fsl,imx8mq-spdif
26 - fsl,imx8mm-spdif
27 - fsl,imx8mn-spdif
28 - fsl,imx8ulp-spdif
[all …]
Dxlnx,spdif.txt1 Device-Tree bindings for Xilinx SPDIF IP
3 The IP supports playback and capture of SPDIF audio
6 - compatible: "xlnx,spdif-2.0"
13 - xlnx,spdif-mode: 0 :- receiver mode
18 spdif_0: spdif@80010000 {
21 compatible = "xlnx,spdif-2.0";
26 xlnx,spdif-mode = <1>;
Dlinux,spdif.yaml4 $id: http://devicetree.org/schemas/sound/linux,spdif.yaml#
7 title: Dummy SPDIF Transmitter/Receiver
18 - linux,spdif-dit
19 - linux,spdif-dir
34 spdif-out {
36 compatible = "linux,spdif-dit";
Dfsl-asoc-card.yaml70 - fsl,imx-sabreauto-spdif
71 - fsl,imx6sx-sdb-spdif
72 - const: fsl,imx-audio-spdif
89 - fsl,imx-audio-spdif
105 With "fsl,imx-audio-spdif", either SPDIF audio codec spdif_transmitter,
185 spdif-controller:
190 spdif-out:
199 spdif-in:
236 sound-spdif-asrc {
237 compatible = "fsl,imx-audio-spdif";
[all …]
Dimg,spdif-in.txt1 Imagination Technologies SPDIF Input Controller
5 - compatible : Compatible list, must contain "img,spdif-in"
23 - resets: Should contain a phandle to the spdif in reset signal, if any
28 - interrupts : Contains the spdif in interrupt, if present
32 spdif_in: spdif-in@18100e00 {
33 compatible = "img,spdif-in";
Dadi,axi-spdif-tx.txt1 ADI AXI-SPDIF controller
4 - compatible : Must be "adi,axi-spdif-tx-1.00.a"
5 - reg : Must contain SPDIF core's registers location and length
23 spdif: spdif@77400000 {
24 compatible = "adi,axi-spdif-tx-1.00.a";
Damlogic,aiu.yaml38 - description: SPDIF peripheral clock
39 - description: SPDIF output clock
40 - description: SPDIF master clock
41 - description: SPDIF master clock multiplexer
58 - description: SPDIF interrupt line
63 - const: spdif
98 interrupt-names = "i2s", "spdif";
/linux-6.12.1/sound/pci/ca0106/
Dca0106.h75 #define IPR_SPDIF_IN_USER 0x00004000 /* SPDIF input user data has 16 more bits */
76 #define IPR_SPDIF_OUT_USER 0x00002000 /* SPDIF output user data needs 16 more bits */
77 #define IPR_SPDIF_OUT_FRAME 0x00001000 /* SPDIF frame about to start */
84 #define IPR_SPDIF_STATUS 0x00000020 /* SPDIF status changed */
95 #define INTE_SPDIF_IN_USER 0x00004000 /* SPDIF input user data has 16 more bits */
96 #define INTE_SPDIF_OUT_USER 0x00002000 /* SPDIF output user data needs 16 more bits */
97 #define INTE_SPDIF_OUT_FRAME 0x00001000 /* SPDIF frame about to start */
104 #define INTE_SPDIF_STATUS 0x00000020 /* SPDIF status changed */
117 #define HCFG_CAPTURE_SPDIF_BYPASS 0x04000000 /* 1 = bypass SPDIF input async SRC. */
136 #define CA0106_GPIO 0x18 /* Defaults: 005f03a3-Analog, 005f02a2-SPDIF. */
[all …]
/linux-6.12.1/Documentation/sound/cards/
Dimg-spdif-in.rst2 Imagination Technologies SPDIF Input Controllers
5 The Imagination Technologies SPDIF Input controller contains the following
15 This control returns the status bits contained within the SPDIF stream that
19 * name='SPDIF In Multi Frequency Acquire',index=0
20 * name='SPDIF In Multi Frequency Acquire',index=1
21 * name='SPDIF In Multi Frequency Acquire',index=2
22 * name='SPDIF In Multi Frequency Acquire',index=3
25 rates. The active rate can be obtained by reading the 'SPDIF In Lock Frequency'
36 * name='SPDIF In Lock Frequency',index=0
41 * name='SPDIF In Lock TRK',index=0
[all …]
Dcmipci.rst113 The CM8x38 provides the excellent SPDIF capability with very cheap
116 The SPDIF playback and capture are done via the third PCM device
117 (hw:0,2). Usually this is assigned to the PCM device "spdif".
132 The playback and capture over SPDIF use normal DAC and ADC,
136 To enable SPDIF output, you need to turn on "IEC958 Output Switch"
140 The SPDIF input is always enabled, so you can hear SPDIF input data
144 You can play via SPDIF even with the first device (hw:0,0),
145 but SPDIF is enabled only when the proper format (S16LE), sample rate
154 output through SPDIF. This switch appears only on old chip
157 Note: without this control you can output PCM to SPDIF.
[all …]
/linux-6.12.1/sound/soc/meson/
Daiu.c22 "SPDIF", "I2S",
30 SOC_DAPM_ENUM("SPDIF Buffer Src", aiu_spdif_encode_sel_enum);
33 SND_SOC_DAPM_MUX("SPDIF SRC SEL", SND_SOC_NOPM, 0, 0,
39 { "SPDIF SRC SEL", "SPDIF", "SPDIF FIFO Playback" },
40 { "SPDIF SRC SEL", "I2S", "I2S FIFO Playback" },
41 { "SPDIF Encoder Playback", NULL, "SPDIF SRC SEL" },
85 /* Required for the SPDIF Source control operation */ in aiu_cpu_component_probe()
126 .name = "SPDIF FIFO",
128 .stream_name = "SPDIF FIFO Playback",
150 .name = "SPDIF Encoder",
[all …]
Dg12a-tohdmitx.c86 "SPDIF A", "SPDIF B",
129 SOC_DAPM_ENUM_EXT("SPDIF Source", g12a_tohdmitx_spdif_mux_enum,
142 SND_SOC_DAPM_MUX("SPDIF SRC", SND_SOC_NOPM, 0, 0,
144 SND_SOC_DAPM_SWITCH("SPDIF OUT EN", SND_SOC_NOPM, 0, 0,
201 TOHDMITX_IN("SPDIF IN A", TOHDMITX_SPDIF_IN_A,
203 TOHDMITX_IN("SPDIF IN B", TOHDMITX_SPDIF_IN_B,
205 TOHDMITX_OUT("SPDIF OUT", TOHDMITX_SPDIF_OUT,
222 { "SPDIF SRC", "SPDIF A", "SPDIF IN A Playback" },
223 { "SPDIF SRC", "SPDIF B", "SPDIF IN B Playback" },
224 { "SPDIF OUT EN", "Switch", "SPDIF SRC" },
[all …]
Daiu-encoder-spdif.c144 ret = clk_set_rate(aiu->spdif.clks[MCLK].clk, mrate); in aiu_encoder_spdif_hw_params()
172 * NOTE: Make sure the spdif block is on its own divider. in aiu_encoder_spdif_startup()
174 * The spdif can be clocked by the i2s master clock or its own in aiu_encoder_spdif_startup()
181 * should not be necessary to reparent the spdif master clock. in aiu_encoder_spdif_startup()
183 ret = clk_set_parent(aiu->spdif.clks[MCLK].clk, in aiu_encoder_spdif_startup()
188 ret = clk_bulk_prepare_enable(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_startup()
190 dev_err(dai->dev, "failed to enable spdif clocks\n"); in aiu_encoder_spdif_startup()
200 clk_bulk_disable_unprepare(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_shutdown()
/linux-6.12.1/sound/soc/fsl/
Dfsl_spdif.h18 #define REG_SPDIF_SCR 0x0 /* SPDIF Configuration Register */
39 #define REG_SPDIF_SRCCA_31_0 0x60 /* SPDIF receive C channel register, bits 31-0 */
40 #define REG_SPDIF_SRCCA_63_32 0x64 /* SPDIF receive C channel register, bits 63-32 */
41 #define REG_SPDIF_SRCCA_95_64 0x68 /* SPDIF receive C channel register, bits 95-64 */
42 #define REG_SPDIF_SRCCA_127_96 0x6C /* SPDIF receive C channel register, bits 127-96 */
43 #define REG_SPDIF_SRCCA_159_128 0x70 /* SPDIF receive C channel register, bits 159-128 */
44 #define REG_SPDIF_SRCCA_191_160 0x74 /* SPDIF receive C channel register, bits 191-160 */
45 #define REG_SPDIF_STCCA_31_0 0x78 /* SPDIF transmit C channel register, bits 31-0 */
46 #define REG_SPDIF_STCCA_63_32 0x7C /* SPDIF transmit C channel register, bits 63-32 */
47 #define REG_SPDIF_STCCA_95_64 0x80 /* SPDIF transmit C channel register, bits 95-64 */
[all …]
/linux-6.12.1/sound/soc/codecs/
Dspdif_receiver.c3 * ALSA SoC SPDIF DIR (Digital Interface Reciever) driver
5 * Based on ALSA SoC SPDIF DIT driver
9 * in these configurations. SPEAr SPDIF IN Audio controller uses this driver.
24 SND_SOC_DAPM_INPUT("spdif-in"),
28 { "Capture", NULL, "spdif-in" },
69 { .compatible = "linux,spdif-dir", },
78 .name = "spdif-dir",
85 MODULE_DESCRIPTION("ASoC SPDIF DIR driver");
/linux-6.12.1/sound/pci/emu10k1/
Dp16v.h14 /* The sample rate of the SPDIF outputs is set by modifying a register in the EMU10K2 PTR register …
118 * 0 - SPDIF channel.
123 * 5 - SPDIF channel.
144 * [2] 0 = 10K2 audio, 1 = SRCMulti SPDIF mixer output.
158 #define PLAYBACK_VOLUME_MIXER3 0x63 /* SRCMULTI SPDIF Low to mixer input volume control. */
159 #define PLAYBACK_VOLUME_MIXER4 0x64 /* SRCMULTI SPDIF High to mixer input volume control. */
162 #define PLAYBACK_VOLUME_MIXER7 0x67 /* P16V Low to SRCMULTI SPDIF mixer input volume control. */
163 #define PLAYBACK_VOLUME_MIXER8 0x68 /* P16V High to SRCMULTI SPDIF mixer input volume control. */
182 * [23:16] The corresponding P16V channel to SRCMulti SPDIF enabled.
183 * [31:24] The corresponding E10K2 channel to SRCMulti SPDIF enabled.
[all …]

12345678910>>...22