| /Linux-v5.15/sound/pci/hda/ |
| 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() 79 if (jack->nid == nid && jack->dev_id == dev_id) in snd_hda_jack_tbl_get_mst() [all …]
|
| 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 58 * snd_hda_jack_tbl_get - query the jack-table entry for the given NID [all …]
|
| /Linux-v5.15/sound/soc/ |
| 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) in snd_soc_jack_report() 42 trace_snd_soc_jack_report(jack, mask, status); in snd_soc_jack_report() 44 dapm = &jack->card->dapm; in snd_soc_jack_report() 46 mutex_lock(&jack->mutex); in snd_soc_jack_report() 48 jack->status &= ~mask; in snd_soc_jack_report() [all …]
|
| D | soc-card.c | 9 #include <sound/jack.h> 46 * snd_soc_card_jack_new - Create a new jack 48 * @id: an identifying string for this jack 50 * this jack 51 * @jack: structure to use for the jack 52 * @pins: Array of jack pins to be added to the jack or NULL 55 * Creates a new jack object. 58 * On success jack will be initialised. 61 struct snd_soc_jack *jack, in snd_soc_card_jack_new() argument 66 mutex_init(&jack->mutex); in snd_soc_card_jack_new() [all …]
|
| /Linux-v5.15/sound/core/ |
| 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 if (!jack->input_dev) in snd_jack_dev_disconnect() 50 if (jack->registered) in snd_jack_dev_disconnect() 51 input_unregister_device(jack->input_dev); in snd_jack_dev_disconnect() 53 input_free_device(jack->input_dev); in snd_jack_dev_disconnect() 54 jack->input_dev = NULL; in snd_jack_dev_disconnect() [all …]
|
| /Linux-v5.15/Documentation/sound/soc/ |
| 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 status changes. [all …]
|
| /Linux-v5.15/Documentation/sound/designs/ |
| 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 Kcontrol Internals 26 Each jack will have a kcontrol list, so that we can create a kcontrol 27 and attach it to the jack, at jack creation stage. We can also add a 28 kcontrol to an existing jack, at anytime when required. [all …]
|
| 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 has two functions: 23 for this jack. The jack injection is implemented based on the [all …]
|
| /Linux-v5.15/include/sound/ |
| 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 [all …]
|
| D | jack.h | 6 * Jack abstraction layer 16 * enum snd_jack_types - Jack types which can be reported 35 * sound/core/jack.c. 78 struct snd_jack **jack, bool initial_kctl, bool phantom_jack); 79 int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask); 81 void snd_jack_set_parent(struct snd_jack *jack, struct device *parent); 82 int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, 85 void snd_jack_report(struct snd_jack *jack, int status); 89 struct snd_jack **jack, bool initial_kctl, bool phantom_jack) in snd_jack_new() argument 94 static inline int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask) in snd_jack_add_new_kctl() argument [all …]
|
| /Linux-v5.15/sound/soc/pxa/ |
| 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 …]
|
| 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 …]
|
| D | tosa.c | 12 * 1 - Jack Insertion 44 /* set up jack connection */ 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() 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() 58 snd_soc_dapm_disable_pin_unlocked(dapm, "Headphone Jack"); in tosa_ext_control() 59 snd_soc_dapm_enable_pin_unlocked(dapm, "Headset Jack"); in tosa_ext_control() 77 /* check the jack status at stream startup */ in tosa_startup() 137 SND_SOC_DAPM_HP("Headphone Jack", tosa_hp_event), [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/sound/ |
| D | fsl-asoc-card.txt | 66 * Line Out Jack 67 * Line In Jack 68 * Headphone Jack 69 * Mic Jack 71 * AMIC (stands for Analog Microphone Jack) 72 * DMIC (stands for Digital Microphone Jack) 74 Note: The "Mic Jack" and "AMIC" are redundant while 100 "Line Out Jack", "AOUT1L", 101 "Line Out Jack", "AOUT1R", 102 "Line Out Jack", "AOUT2L", [all …]
|
| D | rt5640.txt | 35 - realtek,jack-detect-source 37 0: jack-detect is not used 38 1: Use GPIO1 for jack-detect 39 2: Use JD1_IN4P for jack-detect 40 3: Use JD2_IN4N for jack-detect 41 4: Use GPIO2 for jack-detect 42 5: Use GPIO3 for jack-detect 43 6: Use GPIO4 for jack-detect 45 - realtek,jack-detect-not-inverted 46 bool. Normal jack-detect switches give an inverted signal, set this bool [all …]
|
| /Linux-v5.15/sound/virtio/ |
| D | virtio_jack.c | 7 #include <sound/jack.h> 23 * struct virtio_jack - VirtIO jack. 24 * @jack: Kernel jack control. 26 * @features: Jack virtio feature bit map (1 << VIRTIO_SND_JACK_F_XXX). 29 * @connected: Current jack connection status. 30 * @type: Kernel jack type (SND_JACK_XXX). 33 struct snd_jack *jack; member 43 * virtsnd_jack_get_label() - Get the name string for the jack. 44 * @vjack: VirtIO jack. 46 * Returns the jack name based on the default pin configuration value (see HDA [all …]
|
| /Linux-v5.15/sound/soc/intel/boards/ |
| D | sof_sdw_rt700.c | 15 #include <sound/jack.h> 54 struct snd_soc_jack *jack; in rt700_rtd_init() local 85 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in rt700_rtd_init() 93 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in rt700_rtd_init() 98 jack = &ctx->sdw_headset; in rt700_rtd_init() 100 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in rt700_rtd_init() 101 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in rt700_rtd_init() 102 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in rt700_rtd_init() 103 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in rt700_rtd_init() 105 ret = snd_soc_component_set_jack(component, jack, NULL); in rt700_rtd_init() [all …]
|
| D | sof_sdw_rt5682.c | 17 #include <sound/jack.h> 54 struct snd_soc_jack *jack; in rt5682_rtd_init() local 85 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in rt5682_rtd_init() 93 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in rt5682_rtd_init() 98 jack = &ctx->sdw_headset; in rt5682_rtd_init() 100 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in rt5682_rtd_init() 101 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in rt5682_rtd_init() 102 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in rt5682_rtd_init() 103 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in rt5682_rtd_init() 105 ret = snd_soc_component_set_jack(component, jack, NULL); in rt5682_rtd_init() [all …]
|
| D | sof_sdw_rt711.c | 17 #include <sound/jack.h> 78 struct snd_soc_jack *jack; in rt711_rtd_init() local 109 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in rt711_rtd_init() 117 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in rt711_rtd_init() 122 jack = &ctx->sdw_headset; in rt711_rtd_init() 124 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in rt711_rtd_init() 125 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in rt711_rtd_init() 126 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in rt711_rtd_init() 127 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in rt711_rtd_init() 129 ret = snd_soc_component_set_jack(component, jack, NULL); in rt711_rtd_init() [all …]
|
| D | sof_sdw_rt711_sdca.c | 17 #include <sound/jack.h> 79 struct snd_soc_jack *jack; in rt711_sdca_rtd_init() local 110 ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", in rt711_sdca_rtd_init() 118 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in rt711_sdca_rtd_init() 123 jack = &ctx->sdw_headset; in rt711_sdca_rtd_init() 125 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in rt711_sdca_rtd_init() 126 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in rt711_sdca_rtd_init() 127 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in rt711_sdca_rtd_init() 128 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in rt711_sdca_rtd_init() 130 ret = snd_soc_component_set_jack(component, jack, NULL); in rt711_sdca_rtd_init() [all …]
|
| /Linux-v5.15/Documentation/sound/hd-audio/ |
| D | models.rst | 8 3-jack in back and a headphone out 10 3-jack in back, a HP out and a SPDIF out 12 5-jack in back, 2-jack in front 14 5-jack in back, 2-jack in front, a SPDIF out 16 6-jack in back, 2-jack in front 18 6-jack with a SPDIF out 20 6-jack with headphone jack detection 31 Quirk for FSC S7020 with jack modes and HP mic support 76 Indicates a combined headset (headphone+mic) jack 88 Headset jack, which can also be used as mic-in [all …]
|
| D | controls.rst | 16 jack-retasking of multi-I/O jacks. 25 automatically when a jack is plugged. 29 speaker-only is chosen, plugging into a headphone or a line-out jack 31 selected, plugging to a headphone jack mutes both speakers and 55 Mic Jack Mode, Line Jack Mode, etc 56 These enum controls the direction and the bias of the input jack 57 pins. Depending on the jack type, it can set as "Mic In" and "Line 59 when the pin is a multi-I/O jack for surround channels. 87 This control determines whether the dynamic power-control per jack 89 (D0/D3) are changed dynamically depending on the jack plugging [all …]
|
| /Linux-v5.15/arch/arm64/boot/dts/freescale/ |
| D | fsl-ls1028a-kontron-sl28-var3-ads2.dts | 34 "Headphone", "Headphone Jack", 35 "Line", "Line Out Jack", 36 "Microphone", "Microphone Jack", 37 "Line", "Line In Jack"; 39 "Line Out Jack", "LINEOUTR", 40 "Line Out Jack", "LINEOUTL", 41 "Headphone Jack", "HPOUTR", 42 "Headphone Jack", "HPOUTL", 43 "IN1L", "Line In Jack", 44 "IN1R", "Line In Jack", [all …]
|
| /Linux-v5.15/sound/soc/qcom/ |
| D | sc7180.c | 14 #include <sound/jack.h> 37 static void sc7180_jack_free(struct snd_jack *jack) in sc7180_jack_free() argument 39 struct snd_soc_component *component = jack->private_data; in sc7180_jack_free() 50 struct snd_jack *jack; in sc7180_headset_init() local 54 card, "Headset Jack", in sc7180_headset_init() 62 dev_err(card->dev, "Unable to add Headset Jack\n"); in sc7180_headset_init() 66 jack = pdata->hs_jack.jack; in sc7180_headset_init() 68 snd_jack_set_key(jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in sc7180_headset_init() 69 snd_jack_set_key(jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in sc7180_headset_init() 70 snd_jack_set_key(jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in sc7180_headset_init() [all …]
|
| /Linux-v5.15/sound/soc/codecs/ |
| D | ts3a227e.c | 18 #include <sound/jack.h> 26 struct snd_soc_jack *jack; member 33 /* Button values to be reported on the jack */ 152 if (!ts3a227e->jack) in ts3a227e_jack_report() 163 snd_soc_jack_report(ts3a227e->jack, report, TS3A227E_JACK_MASK); in ts3a227e_jack_report() 227 * ts3a227e_enable_jack_detect - Specify a jack for event reporting 229 * @component: component to register the jack with 230 * @jack: jack to use to report headset and button events on 233 * events 0-3 will be routed to the given jack. Jack can be null to stop 237 struct snd_soc_jack *jack) in ts3a227e_enable_jack_detect() argument [all …]
|