[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.64.1.el8_10.x86_64
/
include
/
sound
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 ac97
SET
[ DEL ]
📁 sof
SET
[ DEL ]
📄 ac97_codec.h
16,173 B
SET
[ EDIT ]
|
[ DEL ]
📄 aci.h
2,458 B
SET
[ EDIT ]
|
[ DEL ]
📄 acp63_chip_offset_byte.h
30,462 B
SET
[ EDIT ]
|
[ DEL ]
📄 ad1816a.h
4,843 B
SET
[ EDIT ]
|
[ DEL ]
📄 ad1843.h
1,516 B
SET
[ EDIT ]
|
[ DEL ]
📄 adau1373.h
706 B
SET
[ EDIT ]
|
[ DEL ]
📄 aess.h
1,668 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4113.h
10,461 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4114.h
9,773 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4117.h
8,542 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4531_codec.h
2,478 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4641.h
476 B
SET
[ EDIT ]
|
[ DEL ]
📄 ak4xxx-adda.h
2,724 B
SET
[ EDIT ]
|
[ DEL ]
📄 alc5623.h
536 B
SET
[ EDIT ]
|
[ DEL ]
📄 asequencer.h
2,975 B
SET
[ EDIT ]
|
[ DEL ]
📄 asound.h
590 B
SET
[ EDIT ]
|
[ DEL ]
📄 asoundef.h
16,403 B
SET
[ EDIT ]
|
[ DEL ]
📄 compress_driver.h
7,987 B
SET
[ EDIT ]
|
[ DEL ]
📄 control.h
10,989 B
SET
[ EDIT ]
|
[ DEL ]
📄 core.h
16,151 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs35l33.h
888 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs35l34.h
741 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs35l35.h
2,267 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs35l36.h
772 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs35l41.h
34,962 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs4231-regs.h
7,785 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs4271.h
961 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs42l42.h
35,337 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs42l52.h
592 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs42l56.h
1,046 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs42l73.h
361 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs8403.h
8,138 B
SET
[ EDIT ]
|
[ DEL ]
📄 cs8427.h
9,954 B
SET
[ EDIT ]
|
[ DEL ]
📄 da7213.h
1,032 B
SET
[ EDIT ]
|
[ DEL ]
📄 da7218.h
2,468 B
SET
[ EDIT ]
|
[ DEL ]
📄 da7219-aad.h
2,263 B
SET
[ EDIT ]
|
[ DEL ]
📄 da7219.h
998 B
SET
[ EDIT ]
|
[ DEL ]
📄 da9055.h
707 B
SET
[ EDIT ]
|
[ DEL ]
📄 designware_i2s.h
1,631 B
SET
[ EDIT ]
|
[ DEL ]
📄 dmaengine_pcm.h
6,802 B
SET
[ EDIT ]
|
[ DEL ]
📄 emu10k1.h
92,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 emu10k1_synth.h
693 B
SET
[ EDIT ]
|
[ DEL ]
📄 emu8000.h
3,333 B
SET
[ EDIT ]
|
[ DEL ]
📄 emu8000_reg.h
9,767 B
SET
[ EDIT ]
|
[ DEL ]
📄 emux_legacy.h
4,811 B
SET
[ EDIT ]
|
[ DEL ]
📄 emux_synth.h
6,948 B
SET
[ EDIT ]
|
[ DEL ]
📄 es1688.h
2,923 B
SET
[ EDIT ]
|
[ DEL ]
📄 graph_card.h
1,070 B
SET
[ EDIT ]
|
[ DEL ]
📄 gus.h
20,119 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda-mlink.h
6,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_chmap.h
2,660 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_codec.h
18,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_component.h
2,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_hwdep.h
736 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_i915.h
589 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_register.h
12,172 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_regmap.h
6,934 B
SET
[ EDIT ]
|
[ DEL ]
📄 hda_verbs.h
17,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 hdaudio.h
24,529 B
SET
[ EDIT ]
|
[ DEL ]
📄 hdaudio_ext.h
6,626 B
SET
[ EDIT ]
|
[ DEL ]
📄 hdmi-codec.h
3,117 B
SET
[ EDIT ]
|
[ DEL ]
📄 hwdep.h
1,926 B
SET
[ EDIT ]
|
[ DEL ]
📄 i2c.h
2,857 B
SET
[ EDIT ]
|
[ DEL ]
📄 info.h
7,941 B
SET
[ EDIT ]
|
[ DEL ]
📄 initval.h
2,484 B
SET
[ EDIT ]
|
[ DEL ]
📄 intel-dsp-config.h
896 B
SET
[ EDIT ]
|
[ DEL ]
📄 intel-nhlt.h
3,840 B
SET
[ EDIT ]
|
[ DEL ]
📄 jack.h
3,172 B
SET
[ EDIT ]
|
[ DEL ]
📄 l3.h
524 B
SET
[ EDIT ]
|
[ DEL ]
📄 max9768.h
729 B
SET
[ EDIT ]
|
[ DEL ]
📄 max98088.h
1,074 B
SET
[ EDIT ]
|
[ DEL ]
📄 max98090.h
534 B
SET
[ EDIT ]
|
[ DEL ]
📄 max98095.h
1,357 B
SET
[ EDIT ]
|
[ DEL ]
📄 memalloc.h
3,879 B
SET
[ EDIT ]
|
[ DEL ]
📄 minors.h
3,738 B
SET
[ EDIT ]
|
[ DEL ]
📄 mixer_oss.h
1,773 B
SET
[ EDIT ]
|
[ DEL ]
📄 mpu401.h
3,905 B
SET
[ EDIT ]
|
[ DEL ]
📄 omap-hdmi-audio.h
971 B
SET
[ EDIT ]
|
[ DEL ]
📄 opl3.h
11,909 B
SET
[ EDIT ]
|
[ DEL ]
📄 opl4.h
459 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm-indirect.h
5,303 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm.h
55,007 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm_drm_eld.h
183 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm_iec958.h
597 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm_oss.h
2,063 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcm_params.h
8,864 B
SET
[ EDIT ]
|
[ DEL ]
📄 pt2258.h
513 B
SET
[ EDIT ]
|
[ DEL ]
📄 pxa2xx-lib.h
2,190 B
SET
[ EDIT ]
|
[ DEL ]
📄 rawmidi.h
5,663 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt1015.h
283 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt286.h
314 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt298.h
373 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5514.h
399 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5659.h
880 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5660.h
578 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5663.h
476 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5665.h
723 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5668.h
607 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5682.h
862 B
SET
[ EDIT ]
|
[ DEL ]
📄 rt5682s.h
915 B
SET
[ EDIT ]
|
[ DEL ]
📄 s3c24xx_uda134x.h
229 B
SET
[ EDIT ]
|
[ DEL ]
📄 sb.h
10,550 B
SET
[ EDIT ]
|
[ DEL ]
📄 sb16_csp.h
2,100 B
SET
[ EDIT ]
|
[ DEL ]
📄 sdw.h
1,667 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_device.h
2,165 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_kernel.h
3,378 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_midi_emul.h
6,757 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_midi_event.h
1,356 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_oss.h
2,264 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_oss_legacy.h
360 B
SET
[ EDIT ]
|
[ DEL ]
📄 seq_virmidi.h
2,123 B
SET
[ EDIT ]
|
[ DEL ]
📄 sh_dac_audio.h
441 B
SET
[ EDIT ]
|
[ DEL ]
📄 sh_fsi.h
693 B
SET
[ EDIT ]
|
[ DEL ]
📄 simple_card.h
529 B
SET
[ EDIT ]
|
[ DEL ]
📄 simple_card_utils.h
8,816 B
SET
[ EDIT ]
|
[ DEL ]
📄 snd_wavefront.h
5,704 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-acpi-intel-match.h
2,417 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-acpi.h
6,675 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-card.h
2,623 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-component.h
20,608 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-dai.h
21,113 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-dapm.h
34,141 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-dpcm.h
5,698 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-jack.h
3,822 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-link.h
1,172 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc-topology.h
5,882 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc.h
52,841 B
SET
[ EDIT ]
|
[ DEL ]
📄 sof.h
4,031 B
SET
[ EDIT ]
|
[ DEL ]
📄 soundfont.h
3,903 B
SET
[ EDIT ]
|
[ DEL ]
📄 spear_dma.h
350 B
SET
[ EDIT ]
|
[ DEL ]
📄 spear_spdif.h
345 B
SET
[ EDIT ]
|
[ DEL ]
📄 sta32x.h
1,015 B
SET
[ EDIT ]
|
[ DEL ]
📄 sta350.h
1,474 B
SET
[ EDIT ]
|
[ DEL ]
📄 tas2552-plat.h
283 B
SET
[ EDIT ]
|
[ DEL ]
📄 tas5086.h
210 B
SET
[ EDIT ]
|
[ DEL ]
📄 tea6330t.h
468 B
SET
[ EDIT ]
|
[ DEL ]
📄 timer.h
5,125 B
SET
[ EDIT ]
|
[ DEL ]
📄 tlv.h
1,627 B
SET
[ EDIT ]
|
[ DEL ]
📄 tlv320aic32x4.h
1,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 tlv320dac33-plat.h
574 B
SET
[ EDIT ]
|
[ DEL ]
📄 tpa6130a2-plat.h
291 B
SET
[ EDIT ]
|
[ DEL ]
📄 uda134x.h
451 B
SET
[ EDIT ]
|
[ DEL ]
📄 uda1380.h
335 B
SET
[ EDIT ]
|
[ DEL ]
📄 util_mem.h
1,623 B
SET
[ EDIT ]
|
[ DEL ]
📄 vx_core.h
15,055 B
SET
[ EDIT ]
|
[ DEL ]
📄 wavefront.h
18,518 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm0010.h
466 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm1250-ev1.h
510 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm2000.h
479 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm2200.h
1,353 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm5100.h
1,129 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8903.h
15,377 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8904.h
7,389 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8955.h
442 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8960.h
888 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8962.h
1,694 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8993.h
1,076 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm8996.h
1,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm9081.h
515 B
SET
[ EDIT ]
|
[ DEL ]
📄 wm9090.h
634 B
SET
[ EDIT ]
|
[ DEL ]
📄 wss.h
7,949 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: compress_driver.h
/* SPDX-License-Identifier: GPL-2.0 * * compress_driver.h - compress offload driver definations * * Copyright (C) 2011 Intel Corporation * Authors: Vinod Koul <vinod.koul@linux.intel.com> * Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> */ #ifndef __COMPRESS_DRIVER_H #define __COMPRESS_DRIVER_H #include <linux/types.h> #include <linux/sched.h> #include <sound/core.h> #include <sound/compress_offload.h> #include <sound/asound.h> #include <sound/pcm.h> struct snd_compr_ops; /** * struct snd_compr_runtime: runtime stream description * @state: stream state * @ops: pointer to DSP callbacks * @buffer: pointer to kernel buffer, valid only when not in mmap mode or * DSP doesn't implement copy * @buffer_size: size of the above buffer * @fragment_size: size of buffer fragment in bytes * @fragments: number of such fragments * @total_bytes_available: cumulative number of bytes made available in * the ring buffer * @total_bytes_transferred: cumulative bytes transferred by offload DSP * @sleep: poll sleep * @private_data: driver private data pointer * @dma_area: virtual buffer address * @dma_addr: physical buffer address (not accessible from main CPU) * @dma_bytes: size of DMA area * @dma_buffer_p: runtime dma buffer pointer */ struct snd_compr_runtime { snd_pcm_state_t state; struct snd_compr_ops *ops; void *buffer; u64 buffer_size; u32 fragment_size; u32 fragments; u64 total_bytes_available; u64 total_bytes_transferred; wait_queue_head_t sleep; void *private_data; unsigned char *dma_area; dma_addr_t dma_addr; size_t dma_bytes; struct snd_dma_buffer *dma_buffer_p; }; /** * struct snd_compr_stream: compressed stream * @name: device name * @ops: pointer to DSP callbacks * @runtime: pointer to runtime structure * @device: device pointer * @error_work: delayed work used when closing the stream due to an error * @direction: stream direction, playback/recording * @metadata_set: metadata set flag, true when set * @next_track: has userspace signal next track transition, true when set * @partial_drain: undergoing partial_drain for stream, true when set * @pause_in_draining: paused during draining state, true when set * @private_data: pointer to DSP private data * @dma_buffer: allocated buffer if any */ struct snd_compr_stream { const char *name; struct snd_compr_ops *ops; struct snd_compr_runtime *runtime; struct snd_compr *device; struct delayed_work error_work; enum snd_compr_direction direction; bool metadata_set; bool next_track; bool partial_drain; bool pause_in_draining; void *private_data; struct snd_dma_buffer dma_buffer; }; /** * struct snd_compr_ops: compressed path DSP operations * @open: Open the compressed stream * This callback is mandatory and shall keep dsp ready to receive the stream * parameter * @free: Close the compressed stream, mandatory * @set_params: Sets the compressed stream parameters, mandatory * This can be called in during stream creation only to set codec params * and the stream properties * @get_params: retrieve the codec parameters, mandatory * @set_metadata: Set the metadata values for a stream * @get_metadata: retrieves the requested metadata values from stream * @trigger: Trigger operations like start, pause, resume, drain, stop. * This callback is mandatory * @pointer: Retrieve current h/w pointer information. Mandatory * @copy: Copy the compressed data to/from userspace, Optional * Can't be implemented if DSP supports mmap * @mmap: DSP mmap method to mmap DSP memory * @ack: Ack for DSP when data is written to audio buffer, Optional * Not valid if copy is implemented * @get_caps: Retrieve DSP capabilities, mandatory * @get_codec_caps: Retrieve capabilities for a specific codec, mandatory */ struct snd_compr_ops { int (*open)(struct snd_compr_stream *stream); int (*free)(struct snd_compr_stream *stream); int (*set_params)(struct snd_compr_stream *stream, struct snd_compr_params *params); int (*get_params)(struct snd_compr_stream *stream, struct snd_codec *params); int (*set_metadata)(struct snd_compr_stream *stream, struct snd_compr_metadata *metadata); int (*get_metadata)(struct snd_compr_stream *stream, struct snd_compr_metadata *metadata); int (*trigger)(struct snd_compr_stream *stream, int cmd); int (*pointer)(struct snd_compr_stream *stream, struct snd_compr_tstamp *tstamp); int (*copy)(struct snd_compr_stream *stream, char __user *buf, size_t count); int (*mmap)(struct snd_compr_stream *stream, struct vm_area_struct *vma); int (*ack)(struct snd_compr_stream *stream, size_t bytes); int (*get_caps) (struct snd_compr_stream *stream, struct snd_compr_caps *caps); int (*get_codec_caps) (struct snd_compr_stream *stream, struct snd_compr_codec_caps *codec); }; /** * struct snd_compr: Compressed device * @name: DSP device name * @dev: associated device instance * @ops: pointer to DSP callbacks * @private_data: pointer to DSP pvt data * @card: sound card pointer * @direction: Playback or capture direction * @lock: device lock * @device: device id * @use_pause_in_draining: allow pause in draining, true when set */ struct snd_compr { const char *name; struct device *dev; struct snd_compr_ops *ops; void *private_data; struct snd_card *card; unsigned int direction; struct mutex lock; int device; bool use_pause_in_draining; #ifdef CONFIG_SND_VERBOSE_PROCFS /* private: */ char id[64]; struct snd_info_entry *proc_root; struct snd_info_entry *proc_info_entry; #endif }; /* compress device register APIs */ int snd_compress_new(struct snd_card *card, int device, int type, const char *id, struct snd_compr *compr); /** * snd_compr_use_pause_in_draining - Allow pause and resume in draining state * @substream: compress substream to set * * Allow pause and resume in draining state. * Only HW driver supports this transition can call this API. */ static inline void snd_compr_use_pause_in_draining(struct snd_compr_stream *substream) { substream->device->use_pause_in_draining = true; } /* dsp driver callback apis * For playback: driver should call snd_compress_fragment_elapsed() to let the * framework know that a fragment has been consumed from the ring buffer * * For recording: we want to know when a frame is available or when * at least one frame is available so snd_compress_frame_elapsed() * callback should be called when a encodeded frame is available */ static inline void snd_compr_fragment_elapsed(struct snd_compr_stream *stream) { wake_up(&stream->runtime->sleep); } static inline void snd_compr_drain_notify(struct snd_compr_stream *stream) { if (snd_BUG_ON(!stream)) return; /* for partial_drain case we are back to running state on success */ if (stream->partial_drain) { stream->runtime->state = SNDRV_PCM_STATE_RUNNING; stream->partial_drain = false; /* clear this flag as well */ } else { stream->runtime->state = SNDRV_PCM_STATE_SETUP; } wake_up(&stream->runtime->sleep); } /** * snd_compr_set_runtime_buffer - Set the Compress runtime buffer * @stream: compress stream to set * @bufp: the buffer information, NULL to clear * * Copy the buffer information to runtime buffer when @bufp is non-NULL. * Otherwise it clears the current buffer information. */ static inline void snd_compr_set_runtime_buffer(struct snd_compr_stream *stream, struct snd_dma_buffer *bufp) { struct snd_compr_runtime *runtime = stream->runtime; if (bufp) { runtime->dma_buffer_p = bufp; runtime->dma_area = bufp->area; runtime->dma_addr = bufp->addr; runtime->dma_bytes = bufp->bytes; } else { runtime->dma_buffer_p = NULL; runtime->dma_area = NULL; runtime->dma_addr = 0; runtime->dma_bytes = 0; } } int snd_compr_malloc_pages(struct snd_compr_stream *stream, size_t size); int snd_compr_free_pages(struct snd_compr_stream *stream); int snd_compr_stop_error(struct snd_compr_stream *stream, snd_pcm_state_t state); #endif