id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
snd_ac97_update_power(9) | NAME snd_ac97_update_power - update the powerdown register
SYNOPSIS int snd_ac97_update_power (struct snd_ac97 *ac97 , int reg , int powerup );
ARGUMENTS ac97 the codec instance
reg the rate register, e.g. AC97_PCM_FRONT_DAC_RATE
powerup non-zero when power up the part
DESCRIPTION ... |
snd_ac97_write(9) | NAME snd_ac97_write - write a value on the given register
SYNOPSIS void snd_ac97_write (struct snd_ac97 *ac97 , unsigned short reg , unsigned short value );
ARGUMENTS ac97 the ac97 instance
reg the register to change
value the value to set
DESCRIPTION Writes a value on the given... |
snd_ac97_write_cache(9) | NAME snd_ac97_write_cache - write a value on the given register and update the cache
SYNOPSIS void snd_ac97_write_cache (struct snd_ac97 *ac97 , unsigned short reg , unsigned short value );
ARGUMENTS ac97 the ac97 instance
reg the register to change
value the value to set
DESCRIP... |
snd_array_free(9) | NAME snd_array_free - free the given array elements
SYNOPSIS void snd_array_free (struct snd_array *array );
ARGUMENTS array the array object
SEE ALSO Kernel file ./sound/hda/core/array.c snd_array_new(9)
April 2026 ... |
snd_array_new(9) | NAME snd_array_new - get a new element from the given array
SYNOPSIS void * snd_array_new (struct snd_array *array );
ARGUMENTS array the array object
DESCRIPTION Get a new element from the given array. If it exceeds the pre-allocated array size, re-allocate the array. Returns NULL if allocation failed.
SEE... |
snd_card_add_dev_attr(9) | NAME snd_card_add_dev_attr - Append a new sysfs attribute group to card
SYNOPSIS int snd_card_add_dev_attr (struct snd_card *card , const struct attribute_group *group );
ARGUMENTS card card instance
group attribute group to append
RETURN zero if successful, or a negative error code
SEE ALSO Ke... |
snd_card_disconnect(9) | NAME snd_card_disconnect - disconnect all APIs from the file-operations (user space)
SYNOPSIS void snd_card_disconnect (struct snd_card *card );
ARGUMENTS card soundcard structure
DESCRIPTION Disconnects all APIs from the file-operations (user space).
RETURN Zero, otherwise a negative error code.
NOTE The c... |
snd_card_disconnect_sync(9) | NAME snd_card_disconnect_sync - disconnect card and wait until files get closed
SYNOPSIS void snd_card_disconnect_sync (struct snd_card *card );
ARGUMENTS card card object to disconnect
DESCRIPTION This calls snd_card_disconnect for disconnecting all belonging components and waits until all pending files ge... |
snd_card_file_add(9) | NAME snd_card_file_add - add the file to the file list of the card
SYNOPSIS int snd_card_file_add (struct snd_card *card , struct file *file );
ARGUMENTS card soundcard structure
file file pointer
DESCRIPTION This function adds the file to the file linked-list of the card. This linked-list is ... |
snd_card_file_remove(9) | NAME snd_card_file_remove - remove the file from the file list
SYNOPSIS int snd_card_file_remove (struct snd_card *card , struct file *file );
ARGUMENTS card soundcard structure
file file pointer
DESCRIPTION This function removes the file formerly added to the card via snd_card_file_add functio... |
snd_card_free(9) | NAME snd_card_free - frees given soundcard structure
SYNOPSIS void snd_card_free (struct snd_card *card );
ARGUMENTS card soundcard structure
DESCRIPTION This function releases the soundcard structure and the all assigned devices automatically. That is, you don't have to release the devices by yourself. Thi... |
snd_card_free_on_error(9) | NAME snd_card_free_on_error - a small helper for handling devm probe errors
SYNOPSIS int snd_card_free_on_error (struct device *dev , int ret );
ARGUMENTS dev the managed device object
ret the return code from the probe callback
DESCRIPTION This function handles the explicit snd_card_free cal... |
snd_card_free_when_closed(9) | NAME snd_card_free_when_closed - Disconnect the card, free it later eventually
SYNOPSIS void snd_card_free_when_closed (struct snd_card *card );
ARGUMENTS card soundcard structure
DESCRIPTION Unlike snd_card_free, this function doesn't try to release the card resource immediately, but tries to disconnect at ... |
snd_card_new(9) | NAME snd_card_new - create and initialize a soundcard structure
SYNOPSIS int snd_card_new (struct device *parent , int idx , const char *xid , struct module *module , int extra_size , struct snd_card **card_ret );
ARGUMENTS parent the parent device object
idx card index (address) [0 ... (SNDRV_CA... |
snd_card_ref(9) | NAME snd_card_ref - Get the card object from the index
SYNOPSIS struct snd_card * snd_card_ref (int idx );
ARGUMENTS idx the card index
DESCRIPTION Returns a card object corresponding to the given index or NULL if not found. Release the object via snd_card_unref.
RETURN a card object or NULL
SEE ALSO Kern... |
snd_card_register(9) | NAME snd_card_register - register the soundcard
SYNOPSIS int snd_card_register (struct snd_card *card );
ARGUMENTS card soundcard structure
DESCRIPTION This function registers all the devices assigned to the soundcard. Until calling this, the ALSA control interface is blocked from the external accesses. Th... |
snd_card_ro_proc_new(9) | NAME snd_card_ro_proc_new - Create a read-only text proc file entry for the card
SYNOPSIS int snd_card_ro_proc_new (struct snd_card *card , const char *name , void *private_data , void (*read)(struct snd_info_entry *, struct snd_info_buffer *) );
ARGUMENTS card the card instance
name the file na... |
snd_card_rw_proc_new(9) | NAME snd_card_rw_proc_new - Create a read/write text proc file entry for the card
SYNOPSIS int snd_card_rw_proc_new (struct snd_card *card , const char *name , void *private_data , void (*read)(struct snd_info_entry *, struct snd_info_buffer *) , void (*write)(struct snd_info_entry *entry, struct snd_in... |
snd_card_set_id(9) | NAME snd_card_set_id - set card identification name
SYNOPSIS void snd_card_set_id (struct snd_card *card , const char *nid );
ARGUMENTS card soundcard structure
nid new identification string
DESCRIPTION This function sets the card identification and checks for name collisions.
SEE ALSO Kernel... |
snd_card_unref(9) | NAME snd_card_unref - Unreference the card object
SYNOPSIS void snd_card_unref (struct snd_card *card );
ARGUMENTS card the card object to unreference
DESCRIPTION Call this function for the card object that was obtained via snd_card_ref or snd_lookup_minor_data.
SEE ALSO Kernel file ./include/sound/core.h sn... |
snd_component_add(9) | NAME snd_component_add - add a component string
SYNOPSIS int snd_component_add (struct snd_card *card , const char *component );
ARGUMENTS card soundcard structure
component the component id string
DESCRIPTION This function adds the component id string to the supported list. The component can be re... |
snd_compr_set_runtime_buffer(9) | NAME snd_compr_set_runtime_buffer - Set the Compress runtime buffer
SYNOPSIS void snd_compr_set_runtime_buffer (struct snd_compr_stream *stream , struct snd_dma_buffer *bufp );
ARGUMENTS stream compress stream to set
bufp the buffer information, NULL to clear
DESCRIPTION Copy the buffer informati... |
snd_compr_stop_error(9) | NAME snd_compr_stop_error - Report a fatal error on a stream
SYNOPSIS int snd_compr_stop_error (struct snd_compr_stream *stream , snd_pcm_state_t state );
ARGUMENTS stream pointer to stream
state state to transition the stream to
DESCRIPTION Stop the stream and set its state. Should be called wit... |
snd_compr_task_finished(9) | NAME snd_compr_task_finished - Notify that the task was finished
SYNOPSIS void snd_compr_task_finished (struct snd_compr_stream *stream , struct snd_compr_task_runtime *task );
ARGUMENTS stream pointer to stream
task runtime task structure
DESCRIPTION Set the finished task state and notify waiter... |
snd_compr_use_pause_in_draining(9) | NAME snd_compr_use_pause_in_draining - Allow pause and resume in draining state
SYNOPSIS void snd_compr_use_pause_in_draining (struct snd_compr_stream *substream );
ARGUMENTS substream compress substream to set
DESCRIPTION Allow pause and resume in draining state. Only HW driver supports this transition can call ... |
snd_compress_new(9) | NAME snd_compress_new - create new compress device
SYNOPSIS int snd_compress_new (struct snd_card *card , int device , int dirn , const char *id , struct snd_compr *compr );
ARGUMENTS card sound card pointer
device device number
dirn device direction, should be of type enum snd_comp... |
snd_ctl_activate_id(9) | NAME snd_ctl_activate_id - activate/inactivate the control of the given id
SYNOPSIS int snd_ctl_activate_id (struct snd_card *card , struct snd_ctl_elem_id *id , int active );
ARGUMENTS card the card instance
id the control id to activate/inactivate
active non-zero to activate
DE... |
snd_ctl_add(9) | NAME snd_ctl_add - add the control instance to the card
SYNOPSIS int snd_ctl_add (struct snd_card *card , struct snd_kcontrol *kcontrol );
ARGUMENTS card the card instance
kcontrol the control instance to add
DESCRIPTION Adds the control instance created via snd_ctl_new or snd_ctl_new1 to the given... |
snd_ctl_add_follower(9) | NAME snd_ctl_add_follower - Add a virtual follower control
SYNOPSIS int snd_ctl_add_follower (struct snd_kcontrol *master , struct snd_kcontrol *follower );
ARGUMENTS master vmaster element
follower follower element to add
DESCRIPTION Add a virtual follower control to the given master element c... |
snd_ctl_add_follower_uncached(9) | NAME snd_ctl_add_follower_uncached - Add a virtual follower control
SYNOPSIS int snd_ctl_add_follower_uncached (struct snd_kcontrol *master , struct snd_kcontrol *follower );
ARGUMENTS master vmaster element
follower follower element to add
DESCRIPTION Add a virtual follower control to the given ma... |
snd_ctl_add_followers(9) | NAME snd_ctl_add_followers - add multiple followers to vmaster
SYNOPSIS int snd_ctl_add_followers (struct snd_card *card , struct snd_kcontrol *master , const char * const *list );
ARGUMENTS card card instance
master the target vmaster kcontrol object
list NULL-terminated list of na... |
snd_ctl_add_vmaster_hook(9) | NAME snd_ctl_add_vmaster_hook - Add a hook to a vmaster control
SYNOPSIS int snd_ctl_add_vmaster_hook (struct snd_kcontrol *kcontrol , void (*hook)(void *private_data, int) , void *private_data );
ARGUMENTS kcontrol vmaster kctl element
hook the hook function
private_data
... |
snd_ctl_apply_vmaster_followers(9) | NAME snd_ctl_apply_vmaster_followers - Apply function to each vmaster follower
SYNOPSIS int snd_ctl_apply_vmaster_followers (struct snd_kcontrol *kctl , int (*func)(struct snd_kcontrol *vfollower, struct snd_kcontrol *follower, void *arg) , void *arg );
ARGUMENTS kctl vmaster kctl element
func f... |
snd_ctl_boolean_mono_info(9) | NAME snd_ctl_boolean_mono_info - Helper function for a standard boolean info callback with a mono channel
SYNOPSIS int snd_ctl_boolean_mono_info (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_info *uinfo );
ARGUMENTS kcontrol the kcontrol instance
uinfo info to store
DESCRIPTION This is a func... |
snd_ctl_boolean_stereo_info(9) | NAME snd_ctl_boolean_stereo_info - Helper function for a standard boolean info callback with stereo two channels
SYNOPSIS int snd_ctl_boolean_stereo_info (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_info *uinfo );
ARGUMENTS kcontrol the kcontrol instance
uinfo info to store
DESCRIPTION This ... |
snd_ctl_disconnect_layer(9) | NAME snd_ctl_disconnect_layer - disconnect control layer
SYNOPSIS void snd_ctl_disconnect_layer (struct snd_ctl_layer_ops *lops );
ARGUMENTS lops operation structure
DESCRIPTION It is expected that the information about tracked cards is freed before this call (the disconnect callback is not called here).
SEE... |
snd_ctl_enum_info(9) | NAME snd_ctl_enum_info - fills the info structure for an enumerated control
SYNOPSIS int snd_ctl_enum_info (struct snd_ctl_elem_info *info , unsigned int channels , unsigned int items , const char *const names[] );
ARGUMENTS info the structure to be filled
channels the number of the control's channe... |
snd_ctl_find_id(9) | NAME snd_ctl_find_id - find the control instance with the given id
SYNOPSIS struct snd_kcontrol * snd_ctl_find_id (struct snd_card *card , const struct snd_ctl_elem_id *id );
ARGUMENTS card the card instance
id the id to search
DESCRIPTION Finds the control instance with the given id from the... |
snd_ctl_find_id_mixer(9) | NAME snd_ctl_find_id_mixer - find the control instance with the given name string
SYNOPSIS struct snd_kcontrol * snd_ctl_find_id_mixer (struct snd_card *card , const char *name );
ARGUMENTS card the card instance
name the name string
DESCRIPTION Finds the control instance with the given name an... |
snd_ctl_find_numid(9) | NAME snd_ctl_find_numid - find the control instance with the given number-id
SYNOPSIS struct snd_kcontrol * snd_ctl_find_numid (struct snd_card *card , unsigned int numid );
ARGUMENTS card the card instance
numid the number-id to search
DESCRIPTION Finds the control instance with the given numbe... |
snd_ctl_free_one(9) | NAME snd_ctl_free_one - release the control instance
SYNOPSIS void snd_ctl_free_one (struct snd_kcontrol *kcontrol );
ARGUMENTS kcontrol the control instance
DESCRIPTION Releases the control instance created via snd_ctl_new or snd_ctl_new1. Don't call this after the control was added to the card.
SEE ALSO Kerne... |
snd_ctl_make_virtual_master(9) | NAME snd_ctl_make_virtual_master - Create a virtual master control
SYNOPSIS struct snd_kcontrol * snd_ctl_make_virtual_master (char *name , const unsigned int *tlv );
ARGUMENTS name name string of the control element to create
tlv optional TLV int array for dB information
DESCRIPTION Creates ... |
snd_ctl_new(9) | NAME snd_ctl_new - create a new control instance with some elements
SYNOPSIS int snd_ctl_new (struct snd_kcontrol **kctl , unsigned int count , unsigned int access , struct snd_ctl_file *file );
ARGUMENTS kctl the pointer to store new control instance
count the number of elements in this control
... |
snd_ctl_new1(9) | NAME snd_ctl_new1 - create a control instance from the template
SYNOPSIS struct snd_kcontrol * snd_ctl_new1 (const struct snd_kcontrol_new *ncontrol , void *private_data );
ARGUMENTS ncontrol the initialization record
private_data
the private data to set
DESCRIPTION Allocates a new stru... |
snd_ctl_notify(9) | NAME snd_ctl_notify - Send notification to user-space for a control change
SYNOPSIS void snd_ctl_notify (struct snd_card *card , unsigned int mask , struct snd_ctl_elem_id *id );
ARGUMENTS card the card to send notification
mask the event mask, SNDRV_CTL_EVENT_*
id the ctl eleme... |
snd_ctl_notify_one(9) | NAME snd_ctl_notify_one - Send notification to user-space for a control change
SYNOPSIS void snd_ctl_notify_one (struct snd_card *card , unsigned int mask , struct snd_kcontrol *kctl , unsigned int ioff );
ARGUMENTS card the card to send notification
mask the event mask, SNDRV_CTL_EVENT_*
... |
snd_ctl_register_ioctl(9) | NAME snd_ctl_register_ioctl - register the device-specific control-ioctls
SYNOPSIS int snd_ctl_register_ioctl (snd_kctl_ioctl_func_t fcn );
ARGUMENTS fcn ioctl callback function
DESCRIPTION called from each device manager like pcm.c, hwdep.c, etc.
RETURN zero if successful, or a negative error code
SEE ALS... |
snd_ctl_register_ioctl_compat(9) | NAME snd_ctl_register_ioctl_compat - register the device-specific 32bit compat control-ioctls
SYNOPSIS int snd_ctl_register_ioctl_compat (snd_kctl_ioctl_func_t fcn );
ARGUMENTS fcn ioctl callback function
RETURN zero if successful, or a negative error code
SEE ALSO Kernel file ./sound/core/control.c snd_c... |
snd_ctl_register_layer(9) | NAME snd_ctl_register_layer - register new control layer
SYNOPSIS void snd_ctl_register_layer (struct snd_ctl_layer_ops *lops );
ARGUMENTS lops operation structure
DESCRIPTION The new layer can track all control elements and do additional operations on top (like audio LED handling).
SEE ALSO Kernel file ./s... |
snd_ctl_remove(9) | NAME snd_ctl_remove - remove the control from the card and release it
SYNOPSIS int snd_ctl_remove (struct snd_card *card , struct snd_kcontrol *kcontrol );
ARGUMENTS card the card instance
kcontrol the control instance to remove
DESCRIPTION Removes the control from the card and then releases the ... |
snd_ctl_remove_id(9) | NAME snd_ctl_remove_id - remove the control of the given id and release it
SYNOPSIS int snd_ctl_remove_id (struct snd_card *card , struct snd_ctl_elem_id *id );
ARGUMENTS card the card instance
id the control id to remove
DESCRIPTION Finds the control instance with the given id, removes it fr... |
snd_ctl_remove_user_ctl(9) | NAME snd_ctl_remove_user_ctl - remove and release the unlocked user control
SYNOPSIS int snd_ctl_remove_user_ctl (struct snd_ctl_file * file , struct snd_ctl_elem_id *id );
ARGUMENTS file active control handle
id the control id to remove
DESCRIPTION Finds the control instance with the given i... |
snd_ctl_rename(9) | NAME snd_ctl_rename - rename the control on the card
SYNOPSIS void snd_ctl_rename (struct snd_card *card , struct snd_kcontrol *kctl , const char *name );
ARGUMENTS card the card instance
kctl the control to rename
name the new name
DESCRIPTION Renames the specified control on th... |
snd_ctl_rename_id(9) | NAME snd_ctl_rename_id - replace the id of a control on the card
SYNOPSIS int snd_ctl_rename_id (struct snd_card *card , struct snd_ctl_elem_id *src_id , struct snd_ctl_elem_id *dst_id );
ARGUMENTS card the card instance
src_id the old id
dst_id the new id
DESCRIPTION Finds the con... |
snd_ctl_replace(9) | NAME snd_ctl_replace - replace the control instance of the card
SYNOPSIS int snd_ctl_replace (struct snd_card *card , struct snd_kcontrol *kcontrol , bool add_on_replace );
ARGUMENTS card the card instance
kcontrol the control instance to replace
add_on_replace
add the con... |
snd_ctl_request_layer(9) | NAME snd_ctl_request_layer - request to use the layer
SYNOPSIS int snd_ctl_request_layer (const char *module_name );
ARGUMENTS module_name Name of the kernel module (NULL == build-in)
RETURN zero if successful, or an error code when the module cannot be loaded
SEE ALSO Kernel file ./sound/core/control.c snd_ctl_n... |
snd_ctl_sync_vmaster(9) | NAME snd_ctl_sync_vmaster - Sync the vmaster followers and hook
SYNOPSIS void snd_ctl_sync_vmaster (struct snd_kcontrol *kcontrol , bool hook_only );
ARGUMENTS kcontrol vmaster kctl element
hook_only sync only the hook
DESCRIPTION Forcibly call the put callback of each follower and call the hook functio... |
snd_ctl_unregister_ioctl(9) | NAME snd_ctl_unregister_ioctl - de-register the device-specific control-ioctls
SYNOPSIS int snd_ctl_unregister_ioctl (snd_kctl_ioctl_func_t fcn );
ARGUMENTS fcn ioctl callback function to unregister
RETURN zero if successful, or a negative error code
SEE ALSO Kernel file ./sound/core/control.c snd_ctl_not... |
snd_ctl_unregister_ioctl_compat(9) | NAME snd_ctl_unregister_ioctl_compat - de-register the device-specific compat 32bit control-ioctls
SYNOPSIS int snd_ctl_unregister_ioctl_compat (snd_kctl_ioctl_func_t fcn );
ARGUMENTS fcn ioctl callback function to unregister
RETURN zero if successful, or a negative error code
SEE ALSO Kernel file ./sound... |
snd_device_alloc(9) | NAME snd_device_alloc - Allocate and initialize struct device for sound devices
SYNOPSIS int snd_device_alloc (struct device **dev_p , struct snd_card *card );
ARGUMENTS dev_p pointer to store the allocated device
card card to assign, optional
DESCRIPTION For releasing the allocated device, call... |
snd_device_disconnect(9) | NAME snd_device_disconnect - disconnect the device
SYNOPSIS void snd_device_disconnect (struct snd_card *card , void *device_data );
ARGUMENTS card the card instance
device_data the data pointer to disconnect
DESCRIPTION Turns the device into the disconnection state, invoking dev_disconnect callback, ... |
snd_device_free(9) | NAME snd_device_free - release the device from the card
SYNOPSIS void snd_device_free (struct snd_card *card , void *device_data );
ARGUMENTS card the card instance
device_data the data pointer to release
DESCRIPTION Removes the device from the list on the card and invokes the callbacks, dev_disconnec... |
snd_device_new(9) | NAME snd_device_new - create an ALSA device component
SYNOPSIS int snd_device_new (struct snd_card *card , enum snd_device_type type , void *device_data , const struct snd_device_ops *ops );
ARGUMENTS card the card instance
type the device type, SNDRV_DEV_XXX
device_data the data pointer... |
snd_device_register(9) | NAME snd_device_register - register the device
SYNOPSIS int snd_device_register (struct snd_card *card , void *device_data );
ARGUMENTS card the card instance
device_data the data pointer to register
DESCRIPTION Registers the device which was already created via snd_device_new. Usually this is called... |
snd_devm_alloc_dir_pages(9) | NAME snd_devm_alloc_dir_pages - allocate the buffer and manage with devres
SYNOPSIS struct snd_dma_buffer * snd_devm_alloc_dir_pages (struct device *dev , int type , enum dma_data_direction dir , size_t size );
ARGUMENTS dev the device pointer
type the DMA buffer type
dir DMA di... |
snd_devm_card_new(9) | NAME snd_devm_card_new - managed snd_card object creation
SYNOPSIS int snd_devm_card_new (struct device *parent , int idx , const char *xid , struct module *module , size_t extra_size , struct snd_card **card_ret );
ARGUMENTS parent the parent device object
idx card index (address) [0 ... (SNDRV_... |
snd_devm_request_dma(9) | NAME snd_devm_request_dma - the managed version of request_dma()
SYNOPSIS int snd_devm_request_dma (struct device *dev , int dma , const char *name );
ARGUMENTS dev the device pointer
dma the dma number
name the name string of the requester
DESCRIPTION The requested DMA will be... |
snd_dma_alloc_dir_pages(9) | NAME snd_dma_alloc_dir_pages - allocate the buffer area according to the given type and direction
SYNOPSIS int snd_dma_alloc_dir_pages (int type , struct device *device , enum dma_data_direction dir , size_t size , struct snd_dma_buffer *dmab );
ARGUMENTS type the DMA buffer type
device the device... |
snd_dma_alloc_pages_fallback(9) | NAME snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
SYNOPSIS int snd_dma_alloc_pages_fallback (int type , struct device *device , size_t size , struct snd_dma_buffer *dmab );
ARGUMENTS type the DMA buffer type
device the device pointer
siz... |
snd_dma_buffer_mmap(9) | NAME snd_dma_buffer_mmap - perform mmap of the given DMA buffer
SYNOPSIS int snd_dma_buffer_mmap (struct snd_dma_buffer *dmab , struct vm_area_struct *area );
ARGUMENTS dmab buffer allocation information
area VM area information
RETURN zero if successful, or a negative error code
SEE ALSO Kern... |
snd_dma_buffer_sync(9) | NAME snd_dma_buffer_sync - sync DMA buffer between CPU and device
SYNOPSIS void snd_dma_buffer_sync (struct snd_dma_buffer *dmab , enum snd_dma_sync_mode mode );
ARGUMENTS dmab buffer allocation information
mode sync mode
SEE ALSO Kernel file ./sound/core/memalloc.c snd_dma_alloc_dir_pages(9... |
snd_dma_disable(9) | NAME snd_dma_disable - stop the ISA DMA transfer
SYNOPSIS void snd_dma_disable (unsigned long dma );
ARGUMENTS dma the dma number
DESCRIPTION Stops the ISA DMA transfer.
SEE ALSO Kernel file ./sound/core/isadma.c snd_dma_program(9), snd_dma_pointer(9), snd_devm_request_dma(9)
April 2026 ... |
snd_dma_free_pages(9) | NAME snd_dma_free_pages - release the allocated buffer
SYNOPSIS void snd_dma_free_pages (struct snd_dma_buffer *dmab );
ARGUMENTS dmab the buffer allocation record to release
DESCRIPTION Releases the allocated buffer via snd_dma_alloc_pages.
SEE ALSO Kernel file ./sound/core/memalloc.c snd_dma_alloc_dir_pa... |
snd_dma_pointer(9) | NAME snd_dma_pointer - return the current pointer to DMA transfer buffer in bytes
SYNOPSIS unsigned int snd_dma_pointer (unsigned long dma , unsigned int size );
ARGUMENTS dma the dma number
size the dma transfer size
RETURN The current pointer in DMA transfer buffer in bytes.
SEE ALSO Kernel... |
snd_dma_program(9) | NAME snd_dma_program - program an ISA DMA transfer
SYNOPSIS void snd_dma_program (unsigned long dma , unsigned long addr , unsigned int size , unsigned short mode );
ARGUMENTS dma the dma number
addr the physical address of the buffer
size the DMA transfer size
mode ... |
snd_dmaengine_pcm_close(9) | NAME snd_dmaengine_pcm_close - Close a dmaengine based PCM substream
SYNOPSIS int snd_dmaengine_pcm_close (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
RETURN 0 on success, a negative error code otherwise
SEE ALSO Kernel file ./sound/core/pcm_dmaengine.c snd_hwparams_to_dma_slave... |
snd_dmaengine_pcm_close_release_chan(9) | NAME snd_dmaengine_pcm_close_release_chan - Close a dmaengine based PCM substream and release channel
SYNOPSIS int snd_dmaengine_pcm_close_release_chan (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION Releases the DMA channel associated with the PCM substream.
RETURN zero if s... |
snd_dmaengine_pcm_open(9) | NAME snd_dmaengine_pcm_open - Open a dmaengine based PCM substream
SYNOPSIS int snd_dmaengine_pcm_open (struct snd_pcm_substream *substream , struct dma_chan *chan );
ARGUMENTS substream PCM substream
chan DMA channel to use for data transfers
DESCRIPTION The function should usually be called from t... |
snd_dmaengine_pcm_pointer(9) | NAME snd_dmaengine_pcm_pointer - dmaengine based PCM pointer implementation
SYNOPSIS snd_pcm_uframes_t snd_dmaengine_pcm_pointer (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This function can be used as the PCM pointer callback for dmaengine based PCM driver implementations... |
snd_dmaengine_pcm_pointer_no_residue(9) | NAME snd_dmaengine_pcm_pointer_no_residue - dmaengine based PCM pointer implementation
SYNOPSIS snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue (struct snd_pcm_substream *substream );
ARGUMENTS substream PCM substream
DESCRIPTION This function is deprecated and should not be used by new drivers, as its resu... |
snd_dmaengine_pcm_prepare_slave_config(9) | NAME snd_dmaengine_pcm_prepare_slave_config - Generic prepare_slave_config callback
SYNOPSIS int snd_dmaengine_pcm_prepare_slave_config (struct snd_pcm_substream *substream , struct snd_pcm_hw_params *params , struct dma_slave_config *slave_config );
ARGUMENTS substream PCM substream
params hw_params
... |
snd_dmaengine_pcm_refine_runtime_hwparams(9) | NAME snd_dmaengine_pcm_refine_runtime_hwparams - Refine runtime hw params
SYNOPSIS 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 );
ARGUMENTS substream PCM substream
dma_d... |
snd_dmaengine_pcm_register(9) | NAME snd_dmaengine_pcm_register - Register a dmaengine based PCM device
SYNOPSIS int snd_dmaengine_pcm_register (struct device *dev , const struct snd_dmaengine_pcm_config *config , unsigned int flags );
ARGUMENTS dev The parent device for the PCM device
config Platform specific PCM configuration... |
snd_dmaengine_pcm_request_channel(9) | NAME snd_dmaengine_pcm_request_channel - Request channel for the dmaengine PCM
SYNOPSIS struct dma_chan * snd_dmaengine_pcm_request_channel (dma_filter_fn filter_fn , void *filter_data );
ARGUMENTS filter_fn Filter function used to request the DMA channel
filter_data Data passed to the DMA filter function
... |
snd_dmaengine_pcm_set_config_from_dai_data(9) | NAME snd_dmaengine_pcm_set_config_from_dai_data - Initializes a dma slave config using DAI DMA data.
SYNOPSIS 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 *slave_config );
ARGUMENTS substream ... |
snd_dmaengine_pcm_trigger(9) | NAME snd_dmaengine_pcm_trigger - dmaengine based PCM trigger implementation
SYNOPSIS int snd_dmaengine_pcm_trigger (struct snd_pcm_substream *substream , int cmd );
ARGUMENTS substream PCM substream
cmd Trigger command
DESCRIPTION This function can be used as the PCM trigger callback for dmaengine ... |
snd_dmaengine_pcm_unregister(9) | NAME snd_dmaengine_pcm_unregister - Removes a dmaengine based PCM device
SYNOPSIS void snd_dmaengine_pcm_unregister (struct device *dev );
ARGUMENTS dev Parent device the PCM was register with
DESCRIPTION Removes a dmaengine based PCM device previously registered with snd_dmaengine_pcm_register.
SEE ALSO Ke... |
snd_fw_transaction(9) | NAME snd_fw_transaction - send a request and wait for its completion
SYNOPSIS int snd_fw_transaction (struct fw_unit *unit , int tcode , u64 offset , void *buffer , size_t length , unsigned int flags );
ARGUMENTS unit the driver's unit on the target device
tcode the transaction code
offse... |
snd_hda_activate_path(9) | NAME snd_hda_activate_path - activate or deactivate the given path
SYNOPSIS void snd_hda_activate_path (struct hda_codec *codec , struct nid_path *path , bool enable , bool add_aamix );
ARGUMENTS codec the HDA codec
path the path to activate/deactivate
enable flag to activate or not
... |
snd_hda_add_imux_item(9) | NAME snd_hda_add_imux_item - Add an item to input_mux
SYNOPSIS int snd_hda_add_imux_item (struct hda_codec *codec , struct hda_input_mux *imux , const char *label , int index , int *type_idx );
ARGUMENTS codec the HDA codec
imux imux helper object
label the name of imux item to assi... |
snd_hda_add_new_ctls(9) | NAME snd_hda_add_new_ctls - create controls from the array
SYNOPSIS int snd_hda_add_new_ctls (struct hda_codec *codec , const struct snd_kcontrol_new *knew );
ARGUMENTS codec the HDA codec
knew the array of struct snd_kcontrol_new
DESCRIPTION This helper function creates and add new controls in ... |
snd_hda_add_new_path(9) | NAME snd_hda_add_new_path - parse the path between the given NIDs and add to the path list
SYNOPSIS struct nid_path * snd_hda_add_new_path (struct hda_codec *codec , hda_nid_t from_nid , hda_nid_t to_nid , int anchor_nid );
ARGUMENTS codec the HDA codec
from_nid the NID where the path start from
... |
snd_hda_add_verbs(9) | NAME snd_hda_add_verbs - Add verbs to the init list
SYNOPSIS int snd_hda_add_verbs (struct hda_codec *codec , const struct hda_verb *list );
ARGUMENTS codec the HDA codec
list zero-terminated verb list to add
DESCRIPTION Append the given verb list to the execution list. The verbs will be perfor... |
snd_hda_add_vmaster_hook(9) | NAME snd_hda_add_vmaster_hook - Add a vmaster hw specific hook
SYNOPSIS int snd_hda_add_vmaster_hook (struct hda_codec *codec , struct hda_vmaster_mute_hook *hook );
ARGUMENTS codec the HDA codec
hook the vmaster hook object
DESCRIPTION Add a hw specific hook (like EAPD) with the given vmaster s... |
snd_hda_apply_fixup(9) | NAME snd_hda_apply_fixup - Apply the fixup chain with the given action
SYNOPSIS void snd_hda_apply_fixup (struct hda_codec *codec , int action );
ARGUMENTS codec the HDA codec
action fixup action (HDA_FIXUP_ACT_XXX)
SEE ALSO Kernel file ./sound/hda/common/auto_parser.c snd_hda_get_input_pin_attr... |
snd_hda_apply_pincfgs(9) | NAME snd_hda_apply_pincfgs - Set each pin config in the given list
SYNOPSIS void snd_hda_apply_pincfgs (struct hda_codec *codec , const struct hda_pintbl *cfg );
ARGUMENTS codec the HDA codec
cfg NULL-terminated pin config table
SEE ALSO Kernel file ./sound/hda/common/auto_parser.c snd_hda_ge... |
snd_hda_apply_verbs(9) | NAME snd_hda_apply_verbs - Execute the init verb lists
SYNOPSIS void snd_hda_apply_verbs (struct hda_codec *codec );
ARGUMENTS codec the HDA codec
SEE ALSO Kernel file ./sound/hda/common/auto_parser.c snd_hda_get_input_pin_attr(9), hda_get_input_pin_label(9), hda_get_autocfg_input_label(9), snd_hda_get_pin_lab... |
snd_hda_attach_beep_device(9) | NAME snd_hda_attach_beep_device - Attach a beep input device
SYNOPSIS int snd_hda_attach_beep_device (struct hda_codec *codec , int nid );
ARGUMENTS codec the HDA codec
nid beep NID
DESCRIPTION Attach a beep object to the given widget. If beep hint is turned off explicitly or beep_mode of the ... |
snd_hda_bus_reset_codecs(9) | NAME snd_hda_bus_reset_codecs - Reset the bus
SYNOPSIS void snd_hda_bus_reset_codecs (struct hda_bus *bus );
ARGUMENTS bus HD-audio bus
SEE ALSO Kernel file ./sound/hda/common/codec.c snd_hda_sequence_write(9), snd_hda_get_conn_list(9), snd_hda_get_connections(9), snd_hda_override_conn_list(9), snd_hda_get_c... |
snd_hda_check_amp_caps(9) | NAME snd_hda_check_amp_caps - query AMP capabilities
SYNOPSIS bool snd_hda_check_amp_caps (struct hda_codec *codec , hda_nid_t nid , int dir , unsigned int bits );
ARGUMENTS codec the HD-audio codec
nid the NID to query
dir either #HDA_INPUT or #HDA_OUTPUT
bits bit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.