/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-dapm.c | 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 42 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 51 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, 58 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 62 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 65 static unsigned int soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg); 67 /* dapm power sequences - make this per codec in the future */ 150 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 152 if (dapm->card && dapm in dapm_assert_locked() 617 soc_dapm_prefix(struct snd_soc_dapm_context *dapm) soc_dapm_prefix() argument 624 soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg) soc_dapm_read() argument 631 soc_dapm_update_bits(struct snd_soc_dapm_context *dapm, int reg, unsigned int mask, unsigned int value) soc_dapm_update_bits() argument 640 soc_dapm_test_bits(struct snd_soc_dapm_context *dapm, int reg, unsigned int mask, unsigned int value) soc_dapm_test_bits() argument 648 soc_dapm_async_complete(struct snd_soc_dapm_context *dapm) soc_dapm_async_complete() argument 700 snd_soc_dapm_force_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) snd_soc_dapm_force_bias_level() argument 724 snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) snd_soc_dapm_set_bias_level() argument 750 dapm_connect_mux(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_path *path, const char *control_name, struct snd_soc_dapm_widget *w) dapm_connect_mux() argument 832 dapm_connect_mixer(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_path *path, const char *control_name) dapm_connect_mixer() argument 848 dapm_is_shared_kcontrol(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *kcontrolw, const struct snd_kcontrol_new *kcontrol_new, struct snd_kcontrol **kcontrol) dapm_is_shared_kcontrol() argument 880 struct snd_soc_dapm_context *dapm = w->dapm; dapm_create_or_share_kcontrol() local 1022 struct snd_soc_dapm_context *dapm = w->dapm; dapm_new_mux() local 1084 struct snd_soc_dapm_context *dapm = w->dapm; dapm_new_dai_link() local 1588 struct snd_soc_dapm_context *dapm; dapm_seq_run_coalesced() local 1932 dapm_idle_bias_off(struct snd_soc_dapm_context *dapm) dapm_idle_bias_off() argument 2177 struct snd_soc_dapm_context *dapm = file->private_data; dapm_bias_read_file() local 2209 snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent) snd_soc_dapm_debugfs_init() argument 2223 struct snd_soc_dapm_context *dapm = w->dapm; dapm_debugfs_add_widget() local 2232 dapm_debugfs_cleanup(struct snd_soc_dapm_context *dapm) dapm_debugfs_cleanup() argument 2239 snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent) snd_soc_dapm_debugfs_init() argument 2248 dapm_debugfs_cleanup(struct snd_soc_dapm_context *dapm) dapm_debugfs_cleanup() argument 2301 snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm, struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e, struct snd_soc_dapm_update *update) snd_soc_dapm_mux_update_power() argument 2366 snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm, struct snd_kcontrol *kcontrol, int connect, struct snd_soc_dapm_update *update) snd_soc_dapm_mixer_update_power() argument 2387 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); dapm_widget_show_component() local 2509 snd_soc_dapm_reset_cache(struct snd_soc_dapm_context *dapm) snd_soc_dapm_reset_cache() argument 2516 dapm_free_widgets(struct snd_soc_dapm_context *dapm) dapm_free_widgets() argument 2528 dapm_find_widget( struct snd_soc_dapm_context *dapm, const char *pin, bool search_other_contexts) dapm_find_widget() argument 2566 __snd_soc_dapm_set_pin(struct snd_soc_dapm_context *dapm, const char *pin, int status) __snd_soc_dapm_set_pin() argument 2597 snd_soc_dapm_set_pin(struct snd_soc_dapm_context *dapm, const char *pin, int status) snd_soc_dapm_set_pin() argument 2616 snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm) snd_soc_dapm_sync_unlocked() argument 2638 snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm) snd_soc_dapm_sync() argument 2781 snd_soc_dapm_check_dynamic_path(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink, const char *control) snd_soc_dapm_check_dynamic_path() argument 2825 snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *wsource, struct snd_soc_dapm_widget *wsink, const char *control, int (*connected)(struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink)) snd_soc_dapm_add_path() argument 2927 snd_soc_dapm_add_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_add_route() argument 3026 snd_soc_dapm_del_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_del_route() argument 3101 snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_add_routes() argument 3132 snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_del_routes() argument 3148 snd_soc_dapm_weak_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_weak_route() argument 3209 snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_weak_routes() argument 3313 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_get_volsw() local 3372 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_put_volsw() local 3463 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_get_enum_double() local 3500 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_put_enum_double() local 3618 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget) snd_soc_dapm_new_control_unlocked() argument 3780 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget) snd_soc_dapm_new_control() argument 3803 snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget, int num) snd_soc_dapm_new_controls() argument 4223 snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai) snd_soc_dapm_new_dai_widgets() argument 4325 dapm_connect_dai_routes(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *src_dai, struct snd_soc_dapm_widget *src, struct snd_soc_dapm_widget *dai, struct snd_soc_dai *sink_dai, struct snd_soc_dapm_widget *sink) dapm_connect_dai_routes() argument 4534 snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_enable_pin_unlocked() argument 4552 snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_enable_pin() argument 4580 snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_force_enable_pin_unlocked() argument 4619 snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_force_enable_pin() argument 4646 snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_disable_pin_unlocked() argument 4663 snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_disable_pin() argument 4694 snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_nc_pin_unlocked() argument 4715 snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_nc_pin() argument 4738 snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_get_pin_status() argument 4761 snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_ignore_suspend() argument 4783 snd_soc_dapm_free(struct snd_soc_dapm_context *dapm) snd_soc_dapm_free() argument 4791 snd_soc_dapm_init(struct snd_soc_dapm_context *dapm, struct snd_soc_card *card, struct snd_soc_component *component) snd_soc_dapm_init() argument 4813 soc_dapm_shutdown_dapm(struct snd_soc_dapm_context *dapm) soc_dapm_shutdown_dapm() argument 4853 struct snd_soc_dapm_context *dapm; snd_soc_dapm_shutdown() local [all...] |
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-dapm.c | 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 42 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 51 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, 58 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 62 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 65 static unsigned int soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg); 67 /* dapm power sequences - make this per codec in the future */ 150 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 152 if (snd_soc_card_is_instantiated(dapm->card)) in dapm_assert_locked() 153 snd_soc_dapm_mutex_assert_held(dapm); in dapm_assert_locked() 617 soc_dapm_prefix(struct snd_soc_dapm_context *dapm) soc_dapm_prefix() argument 624 soc_dapm_read(struct snd_soc_dapm_context *dapm, int reg) soc_dapm_read() argument 631 soc_dapm_update_bits(struct snd_soc_dapm_context *dapm, int reg, unsigned int mask, unsigned int value) soc_dapm_update_bits() argument 640 soc_dapm_test_bits(struct snd_soc_dapm_context *dapm, int reg, unsigned int mask, unsigned int value) soc_dapm_test_bits() argument 648 soc_dapm_async_complete(struct snd_soc_dapm_context *dapm) soc_dapm_async_complete() argument 691 snd_soc_dapm_force_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) snd_soc_dapm_force_bias_level() argument 715 snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) snd_soc_dapm_set_bias_level() argument 741 dapm_connect_mux(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_path *path, const char *control_name, struct snd_soc_dapm_widget *w) dapm_connect_mux() argument 824 dapm_connect_mixer(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_path *path, const char *control_name) dapm_connect_mixer() argument 840 dapm_is_shared_kcontrol(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *kcontrolw, const struct snd_kcontrol_new *kcontrol_new, struct snd_kcontrol **kcontrol) dapm_is_shared_kcontrol() argument 872 struct snd_soc_dapm_context *dapm = w->dapm; dapm_create_or_share_kcontrol() local 1016 struct snd_soc_dapm_context *dapm = w->dapm; dapm_new_mux() local 1085 struct snd_soc_dapm_context *dapm = w->dapm; dapm_new_dai_link() local 1584 struct snd_soc_dapm_context *dapm; dapm_seq_run_coalesced() local 1922 dapm_idle_bias_off(struct snd_soc_dapm_context *dapm) dapm_idle_bias_off() argument 2166 struct snd_soc_dapm_context *dapm = file->private_data; dapm_bias_read_file() local 2198 snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent) snd_soc_dapm_debugfs_init() argument 2212 struct snd_soc_dapm_context *dapm = w->dapm; dapm_debugfs_add_widget() local 2223 struct snd_soc_dapm_context *dapm = w->dapm; dapm_debugfs_free_widget() local 2231 dapm_debugfs_cleanup(struct snd_soc_dapm_context *dapm) dapm_debugfs_cleanup() argument 2238 snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent) snd_soc_dapm_debugfs_init() argument 2251 dapm_debugfs_cleanup(struct snd_soc_dapm_context *dapm) dapm_debugfs_cleanup() argument 2304 snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm, struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e, struct snd_soc_dapm_update *update) snd_soc_dapm_mux_update_power() argument 2369 snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm, struct snd_kcontrol *kcontrol, int connect, struct snd_soc_dapm_update *update) snd_soc_dapm_mixer_update_power() argument 2390 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); dapm_widget_show_component() local 2524 dapm_free_widgets(struct snd_soc_dapm_context *dapm) dapm_free_widgets() argument 2538 dapm_find_widget( struct snd_soc_dapm_context *dapm, const char *pin, bool search_other_contexts) dapm_find_widget() argument 2576 __snd_soc_dapm_set_pin(struct snd_soc_dapm_context *dapm, const char *pin, int status) __snd_soc_dapm_set_pin() argument 2607 snd_soc_dapm_set_pin(struct snd_soc_dapm_context *dapm, const char *pin, int status) snd_soc_dapm_set_pin() argument 2626 snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm) snd_soc_dapm_sync_unlocked() argument 2648 snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm) snd_soc_dapm_sync() argument 2803 snd_soc_dapm_check_dynamic_path(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink, const char *control) snd_soc_dapm_check_dynamic_path() argument 2847 snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *wsource, struct snd_soc_dapm_widget *wsink, const char *control, int (*connected)(struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink)) snd_soc_dapm_add_path() argument 2947 snd_soc_dapm_add_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_add_route() argument 3043 snd_soc_dapm_del_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_del_route() argument 3117 snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_add_routes() argument 3143 snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_del_routes() argument 3159 snd_soc_dapm_weak_route(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route) snd_soc_dapm_weak_route() argument 3220 snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num) snd_soc_dapm_weak_routes() argument 3324 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_get_volsw() local 3382 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_put_volsw() local 3473 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_get_enum_double() local 3509 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); snd_soc_dapm_put_enum_double() local 3627 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget) snd_soc_dapm_new_control_unlocked() argument 3787 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget) snd_soc_dapm_new_control() argument 3810 snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget, int num) snd_soc_dapm_new_controls() argument 4233 snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai) snd_soc_dapm_new_dai_widgets() argument 4336 dapm_connect_dai_routes(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *src_dai, struct snd_soc_dapm_widget *src, struct snd_soc_dapm_widget *dai, struct snd_soc_dai *sink_dai, struct snd_soc_dapm_widget *sink) dapm_connect_dai_routes() argument 4559 snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_enable_pin_unlocked() argument 4577 snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_enable_pin() argument 4605 snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_force_enable_pin_unlocked() argument 4644 snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_force_enable_pin() argument 4671 snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_disable_pin_unlocked() argument 4688 snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_disable_pin() argument 4719 snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_nc_pin_unlocked() argument 4740 snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_nc_pin() argument 4763 snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_get_pin_status() argument 4786 snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, const char *pin) snd_soc_dapm_ignore_suspend() argument 4808 snd_soc_dapm_free(struct snd_soc_dapm_context *dapm) snd_soc_dapm_free() argument 4816 snd_soc_dapm_init(struct snd_soc_dapm_context *dapm, struct snd_soc_card *card, struct snd_soc_component *component) snd_soc_dapm_init() argument 4838 soc_dapm_shutdown_dapm(struct snd_soc_dapm_context *dapm) soc_dapm_shutdown_dapm() argument 4878 struct snd_soc_dapm_context *dapm; snd_soc_dapm_shutdown() local [all...] |
/kernel/linux/linux-5.10/sound/soc/pxa/ |
H A D | spitz.c | 42 static void spitz_ext_control(struct snd_soc_dapm_context *dapm) in spitz_ext_control() argument 44 snd_soc_dapm_mutex_lock(dapm); in spitz_ext_control() 47 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 49 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 55 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() 56 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() 57 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() 58 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 64 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 65 snd_soc_dapm_disable_pin_unlocked(dapm, "Headse in spitz_ext_control() [all...] |
H A D | corgi.c | 44 static void corgi_ext_control(struct snd_soc_dapm_context *dapm) in corgi_ext_control() argument 46 snd_soc_dapm_mutex_lock(dapm); in corgi_ext_control() 54 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control() 55 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control() 56 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control() 57 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in corgi_ext_control() 63 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control() 64 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control() 65 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control() 66 snd_soc_dapm_disable_pin_unlocked(dapm, "Headse in corgi_ext_control() [all...] |
H A D | tosa.c | 39 static void tosa_ext_control(struct snd_soc_dapm_context *dapm) in tosa_ext_control() argument 42 snd_soc_dapm_mutex_lock(dapm); in tosa_ext_control() 47 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 48 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control() 49 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control() 52 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 53 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control() 54 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control() 57 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 58 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphon in tosa_ext_control() [all...] |
/kernel/linux/linux-6.6/sound/soc/pxa/ |
H A D | spitz.c | 41 static void spitz_ext_control(struct snd_soc_dapm_context *dapm) in spitz_ext_control() argument 43 snd_soc_dapm_mutex_lock(dapm); in spitz_ext_control() 46 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 48 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 54 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() 55 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() 56 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() 57 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 64 snd_soc_dapm_disable_pin_unlocked(dapm, "Headse in spitz_ext_control() [all...] |
/kernel/linux/linux-5.10/sound/soc/ti/ |
H A D | ams-delta.c | 104 struct snd_soc_dapm_context *dapm = &card->dapm; in ams_delta_set_audio_mode() local 116 snd_soc_dapm_mutex_lock(dapm); in ams_delta_set_audio_mode() 124 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode() 127 snd_soc_dapm_enable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 129 snd_soc_dapm_disable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 132 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode() 135 snd_soc_dapm_enable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 137 snd_soc_dapm_disable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 140 if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphon in ams_delta_set_audio_mode() 177 struct snd_soc_dapm_context *dapm = &card->dapm; ams_delta_get_audio_mode() local 306 struct snd_soc_dapm_context *dapm; cx81801_close() local 468 struct snd_soc_dapm_context *dapm = &card->dapm; ams_delta_cx20442_init() local [all...] |
H A D | omap3pandora.c | 77 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event() 143 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init() local 146 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init() 147 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init() 148 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init() 149 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init() 150 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init() 151 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init() 152 snd_soc_dapm_nc_pin(dapm, "CARKIT in omap3pandora_out_init() 162 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; omap3pandora_in_init() local [all...] |
H A D | omap-twl4030.c | 139 static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, in twl4030_disconnect_pin() argument 143 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin() 149 struct snd_soc_dapm_context *dapm = &card->dapm; in omap_twl4030_init() local 180 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init() 181 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init() 182 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init() 183 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init() 184 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init() 186 twl4030_disconnect_pin(dapm, pdat in omap_twl4030_init() [all...] |
H A D | n810.c | 42 static void n810_ext_control(struct snd_soc_dapm_context *dapm) in n810_ext_control() argument 58 snd_soc_dapm_mutex_lock(dapm); in n810_ext_control() 61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 66 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 68 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 70 snd_soc_dapm_enable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 72 snd_soc_dapm_disable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 75 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in n810_ext_control() 77 snd_soc_dapm_disable_pin_unlocked(dapm, "DMi in n810_ext_control() [all...] |
/kernel/linux/linux-6.6/sound/soc/ti/ |
H A D | ams-delta.c | 104 struct snd_soc_dapm_context *dapm = &card->dapm; in ams_delta_set_audio_mode() local 116 snd_soc_dapm_mutex_lock(dapm); in ams_delta_set_audio_mode() 124 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode() 127 snd_soc_dapm_enable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 129 snd_soc_dapm_disable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 132 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode() 135 snd_soc_dapm_enable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 137 snd_soc_dapm_disable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 140 if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphon in ams_delta_set_audio_mode() 177 struct snd_soc_dapm_context *dapm = &card->dapm; ams_delta_get_audio_mode() local 306 struct snd_soc_dapm_context *dapm; cx81801_close() local 467 struct snd_soc_dapm_context *dapm = &card->dapm; ams_delta_cx20442_init() local [all...] |
H A D | omap3pandora.c | 77 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event() 143 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init() local 146 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init() 147 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init() 148 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init() 149 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init() 150 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init() 151 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init() 152 snd_soc_dapm_nc_pin(dapm, "CARKIT in omap3pandora_out_init() 162 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; omap3pandora_in_init() local [all...] |
H A D | omap-twl4030.c | 139 static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, in twl4030_disconnect_pin() argument 143 snd_soc_dapm_disable_pin(dapm, pin); in twl4030_disconnect_pin() 149 struct snd_soc_dapm_context *dapm = &card->dapm; in omap_twl4030_init() local 180 twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); in omap_twl4030_init() 181 twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); in omap_twl4030_init() 182 twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); in omap_twl4030_init() 183 twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); in omap_twl4030_init() 184 twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); in omap_twl4030_init() 186 twl4030_disconnect_pin(dapm, pdat in omap_twl4030_init() [all...] |
H A D | n810.c | 42 static void n810_ext_control(struct snd_soc_dapm_context *dapm) in n810_ext_control() argument 58 snd_soc_dapm_mutex_lock(dapm); in n810_ext_control() 61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control() 66 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 68 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in n810_ext_control() 70 snd_soc_dapm_enable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 72 snd_soc_dapm_disable_pin_unlocked(dapm, "HS Mic"); in n810_ext_control() 75 snd_soc_dapm_enable_pin_unlocked(dapm, "DMic"); in n810_ext_control() 77 snd_soc_dapm_disable_pin_unlocked(dapm, "DMi in n810_ext_control() [all...] |
/kernel/linux/linux-5.10/sound/soc/samsung/ |
H A D | smdk_wm8994.c | 82 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local 85 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx() 86 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx() 87 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx() 88 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx() 89 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx() 90 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx() 91 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx() 92 snd_soc_dapm_nc_pin(dapm, "LINEOUT1 in smdk_wm8994_init_paiftx() [all...] |
H A D | speyside.c | 8 #include <sound/soc-dapm.h> 20 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 56 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level_post() 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 93 card->dapm.bias_level = level; in speyside_set_bias_level_post() 173 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() 174 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in speyside_late_probe() 175 snd_soc_dapm_ignore_suspend(&card->dapm, "Mai in speyside_late_probe() 19 speyside_set_bias_level(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) speyside_set_bias_level() argument 55 speyside_set_bias_level_post(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) speyside_set_bias_level_post() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/samsung/ |
H A D | smdk_wm8994.c | 82 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local 85 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx() 86 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx() 87 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx() 88 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx() 89 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx() 90 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx() 91 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx() 92 snd_soc_dapm_nc_pin(dapm, "LINEOUT1 in smdk_wm8994_init_paiftx() [all...] |
H A D | speyside.c | 8 #include <sound/soc-dapm.h> 20 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 56 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level_post() 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 93 card->dapm.bias_level = level; in speyside_set_bias_level_post() 175 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() 176 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in speyside_late_probe() 177 snd_soc_dapm_ignore_suspend(&card->dapm, "Mai in speyside_late_probe() 19 speyside_set_bias_level(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) speyside_set_bias_level() argument 55 speyside_set_bias_level_post(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) speyside_set_bias_level_post() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/boards/ |
H A D | sof_sdw_maxim.c | 12 #include <sound/soc-dapm.h> 51 ret = snd_soc_dapm_new_controls(&card->dapm, maxim_widgets, in spk_init() 58 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, 2); in spk_init() 79 struct snd_soc_dapm_context *dapm = in mx8373_enable_spk_pin() local 87 ret = snd_soc_dapm_enable_pin(dapm, pin_name); in mx8373_enable_spk_pin() 89 ret = snd_soc_dapm_disable_pin(dapm, pin_name); in mx8373_enable_spk_pin() 92 snd_soc_dapm_sync(dapm); in mx8373_enable_spk_pin() 133 struct snd_soc_dapm_context *dapm = &card->dapm; in mx8373_sdw_late_probe() local 136 snd_soc_dapm_disable_pin(dapm, "Lef in mx8373_sdw_late_probe() [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | audio_helper.c | 8 #include <sound/soc-dapm.h> 24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget() 53 * snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); in gbaudio_dapm_link_dai_widget() 60 struct snd_soc_dapm_context *dapm) in gbaudio_dapm_link_component_dai_widgets() 66 if (dai_w->dapm != dapm) in gbaudio_dapm_link_component_dai_widgets() 112 int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, in gbaudio_dapm_free_controls() argument 119 mutex_lock(&dapm->card->dapm_mutex); in gbaudio_dapm_free_controls() 122 list_for_each_entry_safe(w, next_w, &dapm in gbaudio_dapm_free_controls() 59 gbaudio_dapm_link_component_dai_widgets(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm) gbaudio_dapm_link_component_dai_widgets() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | audio_helper.c | 8 #include <sound/soc-dapm.h> 24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget() 53 * snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); in gbaudio_dapm_link_dai_widget() 60 struct snd_soc_dapm_context *dapm) in gbaudio_dapm_link_component_dai_widgets() 66 if (dai_w->dapm != dapm) in gbaudio_dapm_link_component_dai_widgets() 112 int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, in gbaudio_dapm_free_controls() argument 119 mutex_lock(&dapm->card->dapm_mutex); in gbaudio_dapm_free_controls() 123 list_for_each_entry(tmp_w, &dapm in gbaudio_dapm_free_controls() 59 gbaudio_dapm_link_component_dai_widgets(struct snd_soc_card *card, struct snd_soc_dapm_context *dapm) gbaudio_dapm_link_component_dai_widgets() argument [all...] |
/kernel/linux/linux-5.10/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 19 #include <sound/soc-dapm.h> 362 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local 411 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init() 412 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init() 413 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init() 414 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init() 415 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init() 416 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init() 417 ret |= snd_soc_dapm_disable_pin(dapm, "Vibr in mop500_ab8500_machine_init() [all...] |
/kernel/linux/linux-6.6/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 17 #include <sound/soc-dapm.h> 360 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local 409 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init() 410 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init() 411 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init() 412 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init() 413 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init() 414 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init() 415 ret |= snd_soc_dapm_disable_pin(dapm, "Vibr in mop500_ab8500_machine_init() [all...] |
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
H A D | sof_sdw_max98373.c | 12 #include <sound/soc-dapm.h> 44 ret = snd_soc_dapm_new_controls(&card->dapm, mx8373_widgets, in spk_init() 51 ret = snd_soc_dapm_add_routes(&card->dapm, max_98373_dapm_routes, 2); in spk_init() 116 struct snd_soc_dapm_context *dapm = &card->dapm; in sof_sdw_mx8373_late_probe() local 119 snd_soc_dapm_disable_pin(dapm, "Left Spk"); in sof_sdw_mx8373_late_probe() 120 snd_soc_dapm_disable_pin(dapm, "Right Spk"); in sof_sdw_mx8373_late_probe() 121 return snd_soc_dapm_sync(dapm); in sof_sdw_mx8373_late_probe()
|
/kernel/linux/linux-6.6/sound/soc/atmel/ |
H A D | tse850-pcm5142.c | 63 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux1() local 64 struct snd_soc_card *card = dapm->card; in tse850_get_mux1() 75 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux1() local 76 struct snd_soc_card *card = dapm->card; in tse850_put_mux1() 93 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mux2() local 94 struct snd_soc_card *card = dapm->card; in tse850_get_mux2() 105 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_put_mux2() local 106 struct snd_soc_card *card = dapm->card; in tse850_put_mux2() 123 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); in tse850_get_mix() local 124 struct snd_soc_card *card = dapm in tse850_get_mix() 135 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); tse850_put_mix() local 157 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); tse850_get_ana() local 190 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kctrl); tse850_put_ana() local [all...] |