/usr/src/linux-headers-5.15.0-190/include/sound
NameSizeModeActions
ac97/-0755rm
sof/-0755rm
ac97_codec.h160440644editdlrm
aci.h24580644editdlrm
ad1816a.h48430644editdlrm
ad1843.h15160644editdlrm
adau1373.h7060644editdlrm
ak4xxx-adda.h27240644editdlrm
ak4113.h104610644editdlrm
ak4114.h97730644editdlrm
ak4117.h85420644editdlrm
ak4531_codec.h24780644editdlrm
ak4641.h4760644editdlrm
alc5623.h5360644editdlrm
asequencer.h29750644editdlrm
asound.h5900644editdlrm
asoundef.h164030644editdlrm
compress_driver.h79860644editdlrm
control.h99580644editdlrm
core.h158950644editdlrm
cs35l33.h8880644editdlrm
cs35l34.h7410644editdlrm
cs35l35.h22670644editdlrm
cs35l36.h7720644editdlrm
cs35l41.h308890644editdlrm
cs42l42.h351490644editdlrm
cs42l52.h5920644editdlrm
cs42l56.h10460644editdlrm
cs42l73.h3610644editdlrm
cs4231-regs.h77850644editdlrm
cs4271.h9610644editdlrm
cs8403.h81380644editdlrm
cs8427.h99540644editdlrm
da7213.h10320644editdlrm
da7218.h24680644editdlrm
da7219-aad.h22630644editdlrm
da7219.h9980644editdlrm
da9055.h7070644editdlrm
designware_i2s.h16310644editdlrm
dmaengine_pcm.h69130644editdlrm
emu10k1.h907220644editdlrm
emu10k1_synth.h6930644editdlrm
emu8000.h33330644editdlrm
emu8000_reg.h97670644editdlrm
emux_legacy.h48110644editdlrm
emux_synth.h69480644editdlrm
es1688.h29230644editdlrm
graph_card.h2710644editdlrm
gus.h201190644editdlrm
hdaudio.h215380644editdlrm
hdaudio_ext.h56800644editdlrm
hda_chmap.h26600644editdlrm
hda_codec.h176690644editdlrm
hda_component.h20850644editdlrm
hda_hwdep.h7360644editdlrm
hda_i915.h5890644editdlrm
hda_register.h106550644editdlrm
hda_regmap.h69340644editdlrm
hda_verbs.h172960644editdlrm
hdmi-codec.h30110644editdlrm
hwdep.h19250644editdlrm
i2c.h28570644editdlrm
info.h80530644editdlrm
initval.h24840644editdlrm
intel-dsp-config.h8690644editdlrm
intel-nhlt.h28510644editdlrm
jack.h31720644editdlrm
l3.h5240644editdlrm
madera-pdata.h19960644editdlrm
max9768.h7290644editdlrm
max98088.h10740644editdlrm
max98090.h5340644editdlrm
max98095.h13570644editdlrm
memalloc.h26420644editdlrm
minors.h37380644editdlrm
mixer_oss.h17730644editdlrm
mpu401.h39050644editdlrm
omap-hdmi-audio.h9710644editdlrm
opl3.h119090644editdlrm
opl4.h4590644editdlrm
pcm-indirect.h51590644editdlrm
pcm.h536840644editdlrm
pcm_drm_eld.h1830644editdlrm
pcm_iec958.h5970644editdlrm
pcm_oss.h20630644editdlrm
pcm_params.h88640644editdlrm
pt2258.h5130644editdlrm
pxa2xx-lib.h21900644editdlrm
rawmidi.h58810644editdlrm
rt286.h3140644editdlrm
rt298.h3730644editdlrm
rt1015.h2830644editdlrm
rt5514.h3990644editdlrm
rt5659.h8800644editdlrm
rt5660.h5780644editdlrm
rt5663.h4760644editdlrm
rt5665.h7610644editdlrm
rt5668.h6460644editdlrm
rt5682.h9010644editdlrm
s3c24xx_uda134x.h2290644editdlrm
sb.h105500644editdlrm
sb16_csp.h21000644editdlrm
seq_device.h21650644editdlrm
seq_kernel.h33780644editdlrm
seq_midi_emul.h67570644editdlrm
seq_midi_event.h13560644editdlrm
seq_oss.h22640644editdlrm
seq_oss_legacy.h3600644editdlrm
seq_virmidi.h21230644editdlrm
sh_dac_audio.h4410644editdlrm
sh_fsi.h6930644editdlrm
simple_card.h5290644editdlrm
simple_card_utils.h83510644editdlrm
snd_wavefront.h56200644editdlrm
soc-acpi-intel-match.h20740644editdlrm
soc-acpi.h56370644editdlrm
soc-card.h29440644editdlrm
soc-component.h193870644editdlrm
soc-dai.h199570644editdlrm
soc-dapm.h329570644editdlrm
soc-dpcm.h55230644editdlrm
soc-jack.h38220644editdlrm
soc-link.h11720644editdlrm
soc-topology.h58350644editdlrm
soc.h479190644editdlrm
sof.h25960644editdlrm
soundfont.h39030644editdlrm
spear_dma.h3500644editdlrm
spear_spdif.h3450644editdlrm
sta32x.h10150644editdlrm
sta350.h14740644editdlrm
tas2552-plat.h2830644editdlrm
tas5086.h2100644editdlrm
tea6330t.h4680644editdlrm
timer.h51090644editdlrm
tlv.h16270644editdlrm
tlv320aic3x.h17770644editdlrm
tlv320aic32x4.h13200644editdlrm
tlv320dac33-plat.h5740644editdlrm
tpa6130a2-plat.h2910644editdlrm
uda134x.h4510644editdlrm
uda1380.h3350644editdlrm
util_mem.h16230644editdlrm
vx_core.h150550644editdlrm
wavefront.h185180644editdlrm
wm0010.h4660644editdlrm
wm1250-ev1.h5100644editdlrm
wm2000.h4790644editdlrm
wm2200.h13530644editdlrm
wm5100.h11290644editdlrm
wm8903.h153770644editdlrm
wm8904.h73890644editdlrm
wm8955.h4420644editdlrm
wm8960.h8880644editdlrm
wm8962.h16940644editdlrm
wm8993.h10760644editdlrm
wm8996.h12890644editdlrm
wm9081.h5150644editdlrm
wm9090.h6340644editdlrm
wss.h79490644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/include/sound/dmaengine_pcm.h (6913B)
/* SPDX-License-Identifier: GPL-2.0+ * * Copyright (C) 2012, Analog Devices Inc. * Author: Lars-Peter Clausen */ #ifndef __SOUND_DMAENGINE_PCM_H__ #define __SOUND_DMAENGINE_PCM_H__ #include #include #include /** * snd_pcm_substream_to_dma_direction - Get dma_transfer_direction for a PCM * substream * @substream: PCM substream */ static inline enum dma_transfer_direction snd_pcm_substream_to_dma_direction(const struct snd_pcm_substream *substream) { if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) return DMA_MEM_TO_DEV; else return DMA_DEV_TO_MEM; } int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, const struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config); int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd); snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream); snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream); int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, struct dma_chan *chan); int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream); int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream); int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream, dma_filter_fn filter_fn, void *filter_data); int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream); struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn, void *filter_data); struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream); /* * The DAI supports packed transfers, eg 2 16-bit samples in a 32-bit word. * If this flag is set the dmaengine driver won't put any restriction on * the supported sample formats and set the DMA transfer size to undefined. * The DAI driver is responsible to disable any unsupported formats in it's * configuration and catch corner cases that are not already handled in * the ALSA core. */ #define SND_DMAENGINE_PCM_DAI_FLAG_PACK BIT(0) /** * struct snd_dmaengine_dai_dma_data - DAI DMA configuration data * @addr: Address of the DAI data source or destination register. * @addr_width: Width of the DAI data source or destination register. * @maxburst: Maximum number of words(note: words, as in units of the * src_addr_width member, not bytes) that can be send to or received from the * DAI in one burst. * @slave_id: Slave requester id for the DMA channel. * @filter_data: Custom DMA channel filter data, this will usually be used when * requesting the DMA channel. * @chan_name: Custom channel name to use when requesting DMA channel. * @fifo_size: FIFO size of the DAI controller in bytes * @flags: PCM_DAI flags, only SND_DMAENGINE_PCM_DAI_FLAG_PACK for now * @peripheral_config: peripheral configuration for programming peripheral * for dmaengine transfer * @peripheral_size: peripheral configuration buffer size */ struct snd_dmaengine_dai_dma_data { dma_addr_t addr; enum dma_slave_buswidth addr_width; u32 maxburst; unsigned int slave_id; void *filter_data; const char *chan_name; unsigned int fifo_size; unsigned int flags; void *peripheral_config; size_t peripheral_size; }; void snd_dmaengine_pcm_set_config_from_dai_data( const struct snd_pcm_substream *substream, const struct snd_dmaengine_dai_dma_data *dma_data, struct dma_slave_config *config); int snd_dmaengine_pcm_refine_runtime_hwparams( struct snd_pcm_substream *substream, struct snd_dmaengine_dai_dma_data *dma_data, struct snd_pcm_hardware *hw, struct dma_chan *chan); /* * Try to request the DMA channel using compat_request_channel or * compat_filter_fn if it couldn't be requested through devicetree. */ #define SND_DMAENGINE_PCM_FLAG_COMPAT BIT(0) /* * Don't try to request the DMA channels through devicetree. This flag only * makes sense if SND_DMAENGINE_PCM_FLAG_COMPAT is set as well. */ #define SND_DMAENGINE_PCM_FLAG_NO_DT BIT(1) /* * The PCM is half duplex and the DMA channel is shared between capture and * playback. */ #define SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX BIT(3) /** * struct snd_dmaengine_pcm_config - Configuration data for dmaengine based PCM * @prepare_slave_config: Callback used to fill in the DMA slave_config for a * PCM substream. Will be called from the PCM drivers hwparams callback. * @compat_request_channel: Callback to request a DMA channel for platforms * which do not use devicetree. * @process: Callback used to apply processing on samples transferred from/to * user space. * @compat_filter_fn: Will be used as the filter function when requesting a * channel for platforms which do not use devicetree. The filter parameter * will be the DAI's DMA data. * @dma_dev: If set, request DMA channel on this device rather than the DAI * device. * @chan_names: If set, these custom DMA channel names will be requested at * registration time. * @pcm_hardware: snd_pcm_hardware struct to be used for the PCM. * @prealloc_buffer_size: Size of the preallocated audio buffer. * * Note: If both compat_request_channel and compat_filter_fn are set * compat_request_channel will be used to request the channel and * compat_filter_fn will be ignored. Otherwise the channel will be requested * using dma_request_channel with compat_filter_fn as the filter function. */ struct snd_dmaengine_pcm_config { int (*prepare_slave_config)(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config); struct dma_chan *(*compat_request_channel)( struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream); int (*process)(struct snd_pcm_substream *substream, int channel, unsigned long hwoff, void *buf, unsigned long bytes); dma_filter_fn compat_filter_fn; struct device *dma_dev; const char *chan_names[SNDRV_PCM_STREAM_LAST + 1]; const struct snd_pcm_hardware *pcm_hardware; unsigned int prealloc_buffer_size; }; int snd_dmaengine_pcm_register(struct device *dev, const struct snd_dmaengine_pcm_config *config, unsigned int flags); void snd_dmaengine_pcm_unregister(struct device *dev); int devm_snd_dmaengine_pcm_register(struct device *dev, const struct snd_dmaengine_pcm_config *config, unsigned int flags); int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct dma_slave_config *slave_config); #define SND_DMAENGINE_PCM_DRV_NAME "snd_dmaengine_pcm" struct dmaengine_pcm { struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; const struct snd_dmaengine_pcm_config *config; struct snd_soc_component component; unsigned int flags; }; static inline struct dmaengine_pcm *soc_component_to_pcm(struct snd_soc_component *p) { return container_of(p, struct dmaengine_pcm, component); } #endif