snd_pcm_format_name (9) Linux Manual Page
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 Copyright
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 Copyright
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. Copyright
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. Copyright
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. Copyright
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. Copyright
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 Copyright
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 zero if not. Copyright
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 Copyright
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. Copyright
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) Copyright
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 stream stream direction chmap channel map elements (for query) max_channels the max number of channels for the stream private_value the value passed to each…
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 index, zero-based hardware the hardware type, MPU401_HW_XXXX port the base address of MPU401 port info_flags bitflags MPU401_INFO_XXX irq the ISA…
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 interrupt was handled. IRQ_NONE otherwise. Copyright
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 handled. IRQ_NONE otherwise. Copyright
snd_malloc_pages – allocate pages with the given size Synopsis void *snd_malloc_pages(size_t size, gfp_t gfp_flags); Arguments size the size to allocate in bytes gfp_flags the allocation conditions, GFP_XXX Description Allocates the physically contiguous pages with the given size. Return The pointer of the buffer, or NULL if no enough memory. Copyright
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 returns its user data pointer. This function increments the reference counter of the card instance if an…
snd_jack_set_parent – Set the parent device for a jack Synopsis void snd_jack_set_parent(struct snd_jack *jack, struct device *parent); Arguments jack The jack to configure parent The device to set as parent for the jack. Description Set the parent for the jack devices in the device tree. This function is only valid prior to registration of the…
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_JACK_BTN_ button type to an input layer key, allowing reporting of keys…
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 Copyright
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_type values that can be detected by this jack jjack Used to provide the allocated…