Home
last modified time | relevance | path

Searched +full:pcm +full:- +full:interface +full:- +full:rate (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/linux-6.14.4/Documentation/sound/soc/
Ddai.rst2 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-6.14.4/drivers/usb/gadget/function/
Du_uac1_legacy.c1 // 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-6.14.4/sound/usb/
Dusbaudio.h1 /* 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 …]
Dproc.c1 // 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 in Hz */
35 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read()
36 if (!atomic_read(&chip->shutdown)) in proc_audio_usbbus_read()
37 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read()
42 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read()
43 if (!atomic_read(&chip->shutdown)) in proc_audio_usbid_read()
45 USB_ID_VENDOR(chip->usb_id), in proc_audio_usbid_read()
[all …]
/linux-6.14.4/drivers/mtd/lpddr/
DKconfig1 # 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-6.14.4/sound/pci/mixart/
Dmixart.c1 // 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->pci->dev, in mixart_set_pipe_state()
77 "error mixart_set_pipe_state called with wrong pipe->status!\n"); in mixart_set_pipe_state()
78 return -EINVAL; /* function called with wrong pipe status */ in mixart_set_pipe_state()
92 dev_err(&mgr->pci->dev, in mixart_set_pipe_state()
101 group_state.pipe_uid = pipe->group_uid; in mixart_set_pipe_state()
[all …]
/linux-6.14.4/Documentation/sound/cards/
Dcmipci.rst2 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-6.14.4/Documentation/sound/designs/
Dcontrol-names.rst8 ---------------
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 …]
Dtracepoints.rst8 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 …]
Dcompress-offload.rst2 ALSA Compress-Offload API
5 Pierre-Louis.Bossart <pierre-[email protected]>
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-6.14.4/include/sound/ac97/
Dregs.h1 /* 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-6.14.4/sound/drivers/
Ddummy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <sound/pcm.h>
45 #define USE_MIXER_VOLUME_LEVEL_MIN -50
48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
50 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
51 static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL};
52 static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1};
53 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8};
54 //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
71 MODULE_PARM_DESC(pcm_devs, "PCM devices # (0-4) for dummy driver.");
[all …]
/linux-6.14.4/sound/sh/
Dsh_dac_audio.c1 // 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-6.14.4/sound/pci/ac97/
Dac97_pcm.c1 // 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->spdif) in get_slot_reg()
153 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg()
154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
156 return rate_cregs[slot - 3]; in get_slot_reg()
159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) in set_spdif_rate() argument
[all …]
Dac97_proc.c1 // 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()
97 static const char *spdif_rates[4] = { " Rate=44.1kHz", " Rate=res", " Rate=48kHz", " Rate=32kHz" }; in snd_ac97_proc_read_main()
98 …static const char *spdif_rates_cs4205[4] = { " Rate=48kHz", " Rate=44.1kHz", " Rate=res", " Rate=r… in snd_ac97_proc_read_main()
101 snd_ac97_get_name(NULL, ac97->id, name, 0); in snd_ac97_proc_read_main()
102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/net/bluetooth/
Dbrcm,bluetooth.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <[email protected]>
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-6.14.4/sound/soc/tegra/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "SoC Audio for the Tegra System-on-Chip"
15 tristate "Tegra20 AC97 interface"
20 Tegra20 AC97 interface. You will also need to select the individual
31 tristate "Tegra20 I2S interface"
35 Tegra20 I2S interface. You will also need to select the individual
39 tristate "Tegra20 SPDIF interface"
41 Say Y or M if you want to add support for the Tegra20 SPDIF interface.
53 tristate "Tegra30 I2S interface"
57 Tegra30 I2S interface. You will also need to select the individual
[all …]
/linux-6.14.4/include/sound/
Dac97_codec.h1 /* 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-6.14.4/sound/usb/misc/
Dua101.c1 // 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)"-"__stringify(MAX_QUEUE_LENGTH));
83 struct snd_pcm *pcm; member
86 unsigned int rate; member
92 /* FIFO to synchronize playback rate to capture rate */
134 case -ENODEV: in usb_error_string()
[all …]
/linux-6.14.4/sound/firewire/fireworks/
Dfireworks_pcm.c1 // 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.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
[all …]
/linux-6.14.4/drivers/most/
Dmost_snd.c1 // 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-6.14.4/sound/soc/renesas/
Dmigor.c1 // SPDX-License-Identifier: GPL-2.0
3 // ALSA SoC driver for Migo-R
5 // Copyright (C) 2009-2010 Guennadi Liakhovetski <[email protected]>
17 #include <sound/pcm.h>
40 .rate = 0, /* initialised at run-time */
51 unsigned int rate = params_rate(params); in migor_hw_params() local
58 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8978_OPCLKRATE, rate * 512); in migor_hw_params()
62 codec_freq = rate * 512; in migor_hw_params()
68 dev_dbg(codec_dai->dev, "%s: configure %luHz\n", __func__, codec_freq); in migor_hw_params()
85 use_count--; in migor_hw_free()
[all …]
/linux-6.14.4/sound/core/
Dpcm_misc.c2 * 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-6.14.4/sound/pci/lx6464es/
Dlx6464es.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- linux-c -*- *
4 * ALSA driver for the digigram lx6464es interface
16 #include <sound/pcm.h>
65 void __iomem *port_dsp_bar; /* memory port (32-bit,
66 * non-prefetchable,
78 u32 board_sample_rate; /* sample rate read from
86 /* pcm */
87 struct snd_pcm *pcm; member
/linux-6.14.4/sound/usb/line6/
Dpcm.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2004-2010 Markus Grabner (line6@grabner-graz.at)
9 PCM interface to POD series devices.
15 #include <sound/pcm.h>
35 Get substream from Line 6 PCM data structure
38 (line6pcm->pcm->streams[stream].substream)
41 PCM mode bits.
43 There are several features of the Line 6 USB driver which require PCM
45 *) PCM playback and capture via ALSA
51 subsystems with respect to PCM usage.
[all …]

12345678910>>...13