| /OK3568_Linux_fs/external/rk_pcba_test/tinyalsa/ |
| H A D | pcm.c | 1 /* pcm.c 158 struct pcm { struct 175 unsigned int pcm_get_buffer_size(struct pcm *pcm) in pcm_get_buffer_size() argument 177 return pcm->buffer_size; in pcm_get_buffer_size() 180 const char* pcm_get_error(struct pcm *pcm) in pcm_get_error() argument 182 return pcm->error; in pcm_get_error() 185 static int oops(struct pcm *pcm, int e, const char *fmt, ...) in oops() argument 191 vsnprintf(pcm->error, PCM_ERROR_MAX, fmt, ap); in oops() 193 sz = strlen(pcm->error); in oops() 196 snprintf(pcm->error + sz, PCM_ERROR_MAX - sz, in oops() [all …]
|
| H A D | asoundlib.h | 40 * PCM API 43 struct pcm; 60 /* PCM runtime states */ 108 /* PCM parameters */ 139 struct pcm *pcm_open(unsigned int card, unsigned int device, 141 int pcm_close(struct pcm *pcm); 142 int pcm_is_ready(struct pcm *pcm); 144 /* Obtain the parameters for a PCM */ 154 int pcm_get_config(struct pcm *pcm, struct pcm_config *config); 155 int pcm_set_config(struct pcm *pcm, struct pcm_config *config); [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/ |
| H A D | soc-generic-dmaengine-pcm.c | 10 #include <sound/pcm.h> 28 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument 31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 39 * @substream: PCM substream 80 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_hw_params() local 90 if (!pcm->config) in dmaengine_pcm_hw_params() 93 prepare_slave_config = pcm->config->prepare_slave_config; in dmaengine_pcm_hw_params() 113 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_set_runtime_hwparams() local 114 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams() [all …]
|
| /OK3568_Linux_fs/kernel/sound/core/ |
| H A D | pcm.c | 3 * Digital Audio (PCM) abstract layer 16 #include <sound/pcm.h> 24 MODULE_DESCRIPTION("Midlevel PCM code for ALSA."); 33 static int snd_pcm_free(struct snd_pcm *pcm); 40 struct snd_pcm *pcm; in snd_pcm_get() local 42 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get() 43 if (pcm->card == card && pcm->device == device) in snd_pcm_get() 44 return pcm; in snd_pcm_get() 51 struct snd_pcm *pcm; in snd_pcm_next() local 53 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next() [all …]
|
| H A D | pcm_memory.c | 3 * Digital Audio (PCM) abstract layer 15 #include <sound/pcm.h> 22 MODULE_PARM_DESC(preallocate_dma, "Preallocate DMA memory when the PCM devices are initialized."); 73 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 86 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 88 substream->pcm->name, orig_size); in preallocate_pcm_pages() 97 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_dma_free() 102 * @substream: the pcm substream instance 112 * snd_pcm_lib_preallocate_free_for_all - release all pre-allocated buffers on the pcm 113 * @pcm: the pcm instance [all …]
|
| H A D | pcm_dmaengine.c | 7 * imx-pcm-dma-mx2.c, Copyright 2009 Sascha Hauer <s.hauer@pengutronix.de> 8 * mxs-pcm.c, Copyright (C) 2011 Freescale Semiconductor, Inc. 9 * ep93xx-pcm.c, Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> 16 #include <sound/pcm.h> 46 * @substream: PCM substream 51 * and hw_params in a dmaengine based PCM driver implementation. 91 * @substream: PCM substream 187 * snd_dmaengine_pcm_trigger - dmaengine based PCM trigger implementation 188 * @substream: PCM substream 193 * This function can be used as the PCM trigger callback for dmaengine based PCM [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/samsung/ |
| H A D | pcm.c | 3 // ALSA SoC Audio Layer - S3C PCM-Controller driver 20 #include "pcm.h" 106 * struct s3c_pcm_info - S3C PCM Controller information 112 * @pclk: the PCLK_PCM (pcm) clock pointer 154 static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_txctrl() argument 156 void __iomem *regs = pcm->regs; in s3c_pcm_snd_txctrl() 176 if (!pcm->idleclk) in s3c_pcm_snd_txctrl() 185 static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_rxctrl() argument 187 void __iomem *regs = pcm->regs; in s3c_pcm_snd_rxctrl() 207 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/alsa-lib/ |
| HD | alsa-lib-1.2.7.2.tar.bz2 | ... alsa-lib-1.2.7.2/src/pcm/pcm.c
alsa-lib-1.2. ... |
| /OK3568_Linux_fs/external/rockit/mpi/sdk/deps/etc/ |
| H A D | asound.conf | 1 pcm.!default 4 playback.pcm "softvol_play0" 5 capture.pcm "codec_mic" 8 pcm.card0 { 10 playback.pcm "softvol_play0" 13 pcm.record0 { 15 capture.pcm "codec_mic" 18 pcm.codec_mic { 21 pcm "hw:1,0" 25 pcm.plug_play0 { [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/sof/ |
| H A D | pcm.c | 10 // PCM Layer, interface between ALSA and IPC. 51 dev_err(scomp->dev, "error: got wrong reply for PCM %d\n", in sof_pcm_dsp_params() 52 spcm->pcm.pcm_id); in sof_pcm_dsp_params() 58 * sof pcm period elapse work 70 * sof pcm period elapse, this could be called at irq thread context. 89 * when the PCM is done draining or xrun happened, a STOP IPC will in snd_sof_pcm_period_elapsed() 127 struct sof_ipc_pcm_params pcm; in sof_pcm_hw_params() local 149 dev_dbg(component->dev, "pcm: hw params stream %d dir %d\n", in sof_pcm_hw_params() 150 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params() 152 memset(&pcm, 0, sizeof(pcm)); in sof_pcm_hw_params() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/ac97/ |
| H A D | ac97_pcm.c | 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() 393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument 402 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates() 411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates() 420 * snd_ac97_pcm_assign - assign AC97 slots to given PCM streams [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sound/designs/ |
| H A D | oss-emulation.rst | 12 The OSS emulation for PCM, mixer and sequencer devices is implemented 13 as add-on kernel modules, snd-pcm-oss, snd-mixer-oss and snd-seq-oss. 14 When you need to access the OSS PCM, mixer or sequencer devices, the 48 PCM: 73 As seen above, PCM and MIDI may have two devices. Usually, the first 74 PCM device (``hw:0,0`` in ALSA) is mapped to /dev/dsp and the secondary 79 snd-pcm-oss and snd-rawmidi. In the case of PCM, the following 80 options are available for snd-pcm-oss: 83 PCM device number assigned to /dev/dspX 86 PCM device number assigned to /dev/adspX [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 24 Tracepoints for processing of PCM hardware parameters 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. 32 Before starting the data transmission, applications need to configure PCM 33 substream. In this procedure, PCM hardware parameters are decided by [all …]
|
| H A D | procfile.rst | 42 pcm 43 Lists the currently available PCM devices in format of 66 When PCM devices are available on this card, you can see directories 67 like pcm0p or pcm1c. They hold the PCM information for each PCM 68 stream. The number after ``pcm`` is the PCM device number from 0, and 85 PCM Proc Files 88 ``card*/pcm*/info`` 89 The general information of this PCM device: card #, device #, 92 ``card*/pcm*/xrun_debug`` 96 invalid PCM position debug/check of ALSA PCM middle layer. [all …]
|
| /OK3568_Linux_fs/buildroot/package/alsa-lib/ |
| H A D | 0003-add-gain-for-audio-input.patch | 8 src/pcm/pcm.c | 19 +++++++++++++++++++ 11 diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c 13 --- a/src/pcm/pcm.c 14 +++ b/src/pcm/pcm.c 37 /* check whether the PCM is in the unexpected state */ 38 static int bad_pcm_state(snd_pcm_t *pcm, unsigned int supported_states, 40 @@ -1813,6 +1831,7 @@ snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes… 42 DCBDoing((void*)buffer, tmp * pcm->frame_bits / 8 / sizeof(int16_t), pcm->channels); 44 + add_gain((void*)buffer, tmp * pcm->frame_bits / 8 / sizeof(int16_t), pcm->channels);
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 147 struct hdac_hdmi_pcm *pcm; in hdac_hdmi_get_pcm_from_cvt() local 149 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt() 150 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt() 151 return pcm; in hdac_hdmi_get_pcm_from_cvt() 157 static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, in hdac_hdmi_jack_report() argument 166 * for the first time where same PCM is attached to multiple in hdac_hdmi_jack_report() 169 if (pcm->jack_event == 0) { in hdac_hdmi_jack_report() 171 "jack report for pcm=%d\n", in hdac_hdmi_jack_report() 172 pcm->pcm_id); in hdac_hdmi_jack_report() 173 snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, in hdac_hdmi_jack_report() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/rockchip/ |
| H A D | rockchip_multi_dais_pcm.c | 3 * ALSA SoC Audio Layer - Rockchip Multi-DAIS-PCM driver 14 #include <sound/pcm.h> 55 static struct dma_chan *to_chan(struct dmaengine_mpcm *pcm, in to_chan() argument 61 for (i = 0; i < pcm->mdais->num_dais; i++) { in to_chan() 62 chan = substream->stream ? pcm->rx_chans[i] : pcm->tx_chans[i]; in to_chan() 70 static struct device *dmaengine_dma_dev(struct dmaengine_mpcm *pcm, in dmaengine_dma_dev() argument 75 chan = to_chan(pcm, substream); in dmaengine_dma_dev() 385 struct dmaengine_mpcm *pcm = soc_component_to_mpcm(component); in dmaengine_mpcm_hw_params() local 395 maps = pcm->mdais->playback_channel_maps; in dmaengine_mpcm_hw_params() 397 maps = pcm->mdais->capture_channel_maps; in dmaengine_mpcm_hw_params() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/boards/ |
| H A D | sof_sdw_hdmi.c | 31 struct hdmi_pcm *pcm; in sof_sdw_hdmi_init() local 33 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_sdw_hdmi_init() 34 if (!pcm) in sof_sdw_hdmi_init() 37 /* dai_link id is 1:1 mapped to the PCM device */ in sof_sdw_hdmi_init() 38 pcm->device = rtd->dai_link->id; in sof_sdw_hdmi_init() 39 pcm->codec_dai = dai; in sof_sdw_hdmi_init() 41 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_sdw_hdmi_init() 50 struct hdmi_pcm *pcm; in sof_sdw_hdmi_card_late_probe() local 61 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct hdmi_pcm, in sof_sdw_hdmi_card_late_probe() 63 component = pcm->codec_dai->component; in sof_sdw_hdmi_card_late_probe() [all …]
|
| H A D | skl_hda_dsp_common.c | 11 #include <sound/pcm.h> 25 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_add_pcm() local 28 pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); in skl_hda_hdmi_add_pcm() 29 if (!pcm) in skl_hda_hdmi_add_pcm() 34 pcm->codec_dai = snd_soc_card_get_codec_dai(card, dai_name); in skl_hda_hdmi_add_pcm() 35 if (!pcm->codec_dai) in skl_hda_hdmi_add_pcm() 38 pcm->device = device; in skl_hda_hdmi_add_pcm() 39 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skl_hda_hdmi_add_pcm() 141 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_jack_init() local 148 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skl_hda_hdmi_jack_init() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sound/cards/ |
| H A D | sb-live-mixer.rst | 15 IEC958 (S/PDIF) raw PCM 18 This PCM device (it's the 4th PCM device (index 3!) and first subdevice 22 to 8 raw PCM devices operating at 48kHz, 16-bit little endian. It would 64 This control is used to attenuate samples for left and right PCM FX-bus 65 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples. 66 The result samples are forwarded to the front DAC PCM slots of the AC97 codec. 70 This control is used to attenuate samples for left and right PCM FX-bus 71 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples. 77 This control is used to attenuate samples for left and right PCM FX-bus 78 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples. [all …]
|
| H A D | audigy-mixer.rst | 47 name='PCM Front Playback Volume',index=0 49 This control is used to attenuate samples for left and right front PCM FX-bus 50 accumulators. ALSA uses accumulators 8 and 9 for left and right front PCM 51 samples for 5.1 playback. The result samples are forwarded to the front DAC PCM 54 name='PCM Surround Playback Volume',index=0 56 This control is used to attenuate samples for left and right surround PCM FX-bus 57 accumulators. ALSA uses accumulators 2 and 3 for left and right surround PCM 58 samples for 5.1 playback. The result samples are forwarded to the surround DAC PCM 61 name='PCM Center Playback Volume',index=0 63 This control is used to attenuate samples for center PCM FX-bus accumulator. [all …]
|
| /OK3568_Linux_fs/buildroot/package/pcm-tools/ |
| H A D | pcm-tools.mk | 3 # pcm-tools 8 PCM_TOOLS_SITE = $(call github,opcm,pcm,$(PCM_TOOLS_VERSION)) 13 pcm-core pcm-iio pcm-lspci pcm-memory pcm-msr pcm-numa \ 14 pcm-pcicfg pcm-pcie pcm-power pcm-sensor pcm-tsx pcm
|
| /OK3568_Linux_fs/kernel/sound/pci/lola/ |
| H A D | lola_pcm.c | 14 #include <sound/pcm.h> 24 return &chip->pcm[substream->stream]; in lola_get_pcm() 29 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_get_stream() local 31 return &pcm->streams[idx]; in lola_get_stream() 128 if (s->pcm->card != substream->pcm->card) in lola_sync_wait_for_fifo() 159 if (s->pcm->card != substream->pcm->card) in lola_sync_pause() 213 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_pcm_open() local 226 runtime->hw.channels_max = pcm->num_streams - str->index; in lola_pcm_open() 246 static void lola_cleanup_slave_streams(struct lola_pcm *pcm, in lola_cleanup_slave_streams() argument 250 for (i = str->index + 1; i < pcm->num_streams; i++) { in lola_cleanup_slave_streams() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/au88x0/ |
| H A D | au88x0_pcm.c | 6 * Vortex PCM ALSA driver. 14 #include <sound/pcm.h> 146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open() 148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open() 152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open() 166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open() 167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open() 172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open() 219 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params() 220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/tegra/ |
| H A D | tegra_pcm.c | 3 * tegra_pcm.c - Tegra PCM driver 21 #include <sound/pcm.h> 106 "dmaengine pcm open failed with err %d (%s)\n", ret, in tegra_pcm_open() 204 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in tegra_pcm_mmap() 216 static int tegra_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream, in tegra_pcm_preallocate_dma_buffer() argument 219 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in tegra_pcm_preallocate_dma_buffer() 222 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in tegra_pcm_preallocate_dma_buffer() 228 buf->dev.dev = pcm->card->dev; in tegra_pcm_preallocate_dma_buffer() 234 static void tegra_pcm_deallocate_dma_buffer(struct snd_pcm *pcm, int stream) in tegra_pcm_deallocate_dma_buffer() argument 239 substream = pcm->streams[stream].substream; in tegra_pcm_deallocate_dma_buffer() [all …]
|