Chapter 7. ASoC

Table of Contents

ASoC Core API
ASoC DAPM API
ASoC DMA Engine API

ASoC Core API

struct snd_soc_jack_pin — Describes a pin to update based on jack detection
struct snd_soc_jack_zone — Describes voltage zones of jack detection
struct snd_soc_jack_gpio — Describes a gpio pin for jack detection
snd_soc_component_to_codec — Casts a component to the CODEC it is embedded in
snd_soc_component_to_platform — Casts a component to the platform it is embedded in
snd_soc_dapm_to_component — Casts a DAPM context to the component it is embedded in
snd_soc_dapm_to_codec — Casts a DAPM context to the CODEC it is embedded in
snd_soc_dapm_to_platform — Casts a DAPM context to the platform it is embedded in
snd_soc_component_get_dapm — Returns the DAPM context associated with a component
snd_soc_dapm_kcontrol_codec — Returns the codec associated to a kcontrol
snd_soc_cache_sync — Sync the register cache with the hardware
snd_soc_codec_init_regmap — Initialize regmap instance for the CODEC
snd_soc_codec_exit_regmap — De-initialize regmap instance for the CODEC
snd_soc_kcontrol_component — Returns the component that registered the control
snd_soc_kcontrol_codec — Returns the CODEC that registered the control
snd_soc_kcontrol_platform — Returns the platform that registered the control
snd_soc_runtime_set_dai_fmt — Change DAI link format for a ASoC runtime
snd_soc_cnew — create new control
snd_soc_add_component_controls — Add an array of controls to a component.
snd_soc_add_codec_controls — add an array of controls to a codec. Convenience function to add a list of controls. Many codecs were duplicating this code.
snd_soc_add_platform_controls — add an array of controls to a platform. Convenience function to add a list of controls.
snd_soc_add_card_controls — add an array of controls to a SoC card. Convenience function to add a list of controls.
snd_soc_add_dai_controls — add an array of controls to a DAI. Convienience function to add a list of controls.
snd_soc_dai_set_sysclk — configure DAI system or master clock.
snd_soc_codec_set_sysclk — configure CODEC system or master clock.
snd_soc_dai_set_clkdiv — configure DAI clock dividers.
snd_soc_dai_set_pll — configure DAI PLL.
snd_soc_dai_set_bclk_ratio — configure BCLK to sample rate ratio.
snd_soc_dai_set_fmt — configure DAI hardware audio format.
snd_soc_dai_set_tdm_slot — Configures a DAI for TDM operation
snd_soc_dai_set_channel_map — configure DAI audio channel map
snd_soc_dai_set_tristate — configure DAI system or master clock.
snd_soc_dai_digital_mute — configure DAI system or master clock.
snd_soc_register_card — Register a card with the ASoC core
snd_soc_unregister_card — Unregister a card with the ASoC core
snd_soc_component_init_regmap — Initialize regmap instance for the component
snd_soc_component_exit_regmap — De-initialize regmap instance for the component
snd_soc_unregister_component — Unregister a component from the ASoC core
snd_soc_add_platform — Add a platform to the ASoC core
snd_soc_register_platform — Register a platform with the ASoC core
snd_soc_remove_platform — Remove a platform from the ASoC core
snd_soc_unregister_platform — Unregister a platform from the ASoC core
snd_soc_register_codec — Register a codec with the ASoC core
snd_soc_unregister_codec — Unregister a codec from the ASoC core
.//sound/soc/soc-cache.c — Document generation inconsistency
devm_snd_soc_register_component — resource managed component registration
devm_snd_soc_register_platform — resource managed platform registration
devm_snd_soc_register_card — resource managed card registration
devm_snd_dmaengine_pcm_register — resource managed dmaengine PCM registration
snd_soc_component_read — Read register value
snd_soc_component_write — Write register value
snd_soc_component_update_bits — Perform read/modify/write cycle
snd_soc_component_update_bits_async — Perform asynchronous read/modify/write cycle
snd_soc_component_async_complete — Ensure asynchronous I/O has completed
snd_soc_component_test_bits — Test register for change
snd_soc_update_bits — update codec register bits
snd_soc_test_bits — test register for change
snd_soc_set_runtime_hwparams — set the runtime hardware parameters