/kernel/linux/linux-5.10/sound/core/ |
H A D | jack.c | 3 * Jack abstraction layer 11 #include <sound/jack.h> 17 struct list_head list; /* list of controls belong to the same jack */ 35 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() local 37 mutex_lock(&jack->input_dev_lock); in snd_jack_dev_disconnect() 38 if (!jack->input_dev) { in snd_jack_dev_disconnect() 39 mutex_unlock(&jack->input_dev_lock); in snd_jack_dev_disconnect() 45 if (jack->registered) in snd_jack_dev_disconnect() 46 input_unregister_device(jack->input_dev); in snd_jack_dev_disconnect() 48 input_free_device(jack in snd_jack_dev_disconnect() 57 struct snd_jack *jack = device->device_data; snd_jack_dev_free() local 82 struct snd_jack *jack = device->device_data; snd_jack_dev_register() local 134 snd_jack_kctl_add(struct snd_jack *jack, struct snd_jack_kctl *jack_kctl) snd_jack_kctl_add() argument 181 snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask) snd_jack_add_new_kctl() argument 212 struct snd_jack *jack; snd_jack_new() local 299 snd_jack_set_parent(struct snd_jack *jack, struct device *parent) snd_jack_set_parent() argument 338 snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, int keytype) snd_jack_set_key() argument 363 snd_jack_report(struct snd_jack *jack, int status) snd_jack_report() argument [all...] |
/kernel/linux/linux-6.6/sound/core/ |
H A D | jack.c | 3 * Jack abstraction layer 14 #include <sound/jack.h> 20 struct list_head list; /* list of controls belong to the same jack */ 22 struct snd_jack *jack; /* pointer to struct snd_jack */ member 43 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() local 45 mutex_lock(&jack->input_dev_lock); in snd_jack_dev_disconnect() 46 if (!jack->input_dev) { in snd_jack_dev_disconnect() 47 mutex_unlock(&jack->input_dev_lock); in snd_jack_dev_disconnect() 53 if (jack->registered) in snd_jack_dev_disconnect() 54 input_unregister_device(jack in snd_jack_dev_disconnect() 65 struct snd_jack *jack = device->device_data; snd_jack_dev_free() local 88 struct snd_jack *jack = device->device_data; snd_jack_dev_register() local 132 struct snd_jack *jack; snd_jack_inject_report() local 346 snd_jack_debugfs_add_inject_node(struct snd_jack *jack, struct snd_jack_kctl *jack_kctl) snd_jack_debugfs_add_inject_node() argument 396 snd_jack_debugfs_add_inject_node(struct snd_jack *jack, struct snd_jack_kctl *jack_kctl) snd_jack_debugfs_add_inject_node() argument 419 snd_jack_kctl_add(struct snd_jack *jack, struct snd_jack_kctl *jack_kctl) snd_jack_kctl_add() argument 468 snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask) snd_jack_add_new_kctl() argument 499 struct snd_jack *jack; snd_jack_new() local 586 snd_jack_set_parent(struct snd_jack *jack, struct device *parent) snd_jack_set_parent() argument 625 snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, int keytype) snd_jack_set_key() argument 650 snd_jack_report(struct snd_jack *jack, int status) snd_jack_report() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-jack.c | 3 // soc-jack.c -- ALSA SoC jack handling 9 #include <sound/jack.h> 21 * snd_soc_jack_report - Report the current status for a jack 23 * @jack: the jack 34 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument 40 if (!jack || !jack->jack) in snd_soc_jack_report() 90 snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, struct snd_soc_jack_zone *zones) snd_soc_jack_add_zones() argument 113 snd_soc_jack_get_type(struct snd_soc_jack *jack, int micbias_voltage) snd_soc_jack_get_type() argument 137 snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, struct snd_soc_jack_pin *pins) snd_soc_jack_add_pins() argument 181 snd_soc_jack_notifier_register(struct snd_soc_jack *jack, struct notifier_block *nb) snd_soc_jack_notifier_register() argument 196 snd_soc_jack_notifier_unregister(struct snd_soc_jack *jack, struct notifier_block *nb) snd_soc_jack_notifier_unregister() argument 206 struct snd_soc_jack *jack; global() member 213 struct snd_soc_jack *jack = gpio->jack; snd_soc_jack_gpio_detect() local 279 jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) jack_free_gpios() argument 311 snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpios() argument 425 snd_soc_jack_add_gpiods(struct device *gpiod_dev, struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpiods() argument 447 snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_free_gpios() argument [all...] |
H A D | soc-card.c | 12 #include <sound/jack.h> 66 struct snd_soc_jack *jack, bool initial_kctl) in jack_new() 68 mutex_init(&jack->mutex); in jack_new() 69 jack->card = card; in jack_new() 70 INIT_LIST_HEAD(&jack->pins); in jack_new() 71 INIT_LIST_HEAD(&jack->jack_zones); in jack_new() 72 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in jack_new() 74 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new() 78 * snd_soc_card_jack_new - Create a new jack withou 65 jack_new(struct snd_soc_card *card, const char *id, int type, struct snd_soc_jack *jack, bool initial_kctl) jack_new() argument 92 snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, struct snd_soc_jack *jack) snd_soc_card_jack_new() argument 115 snd_soc_card_jack_new_pins(struct snd_soc_card *card, const char *id, int type, struct snd_soc_jack *jack, struct snd_soc_jack_pin *pins, unsigned int num_pins) snd_soc_card_jack_new_pins() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_jack.c | 3 * Jack-detection handling for HD-audio 13 #include <sound/jack.h> 20 * is_jack_detectable - Check whether the given pin is jack-detectable 24 * Check whether the given pin is capable to report the jack detection. 25 * The jack detection might not work by various reasons, e.g. the jack 65 * snd_hda_jack_tbl_get_mst - query the jack-table entry for the given NID 73 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get_mst() local 76 if (!nid || !jack) in snd_hda_jack_tbl_get_mst() 78 for (i = 0; i < codec->jacktbl.used; i++, jack in snd_hda_jack_tbl_get_mst() 95 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_tbl_get_from_tag() local 110 struct hda_jack_tbl *jack = codec->jacktbl.list; any_jack_tbl_get_from_nid() local 130 struct hda_jack_tbl *jack = snd_hda_jack_tbl_new() local 163 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_tbl_disconnect() local 174 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_tbl_clear() local 195 jack_detect_update(struct hda_codec *codec, struct hda_jack_tbl *jack) jack_detect_update() argument 235 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_set_dirty_all() local 255 struct hda_jack_tbl *jack = snd_hda_jack_pin_sense() local 277 struct hda_jack_tbl *jack = snd_hda_jack_detect_state_mst() local 290 find_callback_from_list(struct hda_jack_tbl *jack, hda_jack_callback_fn func) find_callback_from_list() argument 321 struct hda_jack_tbl *jack; snd_hda_jack_detect_enable_callback_mst() local 446 struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, jack_nid); snd_hda_jack_set_button_state() local 471 struct hda_jack_tbl *jack; snd_hda_jack_report_sync() local 521 hda_free_jack_priv(struct snd_jack *jack) hda_free_jack_priv() argument 545 struct hda_jack_tbl *jack; snd_hda_jack_add_kctl_mst() local 684 call_jack_callback(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) call_jack_callback() argument 752 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_poll_all() local [all...] |
H A D | hda_jack.h | 3 * Jack-detection handling for HD-audio 12 #include <sound/jack.h> 26 struct hda_jack_tbl *jack; /* associated jack entry */ member 35 /* jack-detection stuff */ 37 unsigned int jack_detect:1; /* capable of jack-detection? */ 41 hda_nid_t gating_jack; /* valid when gating jack plugged */ 42 hda_nid_t gated_jack; /* gated is dependent on this jack */ 43 hda_nid_t key_report_jack; /* key reports to this jack */ 46 struct snd_jack *jack; member [all...] |
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-jack.c | 3 // soc-jack.c -- ALSA SoC jack handling 9 #include <sound/jack.h> 22 struct snd_soc_jack *jack; member 27 * snd_soc_jack_report - Report the current status for a jack 29 * @jack: the jack 40 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument 47 if (!jack) in snd_soc_jack_report() 49 trace_snd_soc_jack_report(jack, mas in snd_soc_jack_report() 97 snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, struct snd_soc_jack_zone *zones) snd_soc_jack_add_zones() argument 120 snd_soc_jack_get_type(struct snd_soc_jack *jack, int micbias_voltage) snd_soc_jack_get_type() argument 144 snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, struct snd_soc_jack_pin *pins) snd_soc_jack_add_pins() argument 188 snd_soc_jack_notifier_register(struct snd_soc_jack *jack, struct notifier_block *nb) snd_soc_jack_notifier_register() argument 203 snd_soc_jack_notifier_unregister(struct snd_soc_jack *jack, struct notifier_block *nb) snd_soc_jack_notifier_unregister() argument 214 struct snd_soc_jack *jack = gpio->jack; snd_soc_jack_gpio_detect() local 280 jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) jack_free_gpios() argument 312 snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpios() argument 425 snd_soc_jack_add_gpiods(struct device *gpiod_dev, struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpiods() argument 447 snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_free_gpios() argument [all...] |
/kernel/linux/linux-5.10/sound/pci/hda/ |
H A D | hda_jack.c | 3 * Jack-detection handling for HD-audio 13 #include <sound/jack.h> 20 * is_jack_detectable - Check whether the given pin is jack-detectable 24 * Check whether the given pin is capable to report the jack detection. 25 * The jack detection might not work by various reasons, e.g. the jack 65 * snd_hda_jack_tbl_get_mst - query the jack-table entry for the given NID 73 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get_mst() local 76 if (!nid || !jack) in snd_hda_jack_tbl_get_mst() 78 for (i = 0; i < codec->jacktbl.used; i++, jack in snd_hda_jack_tbl_get_mst() 95 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_tbl_get_from_tag() local 110 struct hda_jack_tbl *jack = codec->jacktbl.list; any_jack_tbl_get_from_nid() local 130 struct hda_jack_tbl *jack = snd_hda_jack_tbl_new() local 163 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_tbl_clear() local 184 jack_detect_update(struct hda_codec *codec, struct hda_jack_tbl *jack) jack_detect_update() argument 224 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_set_dirty_all() local 244 struct hda_jack_tbl *jack = snd_hda_jack_pin_sense() local 266 struct hda_jack_tbl *jack = snd_hda_jack_detect_state_mst() local 279 find_callback_from_list(struct hda_jack_tbl *jack, hda_jack_callback_fn func) find_callback_from_list() argument 310 struct hda_jack_tbl *jack; snd_hda_jack_detect_enable_callback_mst() local 397 struct hda_jack_tbl *jack; snd_hda_jack_report_sync() local 447 hda_free_jack_priv(struct snd_jack *jack) hda_free_jack_priv() argument 471 struct hda_jack_tbl *jack; snd_hda_jack_add_kctl_mst() local 610 call_jack_callback(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) call_jack_callback() argument 670 struct hda_jack_tbl *jack = codec->jacktbl.list; snd_hda_jack_poll_all() local [all...] |
/kernel/linux/linux-5.10/Documentation/sound/soc/ |
H A D | jack.rst | 2 ASoC jack detection 6 the kernel side of which can be seen in include/sound/jack.h. ASoC 9 - It allows more than one jack detection method to work together on one 10 user visible jack. In embedded systems it is common for multiple 11 to be present on a single jack but handled by separate bits of 15 automatically based on the detected jack status (eg, turning off the 19 together: the jack itself represented by a struct snd_soc_jack, sets of 21 code providing jack reporting mechanisms. 23 For example, a system may have a stereo headset jack with two reporting 27 headphone when the headphone jack statu [all...] |
/kernel/linux/linux-6.6/Documentation/sound/soc/ |
H A D | jack.rst | 2 ASoC jack detection 6 the kernel side of which can be seen in include/sound/jack.h. ASoC 9 - It allows more than one jack detection method to work together on one 10 user visible jack. In embedded systems it is common for multiple 11 to be present on a single jack but handled by separate bits of 15 automatically based on the detected jack status (eg, turning off the 19 together: the jack itself represented by a struct snd_soc_jack, sets of 21 code providing jack reporting mechanisms. 23 For example, a system may have a stereo headset jack with two reporting 27 headphone when the headphone jack statu [all...] |
/kernel/linux/linux-5.10/sound/soc/pxa/ |
H A D | spitz.c | 51 /* set up jack connection */ in spitz_ext_control() 54 /* enable and unmute hp jack, disable mic bias */ 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() 63 /* enable mic jack and bias, mute hp */ 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() 66 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() [all...] |
H A D | corgi.c | 48 /* set up jack connection */ 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() 71 snd_soc_dapm_disable_pin_unlocked(dapm, "Mic Jack"); in corgi_ext_control() [all...] |
/kernel/linux/linux-6.6/sound/soc/pxa/ |
H A D | spitz.c | 50 /* set up jack connection */ in spitz_ext_control() 53 /* enable and unmute hp jack, disable mic bias */ 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() 62 /* enable mic jack and bias, mute hp */ 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, "Headset Jack"); in spitz_ext_control() 65 snd_soc_dapm_disable_pin_unlocked(dapm, "Line Jack"); in spitz_ext_control() [all...] |
/kernel/linux/linux-6.6/include/sound/ |
H A D | soc-jack.h | 3 * soc-jack.h 12 * struct snd_soc_jack_pin - Describes a pin to update based on jack detection 15 * @mask: bits to check for in reported jack status 27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection 31 * @jack_type: type of jack that is expected for this voltage 32 * @debounce_time: debounce_time for jack, codec driver should wait for this 45 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection 53 * @report: value to report when jack detected 72 struct snd_soc_jack *jack; member 84 struct snd_jack *jack; member 112 snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpios() argument 118 snd_soc_jack_add_gpiods(struct device *gpiod_dev, struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_add_gpiods() argument 126 snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) snd_soc_jack_free_gpios() argument [all...] |
/kernel/linux/linux-6.6/Documentation/sound/designs/ |
H A D | jack-injection.rst | 2 ALSA Jack Software Injection 5 Simple Introduction On Jack Injection 8 Here jack injection means users could inject plugin or plugout events 14 jack or to some audio jacks, we don't need to physically access the 15 machine and plug/unplug physical devices to the audio jack. 17 In this design, an audio jack doesn't equal to a physical audio jack. 18 Sometimes a physical audio jack contains multi functions, and the 20 ``snd_jack`` represents a physical audio jack and the ``jack_kctl`` 21 represents a function, for example a physical jack ha [all...] |
H A D | jack-controls.rst | 2 ALSA Jack Controls 5 Why we need Jack kcontrols 13 The old ALSA jack code only created input devices for each registered 14 jack. These jack input devices are not readable by userspace devices 17 The new jack code creates embedded jack kcontrols for each jack that 21 intelligently based on jack insertion or removal events. 23 Jack Kcontro [all...] |
/kernel/linux/linux-5.10/Documentation/sound/designs/ |
H A D | jack-controls.rst | 2 ALSA Jack Controls 5 Why we need Jack kcontrols 13 The old ALSA jack code only created input devices for each registered 14 jack. These jack input devices are not readable by userspace devices 17 The new jack code creates embedded jack kcontrols for each jack that 21 intelligently based on jack insertion or removal events. 23 Jack Kcontro [all...] |
/kernel/linux/linux-5.10/sound/soc/fsl/ |
H A D | wm1133-ev1.c | 14 #include <sound/jack.h> 145 SND_SOC_DAPM_MIC("Mic1 Jack", NULL), 146 SND_SOC_DAPM_MIC("Mic2 Jack", NULL), 147 SND_SOC_DAPM_LINE("Line In Jack", NULL), 148 SND_SOC_DAPM_LINE("Line Out Jack", NULL), 149 SND_SOC_DAPM_HP("Headphone Jack", NULL), 161 /* Mic 1 Jack --> IN1LN and IN1LP (with automatic bias) */ 163 { "IN1LP", NULL, "Mic1 Jack" }, 164 { "Mic Bias", NULL, "Mic1 Jack" }, 166 /* Mic 2 Jack [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/avs/boards/ |
H A D | da7219.c | 11 #include <sound/jack.h> 23 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 57 SND_SOC_DAPM_HP("Headphone Jack", NULL), 65 /* HP jack connectors - unknown if we have jack detection */ 66 {"Headphone Jack", NULL, "HPL"}, 67 {"Headphone Jack", NULL, "HPR"}, 71 { "Headphone Jack", NULL, "Platform Clock" }, 78 .pin = "Headphone Jack", 97 struct snd_soc_jack *jack; in avs_da7219_codec_init() local 220 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local 230 struct snd_soc_jack *jack; avs_da7219_probe() local [all...] |
H A D | rt5682.c | 16 #include <sound/jack.h> 64 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 69 SND_SOC_DAPM_HP("Headphone Jack", NULL), 74 /* HP jack connectors - unknown if we have jack detect */ 75 { "Headphone Jack", NULL, "HPOL" }, 76 { "Headphone Jack", NULL, "HPOR" }, 84 .pin = "Headphone Jack", 98 struct snd_soc_jack *jack; in avs_rt5682_codec_init() local 101 jack in avs_rt5682_codec_init() 260 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local 270 struct snd_soc_jack *jack; avs_rt5682_probe() local [all...] |
H A D | rt5663.c | 12 #include <sound/jack.h> 22 struct snd_soc_jack jack; member 26 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 31 SND_SOC_DAPM_HP("Headphone Jack", NULL), 36 /* HP jack connectors */ 37 { "Headphone Jack", NULL, "HPOL" }, 38 { "Headphone Jack", NULL, "HPOR" }, 47 .pin = "Headphone Jack", 61 struct snd_soc_jack *jack; in avs_rt5663_codec_init() local 64 jack in avs_rt5663_codec_init() 190 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local [all...] |
H A D | nau8825.c | 13 #include <sound/jack.h> 48 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 53 SND_SOC_DAPM_HP("Headphone Jack", NULL), 60 { "Headphone Jack", NULL, "HPOL" }, 61 { "Headphone Jack", NULL, "HPOR" }, 65 { "Headphone Jack", NULL, "Platform Clock" }, 71 .pin = "Headphone Jack", 84 struct snd_soc_jack *jack; in avs_nau8825_codec_init() local 87 jack = snd_soc_card_get_drvdata(card); in avs_nau8825_codec_init() 100 jack, pin in avs_nau8825_codec_init() 228 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local 248 struct snd_soc_jack *jack; avs_nau8825_probe() local [all...] |
H A D | rt298.c | 11 #include <sound/jack.h> 31 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 32 SOC_DAPM_PIN_SWITCH("Mic Jack"), 37 SND_SOC_DAPM_HP("Headphone Jack", NULL), 38 SND_SOC_DAPM_MIC("Mic Jack", NULL), 43 /* HP jack connectors - unknown if we have jack detect */ 44 {"Headphone Jack", NULL, "HPO Pin"}, 45 {"MIC1", NULL, "Mic Jack"}, 53 .pin = "Headphone Jack", 66 struct snd_soc_jack *jack; avs_rt298_codec_init() local 191 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local 201 struct snd_soc_jack *jack; avs_rt298_probe() local [all...] |
H A D | rt274.c | 10 #include <sound/jack.h> 22 SOC_DAPM_PIN_SWITCH("Headphone Jack"), 23 SOC_DAPM_PIN_SWITCH("Mic Jack"), 38 /* Codec needs clock for Jack detection and button press */ in avs_rt274_clock_control() 63 SND_SOC_DAPM_HP("Headphone Jack", NULL), 64 SND_SOC_DAPM_MIC("Mic Jack", NULL), 70 {"Headphone Jack", NULL, "HPO Pin"}, 71 {"MIC", NULL, "Mic Jack"}, 73 {"Headphone Jack", NULL, "Platform Clock"}, 79 .pin = "Headphone Jack", 93 struct snd_soc_jack *jack; avs_rt274_codec_init() local 201 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); avs_card_resume_post() local 211 struct snd_soc_jack *jack; avs_rt274_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/boards/ |
H A D | sof_sdw_cs42l42.c | 17 #include <sound/jack.h> 26 /* HP jack connectors - unknown if we have jack detection */ 55 struct snd_soc_jack *jack; in cs42l42_rtd_init() local 86 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in cs42l42_rtd_init() 94 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in cs42l42_rtd_init() 99 jack = &ctx->sdw_headset; in cs42l42_rtd_init() 101 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in cs42l42_rtd_init() 102 snd_jack_set_key(jack in cs42l42_rtd_init() [all...] |