/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | brcm,bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 This binding describes Broadcom UART-attached bluetooth chips. 18 - items: 19 - enum: 20 - infineon,cyw43439-bt 21 - const: brcm,bcm4329-bt 22 - enum: [all …]
|
/linux/Documentation/sound/soc/ |
H A D | dai.rst | 6 SoC controllers and portable audio CODECs today, namely AC97, I2S and PCM. 15 The bit clock (BCLK) is always driven by the CODEC (usually 12.288MHz) and the 27 Rx lines are used for audio transmission, while the bit clock (BCLK) and 28 left/right clock (LRC) synchronise the link. I2S is flexible in that either the 29 controller or CODEC can drive (master) the BCLK and LRC clock lines. Bit clock 30 usually varies depending on the sample rate and the master system clock 35 I2S has several different operating modes:- 47 PCM chapter 50 PCM is another 4 wire interface, very similar to I2S, which can support a more 51 flexible protocol. It has bit clock (BCLK) and sync (SYNC) lines that are used [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | mediatek,mt8365-afe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek Audio Front End PCM controller for MT8365 10 - Alexandre Mergnat <amergnat@baylibre.com> 14 const: mediatek,mt8365-afe-pcm 19 "#sound-dai-cells": 24 - description: 26M clock 25 - description: mux for audio clock [all …]
|
H A D | mt8195-afe-pcm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek AFE PCM controller for mt8195 10 - Trevor Wu <trevor.wu@mediatek.com> 14 const: mediatek,mt8195-audio 25 reset-names: 28 memory-region: 31 Shared memory region for AFE memif. A "shared-dma-pool". [all …]
|
/linux/sound/soc/bcm/ |
H A D | bcm2835-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Raspberry Pi PCM I2S ALSA Driver 23 * Copyright 2007-2010 Freescale Semiconductor, Inc. 39 #include <sound/pcm.h> 130 unsigned int provider = dev->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in bcm2835_i2s_start_clock() 132 if (dev->clk_prepared) in bcm2835_i2s_start_clock() 138 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock() 139 dev->clk_prepared = true; in bcm2835_i2s_start_clock() 148 if (dev->clk_prepared) in bcm2835_i2s_stop_clock() 149 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock() [all …]
|
/linux/Documentation/sound/cards/ |
H A D | emu-mixer.rst | 2 E-MU Digital Audio System mixer / default DSP code 5 This document covers the E-MU 0404/1010/1212/1616/1820 PCI/PCI-e/CardBus 9 alternative front-end geared towards semi-professional studio recording. 11 This document is based on audigy-mixer.rst. 33 This driver supports only 16-bit 44.1/48 kHz operation. The multi-channel 34 device (see emu10k1-jack.rst) additionally supports 24-bit capture. 37 <https://github.com/ossilator/linux/tree/ossis-emu10k1>`_. 38 Its multi-channel device supports 24-bit for both playback and capture, 62 FX-bus 67 name='Clock Source',index=0 [all …]
|
/linux/sound/soc/atmel/ |
H A D | atmel_ssc_dai.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * atmel_ssc_dai.c -- ALSA SoC ATMEL SSC Audio Layer Platform driver 11 * Based on at91-ssc.c by 25 #include <linux/atmel-ssc.h> 27 #include <sound/pcm.h> 32 #include "atmel-pcm.h" 39 * SSC PDC registers required by the PCM DMA engine. 84 .name = "SSC0 PCM out", 89 .name = "SSC0 PCM in", 94 .name = "SSC1 PCM out", [all …]
|
/linux/sound/soc/codecs/ |
H A D | max98926.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98926.c -- ALSA SoC MAX98926 driver 4 * Copyright 2013-15 Maxim Integrated Products 12 #include <sound/pcm.h> 48 { 0x1A, 0x04 }, /* DAI Clock Mode 1 */ 49 { 0x1B, 0x00 }, /* DAI Clock Mode 2 */ 50 { 0x1C, 0x00 }, /* DAI Clock Divider Denominator MSBs */ 51 { 0x1D, 0x00 }, /* DAI Clock Divider Denominator LSBs */ 52 { 0x1E, 0xF0 }, /* DAI Clock Divider Numerator MSBs */ 53 { 0x1F, 0x00 }, /* DAI Clock Divider Numerator LSBs */ [all …]
|
/linux/sound/soc/mediatek/mt8186/ |
H A D | mt8186-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "mt8186-afe-common.h" 11 #include "mt8186-afe-gpio.h" 12 #include "mt8186-interconnection.h" 49 /* slave mode & external modem uses different crystal */ 51 /* slave mode & external modem uses the same crystal */ 122 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_pcm_en_event() 125 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_pcm_en_event() 126 __func__, w->name, event); in mtk_pcm_en_event() 130 mt8186_afe_gpio_request(afe->dev, true, MT8186_DAI_PCM, 0); in mtk_pcm_en_event() [all …]
|
/linux/sound/drivers/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 50 tristate "PC-Speaker support (READ HELP!)" 60 You can compile this as a module which will be called snd-pcsp. 65 pc-speaker a default sound device. Which is likely not 69 options snd-pcsp index=2 71 You don't need this driver if you only want your pc-speaker to beep. 84 nothing, but emulates various mixer controls and PCM devices. 90 will be called snd-dummy. 93 tristate "Generic loopback driver (PCM)" 97 Say 'Y' or 'M' to include support for the PCM loopback device. [all …]
|
/linux/sound/firewire/fireworks/ |
H A D | fireworks_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * fireworks_pcm.c - a part of driver for Fireworks based devices 5 * Copyright (c) 2009-2010 Clemens Ladisch 6 * Copyright (c) 2013-2014 Takashi Sakamoto 12 * Fireworks changes its AMDTP channels for PCM data according to its sampling 14 * 0: 32.0- 48.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels applied 15 * 1: 88.2- 96.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels_2x applied 16 * 2: 176.4-192.0 kHz then snd_efw_hwinfo.amdtp_XX_pcm_channels_4x applied 18 * The number of PCM channels for analog input and output are always fixed but 19 * the number of PCM channels for digital input and output are differed. [all …]
|
/linux/sound/usb/ |
H A D | usbaudio.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 /* handling of USB vendor/product ID pairs as 32-bit numbers */ 55 struct list_head pcm_list; /* list of pcm streams */ 56 struct list_head ep_list; /* list of audio-related endpoints */ 58 struct list_head clock_ref_list; /* list of clock refcounts */ 80 #define USB_AUDIO_IFACE_UNUSED ((void *)-1L) 83 dev_err(&(chip)->dev->dev, fmt, ##args) 85 dev_err_ratelimited(&(chip)->dev->dev, fmt, ##args) 87 dev_warn(&(chip)->dev->dev, fmt, ##args) 89 dev_info(&(chip)->dev->dev, fmt, ##args) [all …]
|
/linux/sound/firewire/dice/ |
H A D | dice-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dice_pcm.c - a part of driver for DICE based devices 6 * Copyright (c) 2014 Takashi Sakamoto <o-takashi@sakamocchi.jp> 14 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint() 15 struct snd_dice *dice = substream->private_data; in dice_rate_constraint() 16 unsigned int index = substream->pcm->device; in dice_rate_constraint() 26 enum snd_dice_rate_mode mode; in dice_rate_constraint() local 29 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_rate_constraint() 30 pcm_channels = dice->tx_pcm_chs[index]; in dice_rate_constraint() 32 pcm_channels = dice->rx_pcm_chs[index]; in dice_rate_constraint() [all …]
|
/linux/sound/firewire/fireface/ |
H A D | ff-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ff-pcm.c - a part of driver for RME Fireface series 5 * Copyright (c) 2015-2017 Takashi Sakamoto 13 const unsigned int *pcm_channels = rule->private; in hw_rule_rate() 24 enum snd_ff_stream_mode mode; in hw_rule_rate() local 27 err = snd_ff_stream_get_multiplier_mode(i, &mode); in hw_rule_rate() 31 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate() 44 const unsigned int *pcm_channels = rule->private; in hw_rule_channels() 55 enum snd_ff_stream_mode mode; in hw_rule_channels() local 58 err = snd_ff_stream_get_multiplier_mode(i, &mode); in hw_rule_channels() [all …]
|
/linux/sound/firewire/motu/ |
H A D | motu-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * motu-pcm.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 14 struct snd_motu_packet_format *formats = rule->private; in motu_rate_constraint() 23 unsigned int i, pcm_channels, rate, mode; in motu_rate_constraint() local 27 mode = i / 2; in motu_rate_constraint() 29 pcm_channels = formats->pcm_chunks[mode]; in motu_rate_constraint() 43 struct snd_motu_packet_format *formats = rule->private; in motu_channels_constraint() 52 unsigned int i, pcm_channels, rate, mode; in motu_channels_constraint() local 56 mode = i / 2; in motu_channels_constraint() [all …]
|
H A D | amdtp-motu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * amdtp-motu.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 9 #include <sound/pcm.h> 13 #include "amdtp-motu-trace.h" 28 * Nominally 3125 bytes/second, but the MIDI port's clock might be 29 * 1% too slow, and the bus clock 100 ppm too fast. 52 struct amdtp_motu *p = s->protocol; in amdtp_motu_set_parameters() 54 unsigned int mode; in amdtp_motu_set_parameters() local 58 return -EBUSY; in amdtp_motu_set_parameters() [all …]
|
/linux/include/sound/ |
H A D | vx_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 #include <sound/pcm.h> 59 int hbuf_size; /* H-buffer size in bytes */ 60 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ 61 int period_bytes; /* the ALSA pcm period size in bytes */ 75 /* low-level i/o */ 94 /* pcm */ 122 /* VX-pocket */ 143 struct snd_pcm *pcm[VX_MAX_CODECS]; member 149 /* low-level functions */ [all …]
|
H A D | ac97_codec.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 17 #include <sound/pcm.h> 24 /* specific - SigmaTel */ 33 #define AC97_SIGMATEL_MULTICHN 0x74 /* Multi-Channel programming */ 37 /* specific - Analog Devices */ 47 /* specific - Cirrus Logic */ 48 #define AC97_CSR_ACMODE 0x5e /* AC Mode Register */ 56 /* specific - Conexant */ 64 /* specific - ALC */ 88 #define AC97_ALC650_CLOCK_ACCURACY 0x3000 /* Clock accuracy */ [all …]
|
/linux/drivers/isdn/hardware/mISDN/ |
H A D | hfcmulti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * hfcmulti.c low level driver for hfc-4s/hfc-8s/hfc-e1 based cards 7 * Peter Sprenger (sprengermoving-bytes.de) 9 * inspired by existing hfc-pci driver: 10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de) 22 * Bit 0-7 = 0x00001 = HFC-E1 (1 port) 23 * or Bit 0-7 = 0x00004 = HFC-4S (4 ports) 24 * or Bit 0-7 = 0x00008 = HFC-8S (8 ports) 26 * Bit 9 = 0x00200 = Disable DTMF detect on all B-channels via hardware 28 * Bit 11 = 0x00800 = Force PCM bus into slave mode. (otherwhise auto) [all …]
|
/linux/Documentation/sound/ |
H A D | alsa-configuration.rst | 2 Advanced Linux Sound Architecture - Driver Configuration guide 14 and PCM supports if you want to run OSS applications with ALSA. 38 ---------- 47 limiting card index for auto-loading (1-8); 49 For auto-loading more than one card, specify this option 50 together with snd-card-X aliases. 63 Module snd-pcm-oss 64 ------------------ 66 The PCM OSS emulation module. 70 PCM device number maps assigned to the 1st OSS device; [all …]
|
/linux/sound/firewire/digi00x/ |
H A D | amdtp-dot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * amdtp-dot.c - a part of driver for Digidesign Digi 002/003 family 5 * Copyright (c) 2014-2015 Takashi Sakamoto 10 #include <sound/pcm.h> 15 /* 'Clock-based rate control mode' is just supported. */ 19 * Nominally 3125 bytes/second, but the MIDI port's clock might be 20 * 1% too slow, and the bus clock 100 ppm too fast. 34 * The double-oh-three algorithm was discovered by Robin Gareus and Damien 35 * Zammit in 2012, with reverse-engineering for Digi 003 Rack. 53 * double-oh-three look up table [all …]
|
/linux/sound/isa/sb/ |
H A D | sb8_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Uros Bizjak <uros@kss-loka.si> 6 * Routines for control of 8-bit SoundBlaster cards and clones 9 * -- 12 * DSP can't respond to commands whilst in "high speed" mode. Caused 15 * Wed Jul 12 22:02:55 CEST 2000 Uros Bizjak <uros@kss-loka.si> 27 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Uros Bizjak <uros@kss-loka.si>"); 28 MODULE_DESCRIPTION("Routines for control of 8-bit SoundBlaster cards and clones"); 35 static const struct snd_ratnum clock = { variable 44 .rats = &clock, [all …]
|
/linux/include/linux/soundwire/ |
H A D | sdw_intel.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 42 #define SDW_SHIM_SYNC_SYNCPRD_VAL_24 (24000 / SDW_CADENCE_GSYNC_KHZ - 1) 43 #define SDW_SHIM_SYNC_SYNCPRD_VAL_24_576 (24576 / SDW_CADENCE_GSYNC_KHZ - 1) 44 #define SDW_SHIM_SYNC_SYNCPRD_VAL_38_4 (38400 / SDW_CADENCE_GSYNC_KHZ - 1) 45 #define SDW_SHIM_SYNC_SYNCPRD_VAL_96 (96000 / SDW_CADENCE_GSYNC_KHZ - 1) 59 /* PCM Stream capabilities */ 66 /* PCM Stream Channel Map */ 69 /* PCM Stream Channel Count */ 116 * ACE2.x definitions for SHIM registers - only accessible when the [all …]
|
/linux/sound/pci/echoaudio/ |
H A D | echoaudio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2003-2004 Giuliano Pochini <pochini@shiny.it> 27 static const DECLARE_TLV_DB_SCALE(db_scale_output_gain, -12800, 100, 1); 37 if (chip->fw_cache[fw_index]) { in get_firmware() 38 dev_dbg(chip->card->dev, in get_firmware() 41 *fw_entry = chip->fw_cache[fw_index]; in get_firmware() 45 dev_dbg(chip->card->dev, in get_firmware() 48 err = request_firmware(fw_entry, name, &chip->pci->dev); in get_firmware() 50 dev_err(chip->card->dev, in get_firmware() 53 chip->fw_cache[fw_index] = *fw_entry; in get_firmware() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_ssi.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // Copyright 2007-2010 Freescale Semiconductor, Inc. 9 // Some notes why imx-pcm-fiq is used instead of DMA on some boards: 11 // The i.MX SSI core has some nasty limitations in AC97 mode. While most 16 // we receive in our (PCM-) data stream. The only chance we have is to 19 // between pcm data and GPIO status data changes. Our FIQ handler is not 43 #include <linux/dma/imx-dma.h> 46 #include <sound/pcm.h> 53 #include "imx-pcm.h" 55 /* Define RX and TX to index ssi->regvals array; Can be 0 or 1 only */ [all …]
|