/Linux-v4.19/sound/soc/img/ |
D | img-spdif-in.c | 95 struct img_spdif_in *spdif = dev_get_drvdata(dev); in img_spdif_in_runtime_suspend() local 97 clk_disable_unprepare(spdif->clk_sys); in img_spdif_in_runtime_suspend() 104 struct img_spdif_in *spdif = dev_get_drvdata(dev); in img_spdif_in_runtime_resume() local 107 ret = clk_prepare_enable(spdif->clk_sys); in img_spdif_in_runtime_resume() 116 static inline void img_spdif_in_writel(struct img_spdif_in *spdif, in img_spdif_in_writel() argument 119 writel(val, spdif->base + reg); in img_spdif_in_writel() 122 static inline u32 img_spdif_in_readl(struct img_spdif_in *spdif, u32 reg) in img_spdif_in_readl() argument 124 return readl(spdif->base + reg); in img_spdif_in_readl() 127 static inline void img_spdif_in_aclkgen_writel(struct img_spdif_in *spdif, in img_spdif_in_aclkgen_writel() argument 130 img_spdif_in_writel(spdif, spdif->aclkgen_regs[index], in img_spdif_in_aclkgen_writel() [all …]
|
D | img-spdif-out.c | 57 struct img_spdif_out *spdif = dev_get_drvdata(dev); in img_spdif_out_runtime_suspend() local 59 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_runtime_suspend() 60 clk_disable_unprepare(spdif->clk_sys); in img_spdif_out_runtime_suspend() 67 struct img_spdif_out *spdif = dev_get_drvdata(dev); in img_spdif_out_runtime_resume() local 70 ret = clk_prepare_enable(spdif->clk_sys); in img_spdif_out_runtime_resume() 76 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_runtime_resume() 79 clk_disable_unprepare(spdif->clk_sys); in img_spdif_out_runtime_resume() 86 static inline void img_spdif_out_writel(struct img_spdif_out *spdif, u32 val, in img_spdif_out_writel() argument 89 writel(val, spdif->base + reg); in img_spdif_out_writel() 92 static inline u32 img_spdif_out_readl(struct img_spdif_out *spdif, u32 reg) in img_spdif_out_readl() argument [all …]
|
/Linux-v4.19/sound/soc/samsung/ |
D | spdif.c | 104 static void spdif_snd_txctrl(struct samsung_spdif_info *spdif, int on) in spdif_snd_txctrl() argument 106 void __iomem *regs = spdif->regs; in spdif_snd_txctrl() 109 dev_dbg(spdif->dev, "Entered %s\n", __func__); in spdif_snd_txctrl() 121 struct samsung_spdif_info *spdif = to_info(cpu_dai); in spdif_set_sysclk() local 124 dev_dbg(spdif->dev, "Entered %s\n", __func__); in spdif_set_sysclk() 126 clkcon = readl(spdif->regs + CLKCON); in spdif_set_sysclk() 133 writel(clkcon, spdif->regs + CLKCON); in spdif_set_sysclk() 135 spdif->clk_rate = freq; in spdif_set_sysclk() 144 struct samsung_spdif_info *spdif = to_info(rtd->cpu_dai); in spdif_trigger() local 147 dev_dbg(spdif->dev, "Entered %s\n", __func__); in spdif_trigger() [all …]
|
/Linux-v4.19/sound/soc/adi/ |
D | axi-spdif.c | 52 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_trigger() local 70 regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, in axi_spdif_trigger() 79 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_hw_params() local 98 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params() 102 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); in axi_spdif_hw_params() 103 regmap_update_bits(spdif->regmap, AXI_SPDIF_REG_CTRL, in axi_spdif_hw_params() 111 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_dai_probe() local 113 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in axi_spdif_dai_probe() 121 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_startup() local 126 &spdif->rate_constraints); in axi_spdif_startup() [all …]
|
D | Makefile | 2 snd-soc-adi-axi-spdif-objs := axi-spdif.o 5 obj-$(CONFIG_SND_SOC_ADI_AXI_SPDIF) += snd-soc-adi-axi-spdif.o
|
/Linux-v4.19/sound/soc/rockchip/ |
D | rockchip_spdif.c | 70 struct rk_spdif_dev *spdif = dev_get_drvdata(dev); in rk_spdif_runtime_suspend() local 72 regcache_cache_only(spdif->regmap, true); in rk_spdif_runtime_suspend() 73 clk_disable_unprepare(spdif->mclk); in rk_spdif_runtime_suspend() 74 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_suspend() 81 struct rk_spdif_dev *spdif = dev_get_drvdata(dev); in rk_spdif_runtime_resume() local 84 ret = clk_prepare_enable(spdif->mclk); in rk_spdif_runtime_resume() 86 dev_err(spdif->dev, "mclk clock enable failed %d\n", ret); in rk_spdif_runtime_resume() 90 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_runtime_resume() 92 dev_err(spdif->dev, "hclk clock enable failed %d\n", ret); in rk_spdif_runtime_resume() 96 regcache_cache_only(spdif->regmap, false); in rk_spdif_runtime_resume() [all …]
|
/Linux-v4.19/sound/soc/tegra/ |
D | tegra20_spdif.c | 43 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_suspend() local 45 clk_disable_unprepare(spdif->clk_spdif_out); in tegra20_spdif_runtime_suspend() 52 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_resume() local 55 ret = clk_prepare_enable(spdif->clk_spdif_out); in tegra20_spdif_runtime_resume() 69 struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); in tegra20_spdif_hw_params() local 84 regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, mask, val); in tegra20_spdif_hw_params() 112 ret = clk_set_rate(spdif->clk_spdif_out, spdifclock); in tegra20_spdif_hw_params() 121 static void tegra20_spdif_start_playback(struct tegra20_spdif *spdif) in tegra20_spdif_start_playback() argument 123 regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, in tegra20_spdif_start_playback() 128 static void tegra20_spdif_stop_playback(struct tegra20_spdif *spdif) in tegra20_spdif_stop_playback() argument [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/sound/ |
D | imx-audio-spdif.txt | 5 - compatible : "fsl,imx-audio-spdif" 9 - spdif-controller : The phandle of the i.MX S/PDIF controller 14 - spdif-out : This is a boolean property. If present, the 21 - spdif-in : This is a boolean property. If present, the receiving 30 sound-spdif { 31 compatible = "fsl,imx-audio-spdif"; 32 model = "imx-spdif"; 33 spdif-controller = <&spdif>; 34 spdif-out; 35 spdif-in;
|
D | rockchip-spdif.txt | 10 - "rockchip,rk3066-spdif" 11 - "rockchip,rk3188-spdif" 12 - "rockchip,rk3228-spdif" 13 - "rockchip,rk3288-spdif" 14 - "rockchip,rk3328-spdif" 15 - "rockchip,rk3366-spdif" 16 - "rockchip,rk3368-spdif" 17 - "rockchip,rk3399-spdif" 36 spdif: spdif@1011e000 { 37 compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";
|
D | sunxi,sun4i-spdif.txt | 11 - "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC 12 - "allwinner,sun6i-a31-spdif": for the Allwinner A31 SoC 13 - "allwinner,sun8i-h3-spdif": for the Allwinner H3 SoC 17 - interrupts : Contains the spdif interrupt. 27 "apb" clock for the spdif bus. 28 "spdif" clock for spdif controller. 34 spdif: spdif@1c21000 { 35 compatible = "allwinner,sun4i-a10-spdif"; 39 clock-names = "apb", "spdif";
|
D | spdif-receiver.txt | 1 Device-Tree bindings for dummy spdif receiver 4 - compatible: should be "linux,spdif-dir". 8 codec: spdif-receiver { 9 compatible = "linux,spdif-dir";
|
D | spdif-transmitter.txt | 1 Device-Tree bindings for dummy spdif transmitter 4 - compatible: should be "linux,spdif-dit". 8 codec: spdif-transmitter { 9 compatible = "linux,spdif-dit";
|
D | fsl,spdif.txt | 9 - compatible : Compatible list, must contain "fsl,imx35-spdif". 13 - interrupts : Contains the spdif interrupt. 23 "core" The core clock of spdif controller. 26 list connecting to the spdif clock mux in "SPDIF 44 spdif: spdif@2004000 { 45 compatible = "fsl,imx35-spdif";
|
D | img,spdif-in.txt | 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";
|
D | img,spdif-out.txt | 5 - compatible : Compatible list, must contain "img,spdif-out" 22 - resets: Contains a phandle to the spdif out reset signal 32 spdif_out: spdif-out@18100d00 { 33 compatible = "img,spdif-out";
|
D | adi,axi-spdif-tx.txt | 4 - compatible : Must be "adi,axi-spdif-tx-1.00.a" 23 spdif: spdif@77400000 { 24 compatible = "adi,axi-spdif-tx-1.00.a";
|
D | renesas,fsi.txt | 13 - fsia,spdif-connection : FSI is connected by S/PDIF 17 - fsib,spdif-connection : same as fsia 28 fsia,spdif-connection;
|
/Linux-v4.19/sound/soc/spear/ |
D | Makefile | 4 snd-soc-spear-spdif-in-objs := spdif_in.o 5 snd-soc-spear-spdif-out-objs := spdif_out.o 8 obj-$(CONFIG_SND_SPEAR_SPDIF_IN) += snd-soc-spear-spdif-in.o 9 obj-$(CONFIG_SND_SPEAR_SPDIF_OUT) += snd-soc-spear-spdif-out.o
|
/Linux-v4.19/sound/pci/ice1712/ |
D | delta.c | 213 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in delta_spdif_default_get() 223 change = ice->spdif.cs8403_bits != val; in delta_spdif_default_put() 224 ice->spdif.cs8403_bits = val; in delta_spdif_default_put() 236 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in delta_spdif_stream_get() 246 change = ice->spdif.cs8403_stream_bits != val; in delta_spdif_stream_put() 247 ice->spdif.cs8403_stream_bits = val; in delta_spdif_stream_put() 390 ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; in delta_open_spdif() 401 tmp = ice->spdif.cs8403_stream_bits; in delta_setup_spdif() 410 change = ice->spdif.cs8403_stream_bits != tmp; in delta_setup_spdif() 411 ice->spdif.cs8403_stream_bits = tmp; in delta_setup_spdif() [all …]
|
D | ews.c | 268 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in ews88_spdif_default_get() 278 change = ice->spdif.cs8403_bits != val; in ews88_spdif_default_put() 279 ice->spdif.cs8403_bits = val; in ews88_spdif_default_put() 291 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in ews88_spdif_stream_get() 301 change = ice->spdif.cs8403_stream_bits != val; in ews88_spdif_stream_put() 302 ice->spdif.cs8403_stream_bits = val; in ews88_spdif_stream_put() 316 ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; in ews88_open_spdif() 327 tmp = ice->spdif.cs8403_stream_bits; in ews88_setup_spdif() 336 change = ice->spdif.cs8403_stream_bits != tmp; in ews88_setup_spdif() 337 ice->spdif.cs8403_stream_bits = tmp; in ews88_setup_spdif() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | uniphier-pxs2-vodka.dts | 41 spdif-out { 42 compatible = "linux,spdif-dit"; 52 comp-spdif-out { 53 compatible = "linux,spdif-dit";
|
D | imx6qdl-wandboard.dtsi | 25 sound-spdif { 26 compatible = "fsl,imx-audio-spdif"; 27 model = "imx-spdif"; 28 spdif-controller = <&spdif>; 29 spdif-out; 231 &spdif {
|
D | sun5i-gr8.dtsi | 66 spdif: spdif@1c21000 { label 68 compatible = "allwinner,sun4i-a10-spdif"; 72 clock-names = "apb", "spdif"; 116 spdif_tx_pins_a: spdif@0 { 118 function = "spdif";
|
/Linux-v4.19/sound/soc/fsl/ |
D | Makefile | 20 snd-soc-fsl-spdif-objs := fsl_spdif.o 28 obj-$(CONFIG_SND_SOC_FSL_SPDIF) += snd-soc-fsl-spdif.o 58 snd-soc-imx-spdif-objs := imx-spdif.o 67 obj-$(CONFIG_SND_SOC_IMX_SPDIF) += snd-soc-imx-spdif.o
|
/Linux-v4.19/sound/pci/hda/ |
D | hda_codec.c | 2201 struct hda_spdif_out *spdif; in snd_hda_spdif_default_get() local 2206 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get() 2207 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get() 2208 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get() 2209 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get() 2210 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get() 2307 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local 2315 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put() 2316 nid = spdif->nid; in snd_hda_spdif_default_put() 2317 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put() [all …]
|