/linux/sound/soc/img/ |
H A D | img-spdif-out.c | 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() 89 static inline u32 img_spdif_out_readl(struct img_spdif_out *spdif, u3 argument 94 img_spdif_out_reset(struct img_spdif_out * spdif) img_spdif_out_reset() argument 136 struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(cpu_dai); img_spdif_out_get_status() local 162 struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(cpu_dai); img_spdif_out_set_status() local 206 struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); img_spdif_out_trigger() local 235 struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); img_spdif_out_hw_params() local 292 struct img_spdif_out *spdif = snd_soc_dai_get_drvdata(dai); img_spdif_out_dai_probe() local 325 struct img_spdif_out *spdif; img_spdif_out_probe() local 414 struct img_spdif_out *spdif = dev_get_drvdata(dev); img_spdif_out_suspend() local 434 struct img_spdif_out *spdif = dev_get_drvdata(dev); img_spdif_out_resume() local [all...] |
H A D | Makefile | 5 obj-$(CONFIG_SND_SOC_IMG_SPDIF_IN) += img-spdif-in.o 6 obj-$(CONFIG_SND_SOC_IMG_SPDIF_OUT) += img-spdif-out.o
|
/linux/sound/soc/samsung/ |
H A D | spdif.c | 18 #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 in spdif_set_sysclk() 145 struct samsung_spdif_info *spdif = to_info(snd_soc_rtd_to_cpu(rtd, 0)); spdif_trigger() local 181 struct samsung_spdif_info *spdif = to_info(snd_soc_rtd_to_cpu(rtd, 0)); spdif_hw_params() local 283 struct samsung_spdif_info *spdif = to_info(snd_soc_rtd_to_cpu(rtd, 0)); spdif_shutdown() local 301 struct samsung_spdif_info *spdif = component_to_info(component); spdif_suspend() local 318 struct samsung_spdif_info *spdif = component_to_info(component); spdif_resume() local 365 struct samsung_spdif_info *spdif; spdif_probe() local 465 struct samsung_spdif_info *spdif = &spdif_info; spdif_remove() local [all...] |
H A D | Makefile | 5 snd-soc-samsung-spdif-y := spdif.o 10 obj-$(CONFIG_SND_SAMSUNG_SPDIF) += snd-soc-samsung-spdif.o 18 snd-soc-smdk-spdif-y := smdk_spdif.o 33 obj-$(CONFIG_SND_SOC_SAMSUNG_SMDK_SPDIF) += snd-soc-smdk-spdif.o
|
/linux/sound/soc/rockchip/ |
H A D | rockchip_spdif.c | 44 { .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 in rk_spdif_runtime_suspend() local 79 struct rk_spdif_dev *spdif = dev_get_drvdata(dev); rk_spdif_runtime_resume() local 111 struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); rk_spdif_hw_params() local 152 struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); rk_spdif_trigger() local 196 struct rk_spdif_dev *spdif = snd_soc_dai_get_drvdata(dai); rk_spdif_dai_probe() local 286 struct rk_spdif_dev *spdif; rk_spdif_probe() local [all...] |
/linux/sound/hda/codecs/hdmi/ |
H A D | nvhdmi-mcp.c | 131 struct hda_spdif_out *spdif; in nvhdmi_8ch_7x_pcm_prepare() local 136 spdif = snd_hda_spdif_out_of_nid(codec, per_cvt->cvt_nid); in nvhdmi_8ch_7x_pcm_prepare() 143 if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) in nvhdmi_8ch_7x_pcm_prepare() 148 spdif->ctls & ~AC_DIG1_ENABLE & 0xff); in nvhdmi_8ch_7x_pcm_prepare() 160 if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) { in nvhdmi_8ch_7x_pcm_prepare() 165 spdif->ctls & 0xff); in nvhdmi_8ch_7x_pcm_prepare() 182 (spdif->ctls & AC_DIG1_ENABLE)) in nvhdmi_8ch_7x_pcm_prepare() 187 spdif->ctls & ~AC_DIG1_ENABLE & 0xff); in nvhdmi_8ch_7x_pcm_prepare() 203 (spdif->ctls & AC_DIG1_ENABLE)) { in nvhdmi_8ch_7x_pcm_prepare() 208 spdif in nvhdmi_8ch_7x_pcm_prepare() [all...] |
/linux/sound/soc/spear/ |
H A D | Makefile | 4 snd-soc-spear-spdif-in-y := spdif_in.o 5 snd-soc-spear-spdif-out-y := 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/Documentation/devicetree/bindings/sound/ |
H A 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";
|
H A 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";
|
H A 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";
|
/linux/sound/pci/ice1712/ |
H A D | delta.c | 199 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in delta_spdif_default_get() 209 change = ice->spdif.cs8403_bits != val; in delta_spdif_default_put() 210 ice->spdif.cs8403_bits = val; in delta_spdif_default_put() 222 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in delta_spdif_stream_get() 232 change = ice->spdif.cs8403_stream_bits != val; in delta_spdif_stream_put() 233 ice->spdif.cs8403_stream_bits = val; in delta_spdif_stream_put() 376 ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; in delta_open_spdif() 387 tmp = ice->spdif.cs8403_stream_bits; in delta_setup_spdif() 396 change = ice->spdif in delta_setup_spdif() [all...] |
H A D | ews.c | 254 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in ews88_spdif_default_get() 264 change = ice->spdif.cs8403_bits != val; in ews88_spdif_default_put() 265 ice->spdif.cs8403_bits = val; in ews88_spdif_default_put() 277 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in ews88_spdif_stream_get() 287 change = ice->spdif.cs8403_stream_bits != val; in ews88_spdif_stream_put() 288 ice->spdif.cs8403_stream_bits = val; in ews88_spdif_stream_put() 302 ice->spdif.cs8403_stream_bits = ice->spdif.cs8403_bits; in ews88_open_spdif() 313 tmp = ice->spdif.cs8403_stream_bits; in ews88_setup_spdif() 322 change = ice->spdif in ews88_setup_spdif() [all...] |
/linux/sound/soc/meson/ |
H A D | aiu-encoder-spdif.c | 144 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 in aiu_encoder_spdif_shutdown() [all...] |
/linux/sound/soc/adi/ |
H A D | Makefile | 3 snd-soc-adi-axi-spdif-y := axi-spdif.o 6 obj-$(CONFIG_SND_SOC_ADI_AXI_SPDIF) += snd-soc-adi-axi-spdif.o
|
/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-h6-tanix.dtsi | 61 sound-spdif { 63 simple-audio-card,name = "sun50i-h6-spdif"; 66 sound-dai = <&spdif>; 74 spdif_out: spdif-out { 76 compatible = "linux,spdif-dit"; 169 &spdif {
|
/linux/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-pcm.c | 85 static int snd_bcm2835_playback_open_generic(struct snd_pcm_substream *substream, int spdif) in snd_bcm2835_playback_open_generic() argument 96 if (spdif && chip->opened) { in snd_bcm2835_playback_open_generic() 99 } else if (!spdif && (chip->opened & (1 << idx))) { in snd_bcm2835_playback_open_generic() 129 if (spdif) { in snd_bcm2835_playback_open_generic() 132 /* clear spdif status, as we are not in spdif mode */ in snd_bcm2835_playback_open_generic() 203 /* notify the vchiq that it should enter spdif passthrough mode by in snd_bcm2835_pcm_prepare() 325 u32 numchannels, bool spdif) in snd_bcm2835_new_pcm() argument 337 if (!spdif) { in snd_bcm2835_new_pcm() 344 spdif in snd_bcm2835_new_pcm() [all...] |
/linux/arch/arm/boot/dts/socionext/ |
H A D | uniphier-pxs2-vodka.dts | 42 spdif-out { 43 compatible = "linux,spdif-dit"; 53 comp-spdif-out { 54 compatible = "linux,spdif-dit";
|
/linux/sound/hda/common/ |
H A D | codec.c | 2171 struct hda_spdif_out *spdif; in snd_hda_spdif_default_get() local 2176 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get() 2177 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get() 2178 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get() 2179 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get() 2180 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get() 2277 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local 2285 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put() 2286 nid = spdif->nid; in snd_hda_spdif_default_put() 2287 spdif in snd_hda_spdif_default_put() 2308 struct hda_spdif_out *spdif; snd_hda_spdif_out_switch_get() local 2335 struct hda_spdif_out *spdif; snd_hda_spdif_out_switch_put() local 2410 struct hda_spdif_out *spdif; snd_hda_create_dig_out_ctls() local 2473 struct hda_spdif_out *spdif; snd_hda_spdif_out_of_nid() local 2493 struct hda_spdif_out *spdif; snd_hda_spdif_ctls_unassign() local 2514 struct hda_spdif_out *spdif; snd_hda_spdif_ctls_assign() local 3582 struct hda_spdif_out *spdif; setup_dig_out_stream() local 3771 struct hda_spdif_out *spdif; snd_hda_multi_out_analog_prepare() local [all...] |
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun5i-gr8.dtsi | 66 spdif: spdif@1c21000 { label 68 compatible = "allwinner,sun4i-a10-spdif"; 72 clock-names = "apb", "spdif"; 116 spdif_tx_pin: spdif-tx-pin { 118 function = "spdif";
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-wandboard.dtsi | 29 spdif_out: spdif-out { 30 compatible = "linux,spdif-dit"; 34 sound-spdif { 35 compatible = "fsl,imx-audio-spdif"; 36 model = "imx-spdif"; 37 audio-cpu = <&spdif>; 333 &spdif {
|
H A D | imx6q-prti6q.dts | 114 spdif_out: spdif-out { 115 compatible = "linux,spdif-dit"; 119 spdif_in: spdif-in { 120 compatible = "linux,spdif-dir"; 124 sound-spdif { 125 compatible = "fsl,imx-audio-spdif"; 126 model = "imx-spdif"; 127 audio-cpu = <&spdif>; 333 &spdif {
|
/linux/arch/arm64/boot/dts/socionext/ |
H A D | uniphier-ld20-akebi96.dts | 73 spdif-out { 74 compatible = "linux,spdif-dit"; 84 comp-spdif-out { 85 compatible = "linux,spdif-dit";
|
H A D | uniphier-ld20-global.dts | 67 spdif-out { 68 compatible = "linux,spdif-dit"; 78 comp-spdif-out { 79 compatible = "linux,spdif-dit";
|
H A D | uniphier-ld11-global.dts | 67 spdif-out { 68 compatible = "linux,spdif-dit"; 78 comp-spdif-out { 79 compatible = "linux,spdif-dit";
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8ulp-evk.dts | 111 sound-spdif { 112 compatible = "fsl,imx-audio-spdif"; 113 model = "imx-spdif"; 114 audio-cpu = <&spdif>; 118 spdif_out: spdif-out { 119 compatible = "linux,spdif-dit"; 202 &spdif {
|