| /kernel/linux/linux-5.10/sound/soc/ |
| 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 /* dapm power sequences - make this per codec in the future */ 148 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 150 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked() 151 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked() 188 dapm_assert_locked(w->dapm); in dapm_mark_dirty() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/ |
| D | soc-dapm.c | 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 43 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 52 static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, 59 snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, 63 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, 66 /* dapm power sequences - make this per codec in the future */ 149 static void dapm_assert_locked(struct snd_soc_dapm_context *dapm) in dapm_assert_locked() argument 151 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked() 152 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked() 188 dapm_assert_locked(w->dapm); in dapm_mark_dirty() [all …]
|
| D | soc-utils.c | 58 struct snd_soc_dapm_context *dapm = in snd_soc_component_enable_pin() local 64 return snd_soc_dapm_enable_pin(dapm, pin); in snd_soc_component_enable_pin() 70 ret = snd_soc_dapm_enable_pin(dapm, full_name); in snd_soc_component_enable_pin() 80 struct snd_soc_dapm_context *dapm = in snd_soc_component_enable_pin_unlocked() local 86 return snd_soc_dapm_enable_pin_unlocked(dapm, pin); in snd_soc_component_enable_pin_unlocked() 92 ret = snd_soc_dapm_enable_pin_unlocked(dapm, full_name); in snd_soc_component_enable_pin_unlocked() 102 struct snd_soc_dapm_context *dapm = in snd_soc_component_disable_pin() local 108 return snd_soc_dapm_disable_pin(dapm, pin); in snd_soc_component_disable_pin() 114 ret = snd_soc_dapm_disable_pin(dapm, full_name); in snd_soc_component_disable_pin() 124 struct snd_soc_dapm_context *dapm = in snd_soc_component_disable_pin_unlocked() local [all …]
|
| /kernel/linux/linux-5.10/sound/soc/ti/ |
| D | ams-delta.c | 43 /* Board specific DAPM widgets */ 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, "Microphone")) { in ams_delta_set_audio_mode() [all …]
|
| 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, "CARKITR"); in omap3pandora_out_init() 153 snd_soc_dapm_nc_pin(dapm, "HFL"); in omap3pandora_out_init() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/omap/ |
| D | ams-delta.c | 40 /* Board specific DAPM widgets */ 101 struct snd_soc_dapm_context *dapm = &card->dapm; in ams_delta_set_audio_mode() local 113 snd_soc_dapm_mutex_lock(dapm); in ams_delta_set_audio_mode() 121 if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { in ams_delta_set_audio_mode() 124 snd_soc_dapm_enable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 126 snd_soc_dapm_disable_pin_unlocked(dapm, "Mouthpiece"); in ams_delta_set_audio_mode() 129 if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { in ams_delta_set_audio_mode() 132 snd_soc_dapm_enable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 134 snd_soc_dapm_disable_pin_unlocked(dapm, "Earpiece"); in ams_delta_set_audio_mode() 137 if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphone")) { in ams_delta_set_audio_mode() [all …]
|
| D | omap3pandora.c | 91 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event() 157 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init() local 160 snd_soc_dapm_nc_pin(dapm, "EARPIECE"); in omap3pandora_out_init() 161 snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); in omap3pandora_out_init() 162 snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); in omap3pandora_out_init() 163 snd_soc_dapm_nc_pin(dapm, "HSOL"); in omap3pandora_out_init() 164 snd_soc_dapm_nc_pin(dapm, "HSOR"); in omap3pandora_out_init() 165 snd_soc_dapm_nc_pin(dapm, "CARKITL"); in omap3pandora_out_init() 166 snd_soc_dapm_nc_pin(dapm, "CARKITR"); in omap3pandora_out_init() 167 snd_soc_dapm_nc_pin(dapm, "HFL"); in omap3pandora_out_init() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/pxa/ |
| D | spitz.c | 47 static void spitz_ext_control(struct snd_soc_dapm_context *dapm) in spitz_ext_control() argument 49 snd_soc_dapm_mutex_lock(dapm); in spitz_ext_control() 52 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 54 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in spitz_ext_control() 60 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() 61 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in spitz_ext_control() 62 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() 63 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 69 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in spitz_ext_control() 70 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in spitz_ext_control() [all …]
|
| D | corgi.c | 48 static void corgi_ext_control(struct snd_soc_dapm_context *dapm) in corgi_ext_control() argument 50 snd_soc_dapm_mutex_lock(dapm); in corgi_ext_control() 58 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control() 59 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control() 60 snd_soc_dapm_enable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control() 61 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in corgi_ext_control() 67 snd_soc_dapm_enable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control() 68 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in corgi_ext_control() 69 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in corgi_ext_control() 70 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in corgi_ext_control() [all …]
|
| D | tosa.c | 44 static void tosa_ext_control(struct snd_soc_dapm_context *dapm) in tosa_ext_control() argument 47 snd_soc_dapm_mutex_lock(dapm); in tosa_ext_control() 52 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 53 snd_soc_dapm_enable_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_enable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 58 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control() 59 snd_soc_dapm_disable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control() 62 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic (Internal)"); in tosa_ext_control() 63 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/pxa/ |
| 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, "Headset Jack"); in spitz_ext_control() [all …]
|
| 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, "Headset Jack"); in corgi_ext_control() [all …]
|
| 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, "Headphone Jack"); in tosa_ext_control() [all …]
|
| /kernel/linux/linux-4.19/include/sound/ |
| D | soc-dapm.h | 3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management 206 /* events that are pre and post DAPM */ 278 /* dapm kcontrol types */ 336 /* dapm stream operations */ 345 /* dapm event types */ 386 /* dapm controls */ 401 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, 405 struct snd_soc_dapm_context *dapm, 407 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, 418 /* dapm path setup */ [all …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| D | soc-dapm.h | 3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management 208 /* events that are pre and post DAPM */ 280 /* dapm kcontrol types */ 338 /* dapm stream operations */ 347 /* dapm event types */ 385 * @PREPARE: Prepare for audio operations. Called before DAPM switching for 406 /* dapm controls */ 421 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, 425 struct snd_soc_dapm_context *dapm, 428 struct snd_soc_dapm_context *dapm, [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/greybus/ |
| D | audio_helper.c | 9 #include <sound/soc-dapm.h> 25 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget() 53 /* Add the DAPM path and set widget's linked status in gbaudio_dapm_link_dai_widget() 54 * snd_soc_dapm_add_path(w->dapm, src, sink, NULL, NULL); in gbaudio_dapm_link_dai_widget() 61 struct snd_soc_dapm_context *dapm) in gbaudio_dapm_link_component_dai_widgets() argument 67 if (dai_w->dapm != dapm) in gbaudio_dapm_link_component_dai_widgets() 113 int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm, in gbaudio_dapm_free_controls() argument 120 struct dentry *parent = dapm->debugfs_dapm; in gbaudio_dapm_free_controls() 124 mutex_lock(&dapm->card->dapm_mutex); in gbaudio_dapm_free_controls() 127 list_for_each_entry_safe(w, next_w, &dapm->card->widgets, in gbaudio_dapm_free_controls() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/samsung/ |
| D | smdk_wm8994.c | 89 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in smdk_wm8994_init_paiftx() local 92 snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); in smdk_wm8994_init_paiftx() 93 snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); in smdk_wm8994_init_paiftx() 94 snd_soc_dapm_nc_pin(dapm, "SPKOUTLN"); in smdk_wm8994_init_paiftx() 95 snd_soc_dapm_nc_pin(dapm, "SPKOUTLP"); in smdk_wm8994_init_paiftx() 96 snd_soc_dapm_nc_pin(dapm, "SPKOUTRP"); in smdk_wm8994_init_paiftx() 97 snd_soc_dapm_nc_pin(dapm, "SPKOUTRN"); in smdk_wm8994_init_paiftx() 98 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N"); in smdk_wm8994_init_paiftx() 99 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P"); in smdk_wm8994_init_paiftx() 100 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in smdk_wm8994_init_paiftx() [all …]
|
| D | speyside.c | 13 #include <sound/soc-dapm.h> 25 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() argument 35 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 61 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level_post() argument 71 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 76 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 98 card->dapm.bias_level = level; in speyside_set_bias_level_post() 105 /* Headset jack detection DAPM pins */ 133 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity() 178 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/samsung/ |
| 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, "LINEOUT1P"); in smdk_wm8994_init_paiftx() 93 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N"); in smdk_wm8994_init_paiftx() [all …]
|
| D | speyside.c | 8 #include <sound/soc-dapm.h> 20 struct snd_soc_dapm_context *dapm, in speyside_set_bias_level() argument 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() argument 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() 100 /* Headset jack detection DAPM pins */ 128 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity() 173 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sunxi/ |
| D | sun8i-codec-analog.c | 18 #include <sound/soc-dapm.h> 234 * Due to this component and the codec belonging to separate DAPM 347 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in sun8i_headphone_amp_event() 394 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_headphone() local 406 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_headphone_widgets, in sun8i_codec_add_headphone() 409 dev_err(dev, "Failed to add Headphone DAPM widgets: %d\n", ret); in sun8i_codec_add_headphone() 413 ret = snd_soc_dapm_add_routes(dapm, sun8i_codec_headphone_routes, in sun8i_codec_add_headphone() 416 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret); in sun8i_codec_add_headphone() 432 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_mbias() local 436 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_mbias_widgets, in sun8i_codec_add_mbias() [all …]
|
| /kernel/linux/linux-4.19/Documentation/sound/soc/ |
| D | dapm.rst | 8 Dynamic Audio Power Management (DAPM) is designed to allow portable 13 DAPM is also completely transparent to all user space applications as 15 recompiling are required for user space applications. DAPM makes power 19 DAPM spans the whole machine. It covers power control within the entire 23 There are 4 power domains within DAPM 50 All DAPM power switching decisions are made automatically by consulting an audio 57 DAPM Widgets 60 Audio DAPM widgets fall into a number of types:- 127 (Widgets are defined in include/sound/soc-dapm.h) 130 There are convenience macros defined in soc-dapm.h that can be used to quickly [all …]
|
| /kernel/linux/linux-5.10/Documentation/sound/soc/ |
| D | dapm.rst | 8 Dynamic Audio Power Management (DAPM) is designed to allow portable 13 DAPM is also completely transparent to all user space applications as 15 recompiling are required for user space applications. DAPM makes power 19 DAPM spans the whole machine. It covers power control within the entire 23 There are 4 power domains within DAPM 50 All DAPM power switching decisions are made automatically by consulting an audio 57 DAPM Widgets 60 Audio DAPM widgets fall into a number of types:- 127 (Widgets are defined in include/sound/soc-dapm.h) 130 There are convenience macros defined in soc-dapm.h that can be used to quickly [all …]
|
| /kernel/linux/linux-4.19/sound/soc/sunxi/ |
| D | sun8i-codec-analog.c | 27 #include <sound/soc-dapm.h> 316 * Due to this component and the codec belonging to separate DAPM 429 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in sun8i_headphone_amp_event() 476 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_headphone() local 488 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_headphone_widgets, in sun8i_codec_add_headphone() 491 dev_err(dev, "Failed to add Headphone DAPM widgets: %d\n", ret); in sun8i_codec_add_headphone() 495 ret = snd_soc_dapm_add_routes(dapm, sun8i_codec_headphone_routes, in sun8i_codec_add_headphone() 498 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret); in sun8i_codec_add_headphone() 514 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt); in sun8i_codec_add_mbias() local 518 ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_mbias_widgets, in sun8i_codec_add_mbias() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/ux500/ |
| D | mop500_ab8500.c | 22 #include <sound/soc-dapm.h> 365 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in mop500_ab8500_machine_init() local 414 ret = snd_soc_dapm_disable_pin(dapm, "Earpiece"); in mop500_ab8500_machine_init() 415 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Left"); in mop500_ab8500_machine_init() 416 ret |= snd_soc_dapm_disable_pin(dapm, "Speaker Right"); in mop500_ab8500_machine_init() 417 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Left"); in mop500_ab8500_machine_init() 418 ret |= snd_soc_dapm_disable_pin(dapm, "LineOut Right"); in mop500_ab8500_machine_init() 419 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 1"); in mop500_ab8500_machine_init() 420 ret |= snd_soc_dapm_disable_pin(dapm, "Vibra 2"); in mop500_ab8500_machine_init() 421 ret |= snd_soc_dapm_disable_pin(dapm, "Mic 1"); in mop500_ab8500_machine_init() [all …]
|