| /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> 95 #define ALI_SCTRL_LINE_IN2 (1 << 9) 96 #define ALI_SCTRL_GPIO_IN2 (1 << 13) 97 #define ALI_SCTRL_LINE_OUT_EN (1 << 20) 98 #define ALI_SCTRL_GPIO_OUT_EN (1 << 23) 99 #define ALI_SCTRL_CODEC1_READY (1 << 24) 100 #define ALI_SCTRL_CODEC2_READY (1 << 25) [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> 94 #define ALI_SCTRL_LINE_IN2 (1 << 9) 95 #define ALI_SCTRL_GPIO_IN2 (1 << 13) 96 #define ALI_SCTRL_LINE_OUT_EN (1 << 20) 97 #define ALI_SCTRL_GPIO_OUT_EN (1 << 23) 98 #define ALI_SCTRL_CODEC1_READY (1 << 24) 99 #define ALI_SCTRL_CODEC2_READY (1 << 25) [all …]
|
| /kernel/linux/linux-6.6/sound/hda/ |
| D | hdac_device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio codec core device 18 static void setup_fg_nodes(struct hdac_device *codec); 19 static int get_codec_vendor_name(struct hdac_device *codec); 27 * snd_hdac_device_init - initialize the HD-audio codec base device 28 * @codec: device to initialize 31 * @addr: codec address 40 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument 47 dev = &codec->dev; in snd_hdac_device_init() 49 dev->parent = bus->dev; in snd_hdac_device_init() [all …]
|
| /kernel/linux/linux-5.10/sound/hda/ |
| D | hdac_device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio codec core device 18 static void setup_fg_nodes(struct hdac_device *codec); 19 static int get_codec_vendor_name(struct hdac_device *codec); 27 * snd_hdac_device_init - initialize the HD-audio codec base device 28 * @codec: device to initialize 31 * @addr: codec address 40 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument 47 dev = &codec->dev; in snd_hdac_device_init() 49 dev->parent = bus->dev; in snd_hdac_device_init() [all …]
|
| /kernel/linux/linux-6.6/include/sound/ |
| D | hda_codec.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Universal Interface for Intel High Definition Audio Codec 32 * codec bus 51 unsigned int allow_bus_reset:1; /* allow bus reset at fatal error */ 52 /* status for codec/controller */ 53 unsigned int shutdown :1; /* being unloaded */ 54 unsigned int response_reset:1; /* controller was reset */ 55 unsigned int in_reset:1; /* during reset operation */ 56 unsigned int no_response_fallback:1; /* don't fallback at RIRB error */ 57 unsigned int bus_probing :1; /* during probing process */ [all …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| D | hda_codec.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Universal Interface for Intel High Definition Audio Codec 21 #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98) 22 #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348) 35 * codec bus 54 unsigned int allow_bus_reset:1; /* allow bus reset at fatal error */ 55 /* status for codec/controller */ 56 unsigned int shutdown :1; /* being unloaded */ 57 unsigned int response_reset:1; /* controller was reset */ 58 unsigned int in_reset:1; /* during reset operation */ [all …]
|
| /kernel/linux/linux-5.10/sound/pci/hda/ |
| 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_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 #define DSP_DMA_WRITE_BUFLEN_INIT (1UL<<18) 49 #define DSP_DMA_WRITE_BUFLEN_OVLY (1UL<<15) 71 #define SCP_GET 1 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 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) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) [all …]
|
| D | hda_codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 29 #define codec_has_epss(codec) \ argument 30 ((codec)->core.power_caps & AC_PWRST_EPSS) 31 #define codec_has_clkstop(codec) \ argument 32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 35 * Send and receive a verb - passed to exec_verb override for hdac_device 40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local [all …]
|
| D | patch_via.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 5 * HD audio interface patch for VIA VT17xx/VT18xx/VT20xx codec 7 * (C) 2006-2009 VIA Technology, Inc. 8 * (C) 2006-2008 Takashi Iwai <tiwai@suse.de> 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 14 /* 2006-03-14 Lydia Wang Modify hard code for some pin widget nid */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 16 /* 2006-09-08 Lydia Wang Fix internal loopback recording source select bug */ 17 /* 2007-09-12 Lydia Wang Add EAPD enable during driver initialization */ [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 | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 unsigned int spdif_detect:1; 33 unsigned int spdif_present:1; 34 unsigned int sense_b:1; 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 */ [all …]
|
| D | hda_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 17 static int dump_coef = -1; 19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1… 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 38 if (wid_value == -1) in get_wid_type_name() 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 52 struct hda_nid_item *items = array->list, *item; in print_nid_array() 54 for (i = 0; i < array->used; i++) { in print_nid_array() [all …]
|
| D | hda_local.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Universal Interface for Intel High Definition Audio Codec 15 * snd_hda_ctl_add() takes the lower-bit subdev value as a valid NID. 20 #define HDA_SUBDEV_NID_FLAG (1U << 31) 21 #define HDA_SUBDEV_AMP_FLAG (1U << 30) 28 #define HDA_AMP_VAL_MIN_MUTE (1<<29) 31 /* mono volume with index (index=0,1,...) (channel=1,2) */ 56 /* mono mute switch with index (index=0,1,...) (channel=1,2) */ 74 /* special beep mono mute switch with index (index=0,1,...) (channel=1,2) */ 83 /* no digital beep - just the standard one */ [all …]
|
| D | hda_auto_parser.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * BIOS auto-parser helper functions for HD-audio 24 return 1; in is_in_nid_list() 38 return (int)(a->seq - b->seq); in compare_seq() 55 /* add the found input-pin to the cfg->inputs[] table */ 56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument 59 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin() 60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 61 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin() 62 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin() [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-6.6/sound/pci/hda/ |
| 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_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 #define DSP_DMA_WRITE_BUFLEN_INIT (1UL<<18) 49 #define DSP_DMA_WRITE_BUFLEN_OVLY (1UL<<15) 71 #define SCP_GET 1 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 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) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) [all …]
|
| D | hda_codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 29 #define codec_has_epss(codec) \ argument 30 ((codec)->core.power_caps & AC_PWRST_EPSS) 31 #define codec_has_clkstop(codec) \ argument 32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 35 * Send and receive a verb - passed to exec_verb override for hdac_device 40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local [all …]
|
| D | patch_via.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 5 * HD audio interface patch for VIA VT17xx/VT18xx/VT20xx codec 7 * (C) 2006-2009 VIA Technology, Inc. 8 * (C) 2006-2008 Takashi Iwai <tiwai@suse.de> 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 14 /* 2006-03-14 Lydia Wang Modify hard code for some pin widget nid */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 16 /* 2006-09-08 Lydia Wang Fix internal loopback recording source select bug */ 17 /* 2007-09-12 Lydia Wang Add EAPD enable during driver initialization */ [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 | patch_cs8409.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument 24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config() 40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config() 41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config() 43 if (done & (1 << idx)) in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() [all …]
|
| D | hda_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 17 static int dump_coef = -1; 19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1… 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 38 if (wid_value == -1) in get_wid_type_name() 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 52 struct hda_nid_item *items = array->list, *item; in print_nid_array() 54 for (i = 0; i < array->used; i++) { in print_nid_array() [all …]
|
| D | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 unsigned int spdif_detect:1; 34 unsigned int spdif_present:1; 35 unsigned int sense_b:1; 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 */ [all …]
|
| D | hda_local.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Universal Interface for Intel High Definition Audio Codec 15 * snd_hda_ctl_add() takes the lower-bit subdev value as a valid NID. 20 #define HDA_SUBDEV_NID_FLAG (1U << 31) 21 #define HDA_SUBDEV_AMP_FLAG (1U << 30) 28 #define HDA_AMP_VAL_MIN_MUTE (1<<29) 31 /* mono volume with index (index=0,1,...) (channel=1,2) */ 56 /* mono mute switch with index (index=0,1,...) (channel=1,2) */ 74 /* special beep mono mute switch with index (index=0,1,...) (channel=1,2) */ 83 /* no digital beep - just the standard one */ [all …]
|