Home
last modified time | relevance | path

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

12345678910>>...16

/linux/sound/soc/samsung/
H A Dspdif.c1 // SPDX-License-Identifier: GPL-2.0
3 // ALSA SoC Audio Layer - Samsung S/PDIF Controller driver
15 #include <linux/platform_data/asoc-s3c.h>
18 #include "spdif.h"
31 #define CLKCTL_MCLK_EXT (0x1 << 2)
63 #define CSTAS_NO_COPYRIGHT (0x1 << 2)
66 * struct samsung_spdif_info - Samsung S/PDIF Controller information
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()
[all …]
/linux/sound/pci/ca0106/
H A Dca0106.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk>
34 * playback periods_min=2, periods_max=8
50 * Implement support for Line-in capture on SB Live 24bit.
73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */
74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */
75 #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 */
[all …]
/linux/sound/soc/adi/
H A Daxi-spdif.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2013, Analog Devices Inc.
4 * Author: Lars-Peter Clausen <lars@metafoo.de>
51 struct axi_spdif *spdif = snd_soc_dai_get_drvdata(dai); in axi_spdif_trigger() local
66 return -EINVAL; in axi_spdif_trigger()
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()
98 rate * 64 * 2) - 1; in axi_spdif_hw_params()
101 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); in axi_spdif_hw_params()
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dallwinner,sun4i-a10-spdif.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-spdif.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Liam Girdwood <lgirdwood@gmail.com>
12 - Mark Brown <broonie@kernel.org>
13 - Maxime Ripard <mripard@kernel.org>
16 "#sound-dai-cells":
21 - const: allwinner,sun4i-a10-spdif
[all …]
H A Damlogic,aiu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jerome Brunet <jbrunet@baylibre.com>
13 - $ref: dai-common.yaml#
17 pattern: "^audio-controller@.*"
19 "#sound-dai-cells":
20 const: 2
24 - enum:
25 - amlogic,aiu-gxbb
[all …]
H A Dnvidia,tegra20-spdif.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nvidia,tegra20-spdif.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
16 - Thierry Reding <treding@nvidia.com>
17 - Jon Hunter <jonathanh@nvidia.com>
20 - $ref: dai-common.yaml#
24 const: nvidia,tegra20-spdif
36 minItems: 2
38 clock-names:
[all …]
H A Dbrcm,cygnus-audio.txt1 BROADCOM Cygnus Audio I2S/TDM/SPDIF controller
4 - compatible : "brcm,cygnus-audio"
5 - #address-cells: 32bit valued, 1 cell.
6 - #size-cells: 32bit valued, 0 cell.
7 - reg : Should contain audio registers location and length
8 - reg-names: names of the registers listed in "reg" property
10 set of DMA, I2S_OUT and SPDIF registers. "i2s_in" contains
12 - clocks: PLL and leaf clocks used by audio ports
13 - assigned-clocks: PLL and leaf clocks
14 - assigned-clock-parents: parent clocks of the assigned clocks
[all …]
/linux/sound/soc/meson/
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 Dg12a-tohdmitx.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <sound/soc-dai.h>
15 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
16 #include "meson-codec-glue.h"
18 #define G12A_TOHDMITX_DRV_NAME "g12a-tohdmitx"
29 #define CTRL0_SPDIF_CLK_O_INV BIT(2)
45 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_i2s_mux_put_enum()
48 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_i2s_mux_put_enum()
49 return -EINVAL; in g12a_tohdmitx_i2s_mux_put_enum()
51 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_i2s_mux_put_enum()
[all …]
H A Daiu-encoder-spdif.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <sound/soc-dai.h>
27 #define AIU_958_INTERNAL_DIV 2
50 struct snd_soc_component *component = dai->component; in aiu_encoder_spdif_trigger()
66 return -EINVAL; in aiu_encoder_spdif_trigger()
87 /* Write the 2nd half word */ in aiu_encoder_spdif_setup_cs_word()
88 val = cs[3] | cs[2] << 8; in aiu_encoder_spdif_setup_cs_word()
99 struct snd_soc_component *component = dai->component; in aiu_encoder_spdif_hw_params()
110 val |= FIELD_PREP(AIU_958_MISC_16BITS_ALIGN, 2); in aiu_encoder_spdif_hw_params()
116 dev_err(dai->dev, "Unsupported physical width\n"); in aiu_encoder_spdif_hw_params()
[all …]
/linux/sound/soc/fsl/
H A Dfsl_spdif.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * fsl_spdif.h - ALSA S/PDIF interface for the Freescale i.MX SoC
11 * Copyright 2007-2008 Freescale Semiconductor, Inc.
18 #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 */
[all …]
/linux/sound/pci/emu10k1/
H A Dp16v.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
11 /* Audigy2 P16V pointer-offset register set, accessed through the PTR2 and DATA2 registers …
14 /* The sample rate of the SPDIF outputs is set by modifying a register in the EMU10K2 PTR register …
25 #define PLAYBACK_LIST_SIZE 0x01 /* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000 */
43 * 2 = Capture output 2.
45 * [3:2] Capture input 1 channel select. 0 = Capture output 0.
47 * 2 = Capture output 2.
49 * [5:4] Capture input 2 channel select. 0 = Capture output 0.
51 * 2 = Capture output 2.
[all …]
/linux/Documentation/sound/cards/
H A Dcmipci.rst2 Brief Notes on C-Media 8338/8738/8768/8770 Driver
8 Front/Rear Multi-channel Playback
9 ---------------------------------
13 DACs, both streams are handled independently unlike the 4/6ch multi-
22 - The first DAC supports U8 and S16LE formats, while the second DAC
24 - The second DAC supports only two channel stereo.
51 control switch in the driver "Line-In As Rear", which you can change
52 via alsamixer or somewhat else. When this switch is on, line-in jack
57 routes, i.e. the 2nd DAC is output from front output.
60 4/6 Multi-Channel Playback
[all …]
/linux/sound/pci/ice1712/
H A Ddelta.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Lowlevel functions for M-Audio Delta 1010, 1010E, 44, 66, 66E, Dio2496,
37 for (idx = 7; idx >= 0; idx--) { in ap_cs8427_write_byte()
55 for (idx = 7; idx >= 0; idx--) { in ap_cs8427_read_byte()
[all...]
H A Dews.c1 // SPDX-License-Identifier: GPL-2.0-or-later
44 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_setlines()
56 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getclock()
62 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getdata()
79 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_start()
85 switch (ice->eepro in ewx_i2c_start()
[all...]
/linux/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
52 struct hdmi_spec *spec = codec->spec; in nvhdmi_mcp_init()
54 if (spec->multiout.max_channels == 2) in nvhdmi_mcp_init()
65 int chan = channels ? (channels - 1) : 1; in nvhdmi_8ch_7x_set_info_frame_parameters()
70 case 2 in nvhdmi_8ch_7x_set_info_frame_parameters()
131 struct hda_spdif_out *spdif; nvhdmi_8ch_7x_pcm_prepare() local
[all...]
/linux/Documentation/sound/hd-audio/
H A Dmodels.rst2 HD-Audio Codec-Specific Models
8 3-jack in back and a headphone out
9 3stack-digout
10 3-jack in back, a HP out and a SPDIF out
12 5-jack in back, 2-jack in front
13 5stack-digout
14 5-jack in back, 2-jack in front, a SPDIF out
16 6-jack in back, 2-jack in front
17 6stack-digout
18 6-jack with a SPDIF out
[all …]
/linux/sound/soc/spear/
H A Dspdif_in.c2 * ALSA SoC SPDIF In Audio Layer for spear processors
8 * License version 2. This program is licensed "as is" without any
52 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_configure()
53 writel(0xF, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_configure()
60 host->dma_params_rx.filter_data = &host->dma_params; in spdif_in_dai_probe()
61 dai->capture_dma_data = &host->dma_params_rx; in spdif_in_dai_probe()
71 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_shutdown()
74 writel(0x0, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_shutdown()
79 u32 ctrl = readl(host->io_base + SPDIF_IN_CTRL); in spdif_in_format()
91 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_format()
[all …]
/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
13 * published by the Free Software Foundation; either version 2 of the
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>;
[all …]
/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 */
73 struct sti_spdif_audio spdif; member
84 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
96 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
104 * DAC and SPDIF are activated by default in sti_sas_init_sas_registers()
108 /* Initialise bi-phase formatter to disabled */ in sti_sas_init_sas_registers()
[all …]
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c1 // SPDX-License-Identifier: GPL-2.0
38 .channels_min = 2,
39 .channels_max = 2,
49 kfree(runtime->private_data); in snd_bcm2835_playback_free()
55 struct snd_pcm_substream *substream = alsa_stream->substream; in bcm2835_playback_fifo()
58 if (!alsa_stream->period_size) in bcm2835_playback_fifo()
61 if (bytes >= alsa_stream->buffer_size) { in bcm2835_playback_fifo()
64 alsa_stream->draining ? in bcm2835_playback_fifo()
71 pos = atomic_read(&alsa_stream->pos); in bcm2835_playback_fifo()
73 pos %= alsa_stream->buffer_size; in bcm2835_playback_fifo()
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-wandboard.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/gpio/gpio.h>
12 stdout-path = &uart1;
16 compatible = "fsl,imx6-wandboard-sgtl5000",
17 "fsl,imx-audio-sgtl5000";
18 model = "imx6-wandboard-sgtl5000";
19 ssi-controller = <&ssi1>;
20 audio-codec = <&codec>;
21 audio-routing =
25 mux-int-port = <1>;
[all …]
H A Dimx6q-prti6q.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/sound/fsl-imx-audmux.h>
21 backlight_lcd: backlight-lcd {
22 compatible = "pwm-backlight";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pinctrl_backlight>;
26 brightness-levels = <0 16 64 255>;
[all …]
/linux/sound/pci/cs46xx/
H A Dcs46xx_dsp_spos.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
43 #define DSP_PCM_REAR_CHANNEL 2
49 #define DSP_SPDIF_STATUS_PLAYBACK_OPEN 2
107 u16 volume[2];
176 /* SPDIF status */
181 /* spdif channel status,
186 /* SPDIF input sample rate converter */
188 /* SPDIF input asynch. receiver */
200 /* SPDIF output PCM reference */
/linux/Documentation/devicetree/bindings/display/rockchip/
H A Drockchip,rk3399-cdn-dp.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/display/rockchip/rockchip,rk3399-cdn-dp.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andy Yan <andy.yan@rock-chip.com>
11 - Heiko Stuebner <heiko@sntech.de>
12 - Sandy Huang <hjc@rock-chips.com>
15 - $ref: /schemas/sound/dai-common.yaml#
20 - const: rockchip,rk3399-cdn-dp
27 - description: DP core work clock
[all …]

12345678910>>...16