Home
last modified time | relevance | path

Searched +full:pcm +full:- +full:sync +full:- +full:mode (Results 1 – 25 of 120) sorted by relevance

12345

/linux/Documentation/sound/soc/
H A Ddai.rst6 SoC controllers and portable audio CODECs today, namely AC97, I2S and PCM.
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
54 while sync runs at the sample rate. PCM also supports Time Division
56 is sometimes referred to as network mode).
58 Common PCM operating modes:-
60 Mode A
61 MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
[all …]
/linux/sound/soc/mediatek/mt6797/
H A Dmt6797-dai-pcm.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "mt6797-afe-common.h"
11 #include "mt6797-interconnection.h"
12 #include "mt6797-reg.h"
30 /* bck sync length = 1 */
32 /* bck sync length = PCM_INTF_CON1[9:13] */
42 /* slave mode & external modem uses different crystal */
44 /* slave mode & external modem uses the same crystal */
122 /* inter-connections */
155 {"PCM 1 Playback", NULL, "PCM_1_PB_CH1"},
[all …]
/linux/sound/soc/mediatek/mt8183/
H A Dmt8183-dai-pcm.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "mt8183-afe-common.h"
11 #include "mt8183-interconnection.h"
12 #include "mt8183-reg.h"
30 /* bck sync length = 1 */
32 /* bck sync length = PCM_INTF_CON1[9:13] */
42 /* slave mode & external modem uses different crystal */
44 /* slave mode & external modem uses the same crystal */
122 /* inter-connections */
155 {"PCM 1 Playback", NULL, "PCM_1_PB_CH1"},
[all …]
/linux/Documentation/devicetree/bindings/net/bluetooth/
H A 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 <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/mediatek/mt8186/
H A Dmt8186-dai-pcm.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "mt8186-afe-common.h"
11 #include "mt8186-afe-gpio.h"
12 #include "mt8186-interconnection.h"
37 /* bck sync length = 1 */
39 /* bck sync length = PCM_INTF_CON1[9:13] */
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()
[all …]
/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-dai-pcm.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "mt8192-afe-common.h"
13 #include "mt8192-interconnection.h"
31 /* bck sync length = 1 */
33 /* bck sync length = PCM_INTF_CON1[9:13] */
43 /* slave mode & external modem uses different crystal */
45 /* slave mode & external modem uses the same crystal */
178 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_pcm_en_event()
181 dev_info(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_pcm_en_event()
182 __func__, w->name, event); in mtk_pcm_en_event()
[all …]
/linux/sound/usb/
H A Dcard.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 #define MAX_PACKS_HS (MAX_PACKS * 8) /* in high speed mode */
9 #define SYNC_URBS 4 /* always four urbs for sync */
16 unsigned int fmt_type; /* USB audio format type (1-3) */
19 unsigned int frame_size; /* samples per frame for non-audio */
28 unsigned char sync_ep; /* sync endpoint number */
29 unsigned char sync_iface; /* sync EP interface */
30 unsigned char sync_altsetting; /* sync EP alternate setting */
31 unsigned char sync_ep_idx; /* sync EP array index */
69 int opened; /* open refcount; protect with chip->mutex */
[all …]
H A Dusbaudio.h1 /* 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 */
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)
91 dev_dbg(&(chip)->dev->dev, fmt, ##args)
[all …]
H A Dpcm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/usb/audio-v2.h>
14 #include <sound/pcm.h>
22 #include "pcm.h"
40 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay()
41 queued = bytes_to_frames(runtime, subs->inflight_byte in snd_usb_pcm_delay()
1824 snd_usb_set_pcm_ops(struct snd_pcm * pcm,int stream) snd_usb_set_pcm_ops() argument
1835 struct snd_pcm *pcm = subs->stream->pcm; snd_usb_preallocate_buffer() local
[all...]
H A Dproc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <sound/pcm.h>
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->bu in proc_audio_usbbus_read()
[all...]
/linux/sound/usb/line6/
H A 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 …]
/linux/drivers/accessibility/speakup/
H A Dspeakup_dtlk.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* speakup_dtlk.h - header file for speakups DoubleTalk driver. */
10 #define TTS_SPEAKING 0x40 /* mask for SYNC bit, which is nonzero
12 * output with TTS, PCM or CVSD
23 * bit goes zero 2-3 usec after
24 * writing, and goes 1 again 180-190
30 * buffer. AF is always 0 in the PCM,
36 * (TTS or PCM) buffer. AE is always 1
42 u_short serial_number; /* 0-7Fh:0-7Fh */
44 u_char mode; /* 0=Character; 1=Phoneme; 2=Text */ member
[all …]
/linux/drivers/isdn/hardware/mISDN/
H A Dhfcmulti.c1 // 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. (otherwise auto)
[all …]
H A Dhfc_multi.h1 /* SPDX-License-Identifier: GPL-2.0 */
33 * also registers are assigned differen for HFC-4s/8s and HFC-E1
41 struct dchannel *dch; /* link if channel is a D-channel */
42 struct bchannel *bch; /* link if channel is a B-channel */
45 int nt_timer; /* -1 if off, 0 if elapsed, >0 if running */
49 int sync; /* sync state (used by E1) */ member
51 int slot_tx; /* current pcm slot */
52 int bank_tx; /* current pcm bank */
58 int Zfill; /* rx-fifo level on last hfcmulti_tx */
84 #define HFC_CFG_DIS_ECHANNEL 2 /* disable E-channel processing */
[all …]
/linux/include/linux/
H A Ddtlk.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 #define TTS_SPEAKING 0x40 /* mask for SYNC bit, which is nonzero
19 output with TTS, PCM or CVSD
28 bit goes zero 2-3 usec after
29 writing, and goes 1 again 180-190
35 PCM, TGN and CVSD modes. */
39 input (TTS or PCM) buffer. AE is
67 unsigned short serial_number; /* 0-7Fh:0-7Fh */
69 unsigned char mode; /* 0=Character; 1=Phoneme; 2=Text */ member
70 unsigned char punc_level; /* nB; 0-7 */
[all …]
/linux/sound/pci/rme9652/
H A Drme9652.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 1999 IEM - Winfried Ritsch
6 * Copyright (c) 1999-2001 Paul Davis
19 #include <sound/pcm.h>
26 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
55 /* Preferred sync sourc
236 struct snd_pcm *pcm; global() member
1063 rme9652_set_sync_mode(struct snd_rme9652 * rme9652,int mode) rme9652_set_sync_mode() argument
2358 struct snd_pcm *pcm; snd_rme9652_create_pcm() local
[all...]
H A Dhdspm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * Modified 2006-06-01 for AES32 support by Remy Bruno
12 * Modified 2009-04-13 for proper metering by Florian Faber
15 * Modified 2009-0
1048 struct snd_pcm *pcm; /* has one pcm */ global() member
2542 hdspm_set_system_clock_mode(struct hdspm * hdspm,int mode) hdspm_set_system_clock_mode() argument
2616 hdspm_set_clock_source(struct hdspm * hdspm,int mode) hdspm_set_clock_source() argument
3408 hdspm_set_qs_wire(struct hdspm * hdspm,int mode) hdspm_set_qs_wire() argument
3481 hdspm_set_tristate(struct hdspm * hdspm,int mode,u32 regmask) hdspm_set_tristate() argument
3562 hdspm_set_madi_speedmode(struct hdspm * hdspm,int mode) hdspm_set_madi_speedmode() argument
3890 int status, lock, sync; hdspm_s1_sync_check() local
3907 int status, lock = 0, sync = 0; hdspm_sync_in_sync_check() local
3943 int status2, lock, sync; hdspm_aes_sync_check() local
5174 unsigned int lock, sync; snd_hdspm_proc_read_raydat() local
6374 struct snd_pcm *pcm; snd_hdspm_preallocate_memory() local
6406 struct snd_pcm *pcm; snd_hdspm_create_pcm() local
[all...]
/linux/sound/pci/
H A Dsis7019.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2004-2007, David Dillow
7 * Inspired by the Trident 4D-WaveDX/NX driver.
28 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
52 * we use the hardware's built-in Mid-Loop Interrupt and End-Loo
102 struct snd_pcm *pcm; global() member
208 int sync; sis_update_voice() local
860 struct snd_pcm *pcm; sis_pcm_create() local
[all...]
/linux/include/sound/
H A Dpcm.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Digital Audio (PCM) abstract layer
8 * Abramo Bagnara <abramo@alsa-project.org>
21 #define snd_pcm_substream_chip(substream) ((substream)->private_data)
22 #define snd_pcm_chip(pcm) ((pcm)->private_data) argument
86 #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2)
106 #define SNDRV_PCM_POS_XRUN ((snd_pcm_uframes_t)-1)
132 #define SNDRV_PCM_RATE_KNOT (1U<<31) /* supports more non-continuous rates */
160 // available bit count in most significant bit. It's for the case of so-called 'left-justified' or
161 // `right-padding` sample which has less width than 32 bit.
[all …]
/linux/sound/soc/stm/
H A Dstm32_sai_sub.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
10 #include <linux/clk-provider.h>
41 #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK)
42 #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE)
47 #define STM_SAI_IS_SUB_A(x) ((x)->id == STM_SAI_A_ID)
53 #define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdi
123 int sync; global() member
[all...]
/linux/sound/soc/fsl/
H A Dfsl_ssi.c1 // 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 …]
/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c1 // SPDX-License-Identifier: GPL-2.0
3 * PC-Speaker driver for Linux
5 * Copyright (C) 1993-1997 Michael Beck
6 * Copyright (C) 1997-2001 David Woodhouse
7 * Copyright (C) 2001-2008 Stas Sergeev
16 #include <sound/pcm.h>
28 * This avoids spinlock messes and long-running irq contexts
43 * called at the trigger-start and in hrtimer callback
53 if (chip->thalf) { in pcsp_timer_update()
54 outb(chip->val61, 0x61); in pcsp_timer_update()
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dcs35l36.txt5 - compatible : "cirrus,cs35l36"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
13 - cirrus,boost-ctl-millivolt : Boost Voltage Value. Configures the boost
18 - cirrus,boost-peak-milliamp : Boost-converter peak current limit in mA.
24 - cirrus,boost-ind-nanohenry : Inductor estimation LBST reference value.
32 - cirrus,multi-amp-mode : Boolean to determine if there are more than
33 one amplifier in the system. If more than one it is best to Hi-Z the ASP
36 - cirrus,boost-ctl-select : Boost converter control source selection.
39 0x00 - Control Port Value
[all …]
/linux/drivers/clk/st/
H A Dclk-flexgen.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * clk-flexgen.c
5 * Copyright (C) ST-Microelectronics SA 2013
6 * Author: Maxime Coquelin <maxime.coquelin@st.com> for ST-Microelectronics.
10 #include <linux/clk-provider.h>
26 bool mode; member
36 /* Pre-divisor's gate */
38 /* Pre-divisor */
44 /* Asynchronous mode control */
45 struct clk_gate sync; member
[all …]
/linux/sound/core/
H A Dpcm_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Digital Audio (PCM) abstract layer
5 * Abramo Bagnara <abramo@alsa-project.org>
17 #include <sound/pcm.h>
43 delta = new_ptr - ptr; in update_silence_vars()
47 delta += runtime->boundary; in update_silence_vars()
48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars()
49 runtime->silence_filled -= delta; in update_silence_vars()
51 runtime->silence_filled = 0; in update_silence_vars()
52 runtime->silence_start = new_ptr; in update_silence_vars()
[all …]

12345