| /linux/Documentation/sound/soc/ |
| H A D | dai.rst | 2 ASoC Digital Audio Interface (DAI) 6 SoC controllers and portable audio CODECs today, namely AC97, I2S and PCM. 12 AC97 is a five wire interface commonly found on many PC sound cards. It is 30 usually varies depending on the sample rate and the master system clock 31 (SYSCLK). LRCLK is the same as the sample rate. A few devices support separate 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 53 receive the audio data. Bit clock usually varies depending on sample rate 54 while sync runs at the sample rate. PCM also supports Time Division [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_uac1_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * u_uac1.c -- ALSA audio utilities for Gadget stack 24 /*-------------------------------------------------------------------------*/ 47 changed = -EINVAL; in _snd_pcm_hw_param_set() 53 val--; in _snd_pcm_hw_param_set() 60 changed = -EINVAL; in _snd_pcm_hw_param_set() 71 t.min = val - 1; in _snd_pcm_hw_param_set() 80 return -EINVAL; in _snd_pcm_hw_param_set() 82 params->cmask |= 1 << var; in _snd_pcm_hw_param_set() 83 params->rmask |= 1 << var; in _snd_pcm_hw_param_set() [all …]
|
| /linux/sound/pci/mixart/ |
| H A D | mixart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/dma-mapping.h> 23 #include <sound/pcm.h> 36 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 67 switch(pipe->status) { in mixart_set_pipe_state() 76 dev_err(&mgr->pc in mixart_set_pipe_state() 158 mixart_set_clock(struct mixart_mgr * mgr,struct mixart_pipe * pipe,unsigned int rate) mixart_set_clock() argument 709 struct snd_pcm *pcm = subs->pcm; snd_mixart_playback_open() local 788 struct snd_pcm *pcm = subs->pcm; snd_mixart_capture_open() local 928 preallocate_buffers(struct snd_mixart * chip,struct snd_pcm * pcm) preallocate_buffers() argument 953 struct snd_pcm *pcm; snd_mixart_pcm_analog() local 987 struct snd_pcm *pcm; snd_mixart_pcm_digital() local [all...] |
| /linux/drivers/mtd/lpddr/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 menu "LPDDR & LPDDR2 PCM memory drivers" 9 This option enables support of LPDDR (Low power double data rate) 10 flash chips. Synonymous with Mobile-DDR. It is a new standard for 11 DDR memories, intended for battery-operated systems. 18 Window QINFO interface, permits software to be used for entire 25 tristate "Support for LPDDR2-NVM flash chips" 27 This option enables support of PCM memories with a LPDDR2-NVM 28 (Low power double data rate 2) interface.
|
| /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 */ 25 * Structure holding assosiation between Audio Control Interface 26 * and given Streaming or Midi Interface. 29 u8 interface; member 55 struct list_head pcm_list; /* list of pcm streams */ 56 struct list_head ep_list; /* list of audio-related endpoints */ 57 struct list_head iface_ref_list; /* list of interface refcounts */ 72 struct usb_host_interface *ctrl_intf; /* the audio control interface */ 80 #define USB_AUDIO_IFACE_UNUSED ((void *)-1L) [all …]
|
| H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <sound/pcm.h> 18 /* convert our full speed USB rate into sampling rate in Hz */ 24 /* convert our high speed USB rate into sampling rate i [all...] |
| /linux/Documentation/sound/cards/ |
| H A D | cmipci.rst | 2 Brief Notes on C-Media 8338/8738/8768/8770 Driver 8 Front/Rear Multi-channel Playback 9 --------------------------------- 13 DACs, both streams are handled independently unlike the 4/6ch multi- 16 As default, ALSA driver assigns the first PCM device (i.e. hw:0,0 for 17 card#0) for front and 4/6ch playbacks, while the second PCM device 22 - The first DAC supports U8 and S16LE formats, while the second DAC 24 - The second DAC supports only two channel stereo. 27 rate but only fixed rates: 5512, 8000, 11025, 16000, 22050, 32000, 36 will be FULL VOLUME regardless of Master and PCM volumes [#]_. [all …]
|
| /linux/Documentation/sound/designs/ |
| H A D | control-names.rst | 8 --------------- 68 Headset Mic mic part of combined headset jack - 4-pin 70 Headphone Mic mic part of either/or - 3-pin headphone or mic 76 PCM 77 PCM Pan 79 Analog Loopback D/A -> A/D loopback 80 Digital Loopback playback -> capture loopback - 98 ----------------------- 106 Tone Control - Switch 107 Tone Control - Bass [all …]
|
| H A D | tracepoints.rst | 8 Tracepoints in ALSA PCM core 11 ALSA PCM core registers ``snd_pcm`` subsystem to kernel tracepoint system. 12 This subsystem includes two categories of tracepoints; for state of PCM buffer 13 and for processing of PCM hardware parameters. These tracepoints are available 18 Tracepoints for state of PCM buffer 19 ------------------------------------ 24 Tracepoints for processing of PCM hardware parameters 25 ----------------------------------------------------- 30 In a design of ALSA PCM core, data transmission is abstracted as PCM substream. 31 Applications manage PCM substream to maintain data transmission for PCM frames. [all …]
|
| H A D | compress-offload.rst | 2 ALSA Compress-Offload API 5 Pierre-Louis.Bossart <pierre-louis.bossart@linux.intel.com> 12 Since its early days, the ALSA API was defined with PCM support or 18 in system-on-chip designs, and DSPs are also integrated in audio 20 reduction of power consumption compared to host-based 26 ALSA PCM interface, a new 'Compressed Data' API is introduced to 27 provide a control and data-streaming interface for audio DSPs. 29 The design of this API was inspired by the 2-year experience with the 39 - separation between byte counts and time. Compressed formats may have 41 may vary from frame-to-frame. As a result, it is not possible to [all …]
|
| /linux/sound/drivers/ |
| H A D | dummy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include <sound/pcm.h> 46 #define USE_MIXER_VOLUME_LEVEL_MIN -50 49 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 51 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; 52 static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 129 struct snd_pcm *pcm; global() member 239 unsigned int rate; global() member 438 unsigned int period, rate; dummy_hrtimer_prepare() local 671 struct snd_pcm *pcm; snd_card_dummy_pcm() local [all...] |
| /linux/include/sound/ac97/ |
| H A D | regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 4 * Universal interface for Audio Codec '97 25 #define AC97_PCM 0x18 /* PCM Volume */ 33 /* range 0x28-0x3a - AUDIO AC'97 2.0 extensions */ 36 #define AC97_PCM_FRONT_DAC_RATE 0x2c /* PCM Front DAC Rate */ 37 #define AC97_PCM_SURR_DAC_RATE 0x2e /* PCM Surround DAC Rate */ 38 #define AC97_PCM_LFE_DAC_RATE 0x30 /* PCM LFE DAC Rate */ 39 #define AC97_PCM_LR_ADC_RATE 0x32 /* PCM LR ADC Rate */ 40 #define AC97_PCM_MIC_ADC_RATE 0x34 /* PCM MIC ADC Rate */ 44 /* range 0x3c-0x58 - MODEM */ [all …]
|
| /linux/sound/sh/ |
| H A D | sh_dac_audio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sh_dac_audio.c - SuperH DAC audio driver for ALSA 18 #include <sound/pcm.h> 44 int rate; member 55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer() 61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer() 67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset() 68 chip->processed = 0; in dac_audio_reset() 69 chip->empty = 1; in dac_audio_reset() 74 chip->wakeups_per_second = 1000000000 / chip->rate; in dac_audio_set_rate() [all …]
|
| /linux/sound/pci/ac97/ |
| H A D | ac97_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Universal interface for Audio Codec '97 18 #include <sound/pcm.h> 26 * PCM support 144 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument 151 if (pcm in get_slot_reg() 159 set_spdif_rate(struct snd_ac97 * ac97,unsigned short rate) set_spdif_rate() argument 243 snd_ac97_set_rate(struct snd_ac97 * ac97,int reg,unsigned int rate) snd_ac97_set_rate() argument 393 get_rates(struct ac97_pcm * pcm,unsigned int cidx,unsigned short slots,int dbl) get_rates() argument 436 const struct ac97_pcm *pcm; snd_ac97_pcm_assign() local 555 snd_ac97_pcm_open(struct ac97_pcm * pcm,unsigned int rate,enum ac97_pcm_cfg cfg,unsigned short slots) snd_ac97_pcm_open() argument 646 snd_ac97_pcm_close(struct ac97_pcm * pcm) snd_ac97_pcm_close() argument 692 struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); double_rate_hw_constraint_rate() local 701 struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); double_rate_hw_constraint_channels() local [all...] |
| H A D | ac97_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Universal interface for Audio Codec '97 19 * proc interface 46 snd_iprintf(buffer, "%-17s: %3d.%d dBV %c %2d/fs %s\n", in snd_ac97_proc_read_functions() 48 (info & 0x8000 ? -1 : 1) * ((info & 0x7000) >> 12) * 3 / 2, in snd_ac97_proc_read_functions() 50 info & 0x0400 ? 'X' : '-', in snd_ac97_proc_read_functions() [all...] |
| /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/sound/soc/tegra/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 tristate "SoC Audio for the Tegra System-on-Chip" 17 tristate "Tegra20 AC97 interface" 22 Tegra20 AC97 interface. You will also need to select the individual 33 tristate "Tegra20 I2S interface" 37 Tegra20 I2S interface. You will also need to select the individual 41 tristate "Tegra20 SPDIF interface" 43 Say Y or M if you want to add support for the Tegra20 SPDIF interface. 55 tristate "Tegra30 I2S interface" 59 Tegra30 I2S interface. You will also need to select the individual [all …]
|
| /linux/include/sound/ |
| H A D | ac97_codec.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 4 * Universal interface for Audio Codec '97 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 */ 56 /* specific - Conexant */ 64 /* specific - ALC */ 83 #define AC97_ALC650_SPSR_MASK 0x0f00 /* S/PDIF Sample Rate bits */ [all …]
|
| /linux/sound/usb/misc/ |
| H A D | ua101.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Edirol UA-101/UA-1000 driver 14 #include <sound/pcm.h> 19 MODULE_DESCRIPTION("Edirol UA-101/1000 driver"); 32 * This magic value optimizes memory usage efficiency for the UA-101's packet 55 __stringify(MIN_QUEUE_LENGTH)"-"__stringif 83 struct snd_pcm *pcm; global() member 86 unsigned int rate; global() member 888 find_format_descriptor(struct usb_interface * interface) find_format_descriptor() argument 1125 free_usb_related_resources(struct ua101 * ua,struct usb_interface * interface) free_usb_related_resources() argument 1158 ua101_probe(struct usb_interface * interface,const struct usb_device_id * usb_id) ua101_probe() argument 1303 ua101_disconnect(struct usb_interface * interface) ua101_disconnect() argument [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 13 * rate. There are three modes. Here _XX is either _rx or _tx. 14 * 0: 32.0- 48. 254 unsigned int rate = params_rate(hw_params); pcm_hw_params() local 392 struct snd_pcm *pcm; snd_efw_create_pcm_devices() local [all...] |
| /linux/drivers/most/ |
| H A D | most_snd.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sound.c - Sound component for Mostcore 16 #include <sound/pcm.h> 28 * struct channel - private structure to keep channel specific data 30 * @pcm_hardware: low-level hardware description 31 * @iface: interface for which the channel belongs to 42 * @copy_fn: copy function for PCM-specific format and width 93 while (i < bytes - 2) { in swap_copy24() 152 * get_channel - get pointer to channel 153 * @iface: interface structure [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/core/ |
| H A D | pcm_misc.c | 2 * PCM Interface - misc routines 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 #include <sound/pcm.h> 29 #define SND_PCM_FORMAT_UNKNOWN (-1) 37 signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */ 38 signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */ 52 .width = 8, .phys = 8, .le = -1, .signd = 1, 56 .width = 8, .phys = 8, .le = -1, .signd = 0, 108 .width = 32, .phys = 32, .le = 1, .signd = -1, 112 .width = 32, .phys = 32, .le = 0, .signd = -1, [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | tlv320aic26.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <sound/pcm.h> 61 /* --------------------------------------------------------------------- 62 * Digital Audio Interface Operations 68 struct snd_soc_component *component = dai->component; in aic26_hw_params() 73 dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", in aic26_hw_params() 75 dev_dbg(&aic26->spi->dev, "rate=%i width=%d\n", params_rate(params), in aic26_hw_params() 89 dev_dbg(&aic26->spi->dev, "bad rate\n"); return -EINVAL; in aic26_hw_params() 99 dev_dbg(&aic26->spi->dev, "bad format\n"); return -EINVAL; in aic26_hw_params() 109 jval = fsref / (aic26->mclk / 2048); in aic26_hw_params() [all …]
|
| /linux/sound/pci/ |
| H A D | ad1889.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * on the HP PA-RISC [BCJ]-xxx0 workstations. 7 * Copyright (C) 2004-2005, Kyle McMartin <kyle@parisc-linux.org> 8 * Copyright (C) 2005, Thibaut Varene <varenet@parisc-linux.org> 15 * Control Interface (mixe 83 struct snd_pcm *pcm; global() member 595 struct snd_pcm *pcm; snd_ad1889_pcm_init() local [all...] |