| /kernel/linux/linux-5.10/Documentation/sound/soc/ |
| D | codec-to-codec.rst | 2 Creating codec to codec dai link for ALSA dapm 5 Mostly the flow of audio is always from CPU to codec so your system 9 --------- --------- 11 CPU -------> codec 13 --------- --------- 18 --------- 20 codec-2 22 --------- 24 dai-2 26 ---------- --------- [all …]
|
| D | codec.rst | 2 ASoC Codec Class Driver 5 The codec class driver is generic and hardware independent code that configures 6 the codec, FM, MODEM, BT or external DSP to provide audio capture and playback. 11 Each codec class driver *must* provide the following features:- 13 1. Codec DAI and PCM configuration 14 2. Codec control IO - using RegMap API 16 4. Codec audio operations 20 Optionally, codec drivers can also provide:- 24 Its probably best to use this guide in conjunction with the existing codec 27 ASoC Codec driver breakdown [all …]
|
| /kernel/linux/linux-6.6/Documentation/sound/soc/ |
| D | codec-to-codec.rst | 2 Creating codec to codec dai link for ALSA dapm 5 Mostly the flow of audio is always from CPU to codec so your system 9 --------- --------- 11 CPU -------> codec 13 --------- --------- 18 --------- 20 codec-2 22 --------- 24 dai-2 26 ---------- --------- [all …]
|
| /kernel/linux/linux-6.6/sound/pci/hda/ |
| D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 53 #define DMA_OVERLAY_FRAME_SIZE_NWORDS 2 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 83 static const char *const dirstr[2] = { "Playback", "Capture" }; 85 #define NUM_OF_OUTPUTS 2 86 static const char *const out_type_str[2] = { "Speakers", "Headphone" }; 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NID) [all …]
|
| D | patch_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * patch_hdmi.c - routines for HDMI/DisplayPort codecs 6 * Copyright(c) 2008-2010 Intel Corporation. All rights reserved. 78 struct hda_codec *codec; member 82 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ 83 int pcm_idx; /* which pcm is attached. -1 means no pcm is attached */ 90 bool chmap_set; /* channel-map override by ALSA API? */ 91 unsigned char chmap[8]; /* ALSA API channel-map */ 99 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 102 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, [all …]
|
| D | hda_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 48 * snd_hda_gen_add_kctl - Add a new kctl_new struct from the template 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() 67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl() [all …]
|
| D | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 66 /* Vendor-specific processing widget */ 79 * 1 = digital immediate, analog zero-cross 80 * 2 = digtail & analog soft-ramp 81 * 3 = digital soft-ramp, analog zero-cross 85 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 86 /* PGA mode: 0 = differential, 1 = signle-ended */ 88 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 92 * 1 = zero-cross 93 * 2 = soft-ramp [all …]
|
| D | patch_analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de> 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() 55 if (!spec->beep_amp) in create_beep_ctls() 58 for (knew = ad_beep_mixer ; knew->name; knew++) { in create_beep_ctls() 61 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls() 63 return -ENOMEM; in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/hda/ |
| D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 53 #define DMA_OVERLAY_FRAME_SIZE_NWORDS 2 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 83 static const char *const dirstr[2] = { "Playback", "Capture" }; 85 #define NUM_OF_OUTPUTS 2 86 static const char *const out_type_str[2] = { "Speakers", "Headphone" }; 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NID) [all …]
|
| D | patch_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * patch_hdmi.c - routines for HDMI/DisplayPort codecs 6 * Copyright(c) 2008-2010 Intel Corporation. All rights reserved. 73 struct hda_codec *codec; member 77 struct hdmi_pcm *pcm; /* pointer to spec->pcm_rec[n] dynamically*/ 78 int pcm_idx; /* which pcm is attached. -1 means no pcm is attached */ 84 bool chmap_set; /* channel-map override by ALSA API? */ 85 unsigned char chmap[8]; /* ALSA API channel-map */ 93 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 96 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, [all …]
|
| D | hda_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8); in snd_hda_gen_spec_init() 42 mutex_init(&spec->pcm_mutex); in snd_hda_gen_spec_init() 48 * snd_hda_gen_add_kctl - Add a new kctl_new struct from the template 62 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() 67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl() [all …]
|
| D | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 65 /* Vendor-specific processing widget */ 78 * 1 = digital immediate, analog zero-cross 79 * 2 = digtail & analog soft-ramp 80 * 3 = digital soft-ramp, analog zero-cross 84 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 85 /* PGA mode: 0 = differential, 1 = signle-ended */ 87 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 91 * 1 = zero-cross 92 * 2 = soft-ramp [all …]
|
| D | patch_analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de> 44 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument 52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls() 55 if (!spec->beep_amp) in create_beep_ctls() 58 for (knew = ad_beep_mixer ; knew->name; knew++) { in create_beep_ctls() 61 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls() 63 return -ENOMEM; in create_beep_ctls() 64 kctl->private_value = spec->beep_amp; in create_beep_ctls() [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ali5451/ |
| D | ali5451.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * -- 11 * -- 21 #include <linux/dma-mapping.h> 142 #define ALI_REG(codec, x) ((codec)->port + x) argument 144 #define MAX_CODECS 2 181 struct snd_ali *codec; member 186 int count; /* runtime->period_size */ 188 /* --- */ 267 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument [all …]
|
| /kernel/linux/linux-6.6/sound/pci/ali5451/ |
| D | ali5451.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * -- 11 * -- 21 #include <linux/dma-mapping.h> 141 #define ALI_REG(codec, x) ((codec)->port + x) argument 143 #define MAX_CODECS 2 180 struct snd_ali *codec; member 185 int count; /* runtime->period_size */ 187 /* --- */ 266 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | jz4760.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Ingenic JZ4760 CODEC driver 18 #include <sound/soc-dai.h> 19 #include <sound/soc-dapm.h> 72 #define REG_AICR_ADC_SERIAL BIT(2) 87 #define REG_CR3_ADC_INSEL_OFFSET 2 105 #define REG_PMR1_SB_MIC2_OFFSET 2 111 #define REG_PMR2_SB_BTL_OFFSET 2 120 #define REG_ICR_RDO_MASK BIT(2) 129 #define REG_IFR_RDO BIT(2) [all …]
|
| D | jz4770.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Ingenic JZ4770 CODEC driver 17 #include <sound/soc-dai.h> 18 #include <sound/soc-dapm.h> 149 #define REG_IMR_RDO_MASK BIT(2) 158 #define REG_IFR_RDO BIT(2) 177 /* codec private data */ 185 static int jz4770_codec_set_bias_level(struct snd_soc_component *codec, in jz4770_codec_set_bias_level() argument 188 struct jz_codec *jz_codec = snd_soc_component_get_drvdata(codec); in jz4770_codec_set_bias_level() 189 struct regmap *regmap = jz_codec->regmap; in jz4770_codec_set_bias_level() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
| D | videocodec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's 11 #define VIDEOCODEC_VERSION "v0.2" 31 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 40 struct videocodec *codec; member 45 const struct videocodec *codec; member 61 struct videocodec *codec; in videocodec_attach() local 69 dprintk(2, "%s: '%s', flags %lx, magic %lx\n", __func__, in videocodec_attach() 70 master->name, master->flags, master->magic); in videocodec_attach() 80 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
| D | cirrus,lochnagar.yaml | 1 # 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 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 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 [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/pinctrl/ |
| D | cirrus,lochnagar.yaml | 1 # 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 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 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 [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | jz4770.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Ingenic JZ4770 CODEC driver 17 #include <sound/soc-dai.h> 18 #include <sound/soc-dapm.h> 149 #define REG_IMR_RDO_MASK BIT(2) 158 #define REG_IFR_RDO BIT(2) 177 /* codec private data */ 185 static int jz4770_codec_set_bias_level(struct snd_soc_component *codec, in jz4770_codec_set_bias_level() argument 188 struct jz_codec *jz_codec = snd_soc_component_get_drvdata(codec); in jz4770_codec_set_bias_level() 189 struct regmap *regmap = jz_codec->regmap; in jz4770_codec_set_bias_level() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/generic/ |
| D | simple-card.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <sound/soc-dai.h> 21 #define DAI "sound-dai" 22 #define CELL "#sound-dai-cells" 23 #define PREFIX "simple-audio-card," 42 * Get node via "sound-dai = <&phandle port>" in asoc_simple_parse_dai() 52 * Here, dlc->dai_name is pointer to CPU/Codec DAI name. in asoc_simple_parse_dai() 53 * If user unbinded CPU or Codec driver, but not for Sound Card, in asoc_simple_parse_dai() 54 * dlc->dai_name is keeping unbinded CPU or Codec in asoc_simple_parse_dai() 57 * If user re-bind CPU or Codec driver again, ALSA SoC will try in asoc_simple_parse_dai() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ti/ |
| D | j721e-evm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 17 #include "davinci-mcasp.h" 21 * CPB: 2 (mcasp10 + codec) 22 * IVI: 3 (mcasp0 + 2x codec) 47 unsigned int pll_rates[2]; 58 struct clk *parent[2]; 62 struct j721e_audio_clocks codec; member 78 u32 pll_rates[2]; 79 unsigned int hsdiv_rates[2]; [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ti/ |
| D | j721e-evm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 17 #include "davinci-mcasp.h" 21 * CPB: 2 (mcasp10 + codec) 22 * IVI: 3 (mcasp0 + 2x codec) 50 unsigned int pll_rates[2]; 61 struct clk *parent[2]; 65 struct j721e_audio_clocks codec; member 81 u32 pll_rates[2]; 82 unsigned int hsdiv_rates[2]; [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/ |
| D | cedrus_h264.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <media/videobuf2-dma-contig.h> 51 cedrus_write(dev, VE_AVC_SRAM_PORT_OFFSET, off << 2); in cedrus_h264_write_sram() 53 while (count--) in cedrus_h264_write_sram() 61 dma_addr_t addr = ctx->codec.h264.mv_col_buf_dma; in cedrus_h264_mv_col_buf_addr() 64 addr += position * ctx->codec.h264.mv_col_buf_field_size * 2; in cedrus_h264_mv_col_buf_addr() 67 addr += field * ctx->codec.h264.mv_col_buf_field_size; in cedrus_h264_mv_col_buf_addr() 78 struct vb2_buffer *vbuf = &buf->m2m_buf.vb.vb2_buf; in cedrus_fill_ref_pic() 79 unsigned int position = buf->codec.h264.position; in cedrus_fill_ref_pic() 81 pic->top_field_order_cnt = cpu_to_le32(top_field_order_cnt); in cedrus_fill_ref_pic() [all …]
|