Home
last modified time | relevance | path

Searched +full:spdif +full:- +full:mclk (Results 1 – 25 of 138) sorted by relevance

123456

/openbmc/linux/sound/soc/rockchip/
H A Drockchip_spdif.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * ALSA SoC Audio Layer - Rockchip I2S Controller driver
7 * Author: Jianqun <jay.xu@rock-chips.com>
36 struct clk *mclk; member
45 { .compatible = "rockchip,rk3066-spdif",
47 { .compatible = "rockchip,rk3188-spdif",
49 { .compatible = "rockchip,rk3228-spdif",
51 { .compatible = "rockchip,rk3288-spdif",
53 { .compatible = "rockchip,rk3328-spdif",
55 { .compatible = "rockchip,rk3366-spdif",
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Drockchip-spdif.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/sound/rockchip-spdif.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip SPDIF transceiver
15 - Heiko Stuebner <heiko@sntech.de>
20 - const: rockchip,rk3066-spdif
21 - const: rockchip,rk3228-spdif
22 - const: rockchip,rk3328-spdif
23 - const: rockchip,rk3366-spdif
[all …]
H A Damlogic,axg-spdifout.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/amlogic,axg-spdifout.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic Audio AXG SPDIF Output
10 - Jerome Brunet <jbrunet@baylibre.com>
15 - const: amlogic,axg-spdifout
16 - items:
17 - enum:
18 - amlogic,g12a-spdifout
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dsti-sas.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <sound/soc-dapm.h>
20 /* sysconf 5041: Audio-Gue-Control */
22 /* sysconf 5042: Audio-DAC-Control */
34 /* SPDIF definitions */
54 int mclk; member
59 int mclk; member
77 struct sti_spdif_audio spdif; member
88 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
100 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
[all …]
H A Dcs4265.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs4265.c -- CS4265 ALSA SoC audio driver
25 #include <sound/soc-dapm.h>
76 static DECLARE_TLV_DB_SCALE(pga_tlv, -1200, 50, 0);
78 static DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 0);
136 SOC_SINGLE("De-emp 44.1kHz Switch", CS4265_DAC_CTL, 1,
155 SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),
176 SND_SOC_DAPM_PGA("Pre-amp MIC", CS4265_PWRCTL, 3,
184 SND_SOC_DAPM_MIXER("SPDIF Transmitter", SND_SOC_NOPM, 0, 0, NULL, 0),
188 SND_SOC_DAPM_SWITCH("SPDIF", CS4265_SPDIF_CTL2, 5, 1,
[all …]
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A Dcirrus,lochnagar.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
15 Logic devices on mini-cards, as well as allowing connection of various
25 [1] Clock : ../clock/clock-bindings.txt
28 [2] include/dt-bindings/clock/lochnagar.h
36 - cirrus,lochnagar1-clk
37 - cirrus,lochnagar2-clk
39 '#clock-cells':
[all …]
/openbmc/linux/sound/soc/meson/
H A Daiu-encoder-spdif.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <sound/soc-dai.h>
50 struct snd_soc_component *component = dai->component; in aiu_encoder_spdif_trigger()
66 return -EINVAL; in aiu_encoder_spdif_trigger()
99 struct snd_soc_component *component = dai->component; in aiu_encoder_spdif_hw_params()
116 dev_err(dai->dev, "Unsupported physical width\n"); in aiu_encoder_spdif_hw_params()
117 return -EINVAL; in aiu_encoder_spdif_hw_params()
132 dev_err(dai->dev, "failed to set channel status word\n"); in aiu_encoder_spdif_hw_params()
144 ret = clk_set_rate(aiu->spdif.clks[MCLK].clk, mrate); in aiu_encoder_spdif_hw_params()
146 dev_err(dai->dev, "failed to set mclk rate\n"); in aiu_encoder_spdif_hw_params()
[all …]
H A Daxg-spdifout.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
11 #include <sound/soc-dai.h>
61 struct clk *mclk; member
97 axg_spdifout_enable(priv->map); in axg_spdifout_trigger()
103 axg_spdifout_disable(priv->map); in axg_spdifout_trigger()
107 return -EINVAL; in axg_spdifout_trigger()
115 /* Use spdif valid bit to perform digital mute */ in axg_spdifout_mute()
116 regmap_update_bits(priv->map, SPDIFOUT_CTRL0, SPDIFOUT_CTRL0_VSET, in axg_spdifout_mute()
137 dev_err(dai->dev, "too many channels for spdif dai: %u\n", in axg_spdifout_sample_fmt()
139 return -EINVAL; in axg_spdifout_sample_fmt()
[all …]
H A Daiu.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <sound/soc-dai.h>
15 #include <dt-bindings/sound/meson-aiu.h>
17 #include "aiu-fifo.h"
22 "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" },
[all …]
H A Daiu.h1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
20 MCLK, enumerator
38 struct aiu_interface spdif; member
/openbmc/linux/drivers/clk/
H A Dclk-lochnagar.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2017-2018 Cirrus Logic, Inc. and
11 #include <linux/clk-provider.h>
22 #include <dt-bindings/clock/lochnagar.h>
49 LN_PARENT("ln-none"),
50 LN_PARENT("ln-spdif-mclk"),
51 LN_PARENT("ln-psia1-mclk"),
52 LN_PARENT("ln-psia2-mclk"),
53 LN_PARENT("ln-cdc-clkout"),
54 LN_PARENT("ln-dsp-clkout"),
[all …]
/openbmc/linux/arch/powerpc/platforms/512x/
H A Dclock-commonclk.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/clk-provider.h>
21 #include <dt-bindings/clock/mpc512x-clock.h>
25 /* helpers to keep the MCLK intermediates "somewhere" in our table */
61 /* intermediates for the mux+gate+div+mux MCLK generation */
85 * MPC5125 has many more differences: no MBX, no AXE, no VIU, no SPDIF,
89 * interpretation, no CFM, different fourth PSC/CAN mux0 input -- yet
292 val &= (1 << len) - 1; in get_bit_field()
305 spmf = get_bit_field(&clkregs->spmr, 24, 4); in get_spmf_mult()
326 divcode = get_bit_field(&clkregs->scfr2, 26, 6); in get_sys_div_x2()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dcirrus,lochnagar.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
15 Logic devices on mini-cards, as well as allowing connection of various
26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt
29 [3] include/dt-bindings/pinctrl/lochnagar.h
37 - cirrus,lochnagar-pinctrl
39 gpio-controller: true
41 '#gpio-cells':
[all …]
/openbmc/linux/sound/soc/sunxi/
H A Dsun4i-spdif.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ALSA SoC SPDIF Audio Layer
170 * struct sun4i_spdif_quirks - Differences between SoC variants.
196 const struct sun4i_spdif_quirks *quirks = host->quirks; in sun4i_spdif_configure()
198 /* soft reset SPDIF */ in sun4i_spdif_configure()
199 regmap_write(host->regmap, SUN4I_SPDIF_CTL, SUN4I_SPDIF_CTL_RESET); in sun4i_spdif_configure()
202 regmap_update_bits(host->regmap, SUN4I_SPDIF_FCTL, in sun4i_spdif_configure()
203 quirks->val_fctl_ftx, quirks->val_fctl_ftx); in sun4i_spdif_configure()
206 regmap_write(host->regmap, SUN4I_SPDIF_TXCNT, 0); in sun4i_spdif_configure()
212 if (substream->runtime->channels == 1) in sun4i_snd_txctrl_on()
[all …]
/openbmc/linux/sound/soc/stm/
H A Dstm32_sai_sub.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
10 #include <linux/clk-provider.h>
41 #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK)
42 #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE)
47 #define STM_SAI_IS_SUB_A(x) ((x)->id == STM_SAI_A_ID)
53 #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif)
54 #define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf.has_spdif_pdm)
55 #define STM_SAI_HAS_PDM(x) ((x)->pdata->conf.has_spdif_pdm)
56 #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
[all …]
/openbmc/linux/arch/arm/boot/dts/allwinner/
H A Dsun5i-gr8.dtsi4 * Mylène Josserand <mylene.josserand@free-electrons.com>
6 * This file is dual-licensed: you can use it either under the terms
47 #include <dt-bindings/clock/sun5i-ccu.h>
48 #include <dt-bindings/dma/sun4i-a10.h>
49 #include <dt-bindings/reset/sun5i-ccu.h>
52 display-engine {
53 compatible = "allwinner,sun5i-a13-display-engine";
59 compatible = "allwinner,sun5i-a10s-pwm";
62 #pwm-cells = <3>;
66 spdif: spdif@1c21000 { label
[all …]
H A Dsun5i-gr8-evb.dts5 * Mylène Josserand <mylene.josserand@free-electrons.com>
7 * This file is dual-licensed: you can use it either under the terms
46 /dts-v1/;
47 #include "sun5i-gr8.dtsi"
48 #include "sunxi-common-regulators.dtsi"
50 #include <dt-bindings/gpio/gpio.h>
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
55 model = "NextThing GR8-EVB";
56 compatible = "nextthing,gr8-evb", "nextthing,gr8";
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dsun5i-gr8.dtsi4 * Mylène Josserand <mylene.josserand@free-electrons.com>
6 * This file is dual-licensed: you can use it either under the terms
47 #include <dt-bindings/clock/sun5i-ccu.h>
48 #include <dt-bindings/dma/sun4i-a10.h>
49 #include <dt-bindings/reset/sun5i-ccu.h>
52 display-engine {
53 compatible = "allwinner,sun5i-a13-display-engine";
59 compatible = "allwinner,sun5i-a10s-pwm";
62 #pwm-cells = <3>;
66 spdif: spdif@1c21000 { label
[all …]
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-g12b-gtking.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "meson-g12b-w400.dtsi"
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
15 model = "Beelink GT-King";
22 spdif_dit: audio-codec-1 {
23 #sound-dai-cells = <0>;
24 compatible = "linux,spdif-dit";
26 sound-name-prefix = "DIT";
30 compatible = "amlogic,axg-sound-card";
[all …]
H A Dmeson-g12b-ugoos-am6.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "meson-g12b-w400.dtsi"
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
17 spdif_dit: audio-codec-1 {
18 #sound-dai-cells = <0>;
19 compatible = "linux,spdif-dit";
21 sound-name-prefix = "DIT";
25 compatible = "amlogic,axg-sound-card";
26 model = "UGOOS-AM6";
[all …]
/openbmc/linux/arch/arm/boot/dts/marvell/
H A Darmada-388-db.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * (DB-88F6820)
8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 /dts-v1/;
12 #include "armada-388.dtsi"
16 compatible = "marvell,a385-db", "marvell,armada388",
20 stdout-path = "serial0:115200n8";
35 internal-regs {
38 clock-frequency = <100000>;
39 audio_codec: audio-codec@4a {
[all …]
H A Darmada-370-db.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * (DB-88F6710-BP-DDR3)
9 * Gregory CLEMENT <gregory.clement@free-electrons.com>
10 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
22 /dts-v1/;
23 #include "armada-370.dtsi"
27 compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
30 stdout-path = "serial0:115200n8";
43 internal-regs {
[all …]
/openbmc/linux/sound/soc/bcm/
H A Dcygnus-ssp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2014-2015 Broadcom Corporation
14 #include <sound/soc-dai.h>
16 #include "cygnus-ssp.h"
187 u32 mclk; member
193 * the common MCLK frequencies used by audio driver
241 return &cygaud->portinfo[dai->id]; in cygnus_dai_get_portinfo()
249 switch (aio->port_type) { in audio_ssp_init_portregs()
251 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
255 writel(aio->portnum, in audio_ssp_init_portregs()
[all …]
/openbmc/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mn-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/usb/pd.h>
11 stdout-path = &uart2;
14 gpio-leds {
15 compatible = "gpio-leds";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_gpio_led>;
22 default-state = "on";
26 hdmi-connector {
27 compatible = "hdmi-connector";
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dstihxxx-b2120.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/clock/stih407-clks.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/media/c8sectpfe.h>
11 compatible = "gpio-leds";
12 led-red {
15 linux,default-trigger = "heartbeat";
17 led-green {
19 default-state = "off";
24 compatible = "simple-audio-card";
[all …]

123456