id
stringlengths
4
63
text
stringlengths
153
8.81M
snd_hdac_get_stream(9)
NAME snd_hdac_get_stream - return hdac_stream based on stream_tag and direction SYNOPSIS struct hdac_stream * snd_hdac_get_stream (struct hdac_bus *bus , int dir , int stream_tag ); ARGUMENTS bus HD-audio core bus dir direction for the stream to be found stream_tag stream tag for stre...
snd_hdac_get_stream_stripe_ctl(9)
NAME snd_hdac_get_stream_stripe_ctl - get stripe control value SYNOPSIS int snd_hdac_get_stream_stripe_ctl (struct hdac_bus *bus , struct snd_pcm_substream *substream ); ARGUMENTS bus HD-audio core bus substream PCM substream SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_stream_init(9), ...
snd_hdac_get_sub_nodes(9)
NAME snd_hdac_get_sub_nodes - get start NID and number of subtree nodes SYNOPSIS int snd_hdac_get_sub_nodes (struct hdac_device *codec , hda_nid_t nid , hda_nid_t *start_id ); ARGUMENTS codec the codec object nid NID to inspect start_id the pointer to store the starting NID DESCRIPTI...
snd_hdac_i915_init(9)
NAME snd_hdac_i915_init - Initialize i915 audio component SYNOPSIS int snd_hdac_i915_init (struct hdac_bus *bus ); ARGUMENTS bus HDA core bus DESCRIPTION This function is supposed to be used only by a HD-audio controller driver that needs the interaction with i915 graphics. This function initializes and set...
snd_hdac_i915_set_bclk(9)
NAME snd_hdac_i915_set_bclk - Reprogram BCLK for HSW/BDW SYNOPSIS void snd_hdac_i915_set_bclk (struct hdac_bus *bus ); ARGUMENTS bus HDA core bus DESCRIPTION Intel HSW/BDW display HDA controller is in GPU. Both its power and link BCLK depends on GPU. Two Extended Mode registers EM4 (M value) and EM5 (N Value...
snd_hdac_is_supported_format(9)
NAME snd_hdac_is_supported_format - Check the validity of the format SYNOPSIS bool snd_hdac_is_supported_format (struct hdac_device *codec , hda_nid_t nid , unsigned int format ); ARGUMENTS codec the codec object nid NID to check format the HD-audio format value to check DESCRIPTIO...
snd_hdac_make_cmd(9)
NAME snd_hdac_make_cmd - compose a 32bit command word to be sent to the HD-audio controller SYNOPSIS unsigned int snd_hdac_make_cmd (struct hdac_device *codec , hda_nid_t nid , unsigned int verb , unsigned int parm ); ARGUMENTS codec the codec object nid NID to encode verb verb to...
snd_hdac_override_parm(9)
NAME snd_hdac_override_parm - override read-only parameters SYNOPSIS int snd_hdac_override_parm (struct hdac_device *codec , hda_nid_t nid , unsigned int parm , unsigned int val ); ARGUMENTS codec the codec object nid NID for the parameter parm the parameter to change val ...
snd_hdac_power_down(9)
NAME snd_hdac_power_down - power down the codec SYNOPSIS int snd_hdac_power_down (struct hdac_device *codec ); ARGUMENTS codec the codec object DESCRIPTION Returns zero if successful, or a negative error code. SEE ALSO Kernel file ./sound/hda/core/device.c snd_hdac_device_init(9), snd_hdac_device_exit...
snd_hdac_power_down_pm(9)
NAME snd_hdac_power_down_pm - power down the codec SYNOPSIS int snd_hdac_power_down_pm (struct hdac_device *codec ); ARGUMENTS codec the codec object DESCRIPTION Like snd_hdac_power_up_pm, this function is used in a recursive code path like init code which may be called by PM suspend/resume again. Returns zer...
snd_hdac_power_up(9)
NAME snd_hdac_power_up - power up the codec SYNOPSIS int snd_hdac_power_up (struct hdac_device *codec ); ARGUMENTS codec the codec object DESCRIPTION This function calls the runtime PM helper to power up the given codec. Unlike snd_hdac_power_up_pm, you should call this only for the code path that isn't inc...
snd_hdac_power_up_pm(9)
NAME snd_hdac_power_up_pm - power up the codec SYNOPSIS int snd_hdac_power_up_pm (struct hdac_device *codec ); ARGUMENTS codec the codec object DESCRIPTION This function can be called in a recursive code path like init code which may be called by PM suspend/resume again. OTOH, if a power-up call must wake u...
snd_hdac_query_supported_pcm(9)
NAME snd_hdac_query_supported_pcm - query the supported PCM rates and formats SYNOPSIS int snd_hdac_query_supported_pcm (struct hdac_device *codec , hda_nid_t nid , u32 *ratesp , u64 *formatsp , u32 *subformatsp , unsigned int *bpsp ); ARGUMENTS codec the codec object nid NID to query ra...
snd_hdac_read(9)
NAME snd_hdac_read - execute a verb SYNOPSIS int snd_hdac_read (struct hdac_device *codec , hda_nid_t nid , unsigned int verb , unsigned int parm , unsigned int *res ); ARGUMENTS codec the codec object nid NID to execute a verb verb verb to execute parm parameter fo...
snd_hdac_read_parm(9)
NAME snd_hdac_read_parm - read a codec parameter SYNOPSIS int snd_hdac_read_parm (struct hdac_device *codec , hda_nid_t nid , int parm ); ARGUMENTS codec the codec object nid NID to read a parameter parm parameter to read DESCRIPTION Returns -1 for error. If you need to distingu...
snd_hdac_read_parm_uncached(9)
NAME snd_hdac_read_parm_uncached - read a codec parameter without caching SYNOPSIS int snd_hdac_read_parm_uncached (struct hdac_device *codec , hda_nid_t nid , int parm ); ARGUMENTS codec the codec object nid NID to read a parameter parm parameter to read DESCRIPTION Returns -1 f...
snd_hdac_refresh_widgets(9)
NAME snd_hdac_refresh_widgets - Reset the widget start/end nodes SYNOPSIS int snd_hdac_refresh_widgets (struct hdac_device *codec ); ARGUMENTS codec the codec object SEE ALSO Kernel file ./sound/hda/core/device.c snd_hdac_device_init(9), snd_hdac_device_exit(9), snd_hdac_device_register(9), snd_hdac_...
snd_hdac_regmap_add_vendor_verb(9)
NAME snd_hdac_regmap_add_vendor_verb - add a vendor-specific verb to regmap SYNOPSIS int snd_hdac_regmap_add_vendor_verb (struct hdac_device *codec , unsigned int verb ); ARGUMENTS codec the codec object verb verb to allow accessing via regmap DESCRIPTION Returns zero for success or a negative e...
snd_hdac_regmap_encode_amp(9)
NAME snd_hdac_regmap_encode_amp - encode the AMP verb to a pseudo register SYNOPSIS snd_hdac_regmap_encode_amp (nid , ch , dir , idx ); ARGUMENTS nid widget NID ch channel (left = 0, right = 1) dir direction (#HDA_INPUT, #HDA_OUTPUT) idx input index value DESC...
snd_hdac_regmap_encode_amp_stereo(9)
NAME snd_hdac_regmap_encode_amp_stereo - encode a pseudo register for stereo AMPs SYNOPSIS snd_hdac_regmap_encode_amp_stereo (nid , dir , idx ); ARGUMENTS nid widget NID dir direction (#HDA_INPUT, #HDA_OUTPUT) idx input index value DESCRIPTION Returns an encoded pseudo registe...
snd_hdac_regmap_encode_verb(9)
NAME snd_hdac_regmap_encode_verb - encode the verb to a pseudo register SYNOPSIS snd_hdac_regmap_encode_verb (nid , verb ); ARGUMENTS nid widget NID verb codec verb DESCRIPTION Returns an encoded pseudo register. SEE ALSO Kernel file ./include/sound/hda_regmap.h snd_hdac_regmap_en...
snd_hdac_regmap_exit(9)
NAME snd_hdac_regmap_exit - Release the regmap from HDA codec SYNOPSIS void snd_hdac_regmap_exit (struct hdac_device *codec ); ARGUMENTS codec the codec object SEE ALSO Kernel file ./sound/hda/core/regmap.c snd_hdac_regmap_init(9), snd_hdac_regmap_add_vendor_verb(9), snd_hdac_regmap_write_raw(9), sn...
snd_hdac_regmap_get_amp(9)
NAME snd_hdac_regmap_get_amp - Read AMP value SYNOPSIS int snd_hdac_regmap_get_amp (struct hdac_device *codec , hda_nid_t nid , int ch , int dir , int idx ); ARGUMENTS codec HD-audio codec nid NID to read the AMP value ch channel (left=0 or right=1) dir -- undesc...
snd_hdac_regmap_get_amp_stereo(9)
NAME snd_hdac_regmap_get_amp_stereo - Read stereo AMP values SYNOPSIS int snd_hdac_regmap_get_amp_stereo (struct hdac_device *codec , hda_nid_t nid , int dir , int idx ); ARGUMENTS codec HD-audio codec nid NID to read the AMP value dir -- undescribed -- idx -- und...
snd_hdac_regmap_init(9)
NAME snd_hdac_regmap_init - Initialize regmap for HDA register accesses SYNOPSIS int snd_hdac_regmap_init (struct hdac_device *codec ); ARGUMENTS codec the codec object DESCRIPTION Returns zero for success or a negative error code. SEE ALSO Kernel file ./sound/hda/core/regmap.c snd_hdac_regmap_exit(9), ...
snd_hdac_regmap_read_raw(9)
NAME snd_hdac_regmap_read_raw - read a pseudo register with power mgmt SYNOPSIS int snd_hdac_regmap_read_raw (struct hdac_device *codec , unsigned int reg , unsigned int *val ); ARGUMENTS codec the codec object reg pseudo register val pointer to store the read value DESCRIPTION ...
snd_hdac_regmap_sync(9)
NAME snd_hdac_regmap_sync - sync out the cached values for PM resume SYNOPSIS void snd_hdac_regmap_sync (struct hdac_device *codec ); ARGUMENTS codec the codec object SEE ALSO Kernel file ./sound/hda/core/regmap.c snd_hdac_regmap_init(9), snd_hdac_regmap_exit(9), snd_hdac_regmap_add_vendor_verb(9), snd_h...
snd_hdac_regmap_sync_node(9)
NAME snd_hdac_regmap_sync_node - sync the widget node attributes SYNOPSIS void snd_hdac_regmap_sync_node (struct hdac_device *codec , hda_nid_t nid ); ARGUMENTS codec HD-audio codec nid NID to sync SEE ALSO Kernel file ./include/sound/hda_regmap.h snd_hdac_regmap_encode_verb(9), snd_hdac_re...
snd_hdac_regmap_update_amp(9)
NAME snd_hdac_regmap_update_amp - update the AMP value SYNOPSIS int snd_hdac_regmap_update_amp (struct hdac_device *codec , hda_nid_t nid , int ch , int dir , int idx , int mask , int val ); ARGUMENTS codec HD-audio codec nid NID to read the AMP value ch channel (left=0 or right...
snd_hdac_regmap_update_amp_stereo(9)
NAME snd_hdac_regmap_update_amp_stereo - update the stereo AMP value SYNOPSIS int snd_hdac_regmap_update_amp_stereo (struct hdac_device *codec , hda_nid_t nid , int dir , int idx , int mask , int val ); ARGUMENTS codec HD-audio codec nid NID to read the AMP value dir -- undescrib...
snd_hdac_regmap_update_raw(9)
NAME snd_hdac_regmap_update_raw - update a pseudo register with power mgmt SYNOPSIS int snd_hdac_regmap_update_raw (struct hdac_device *codec , unsigned int reg , unsigned int mask , unsigned int val ); ARGUMENTS codec the codec object reg pseudo register mask bit mask to update ...
snd_hdac_regmap_update_raw_once(9)
NAME snd_hdac_regmap_update_raw_once - initialize the register value only once SYNOPSIS int snd_hdac_regmap_update_raw_once (struct hdac_device *codec , unsigned int reg , unsigned int mask , unsigned int val ); ARGUMENTS codec the codec object reg pseudo register mask bit mask to...
snd_hdac_regmap_write(9)
NAME snd_hdac_regmap_write - Write a verb with caching SYNOPSIS int snd_hdac_regmap_write (struct hdac_device *codec , hda_nid_t nid , unsigned int verb , unsigned int val ); ARGUMENTS codec -- undescribed -- nid codec NID verb -- undescribed -- val value to write ...
snd_hdac_regmap_write_raw(9)
NAME snd_hdac_regmap_write_raw - write a pseudo register with power mgmt SYNOPSIS int snd_hdac_regmap_write_raw (struct hdac_device *codec , unsigned int reg , unsigned int val ); ARGUMENTS codec the codec object reg pseudo register val value to write DESCRIPTION Returns zero if...
snd_hdac_set_codec_wakeup(9)
NAME snd_hdac_set_codec_wakeup - Enable / disable HDMI/DP codec wakeup SYNOPSIS int snd_hdac_set_codec_wakeup (struct hdac_bus *bus , bool enable ); ARGUMENTS bus HDA core bus enable enable or disable the wakeup DESCRIPTION This function is supposed to be used only by a HD-audio controller drive...
snd_hdac_spdif_stream_format(9)
NAME snd_hdac_spdif_stream_format - convert format parameters to SDxFMT value. SYNOPSIS unsigned int snd_hdac_spdif_stream_format (unsigned int channels , unsigned int bits , unsigned int rate , unsigned short spdif_ctls ); ARGUMENTS channels the number of channels. bits bits per sample. rat...
snd_hdac_stop_streams(9)
NAME snd_hdac_stop_streams - stop all streams SYNOPSIS void snd_hdac_stop_streams (struct hdac_bus *bus ); ARGUMENTS bus HD-audio core bus SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac_stream_init(9), snd_hdac_stream_start(9), snd_hdac_stream_clear(9), ...
snd_hdac_stop_streams_and_chip(9)
NAME snd_hdac_stop_streams_and_chip - stop all streams and chip if running SYNOPSIS void snd_hdac_stop_streams_and_chip (struct hdac_bus *bus ); ARGUMENTS bus HD-audio core bus SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac_stream_init(9), snd_hdac_stream_start(9)...
snd_hdac_stream_assign(9)
NAME snd_hdac_stream_assign - assign a stream for the PCM SYNOPSIS struct hdac_stream * snd_hdac_stream_assign (struct hdac_bus *bus , struct snd_pcm_substream *substream ); ARGUMENTS bus HD-audio core bus substream PCM substream to assign DESCRIPTION Look for an unused stream for the given P...
snd_hdac_stream_cleanup(9)
NAME snd_hdac_stream_cleanup - cleanup a stream SYNOPSIS void snd_hdac_stream_cleanup (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to clean up SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac_stream_init(9), snd_hdac_stream_start(...
snd_hdac_stream_clear(9)
NAME snd_hdac_stream_clear - helper to clear stream registers and stop DMA transfers SYNOPSIS void snd_hdac_stream_clear (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to stop SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac_stream_init(9)...
snd_hdac_stream_drsm_enable(9)
NAME snd_hdac_stream_drsm_enable - enable DMA resume for a stream SYNOPSIS void snd_hdac_stream_drsm_enable (struct hdac_bus *bus , bool enable , int index ); ARGUMENTS bus HD-audio core bus enable flag to enable/disable DRSM index stream index for which DRSM need to be enabled SEE...
snd_hdac_stream_format(9)
NAME snd_hdac_stream_format - convert format parameters to SDxFMT value. SYNOPSIS unsigned int snd_hdac_stream_format (unsigned int channels , unsigned int bits , unsigned int rate ); ARGUMENTS channels the number of channels. bits bits per sample. rate the sample rate. RETURN The fo...
snd_hdac_stream_format_bits(9)
NAME snd_hdac_stream_format_bits - obtain bits per sample value. SYNOPSIS unsigned int snd_hdac_stream_format_bits (snd_pcm_format_t format , snd_pcm_subformat_t subformat , unsigned int maxbits ); ARGUMENTS format the PCM format. subformat the PCM subformat. maxbits the maximum bits per sa...
snd_hdac_stream_init(9)
NAME snd_hdac_stream_init - initialize each stream (aka device) SYNOPSIS void snd_hdac_stream_init (struct hdac_bus *bus , struct hdac_stream *azx_dev , int idx , int direction , int tag ); ARGUMENTS bus HD-audio core bus azx_dev HD-audio core stream object to initialize idx stream...
snd_hdac_stream_release(9)
NAME snd_hdac_stream_release - release the assigned stream SYNOPSIS void snd_hdac_stream_release (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to release DESCRIPTION Release the stream that has been assigned by snd_hdac_stream_assign. SEE ALSO Kernel file ./sound/hda/core/stream.c...
snd_hdac_stream_release_locked(9)
NAME snd_hdac_stream_release_locked - release the assigned stream SYNOPSIS void snd_hdac_stream_release_locked (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to release DESCRIPTION Release the stream that has been assigned by snd_hdac_stream_assign. The bus->reg_lock needs to be taken at...
snd_hdac_stream_reset(9)
NAME snd_hdac_stream_reset - reset a stream SYNOPSIS void snd_hdac_stream_reset (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to reset SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac_stream_init(9), snd_hdac_stream_start(9), snd...
snd_hdac_stream_set_dpibr(9)
NAME snd_hdac_stream_set_dpibr - sets the dpibr value of a stream SYNOPSIS int snd_hdac_stream_set_dpibr (struct hdac_bus *bus , struct hdac_stream *azx_dev , u32 value ); ARGUMENTS bus HD-audio core bus azx_dev hdac_stream value dpib value to set SEE ALSO Kernel file ./sound/...
snd_hdac_stream_set_lpib(9)
NAME snd_hdac_stream_set_lpib - sets the lpib value of a stream SYNOPSIS int snd_hdac_stream_set_lpib (struct hdac_stream *azx_dev , u32 value ); ARGUMENTS azx_dev hdac_stream value lpib value to set SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_h...
snd_hdac_stream_set_params(9)
NAME snd_hdac_stream_set_params - set stream parameters SYNOPSIS int snd_hdac_stream_set_params (struct hdac_stream *azx_dev , unsigned int format_val ); ARGUMENTS azx_dev HD-audio core stream for which parameters are to be set format_val format value parameter DESCRIPTION Setup the HD-audio core stream...
snd_hdac_stream_set_spib(9)
NAME snd_hdac_stream_set_spib - sets the spib value of a stream SYNOPSIS int snd_hdac_stream_set_spib (struct hdac_bus *bus , struct hdac_stream *azx_dev , u32 value ); ARGUMENTS bus HD-audio core bus azx_dev hdac_stream value spib value to set SEE ALSO Kernel file ./sound/hda...
snd_hdac_stream_setup(9)
NAME snd_hdac_stream_setup - set up the SD for streaming SYNOPSIS int snd_hdac_stream_setup (struct hdac_stream *azx_dev , bool code_loading ); ARGUMENTS azx_dev HD-audio core stream to set up code_loading Whether the stream is for PCM or code-loading. SEE ALSO Kernel file ./soun...
snd_hdac_stream_setup_bdle(9)
NAME snd_hdac_stream_setup_bdle - set up BDL entries SYNOPSIS int snd_hdac_stream_setup_bdle (struct hdac_stream *azx_dev , struct snd_dma_buffer *dmab , struct snd_pcm_runtime *runtime ); ARGUMENTS azx_dev HD-audio core stream to set up dmab allocated DMA buffer runtime substream runti...
snd_hdac_stream_setup_periods(9)
NAME snd_hdac_stream_setup_periods - set up BDL entries SYNOPSIS int snd_hdac_stream_setup_periods (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to set up DESCRIPTION Set up the buffer descriptor table of the given stream based on the period and buffer sizes of the assigned PCM substream...
snd_hdac_stream_spbcap_enable(9)
NAME snd_hdac_stream_spbcap_enable - enable SPIB for a stream SYNOPSIS void snd_hdac_stream_spbcap_enable (struct hdac_bus *bus , bool enable , int index ); ARGUMENTS bus HD-audio core bus enable flag to enable/disable SPIB index stream index for which SPIB need to be enabled SEE A...
snd_hdac_stream_start(9)
NAME snd_hdac_stream_start - start a stream SYNOPSIS void snd_hdac_stream_start (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to start DESCRIPTION Start a stream, set start_wallclk and set the running flag. SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_...
snd_hdac_stream_stop(9)
NAME snd_hdac_stream_stop - stop a stream SYNOPSIS void snd_hdac_stream_stop (struct hdac_stream *azx_dev ); ARGUMENTS azx_dev HD-audio core stream to stop DESCRIPTION Stop a stream DMA and disable stream interrupt SEE ALSO Kernel file ./sound/hda/core/stream.c snd_hdac_get_stream_stripe_ctl(9), snd_hdac...
snd_hdac_stream_sync(9)
NAME snd_hdac_stream_sync - sync with start/stop trigger operation SYNOPSIS void snd_hdac_stream_sync (struct hdac_stream *azx_dev , bool start , unsigned int streams ); ARGUMENTS azx_dev HD-audio core stream (master stream) start true = start, false = stop streams bit flags of streams t...
snd_hdac_stream_sync_trigger(9)
NAME snd_hdac_stream_sync_trigger - turn on/off stream sync register SYNOPSIS void snd_hdac_stream_sync_trigger (struct hdac_stream *azx_dev , bool set , unsigned int streams , unsigned int reg ); ARGUMENTS azx_dev HD-audio core stream (master stream) set true = set, false = clear streams ...
snd_hdac_stream_timecounter_init(9)
NAME snd_hdac_stream_timecounter_init - initialize time counter SYNOPSIS void snd_hdac_stream_timecounter_init (struct hdac_stream *azx_dev , unsigned int streams , bool start ); ARGUMENTS azx_dev HD-audio core stream (master stream) streams bit flags of streams to set up start true for ...
snd_hdac_sync_audio_rate(9)
NAME snd_hdac_sync_audio_rate - Set N/CTS based on the sample rate SYNOPSIS int snd_hdac_sync_audio_rate (struct hdac_device *codec , hda_nid_t nid , int dev_id , int rate ); ARGUMENTS codec HDA codec nid the pin widget NID dev_id device identifier rate the sample rat...
snd_hdac_sync_power_state(9)
NAME snd_hdac_sync_power_state - wait until actual power state matches with the target state SYNOPSIS unsigned int snd_hdac_sync_power_state (struct hdac_device *codec , hda_nid_t nid , unsigned int power_state ); ARGUMENTS codec the HDAC device nid NID to send the command power_state ta...
snd_hwdep_new(9)
NAME snd_hwdep_new - create a new hwdep instance SYNOPSIS int snd_hwdep_new (struct snd_card *card , char *id , int device , struct snd_hwdep **rhwdep ); ARGUMENTS card the card instance id the id string device the device index (zero-based) rhwdep the pointer to store...
snd_hwparams_to_dma_slave_config(9)
NAME snd_hwparams_to_dma_slave_config - Convert hw_params to dma_slave_config SYNOPSIS 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 ); ARGUMENTS substream PCM substream params hw_params ...
snd_info_create_card_entry(9)
NAME snd_info_create_card_entry - create an info entry for the given card SYNOPSIS struct snd_info_entry * snd_info_create_card_entry (struct snd_card *card , const char *name , struct snd_info_entry * parent ); ARGUMENTS card the card instance name the file name parent the parent d...
snd_info_create_module_entry(9)
NAME snd_info_create_module_entry - create an info entry for the given module SYNOPSIS struct snd_info_entry * snd_info_create_module_entry (struct module * module , const char *name , struct snd_info_entry *parent ); ARGUMENTS module the module pointer name the file name parent the p...
snd_info_free_entry(9)
NAME snd_info_free_entry - release the info entry SYNOPSIS void snd_info_free_entry (struct snd_info_entry * entry ); ARGUMENTS entry the info entry DESCRIPTION Releases the info entry. SEE ALSO Kernel file ./sound/core/info.c snd_info_get_line(9), snd_info_get_str(9), snd_info_create_module_entry(9), snd_inf...
snd_info_get_line(9)
NAME snd_info_get_line - read one line from the procfs buffer SYNOPSIS int snd_info_get_line (struct snd_info_buffer *buffer , char *line , int len ); ARGUMENTS buffer the procfs buffer line the buffer to store len the max. buffer size DESCRIPTION Reads one line from the buffer an...
snd_info_get_str(9)
NAME snd_info_get_str - parse a string token SYNOPSIS const char * snd_info_get_str (char *dest , const char *src , int len ); ARGUMENTS dest the buffer to store the string token src the original string len the max. length of token - 1 DESCRIPTION Parses the original string and...
snd_info_register(9)
NAME snd_info_register - register the info entry SYNOPSIS int snd_info_register (struct snd_info_entry *entry ); ARGUMENTS entry the info entry DESCRIPTION Registers the proc info entry. The all children entries are registered recursively. RETURN Zero if successful, or a negative error code on failure. SEE ...
snd_interval_div(9)
NAME snd_interval_div - refine the interval value with division SYNOPSIS void snd_interval_div (const struct snd_interval *a , const struct snd_interval *b , struct snd_interval *c ); ARGUMENTS a dividend b divisor c quotient DESCRIPTION c = a / b Returns non-zero if the...
snd_interval_list(9)
NAME snd_interval_list - refine the interval value from the list SYNOPSIS int snd_interval_list (struct snd_interval *i , unsigned int count , const unsigned int *list , unsigned int mask ); ARGUMENTS i the interval value to refine count the number of elements in the list list t...
snd_interval_muldivk(9)
NAME snd_interval_muldivk - refine the interval value SYNOPSIS void snd_interval_muldivk (const struct snd_interval *a , const struct snd_interval *b , unsigned int k , struct snd_interval *c ); ARGUMENTS a dividend 1 b dividend 2 k divisor (as integer) c ...
snd_interval_mulkdiv(9)
NAME snd_interval_mulkdiv - refine the interval value SYNOPSIS void snd_interval_mulkdiv (const struct snd_interval *a , unsigned int k , const struct snd_interval *b , struct snd_interval *c ); ARGUMENTS a dividend 1 k dividend 2 (as integer) b divisor c ...
snd_interval_ranges(9)
NAME snd_interval_ranges - refine the interval value from the list of ranges SYNOPSIS int snd_interval_ranges (struct snd_interval *i , unsigned int count , const struct snd_interval *ranges , unsigned int mask ); ARGUMENTS i the interval value to refine count the number of elements in the lis...
snd_interval_ratden(9)
NAME snd_interval_ratden - refine the interval value SYNOPSIS int snd_interval_ratden (struct snd_interval *i , unsigned int rats_count , const struct snd_ratden *rats , unsigned int *nump , unsigned int *denp ); ARGUMENTS i interval to refine rats_count number of struct ratden rats ...
snd_interval_ratnum(9)
NAME snd_interval_ratnum - refine the interval value SYNOPSIS int snd_interval_ratnum (struct snd_interval *i , unsigned int rats_count , const struct snd_ratnum *rats , unsigned int *nump , unsigned int *denp ); ARGUMENTS i interval to refine rats_count number of ratnum_t rats ratnu...
snd_interval_refine(9)
NAME snd_interval_refine - refine the interval value of configurator SYNOPSIS int snd_interval_refine (struct snd_interval *i , const struct snd_interval *v ); ARGUMENTS i the interval value to refine v the interval value to refer to DESCRIPTION Refines the interval value with the referen...
snd_iprintf(9)
NAME snd_iprintf - printf on the procfs buffer SYNOPSIS snd_iprintf (buf , fmt , args... ); ARGUMENTS buf the procfs buffer fmt the printf format args variable arguments DESCRIPTION Outputs the string on the procfs buffer just like printf. RETURN zero for success, or a negativ...
snd_jack_add_new_kctl(9)
NAME snd_jack_add_new_kctl - Create a new snd_jack_kctl and add it to jack SYNOPSIS int snd_jack_add_new_kctl (struct snd_jack *jack , const char * name , int mask ); ARGUMENTS jack the jack instance which the kctl will attaching to name the name for the snd_kcontrol object mask a...
snd_jack_new(9)
NAME snd_jack_new - Create a new jack SYNOPSIS int snd_jack_new (struct snd_card *card , const char *id , int type , struct snd_jack **jjack , bool initial_kctl , bool phantom_jack ); ARGUMENTS card the card instance id an identifying string for this jack type a bitmask of enum ...
snd_jack_report(9)
NAME snd_jack_report - Report the current status of a jack SYNOPSIS void snd_jack_report (struct snd_jack *jack , int status ); ARGUMENTS jack The jack to report status for status The current status of the jack NOTE This function uses mutexes and should be called from a context which can sleep (s...
snd_jack_set_key(9)
NAME snd_jack_set_key - Set a key mapping on a jack SYNOPSIS int snd_jack_set_key (struct snd_jack *jack , enum snd_jack_types type , int keytype ); ARGUMENTS jack The jack to configure type Jack report type for this key keytype Input layer key type to be reported DESCRIPTION Map a...
snd_lookup_minor_data(9)
NAME snd_lookup_minor_data - get user data of a registered device SYNOPSIS void * snd_lookup_minor_data (unsigned int minor , int type ); ARGUMENTS minor the minor number type device type (SNDRV_DEVICE_TYPE_XXX) DESCRIPTION Checks that a minor device with the specified type is registered, and re...
snd_mpu401_uart_interrupt(9)
NAME snd_mpu401_uart_interrupt - generic MPU401-UART interrupt handler SYNOPSIS irqreturn_t snd_mpu401_uart_interrupt (int irq , void *dev_id ); ARGUMENTS irq the irq number dev_id mpu401 instance DESCRIPTION Processes the interrupt for MPU401-UART i/o. RETURN IRQ_HANDLED if the interrupt was h...
snd_mpu401_uart_interrupt_tx(9)
NAME snd_mpu401_uart_interrupt_tx - generic MPU401-UART transmit irq handler SYNOPSIS irqreturn_t snd_mpu401_uart_interrupt_tx (int irq , void *dev_id ); ARGUMENTS irq the irq number dev_id mpu401 instance DESCRIPTION Processes the interrupt for MPU401-UART output. RETURN IRQ_HANDLED if the int...
snd_mpu401_uart_new(9)
NAME snd_mpu401_uart_new - create an MPU401-UART instance SYNOPSIS int snd_mpu401_uart_new (struct snd_card *card , int device , unsigned short hardware , unsigned long port , unsigned int info_flags , int irq , struct snd_rawmidi ** rrawmidi ); ARGUMENTS card the card instance device the device i...
snd_pci_quirk_lookup(9)
NAME snd_pci_quirk_lookup - look up a PCI SSID quirk list SYNOPSIS const struct snd_pci_quirk * snd_pci_quirk_lookup (struct pci_dev *pci , const struct snd_pci_quirk *list ); ARGUMENTS pci pci_dev handle list quirk list, terminated by a null entry DESCRIPTION Look through the given quirk list...
snd_pci_quirk_lookup_id(9)
NAME snd_pci_quirk_lookup_id - look up a PCI SSID quirk list SYNOPSIS const struct snd_pci_quirk * snd_pci_quirk_lookup_id (u16 vendor , u16 device , const struct snd_pci_quirk *list ); ARGUMENTS vendor PCI SSV id device PCI SSD id list quirk list, terminated by a null entry DESCRIPT...
snd_pcm_add_chmap_ctls(9)
NAME snd_pcm_add_chmap_ctls - create channel-mapping control elements SYNOPSIS int snd_pcm_add_chmap_ctls (struct snd_pcm *pcm , int stream , const struct snd_pcm_chmap_elem *chmap , int max_channels , unsigned long private_value , struct snd_pcm_chmap **info_ret ); ARGUMENTS pcm the assigned PCM instance ...
snd_pcm_capture_avail(9)
NAME snd_pcm_capture_avail - Get the available (readable) space for capture SYNOPSIS snd_pcm_uframes_t snd_pcm_capture_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 ./include/s...
snd_pcm_capture_empty(9)
NAME snd_pcm_capture_empty - check whether the capture buffer is empty SYNOPSIS int snd_pcm_capture_empty (struct snd_pcm_substream *substream ); ARGUMENTS substream the pcm substream instance DESCRIPTION Checks whether the capture buffer is empty. RETURN Non-zero if empty, or zero if not. SEE ALSO Kernel file ....
snd_pcm_capture_hw_avail(9)
NAME snd_pcm_capture_hw_avail - Get the free space for capture SYNOPSIS snd_pcm_sframes_t snd_pcm_capture_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_irqsa...
snd_pcm_capture_ready(9)
NAME snd_pcm_capture_ready - check whether the capture buffer is available SYNOPSIS int snd_pcm_capture_ready (struct snd_pcm_substream *substream ); ARGUMENTS substream the pcm substream instance DESCRIPTION Checks whether enough capture data is available on the capture buffer. RETURN Non-zero if available, or z...
snd_pcm_chmap_substream(9)
NAME snd_pcm_chmap_substream - get the PCM substream assigned to the given chmap info SYNOPSIS struct snd_pcm_substream * snd_pcm_chmap_substream (struct snd_pcm_chmap *info , unsigned int idx ); ARGUMENTS info chmap information idx the substream number index RETURN the matched PCM substream, ...
snd_pcm_create_iec958_consumer(9)
NAME snd_pcm_create_iec958_consumer - create consumer format IEC958 channel status SYNOPSIS int snd_pcm_create_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 ...
snd_pcm_create_iec958_consumer_default(9)
NAME snd_pcm_create_iec958_consumer_default - create default consumer format IEC958 channel status SYNOPSIS int snd_pcm_create_iec958_consumer_default (u8 *cs , size_t len ); ARGUMENTS cs channel status buffer, at least four bytes len length of channel status buffer DESCRIPTION Create the ...
snd_pcm_create_iec958_consumer_hw_params(9)
NAME snd_pcm_create_iec958_consumer_hw_params - create IEC958 channel status SYNOPSIS int snd_pcm_create_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 buffer, at...
snd_pcm_direction_name(9)
NAME snd_pcm_direction_name - Get a string naming the direction of a stream SYNOPSIS const char * snd_pcm_direction_name (int direction ); ARGUMENTS direction Stream's direction, one of SNDRV_PCM_STREAM_XXX DESCRIPTION Returns a string naming the direction of the stream. SEE ALSO Kernel file ./include/sound/pcm.h...