id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
snd_pcm_drain_done(9) | NAME snd_pcm_drain_done - stop the DMA only when the given stream is playback
SYNOPSIS int snd_pcm_drain_done (struct snd_pcm_substream *substream );
ARGUMENTS substream the PCM substream
DESCRIPTION After stopping, the state is changed to SETUP. Unlike snd_pcm_stop, this affects only the given stream.
RETURN Ze... |
snd_pcm_fill_iec958_consumer(9) | NAME snd_pcm_fill_iec958_consumer - Fill consumer format IEC958 channel status
SYNOPSIS int snd_pcm_fill_iec958_consumer (struct snd_pcm_runtime *runtime , u8 *cs , size_t len );
ARGUMENTS runtime pcm runtime structure with ->rate filled in
cs channel status buffer, at least four bytes
le... |
snd_pcm_fill_iec958_consumer_hw_params(9) | NAME snd_pcm_fill_iec958_consumer_hw_params - Fill consumer format IEC958 channel status
SYNOPSIS int snd_pcm_fill_iec958_consumer_hw_params (struct snd_pcm_hw_params *params , u8 *cs , size_t len );
ARGUMENTS params the hw_params instance for extracting rate and sample format
cs channel status ... |
snd_pcm_format_big_endian(9) | NAME snd_pcm_format_big_endian - Check the PCM format is big-endian
SYNOPSIS int snd_pcm_format_big_endian (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is big-endian, 0 if little-endian, or a negative error code if endian not specified.
SEE ALSO Kernel file... |
snd_pcm_format_cpu_endian(9) | NAME snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian
SYNOPSIS int snd_pcm_format_cpu_endian (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is CPU-endian, 0 if opposite, or a negative error code if endian not specified.
SEE ALSO Kernel file ./inc... |
snd_pcm_format_linear(9) | NAME snd_pcm_format_linear - Check the PCM format is linear
SYNOPSIS int snd_pcm_format_linear (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is linear, 0 if not.
SEE ALSO Kernel file ./sound/core/pcm_misc.c snd_pcm_format_signed(9), snd_pcm_format_unsig... |
snd_pcm_format_little_endian(9) | NAME snd_pcm_format_little_endian - Check the PCM format is little-endian
SYNOPSIS int snd_pcm_format_little_endian (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is little-endian, 0 if big-endian, or a negative error code if endian not specified.
SEE ALSO Ker... |
snd_pcm_format_name(9) | NAME snd_pcm_format_name - Return a name string for the given PCM format
SYNOPSIS const char * snd_pcm_format_name (snd_pcm_format_t format );
ARGUMENTS format PCM format
RETURN the format name string
SEE ALSO Kernel file ./sound/core/pcm.c snd_pcm_new_stream(9), snd_pcm_new(9), snd_pcm_new_internal(9), snd_pc... |
snd_pcm_format_physical_width(9) | NAME snd_pcm_format_physical_width - return the physical bit-width of the format
SYNOPSIS int snd_pcm_format_physical_width (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN The physical bit-width of the format, or a negative error code if unknown format.
SEE ALSO Kernel file ./sound/co... |
snd_pcm_format_set_silence(9) | NAME snd_pcm_format_set_silence - set the silence data on the buffer
SYNOPSIS int snd_pcm_format_set_silence (snd_pcm_format_t format , void *data , unsigned int samples );
ARGUMENTS format the PCM format
data the buffer pointer
samples the number of samples to set silence
DESCRIPTION... |
snd_pcm_format_signed(9) | NAME snd_pcm_format_signed - Check the PCM format is signed linear
SYNOPSIS int snd_pcm_format_signed (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is signed linear, 0 if unsigned linear, and a negative error code for non-linear formats.
SEE ALSO Kernel fil... |
snd_pcm_format_silence_64(9) | NAME snd_pcm_format_silence_64 - return the silent data in 8 bytes array
SYNOPSIS const unsigned char * snd_pcm_format_silence_64 (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN The format pattern to fill or NULL if error.
SEE ALSO Kernel file ./sound/core/pcm_misc.c snd_pcm_format_s... |
snd_pcm_format_size(9) | NAME snd_pcm_format_size - return the byte size of samples on the given format
SYNOPSIS ssize_t snd_pcm_format_size (snd_pcm_format_t format , size_t samples );
ARGUMENTS format the format to check
samples sampling rate
RETURN The byte size of the given samples for the format, or a negative error co... |
snd_pcm_format_unsigned(9) | NAME snd_pcm_format_unsigned - Check the PCM format is unsigned linear
SYNOPSIS int snd_pcm_format_unsigned (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN 1 if the given PCM format is unsigned linear, 0 if signed linear, and a negative error code for non-linear formats.
SEE ALSO Kernel... |
snd_pcm_format_width(9) | NAME snd_pcm_format_width - return the bit-width of the format
SYNOPSIS int snd_pcm_format_width (snd_pcm_format_t format );
ARGUMENTS format the format to check
RETURN The bit-width of the format, or a negative error code if unknown format.
SEE ALSO Kernel file ./sound/core/pcm_misc.c snd_pcm_format_signe... |
snd_pcm_gettime(9) | NAME snd_pcm_gettime - Fill the timespec64 depending on the timestamp mode
SYNOPSIS void snd_pcm_gettime (struct snd_pcm_runtime *runtime , struct timespec64 *tv );
ARGUMENTS runtime PCM runtime instance
tv timespec64 to fill
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), s... |
snd_pcm_group_for_each_entry(9) | NAME snd_pcm_group_for_each_entry - iterate over the linked substreams
SYNOPSIS snd_pcm_group_for_each_entry (s , substream );
ARGUMENTS s the iterator
substream the substream
DESCRIPTION Iterate over the all linked substreams to the given substream. When substream isn't linked with any others, ... |
snd_pcm_hw_constraint_integer(9) | NAME snd_pcm_hw_constraint_integer - apply an integer constraint to an interval
SYNOPSIS int snd_pcm_hw_constraint_integer (struct snd_pcm_runtime *runtime , snd_pcm_hw_param_t var );
ARGUMENTS runtime PCM runtime instance
var hw_params variable to apply the integer constraint
DESCRIPTION Apply t... |
snd_pcm_hw_constraint_list(9) | NAME snd_pcm_hw_constraint_list - apply a list of constraints to a parameter
SYNOPSIS int snd_pcm_hw_constraint_list (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var , const struct snd_pcm_hw_constraint_list *l );
ARGUMENTS runtime PCM runtime instance
cond condition bi... |
snd_pcm_hw_constraint_mask(9) | NAME snd_pcm_hw_constraint_mask - apply the given bitmap mask constraint
SYNOPSIS int snd_pcm_hw_constraint_mask (struct snd_pcm_runtime *runtime , snd_pcm_hw_param_t var , u_int32_t mask );
ARGUMENTS runtime PCM runtime instance
var hw_params variable to apply the mask
mask the bit... |
snd_pcm_hw_constraint_mask64(9) | NAME snd_pcm_hw_constraint_mask64 - apply the given bitmap mask constraint
SYNOPSIS int snd_pcm_hw_constraint_mask64 (struct snd_pcm_runtime *runtime , snd_pcm_hw_param_t var , u_int64_t mask );
ARGUMENTS runtime PCM runtime instance
var hw_params variable to apply the mask
mask the... |
snd_pcm_hw_constraint_minmax(9) | NAME snd_pcm_hw_constraint_minmax - apply a min/max range constraint to an interval
SYNOPSIS int snd_pcm_hw_constraint_minmax (struct snd_pcm_runtime *runtime , snd_pcm_hw_param_t var , unsigned int min , unsigned int max );
ARGUMENTS runtime PCM runtime instance
var hw_params variable to apply th... |
snd_pcm_hw_constraint_msbits(9) | NAME snd_pcm_hw_constraint_msbits - add a hw constraint msbits rule
SYNOPSIS int snd_pcm_hw_constraint_msbits (struct snd_pcm_runtime *runtime , unsigned int cond , unsigned int width , unsigned int msbits );
ARGUMENTS runtime PCM runtime instance
cond condition bits
width sample bits... |
snd_pcm_hw_constraint_pow2(9) | NAME snd_pcm_hw_constraint_pow2 - add a hw constraint power-of-2 rule
SYNOPSIS int snd_pcm_hw_constraint_pow2 (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var );
ARGUMENTS runtime PCM runtime instance
cond condition bits
var hw_params variable to apply t... |
snd_pcm_hw_constraint_ranges(9) | NAME snd_pcm_hw_constraint_ranges - apply list of range constraints to a parameter
SYNOPSIS int snd_pcm_hw_constraint_ranges (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var , const struct snd_pcm_hw_constraint_ranges *r );
ARGUMENTS runtime PCM runtime instance
cond co... |
snd_pcm_hw_constraint_ratdens(9) | NAME snd_pcm_hw_constraint_ratdens - apply ratdens constraint to a parameter
SYNOPSIS int snd_pcm_hw_constraint_ratdens (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var , const struct snd_pcm_hw_constraint_ratdens *r );
ARGUMENTS runtime PCM runtime instance
cond condit... |
snd_pcm_hw_constraint_ratnums(9) | NAME snd_pcm_hw_constraint_ratnums - apply ratnums constraint to a parameter
SYNOPSIS int snd_pcm_hw_constraint_ratnums (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var , const struct snd_pcm_hw_constraint_ratnums *r );
ARGUMENTS runtime PCM runtime instance
cond condit... |
snd_pcm_hw_constraint_single(9) | NAME snd_pcm_hw_constraint_single - Constrain parameter to a single value
SYNOPSIS int snd_pcm_hw_constraint_single (struct snd_pcm_runtime *runtime , snd_pcm_hw_param_t var , unsigned int val );
ARGUMENTS runtime PCM runtime instance
var The hw_params variable to constrain
val The... |
snd_pcm_hw_constraint_step(9) | NAME snd_pcm_hw_constraint_step - add a hw constraint step rule
SYNOPSIS int snd_pcm_hw_constraint_step (struct snd_pcm_runtime *runtime , unsigned int cond , snd_pcm_hw_param_t var , unsigned long step );
ARGUMENTS runtime PCM runtime instance
cond condition bits
var hw_params vari... |
snd_pcm_hw_limit_rates(9) | NAME snd_pcm_hw_limit_rates - determine rate_min/rate_max fields
SYNOPSIS int snd_pcm_hw_limit_rates (struct snd_pcm_hardware *hw );
ARGUMENTS hw the pcm hw instance
DESCRIPTION Determines the rate_min and rate_max fields from the rates bits of the given hw.
RETURN Zero if successful.
SEE ALSO Kernel fil... |
snd_pcm_hw_param_first(9) | NAME snd_pcm_hw_param_first - refine config space and return minimum value
SYNOPSIS int snd_pcm_hw_param_first (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , int *dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var para... |
snd_pcm_hw_param_last(9) | NAME snd_pcm_hw_param_last - refine config space and return maximum value
SYNOPSIS int snd_pcm_hw_param_last (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , int *dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var parame... |
snd_pcm_hw_param_max(9) | NAME snd_pcm_hw_param_max -
SYNOPSIS int snd_pcm_hw_param_max (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , unsigned int val , int *dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var parameter to retrieve
val ... |
snd_pcm_hw_param_min(9) | NAME snd_pcm_hw_param_min -
SYNOPSIS int snd_pcm_hw_param_min (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , unsigned int val , int *dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var parameter to retrieve
val ... |
snd_pcm_hw_param_near(9) | NAME snd_pcm_hw_param_near -
SYNOPSIS int snd_pcm_hw_param_near (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , unsigned int best , int *dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var parameter to retrieve
b... |
snd_pcm_hw_param_set(9) | NAME snd_pcm_hw_param_set -
SYNOPSIS int snd_pcm_hw_param_set (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , unsigned int val , int dir );
ARGUMENTS pcm PCM instance
params the hw_params instance
var parameter to retrieve
val ... |
snd_pcm_hw_param_value(9) | NAME snd_pcm_hw_param_value - return @params field @var value
SYNOPSIS int snd_pcm_hw_param_value (const struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , int *dir );
ARGUMENTS params the hw_params instance
var parameter to retrieve
dir pointer to the direction (-1,0,1) ... |
snd_pcm_hw_param_value_max(9) | NAME snd_pcm_hw_param_value_max -
SYNOPSIS int snd_pcm_hw_param_value_max (const struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , int *dir );
ARGUMENTS params the hw_params instance
var parameter to retrieve
dir pointer to the direction (-1,0,1) or NULL
DESCRIPTION Ret... |
snd_pcm_hw_param_value_min(9) | NAME snd_pcm_hw_param_value_min -
SYNOPSIS unsigned int snd_pcm_hw_param_value_min (const struct snd_pcm_hw_params *params , snd_pcm_hw_param_t var , int *dir );
ARGUMENTS params the hw_params instance
var parameter to retrieve
dir pointer to the direction (-1,0,1) or NULL
DESCRI... |
snd_pcm_hw_params_bits(9) | NAME snd_pcm_hw_params_bits - Get the number of bits per the sample.
SYNOPSIS int snd_pcm_hw_params_bits (const struct snd_pcm_hw_params *p );
ARGUMENTS p hardware parameters
RETURN The number of bits per sample based on the format, subformat and msbits the specified hw params has.
SEE ALSO Kernel file ./... |
snd_pcm_hw_params_choose(9) | NAME snd_pcm_hw_params_choose - choose a configuration defined by @params
SYNOPSIS int snd_pcm_hw_params_choose (struct snd_pcm_substream *pcm , struct snd_pcm_hw_params *params );
ARGUMENTS pcm PCM instance
params the hw_params instance
DESCRIPTION Choose one configuration from configuration ... |
snd_pcm_hw_rule_add(9) | NAME snd_pcm_hw_rule_add - add the hw-constraint rule
SYNOPSIS int snd_pcm_hw_rule_add (struct snd_pcm_runtime *runtime , unsigned int cond , int var , snd_pcm_hw_rule_func_t func , void *private , int dep , ... );
ARGUMENTS runtime the pcm runtime instance
cond condition bits
var t... |
snd_pcm_hw_rule_noresample(9) | NAME snd_pcm_hw_rule_noresample - add a rule to allow disabling hw resampling
SYNOPSIS int snd_pcm_hw_rule_noresample (struct snd_pcm_runtime *runtime , unsigned int base_rate );
ARGUMENTS runtime PCM runtime instance
base_rate the rate at which the hardware does not resample
RETURN Zero if successful,... |
snd_pcm_kernel_ioctl(9) | NAME snd_pcm_kernel_ioctl - Execute PCM ioctl in the kernel-space
SYNOPSIS int snd_pcm_kernel_ioctl (struct snd_pcm_substream *substream , unsigned int cmd , void *arg );
ARGUMENTS substream PCM substream
cmd IOCTL cmd
arg IOCTL argument
DESCRIPTION The function is provided primaril... |
snd_pcm_lib_buffer_bytes(9) | NAME snd_pcm_lib_buffer_bytes - Get the buffer size of the current PCM in bytes
SYNOPSIS size_t snd_pcm_lib_buffer_bytes (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
RETURN buffer byte size
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), snd_pcm_stream_lock_irqsav... |
snd_pcm_lib_default_mmap(9) | NAME snd_pcm_lib_default_mmap - Default PCM data mmap function
SYNOPSIS int snd_pcm_lib_default_mmap (struct snd_pcm_substream *substream , struct vm_area_struct *area );
ARGUMENTS substream PCM substream
area VMA
DESCRIPTION This is the default mmap handler for PCM data. When mmap pcm_ops is NULL,... |
snd_pcm_lib_free_pages(9) | NAME snd_pcm_lib_free_pages - release the allocated DMA buffer.
SYNOPSIS int snd_pcm_lib_free_pages (struct snd_pcm_substream *substream );
ARGUMENTS substream the substream to release the DMA buffer
DESCRIPTION Releases the DMA buffer allocated via snd_pcm_lib_malloc_pages.
RETURN Zero if successful, or a negati... |
snd_pcm_lib_ioctl(9) | NAME snd_pcm_lib_ioctl - a generic PCM ioctl callback
SYNOPSIS int snd_pcm_lib_ioctl (struct snd_pcm_substream *substream , unsigned int cmd , void *arg );
ARGUMENTS substream the pcm substream instance
cmd ioctl command
arg ioctl argument
DESCRIPTION Processes the generic ioctl com... |
snd_pcm_lib_malloc_pages(9) | NAME snd_pcm_lib_malloc_pages - allocate the DMA buffer
SYNOPSIS int snd_pcm_lib_malloc_pages (struct snd_pcm_substream *substream , size_t size );
ARGUMENTS substream the substream to allocate the DMA buffer to
size the requested buffer size in bytes
DESCRIPTION Allocates the DMA buffer on the BUS ... |
snd_pcm_lib_mmap_iomem(9) | NAME snd_pcm_lib_mmap_iomem - Default PCM data mmap function for I/O mem
SYNOPSIS int snd_pcm_lib_mmap_iomem (struct snd_pcm_substream *substream , struct vm_area_struct *area );
ARGUMENTS substream PCM substream
area VMA
DESCRIPTION When your hardware uses the iomapped pages as the hardware buffer ... |
snd_pcm_lib_period_bytes(9) | NAME snd_pcm_lib_period_bytes - Get the period size of the current PCM in bytes
SYNOPSIS size_t snd_pcm_lib_period_bytes (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
RETURN period byte size
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), snd_pcm_stream_lock_irqsav... |
snd_pcm_lib_preallocate_free(9) | NAME snd_pcm_lib_preallocate_free - release the preallocated buffer of the specified substream.
SYNOPSIS void snd_pcm_lib_preallocate_free (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream instance
DESCRIPTION Releases the pre-allocated buffer of the given substream.
SEE ALSO Kernel f... |
snd_pcm_lib_preallocate_free_for_all(9) | NAME snd_pcm_lib_preallocate_free_for_all - release all pre-allocated buffers on the pcm
SYNOPSIS void snd_pcm_lib_preallocate_free_for_all (struct snd_pcm *pcm );
ARGUMENTS pcm the pcm instance
DESCRIPTION Releases all the pre-allocated buffers on the given pcm.
SEE ALSO Kernel file ./sound/core/pcm_me... |
snd_pcm_lib_preallocate_pages(9) | NAME snd_pcm_lib_preallocate_pages - pre-allocation for the given DMA type
SYNOPSIS void snd_pcm_lib_preallocate_pages (struct snd_pcm_substream *substream , int type , struct device *data , size_t size , size_t max );
ARGUMENTS substream the pcm substream instance
type DMA type (SNDRV_DMA_TYPE_*)
... |
snd_pcm_lib_preallocate_pages_for_all(9) | NAME snd_pcm_lib_preallocate_pages_for_all - pre-allocation for continuous memory type (all substreams)
SYNOPSIS void snd_pcm_lib_preallocate_pages_for_all (struct snd_pcm *pcm , int type , void *data , size_t size , size_t max );
ARGUMENTS pcm the pcm instance
type DMA type (SNDRV_DMA_TYPE_*)
... |
snd_pcm_limit_isa_dma_size(9) | NAME snd_pcm_limit_isa_dma_size - Get the max size fitting with ISA DMA transfer
SYNOPSIS void snd_pcm_limit_isa_dma_size (int dma , size_t *max );
ARGUMENTS dma DMA number
max pointer to store the max size
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), snd_pcm_stream_lo... |
snd_pcm_new(9) | NAME snd_pcm_new - create a new PCM instance
SYNOPSIS int snd_pcm_new (struct snd_card *card , const char *id , int device , int playback_count , int capture_count , struct snd_pcm **rpcm );
ARGUMENTS card the card instance
id the id string
device the device index (zero based)
... |
snd_pcm_new_internal(9) | NAME snd_pcm_new_internal - create a new internal PCM instance
SYNOPSIS int snd_pcm_new_internal (struct snd_card *card , const char *id , int device , int playback_count , int capture_count , struct snd_pcm **rpcm );
ARGUMENTS card the card instance
id the id string
device the de... |
snd_pcm_new_stream(9) | NAME snd_pcm_new_stream - create a new PCM stream
SYNOPSIS int snd_pcm_new_stream (struct snd_pcm *pcm , int stream , int substream_count );
ARGUMENTS pcm the pcm instance
stream the stream direction, SNDRV_PCM_STREAM_XXX
substream_count
the number of substreams
DESCRI... |
snd_pcm_notify(9) | NAME snd_pcm_notify - Add/remove the notify list
SYNOPSIS int snd_pcm_notify (struct snd_pcm_notify *notify , int nfree );
ARGUMENTS notify PCM notify list
nfree 0 = register, 1 = unregister
DESCRIPTION This adds the given notifier to the global list so that the callback is called for each registe... |
snd_pcm_period_elapsed(9) | NAME snd_pcm_period_elapsed - update the status of runtime for the next period by acquiring lock of PCM substream.
SYNOPSIS void snd_pcm_period_elapsed (struct snd_pcm_substream *substream );
ARGUMENTS substream the instance of PCM substream.
DESCRIPTION This function is mostly similar to “snd_pcm_period_elapsed_... |
snd_pcm_period_elapsed_under_stream_lock(9) | NAME snd_pcm_period_elapsed_under_stream_lock - update the status of runtime for the next period under acquired lock of PCM substream.
SYNOPSIS void snd_pcm_period_elapsed_under_stream_lock (struct snd_pcm_substream *substream );
ARGUMENTS substream the instance of pcm substream.
DESCRIPTION This function is call... |
snd_pcm_playback_avail(9) | NAME snd_pcm_playback_avail - Get the available (writable) space for playback
SYNOPSIS snd_pcm_uframes_t snd_pcm_playback_avail (struct snd_pcm_runtime *runtime );
ARGUMENTS runtime PCM runtime instance
DESCRIPTION Result is between 0 ... (boundary - 1)
RETURN available frame size
SEE ALSO Kernel file ./includ... |
snd_pcm_playback_data(9) | NAME snd_pcm_playback_data - check whether any data exists on the playback buffer
SYNOPSIS int snd_pcm_playback_data (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream instance
DESCRIPTION Checks whether any data exists on the playback buffer.
RETURN Non-zero if any data exists, or zero... |
snd_pcm_playback_empty(9) | NAME snd_pcm_playback_empty - check whether the playback buffer is empty
SYNOPSIS int snd_pcm_playback_empty (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream instance
DESCRIPTION Checks whether the playback buffer is empty.
RETURN Non-zero if empty, or zero if not.
SEE ALSO Kernel fi... |
snd_pcm_playback_hw_avail(9) | NAME snd_pcm_playback_hw_avail - Get the queued space for playback
SYNOPSIS snd_pcm_sframes_t snd_pcm_playback_hw_avail (struct snd_pcm_runtime *runtime );
ARGUMENTS runtime PCM runtime instance
RETURN available frame size
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), snd_pcm_stream_lock_... |
snd_pcm_playback_ready(9) | NAME snd_pcm_playback_ready - check whether the playback buffer is available
SYNOPSIS int snd_pcm_playback_ready (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream instance
DESCRIPTION Checks whether enough free space is available on the playback buffer.
RETURN Non-zero if available, or... |
snd_pcm_prepare(9) | NAME snd_pcm_prepare - prepare the PCM substream to be triggerable
SYNOPSIS int snd_pcm_prepare (struct snd_pcm_substream *substream , struct file *file );
ARGUMENTS substream the PCM substream instance
file file to refer f_flags
RETURN Zero if successful, or a negative error code.
SEE ALSO Kernel ... |
snd_pcm_rate_bit_to_rate(9) | NAME snd_pcm_rate_bit_to_rate - converts SNDRV_PCM_RATE_xxx bit to sample rate
SYNOPSIS unsigned int snd_pcm_rate_bit_to_rate (unsigned int rate_bit );
ARGUMENTS rate_bit the rate bit to convert
RETURN The sample rate that corresponds to the given SNDRV_PCM_RATE_xxx flag or 0 for an unknown rate bit.
SEE ALSO Ke... |
snd_pcm_rate_mask_intersect(9) | NAME snd_pcm_rate_mask_intersect - computes the intersection between two rate masks
SYNOPSIS unsigned int snd_pcm_rate_mask_intersect (unsigned int rates_a , unsigned int rates_b );
ARGUMENTS rates_a The first rate mask
rates_b The second rate mask
DESCRIPTION This function computes the rates that ar... |
snd_pcm_rate_to_rate_bit(9) | NAME snd_pcm_rate_to_rate_bit - converts sample rate to SNDRV_PCM_RATE_xxx bit
SYNOPSIS unsigned int snd_pcm_rate_to_rate_bit (unsigned int rate );
ARGUMENTS rate the sample rate to convert
RETURN The SNDRV_PCM_RATE_xxx flag that corresponds to the given rate, or SNDRV_PCM_RATE_KNOT for an unknown rate.
SEE ... |
snd_pcm_running(9) | NAME snd_pcm_running - Check whether the substream is in a running state
SYNOPSIS int snd_pcm_running (struct snd_pcm_substream *substream );
ARGUMENTS substream substream to check
RETURN true if the given substream is in the state RUNNING, or in the state DRAINING for playback.
SEE ALSO Kernel file ./include... |
snd_pcm_set_fixed_buffer(9) | NAME snd_pcm_set_fixed_buffer - Preallocate and set up the fixed size PCM buffer
SYNOPSIS int snd_pcm_set_fixed_buffer (struct snd_pcm_substream *substream , int type , struct device *data , size_t size );
ARGUMENTS substream the pcm substream instance
type DMA type (SNDRV_DMA_TYPE_*)
data ... |
snd_pcm_set_fixed_buffer_all(9) | NAME snd_pcm_set_fixed_buffer_all - Preallocate and set up the fixed size PCM buffer
SYNOPSIS int snd_pcm_set_fixed_buffer_all (struct snd_pcm *pcm , int type , struct device *data , size_t size );
ARGUMENTS pcm the pcm instance
type DMA type (SNDRV_DMA_TYPE_*)
data DMA type depe... |
snd_pcm_set_managed_buffer(9) | NAME snd_pcm_set_managed_buffer - set up buffer management for a substream
SYNOPSIS int snd_pcm_set_managed_buffer (struct snd_pcm_substream *substream , int type , struct device *data , size_t size , size_t max );
ARGUMENTS substream the pcm substream instance
type DMA type (SNDRV_DMA_TYPE_*)
... |
snd_pcm_set_managed_buffer_all(9) | NAME snd_pcm_set_managed_buffer_all - set up buffer management for all substreams for all substreams
SYNOPSIS int snd_pcm_set_managed_buffer_all (struct snd_pcm *pcm , int type , struct device *data , size_t size , size_t max );
ARGUMENTS pcm the pcm instance
type DMA type (SNDRV_DMA_TYPE_*)
... |
snd_pcm_set_ops(9) | NAME snd_pcm_set_ops - set the PCM operators
SYNOPSIS void snd_pcm_set_ops (struct snd_pcm *pcm , int direction , const struct snd_pcm_ops *ops );
ARGUMENTS pcm the pcm instance
direction stream direction, SNDRV_PCM_STREAM_XXX
ops the operator table
DESCRIPTION Sets the given PCM op... |
snd_pcm_set_runtime_buffer(9) | NAME snd_pcm_set_runtime_buffer - Set the PCM runtime buffer
SYNOPSIS void snd_pcm_set_runtime_buffer (struct snd_pcm_substream *substream , struct snd_dma_buffer *bufp );
ARGUMENTS substream PCM substream to set
bufp the buffer information, NULL to clear
DESCRIPTION Copy the buffer information to r... |
snd_pcm_set_sync(9) | NAME snd_pcm_set_sync - set the PCM sync id
SYNOPSIS void snd_pcm_set_sync (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream
DESCRIPTION Use the default PCM sync identifier for the specific card.
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_linked(9), snd_pcm_stream_lock_i... |
snd_pcm_set_sync_per_card(9) | NAME snd_pcm_set_sync_per_card - set the PCM sync id with card number
SYNOPSIS void snd_pcm_set_sync_per_card (struct snd_pcm_substream *substream , struct snd_pcm_hw_params *params , const unsigned char *id , unsigned int len );
ARGUMENTS substream the pcm substream
params modified hardware parameters... |
snd_pcm_sgbuf_get_addr(9) | NAME snd_pcm_sgbuf_get_addr - Get the DMA address at the corresponding offset
SYNOPSIS dma_addr_t snd_pcm_sgbuf_get_addr (struct snd_pcm_substream *substream , unsigned int ofs );
ARGUMENTS substream PCM substream
ofs byte offset
RETURN DMA address
SEE ALSO Kernel file ./include/sound/pcm.h snd_pc... |
snd_pcm_sgbuf_get_chunk_size(9) | NAME snd_pcm_sgbuf_get_chunk_size - Compute the max size that fits within the contig. page from the given size
SYNOPSIS unsigned int snd_pcm_sgbuf_get_chunk_size (struct snd_pcm_substream *substream , unsigned int ofs , unsigned int size );
ARGUMENTS substream PCM substream
ofs byte offset
s... |
snd_pcm_start(9) | NAME snd_pcm_start - start all linked streams
SYNOPSIS int snd_pcm_start (struct snd_pcm_substream *substream );
ARGUMENTS substream the PCM substream instance
RETURN Zero if successful, or a negative error code. The stream lock must be acquired before calling this function.
SEE ALSO Kernel file ./sound/core... |
snd_pcm_stop(9) | NAME snd_pcm_stop - try to stop all running streams in the substream group
SYNOPSIS int snd_pcm_stop (struct snd_pcm_substream *substream , snd_pcm_state_t state );
ARGUMENTS substream the PCM substream instance
state PCM state after stopping the stream
DESCRIPTION The state of each stream is then ch... |
snd_pcm_stop_xrun(9) | NAME snd_pcm_stop_xrun - stop the running streams as XRUN
SYNOPSIS int snd_pcm_stop_xrun (struct snd_pcm_substream *substream );
ARGUMENTS substream the PCM substream instance
DESCRIPTION This stops the given running substream (and all linked substreams) as XRUN. Unlike snd_pcm_stop, this function takes the subst... |
snd_pcm_stream_linked(9) | NAME snd_pcm_stream_linked - Check whether the substream is linked with others
SYNOPSIS int snd_pcm_stream_linked (struct snd_pcm_substream *substream );
ARGUMENTS substream substream to check
RETURN true if the given substream is being linked with others
SEE ALSO Kernel file ./include/sound/pcm.h snd_pc... |
snd_pcm_stream_lock(9) | NAME snd_pcm_stream_lock - Lock the PCM stream
SYNOPSIS void snd_pcm_stream_lock (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This locks the PCM stream's spinlock or mutex depending on the nonatomic flag of the given substream. This also takes the global link rw lock (or r... |
snd_pcm_stream_lock_irq(9) | NAME snd_pcm_stream_lock_irq - Lock the PCM stream
SYNOPSIS void snd_pcm_stream_lock_irq (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This locks the PCM stream like snd_pcm_stream_lock and disables the local IRQ (only when nonatomic is false). In nonatomic case, this is id... |
snd_pcm_stream_lock_irqsave(9) | NAME snd_pcm_stream_lock_irqsave - Lock the PCM stream
SYNOPSIS snd_pcm_stream_lock_irqsave (substream , flags );
ARGUMENTS substream PCM substream
flags irq flags
DESCRIPTION This locks the PCM stream like snd_pcm_stream_lock but with the local IRQ (only when nonatomic is false). In nonatomic case,... |
snd_pcm_stream_lock_irqsave_nested(9) | NAME snd_pcm_stream_lock_irqsave_nested - Single-nested PCM stream locking
SYNOPSIS snd_pcm_stream_lock_irqsave_nested (substream , flags );
ARGUMENTS substream PCM substream
flags irq flags
DESCRIPTION This locks the PCM stream like snd_pcm_stream_lock_irqsave but with the single-depth lockdep subcl... |
snd_pcm_stream_str(9) | NAME snd_pcm_stream_str - Get a string naming the direction of a stream
SYNOPSIS const char * snd_pcm_stream_str (struct snd_pcm_substream *substream );
ARGUMENTS substream the pcm substream instance
RETURN A string naming the direction of the stream.
SEE ALSO Kernel file ./include/sound/pcm.h snd_pcm_stream_link... |
snd_pcm_stream_unlock(9) | NAME snd_pcm_stream_unlock - Unlock the PCM stream
SYNOPSIS void snd_pcm_stream_unlock (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This unlocks the PCM stream that has been locked via snd_pcm_stream_lock.
SEE ALSO Kernel file ./sound/core/pcm_native.c snd_pcm_stream_lock... |
snd_pcm_stream_unlock_irq(9) | NAME snd_pcm_stream_unlock_irq - Unlock the PCM stream
SYNOPSIS void snd_pcm_stream_unlock_irq (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This is a counter-part of snd_pcm_stream_lock_irq.
SEE ALSO Kernel file ./sound/core/pcm_native.c snd_pcm_stream_lock(9), snd_pcm... |
snd_pcm_stream_unlock_irqrestore(9) | NAME snd_pcm_stream_unlock_irqrestore - Unlock the PCM stream
SYNOPSIS void snd_pcm_stream_unlock_irqrestore (struct snd_pcm_substream *substream , unsigned long flags );
ARGUMENTS substream PCM substream
flags irq flags
DESCRIPTION This is a counter-part of snd_pcm_stream_lock_irqsave.
SEE ALSO Ker... |
snd_pcm_substream_to_dma_direction(9) | NAME snd_pcm_substream_to_dma_direction - Get dma_transfer_direction for a PCM substream
SYNOPSIS enum dma_transfer_direction snd_pcm_substream_to_dma_direction (const struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
RETURN DMA transfer direction
SEE ALSO Kernel file ./include/sound/dmaeng... |
snd_pcm_suspend_all(9) | NAME snd_pcm_suspend_all - trigger SUSPEND to all substreams in the given pcm
SYNOPSIS int snd_pcm_suspend_all (struct snd_pcm *pcm );
ARGUMENTS pcm the PCM instance
DESCRIPTION After this call, all streams are changed to SUSPENDED state.
RETURN Zero if successful (or pcm is NULL), or a negative error code.... |
snd_pcm_trigger_done(9) | NAME snd_pcm_trigger_done - Mark the master substream
SYNOPSIS void snd_pcm_trigger_done (struct snd_pcm_substream *substream , struct snd_pcm_substream *master );
ARGUMENTS substream the pcm substream instance
master the linked master substream
DESCRIPTION When multiple substreams of the same card ... |
snd_pdacf_assign_resources(9) | NAME snd_pdacf_assign_resources - initialize the hardware and card instance.
SYNOPSIS int snd_pdacf_assign_resources (struct snd_pdacf *pdacf , int port , int irq );
ARGUMENTS pdacf context
port i/o port for the card
irq irq number for the card
DESCRIPTION this function assigns t... |
snd_power_ref(9) | NAME snd_power_ref - Take the reference count for power control
SYNOPSIS void snd_power_ref (struct snd_card *card );
ARGUMENTS card sound card object
DESCRIPTION The power_ref reference of the card is used for managing to block the snd_power_sync_ref operation. This function increments the reference. The c... |
snd_power_ref_and_wait(9) | NAME snd_power_ref_and_wait - wait until the card gets powered up
SYNOPSIS int snd_power_ref_and_wait (struct snd_card *card );
ARGUMENTS card soundcard structure
DESCRIPTION Take the power_ref reference count of the given card, and wait until the card gets powered up to SNDRV_CTL_POWER_D0 state. The ref... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.