/linux/Documentation/devicetree/bindings/sound/ |
H A D | rockchip,i2s-tdm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/rockchip,i2s-tdm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip I2S/TDM Controller 10 The Rockchip I2S/TDM Controller is a Time Division Multiplexed 15 - Nicolas Frattaroli <frattaroli.nicolas@gmail.com> 18 - $ref: dai-common.yaml# 23 - rockchip,px30-i2s-tdm 24 - rockchip,rk1808-i2s-tdm [all …]
|
/linux/sound/soc/tegra/ |
H A D | tegra30_i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tegra30_i2s.c - Tegra30 I2S driver 6 * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved. 10 * Copyright (c) 2009-2010, NVIDIA Corporation. 36 #define DRV_NAME "tegra30-i2s" 40 struct tegra30_i2s *i2s = dev_get_drvdata(dev); in tegra30_i2s_runtime_suspend() local 42 regcache_cache_only(i2s->regmap, true); in tegra30_i2s_runtime_suspend() 44 clk_disable_unprepare(i2s->clk_i2s); in tegra30_i2s_runtime_suspend() 51 struct tegra30_i2s *i2s = dev_get_drvdata(dev); in tegra30_i2s_runtime_resume() local 54 ret = clk_prepare_enable(i2s->clk_i2s); in tegra30_i2s_runtime_resume() [all …]
|
H A D | tegra210_i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // SPDX-FileCopyrightText: Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES. 5 // tegra210_i2s.c - Tegra210 I2S driver 33 * is required to select i2s4b for it to be functional for I2S 44 regmap_write(regmap, TEGRA210_I2S_SLOT_CTRL, total_slots - 1); in tegra210_i2s_set_slot_ctrl() 52 struct tegra210_i2s *i2s = dev_get_drvdata(dev); in tegra210_i2s_set_clock_rate() local 56 regmap_read(i2s->regmap, TEGRA210_I2S_CTRL, &val); in tegra210_i2s_set_clock_rate() 58 /* No need to set rates if I2S is being operated in slave */ in tegra210_i2s_set_clock_rate() 62 err = clk_set_rate(i2s->clk_i2s, clock_rate); in tegra210_i2s_set_clock_rate() 64 dev_err(dev, "can't set I2S bit clock rate %u, err: %d\n", in tegra210_i2s_set_clock_rate() [all …]
|
/linux/sound/soc/samsung/ |
H A D | smdk_wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 * SMDKV310: CFG5-1000, CFG7-111111 15 * Configure audio route as :- 72 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() 94 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")), 95 DAILINK_COMP_ARRAY(COMP_CODEC("wm8994-codec", "wm8994-aif1")), 96 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0"))); 99 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s-sec")), 100 DAILINK_COMP_ARRAY(COMP_CODEC("wm8994-codec", "wm8994-aif1")), 101 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s-sec"))); [all …]
|
/linux/sound/soc/codecs/ |
H A D | hdmi-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ 16 #include <sound/hdmi-codec.h> 22 #define HDMI_CODEC_CHMAP_IDX_UNKNOWN -1 65 /* Channel maps for multi-channel playbacks, up to 8 n_ch */ 294 SND_SOC_DAPM_OUTPUT("TX"), 306 uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES; in hdmi_eld_ctl_info() 307 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info() 318 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get() 345 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap() [all …]
|
H A D | ab8500-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 8 * for ST-Ericsson. 14 * for ST-Ericsson. 29 #include <linux/mfd/abx500/ab8500-sysctrl.h> 30 #include <linux/mfd/abx500/ab8500-codec.h> 39 #include <sound/soc-dapm.h> 42 #include "ab8500-codec.h" 56 /* Nr of FIR/IIR-coeff banks in ANC-block */ 114 /* Private data for AB8500 device-driver */ [all …]
|
H A D | aw88261.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // aw88261.c -- AW88261 ALSA SoC Audio driver 29 struct aw_volume_desc *vol_desc = &aw_dev->volume_desc; in aw88261_dev_set_volume() 33 volume = min((value + vol_desc->init_volume), (unsigned int)AW88261_MUTE_VOL); in aw88261_dev_set_volume() 36 regmap_read(aw_dev->regmap, AW88261_SYSCTRL2_REG, ®_value); in aw88261_dev_set_volume() 40 dev_dbg(aw_dev->dev, "value 0x%x , real_value:0x%x", value, real_value); in aw88261_dev_set_volume() 42 regmap_write(aw_dev->regmap, AW88261_SYSCTRL2_REG, real_value); in aw88261_dev_set_volume() 47 struct aw_volume_desc *desc = &aw_dev->volume_desc; in aw88261_dev_fade_in() 48 int fade_in_vol = desc->ctl_volume; in aw88261_dev_fade_in() 49 int fade_step = aw_dev->fade_step; in aw88261_dev_fade_in() [all …]
|
/linux/sound/soc/rockchip/ |
H A D | rockchip_i2s_tdm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // ALSA SoC Audio Layer - Rockchip I2S/TDM Controller driver 5 // Author: Sugar Zhang <sugar.zhang@rock-chips.com> 9 #include <linux/clk-provider.h> 23 #define DRV_NAME "rockchip-i2s-tdm" 92 clk_disable_unprepare(i2s_tdm->mclk_tx); in i2s_tdm_disable_unprepare_mclk() 93 clk_disable_unprepare(i2s_tdm->mclk_rx); in i2s_tdm_disable_unprepare_mclk() 97 * i2s_tdm_prepare_enable_mclk - prepare to enable all mclks, disable them on 110 ret = clk_prepare_enable(i2s_tdm->mclk_tx); in i2s_tdm_prepare_enable_mclk() 113 ret = clk_prepare_enable(i2s_tdm->mclk_rx); in i2s_tdm_prepare_enable_mclk() [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | sof_maxim_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <sound/soc-acpi.h> 10 #include <sound/soc-dai.h> 11 #include <sound/soc-dapm.h> 14 #include "../common/soc-intel-quirks.h" 37 for_each_acpi_dev_match(adev, hid, NULL, -1) in get_num_codecs() 89 * The tx mask indicates which channel(s) contains output IV-sense data and 90 * others should set to Hi-Z. Here we get the channel number from codec's ACPI 91 * device property "maxim,vmon-slot-no" and "maxim,imon-slot-no" to generate the 99 if (device_property_read_u32(dev, "maxim,vmon-slot-no", &vmon_slot)) in max_98373_get_tx_mask() [all …]
|
/linux/include/media/ |
H A D | v4l2-subdev.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * V4L2 sub-device support header. 12 #include <linux/v4l2-subdev.h> 13 #include <media/media-entity.h> 14 #include <media/v4l2-async.h> 15 #include <media/v4l2-common.h> 16 #include <media/v4l2-dev.h> 17 #include <media/v4l2-fh.h> 18 #include <media/v4l2-mediabus.h> 44 * struct v4l2_decode_vbi_line - used to decode_vbi_line [all …]
|
/linux/sound/pci/ice1712/ |
H A D | ice1724.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 86 /* check whether the clock mode is spdif-in */ 97 return (!ice->is_spdif_master(ice)) && PRO_RATE_LOCKED; in is_pro_rate_locked() 116 dev_dbg(ice->card->dev, "snd_vt1724_ac97_ready: timeout\n"); in snd_vt1724_ac97_ready() 126 dev_dbg(ice->card->dev, "snd_vt1724_ac97_wait_bit: timeout\n"); in snd_vt1724_ac97_wait_bit() 127 return -EIO; in snd_vt1724_ac97_wait_bit() 134 struct snd_ice1712 *ice = ac97->private_data; in snd_vt1724_ac97_write() 139 old_cmd |= ac97->num; in snd_vt1724_ac97_write() 148 struct snd_ice1712 *ice = ac97->private_data; in snd_vt1724_ac97_read() [all …]
|
/linux/drivers/media/i2c/ |
H A D | tvaudio.c | 14 * Copyright(c) 2005-2008 Mauro Carvalho Chehab 15 * - Some cleanups, code fixes, etc 16 * - Convert it to V4L2 API 21 * debug - set to 1 if you'd like to see debug messages 40 #include <media/v4l2-device.h> 41 #include <media/v4l2-ctrls.h> 43 /* ---------------------------------------------------------------------- */ 53 #define UNSET (-1U) 55 /* ---------------------------------------------------------------------- */ 97 /* functions to convert the values (v4l -> chip) */ [all …]
|
/linux/ |
H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-scsi@vger.kernel.org 88 F: drivers/scsi/3w-* [all …]
|
/linux/sound/pci/hda/ |
H A D | patch_realtek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 /* extra amp-initialization sequence types */ 147 struct alc_spec *spec = codec->spec; in coef_mutex_lock() 150 mutex_lock(&spec->coef_mutex); in coef_mutex_lock() 155 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() 157 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock() 209 if (val != -1) in __alc_update_coefex_idx() 229 struct alc_spec *spec = codec->spec; in alc_get_coef0() 231 if (!spec->coef0) in alc_get_coef0() 232 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0() [all …]
|