/openbmc/linux/arch/mips/ar7/ |
H A D | clock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/clk-provider.h> 21 #include <asm/mach-ar7/ar7.h> 46 u32 ctrl; member 65 struct tnetd7300_clock dsp; member 69 u32 ctrl; member 85 struct tnetd7200_clock dsp; member 107 freq = abs(base / j * i / k - target); in approximate() 166 u32 ctrl = readl(&clock->ctrl); in tnetd7300_get_clock() local 167 u32 pll = readl(&clock->pll); in tnetd7300_get_clock() [all …]
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | dsp_hwec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * builtin mISDN dsp pipeline element for enabling the hw echocanceller 16 #include "dsp.h" 34 void dsp_hwec_enable(struct dsp *dsp, const char *arg) in dsp_hwec_enable() argument 40 if (!dsp) { in dsp_hwec_enable() 41 printk(KERN_ERR "%s: failed to enable hwec: dsp is NULL\n", in dsp_hwec_enable() 85 if (!dsp->ch.peer->ctrl(&dsp->ch, CONTROL_CHANNEL, &cq)) { in dsp_hwec_enable() 92 void dsp_hwec_disable(struct dsp *dsp) in dsp_hwec_disable() argument 96 if (!dsp) { in dsp_hwec_disable() 97 printk(KERN_ERR "%s: failed to disable hwec: dsp is NULL\n", in dsp_hwec_disable() [all …]
|
H A D | dsp_core.c | 12 * Real-time tone generation 14 * Real-time cross-connection and conferrence 23 * The dsp module provides layer 2 for b-channels (64kbit). It provides 26 * - (1) generation of tones 27 * - (2) detection of dtmf tones 28 * - (3) crossconnecting and conferences (clocking) 29 * - (4) echo generation for delay test 30 * - (5) volume control 31 * - (6) disable receive data 32 * - (7) pipeline [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/dsp/ |
H A D | fsl,dsp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dsp/fsl,dsp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP i.MX8 DSP core 10 - Daniel Baluta <daniel.baluta@nxp.com> 11 - Shengjiu Wang <shengjiu.wang@nxp.com> 14 Some boards from i.MX8 family contain a DSP core used for 15 advanced pre- and post- audio processing. 20 - fsl,imx8qxp-dsp [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | adau1373.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 24 #include "adau-utils.h" 323 0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1), 324 8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0), 325 16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0), 326 24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0) 329 static const DECLARE_TLV_DB_MINMAX(adau1373_digital_tlv, -9563, 0); 330 static const DECLARE_TLV_DB_SCALE(adau1373_in_pga_tlv, -1300, 100, 1); 331 static const DECLARE_TLV_DB_SCALE(adau1373_ep_tlv, -600, 600, 1); [all …]
|
H A D | sigmadsp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2014 Analog Devices Inc. 98 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write() 104 return sigmadsp->read(sigmadsp->control_data, addr, data, len); in sigmadsp_read() 110 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_info() local 112 info->type = SNDRV_CTL_ELEM_TYPE_BYTES; in sigmadsp_ctrl_info() 113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info() 119 struct sigmadsp_control *ctrl, void *data) in sigmadsp_ctrl_write() argument 122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write() 123 return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write() [all …]
|
H A D | cs35l45.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // cs35l45.c - CS35L45 ALSA SoC audio driver 5 // Copyright 2019-2022 Cirrus Logic, Inc. 53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd() 54 dev_err(cs35l45->dev, "DSP not running\n"); in cs35l45_set_cspl_mbox_cmd() 55 return -EPERM; in cs35l45_set_cspl_mbox_cmd() 62 dev_err(cs35l45->dev, "Failed to write MBOX: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 72 dev_err(cs35l45->dev, "Failed to read MBOX STS: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 77 dev_dbg(cs35l45->dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l45_set_cspl_mbox_cmd() 83 dev_err(cs35l45->dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); in cs35l45_set_cspl_mbox_cmd() [all …]
|
H A D | wm2200.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm2200.c -- WM2200 ALSA SoC Audio driver 76 struct wm_adsp dsp[2]; member 161 { 0x000B, 0x0000 }, /* R11 - Tone Generator 1 */ 162 { 0x0102, 0x0000 }, /* R258 - Clocking 3 */ 163 { 0x0103, 0x0011 }, /* R259 - Clocking 4 */ 164 { 0x0111, 0x0000 }, /* R273 - FLL Control 1 */ 165 { 0x0112, 0x0000 }, /* R274 - FLL Control 2 */ 166 { 0x0113, 0x0000 }, /* R275 - FLL Control 3 */ 167 { 0x0114, 0x0000 }, /* R276 - FLL Control 4 */ [all …]
|
H A D | wm_adsp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm_adsp.c -- Wolfson ADSP support 35 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 37 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 39 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 41 dev_info(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 43 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__) 46 adsp_err(_obj->dsp, "%s: " fmt, _obj->name ? _obj->name : "legacy", \ 49 adsp_dbg(_obj->dsp, "%s: " fmt, _obj->name ? _obj->name : "legacy", \ 80 [WM_ADSP_FW_CTRL] = "Voice Ctrl", [all …]
|
/openbmc/qemu/include/hw/cxl/ |
H A D | cxl_pci.h | 7 * COPYING file in the top-level directory. 57 * CXL r3.1 Table 8-2: CXL DVSEC ID Assignment 60 * (x) - IDs in Table 8-2. 62 * CXL RCD (D1): 0, [2], [5], 7, [8], A - Not emulated yet 63 * CXL RCD USP (UP1): 7, [8] - Not emulated yet 64 * CXL RCH DSP (DP1): 7, [8] 69 * CXL Switch DSP (DSP): 3, 4, 7, 8 70 * FM-Owned LD (FMLD): 0, [2], 7, 8, 9 80 uint16_t ctrl; member 155 uint16_t ctrl; member
|
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | ti,k3-dsp-rproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,k3-dsp-rproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI K3 DSP devices 10 - Suman Anna <s-anna@ti.com> 13 The TI K3 family of SoCs usually have one or more TI DSP Core sub-systems 14 that are used to offload some of the processor-intensive tasks or algorithms, 17 These processor sub-systems usually contain additional sub-modules like 19 controller, a dedicated local power/sleep controller etc. The DSP processor [all …]
|
/openbmc/linux/sound/soc/sof/imx/ |
H A D | imx8m.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 7 // Hardware interface for audio DSP on i.MX8M 20 #include <linux/firmware/imx/dsp.h> 23 #include "../sof-of-dev.h" 24 #include "imx-common.h" 41 /* DSP audio mix registers */ 53 /* DSP IPC handler */ 78 spin_lock_irqsave(&priv->sdev->ipc_lock, flags); in imx8m_dsp_handle_reply() 79 snd_sof_ipc_process_reply(priv->sdev, 0); in imx8m_dsp_handle_reply() 80 spin_unlock_irqrestore(&priv->sdev->ipc_lock, flags); in imx8m_dsp_handle_reply() [all …]
|
H A D | imx8ulp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 // Copyright 2021-2022 NXP 7 // Hardware interface for audio DSP on i.MX8ULP 9 #include <linux/arm-smccc.h> 12 #include <linux/firmware/imx/dsp.h> 26 #include "../sof-of-dev.h" 27 #include "imx-common.h" 54 /* DSP IPC handler */ 64 /* Controls the HiFi4 DSP Reset: 1 in reset, 0 out of reset */ in imx8ulp_sim_lpav_start() 65 regmap_update_bits(priv->regmap, SYSCTRL0, RESET_BIT, 0); in imx8ulp_sim_lpav_start() [all …]
|
/openbmc/qemu/hw/pci-bridge/ |
H A D | cxl_downstream.c | 8 * SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hw/qdev-properties.h" 17 #include "hw/qdev-properties-system.h" 36 static void latch_registers(CXLDownstreamPort *dsp) in latch_registers() argument 38 uint32_t *reg_state = dsp->cxl_cstate.crb.cache_mem_registers; in latch_registers() 39 uint32_t *write_msk = dsp->cxl_cstate.crb.cache_mem_regs_write_mask; in latch_registers() 49 CXLDownstreamPort *dsp = CXL_DSP(dev); in cxl_dsp_dvsec_write_config() local 50 CXLComponentState *cxl_cstate = &dsp->cxl_cstate; in cxl_dsp_dvsec_write_config() 52 if (range_contains(&cxl_cstate->dvsecs[EXTENSIONS_PORT_DVSEC], addr)) { in cxl_dsp_dvsec_write_config() 53 uint8_t *reg = &dev->config[addr]; in cxl_dsp_dvsec_write_config() [all …]
|
/openbmc/linux/drivers/media/radio/ |
H A D | saa7706h.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * saa7706.c Philips SAA7706H Car Radio DSP driver 15 #include <media/v4l2-device.h> 16 #include <media/v4l2-ctrls.h> 22 $1C00 - $FFFF Not Used 23 $2200 - $3FFF Reserved YRAM (DSP2) space 24 $2000 - $21FF YRAM (DSP2) 25 $1FF0 - $1FFF Hardware Registers 26 $1280 - $1FEF Reserved XRAM (DSP2) space 27 $1000 - $127F XRAM (DSP2) [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs35l45.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com> 11 - Richard Fitzgerald <rf@opensource.cirrus.com> 14 CS35L45 is a Boosted Mono Class D Amplifier with DSP 18 - $ref: dai-common.yaml# 23 - cirrus,cs35l45 28 '#sound-dai-cells': 31 reset-gpios: [all …]
|
/openbmc/linux/sound/soc/mediatek/common/ |
H A D | mtk-dsp-sof-common.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mtk-dsp-sof-common.c -- MediaTek dsp sof common ctrl 9 #include "mtk-dsp-sof-common.h" 10 #include "mtk-soc-card.h" 16 struct snd_soc_card *card = rtd->card; in mtk_sof_dai_link_fixup() 18 struct mtk_sof_priv *sof_priv = soc_card_data->sof_priv; in mtk_sof_dai_link_fixup() 21 for (i = 0; i < sof_priv->num_streams; i++) { in mtk_sof_dai_link_fixup() 25 const struct sof_conn_stream *conn = &sof_priv->conn_streams[i]; in mtk_sof_dai_link_fixup() 27 if (conn->normal_link && strcmp(rtd->dai_link->name, conn->normal_link)) in mtk_sof_dai_link_fixup() 31 if (strcmp(runtime->dai_link->name, conn->sof_link)) in mtk_sof_dai_link_fixup() [all …]
|
/openbmc/linux/Documentation/admin-guide/media/ |
H A D | si470x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 ----------------------------- 25 ------------- 30 - Si4700: FM radio receiver 31 - Si4701: FM radio receiver, RDS Support 32 - Si4702: FM radio receiver 33 - Si4703: FM radio receiver, RDS Support 34 - Si4704: FM radio receiver, no external antenna required 35 - Si4705: FM radio receiver, no external antenna required, RDS support, Dig I/O 36 - Si4706: Enhanced FM RDS/TMC radio receiver, no external antenna required, RDS [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | prm33xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - https://www.ti.com/ 16 #include "prm-regbits-33xx.h" 34 /* Read-modify-write a register in PRM. Caller must lock */ 48 * am33xx_prm_is_hardreset_asserted - read the HW reset line state of 57 * -EINVAL upon parameter error. 72 * am33xx_prm_assert_hardreset - assert the HW reset line of a submodule 78 * Some IPs like dsp, ipu or iva contain processors that require an HW 80 * IP. These modules may have multiple hard-reset lines that reset 82 * place the submodule into reset. Returns 0 upon success or -EINVAL [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov772x.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 26 #include <linux/v4l2-mediabus.h> 31 #include <media/v4l2-ctrls.h> 32 #include <media/v4l2-device.h> 33 #include <media/v4l2-event.h> 34 #include <media/v4l2-fwnode.h> 35 #include <media/v4l2-image-sizes.h> 36 #include <media/v4l2-subdev.h> 41 #define GAIN 0x00 /* AGC - Gain control gain setting */ [all …]
|
H A D | ov2640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright 2005-2009 Freescale Semiconductor, Inc. All Rights Reserved. 20 #include <linux/v4l2-mediabus.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-event.h> 25 #include <media/v4l2-subdev.h> 26 #include <media/v4l2-ctrls.h> 27 #include <media/v4l2-image-sizes.h> 32 * DSP registers 35 #define R_BYPASS 0x05 /* Bypass DSP */ [all …]
|
H A D | msp3400-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * (c) 1997-2001 Gerd Knorr <kraxel@bytesex.org> 9 * AM-Mono 13 * FM-Mono 14 * should work. The stereo modes are backward compatible to FM-mono, 15 * therefore FM-Mono should be always available. 17 * FM-Stereo (B/G, used in germany) 20 * FM-Stereo (satellite) 22 * switch to stereo -- untested) 29 * - better SAT support [all …]
|
/openbmc/linux/drivers/pinctrl/cirrus/ |
H A D | pinctrl-lochnagar.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2017-2018 Cirrus Logic, Inc. and 20 #include <linux/pinctrl/pinconf-generic.h> 29 #include <dt-bindings/pinctrl/lochnagar.h> 31 #include "../pinctrl-utils.h" 35 #define LN_CDC_AIF1_STR "codec-aif1" 36 #define LN_CDC_AIF2_STR "codec-aif2" 37 #define LN_CDC_AIF3_STR "codec-aif3" 38 #define LN_DSP_AIF1_STR "dsp-aif1" 39 #define LN_DSP_AIF2_STR "dsp-aif2" [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | mISDNisar.c | 1 // SPDX-License-Identifier: GPL-2.0-only 40 u8 val = isar->read_reg(isar->hw, ISAR_HIA); in waitforHIA() 44 t--; in waitforHIA() 45 val = isar->read_reg(isar->hw, ISAR_HIA); in waitforHIA() 47 pr_debug("%s: HIA after %dus\n", isar->name, timeout - t); in waitforHIA() 53 * if msg is NULL use isar->buf 61 isar->write_reg(isar->hw, ISAR_CTRL_H, creg); in send_mbox() 62 isar->write_reg(isar->hw, ISAR_CTRL_L, len); in send_mbox() 63 isar->write_reg(isar->hw, ISAR_WADR, 0); in send_mbox() 65 msg = isar->buf; in send_mbox() [all …]
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio_dsp.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 41 /**** Echo24: Gina24, Layla24, Mona, Mia, Mia-midi ****/ 44 #define DSP_56361 /* Some Echo24 cards use the 56361 DSP */ 81 * These are the offsets for the memory-mapped DSP registers; the DSP base 93 * Interesting bits within the DSP registers 108 * DSP commands sent via slave mode; these are sent to the DSP by write_dsp() 133 #define MIDI_IN_SKIP_DATA (-1) [all …]
|