Home
last modified time | relevance | path

Searched full:jack (Results 1 – 25 of 764) sorted by relevance

12345678910>>...31

/linux/sound/pci/hda/
H A Dhda_jack.c3 * 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 …]
H A Dhda_jack.h3 * 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/sound/soc/
H A Dsoc-jack.c3 // soc-jack.c -- ALSA SoC jack handling
9 #include <sound/jack.h>
20 * snd_soc_jack_report - Report the current status for a jack
22 * @jack: the jack
33 void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) in snd_soc_jack_report() argument
39 if (!jack || !jack->jack) in snd_soc_jack_report()
41 trace_snd_soc_jack_report(jack, mask, status); in snd_soc_jack_report()
43 dapm = &jack->card->dapm; in snd_soc_jack_report()
45 mutex_lock(&jack->mutex); in snd_soc_jack_report()
47 jack->status &= ~mask; in snd_soc_jack_report()
[all …]
H A Dsoc-card.c12 #include <sound/jack.h>
43 struct snd_soc_jack *jack, bool initial_kctl) in jack_new() argument
45 mutex_init(&jack->mutex); in jack_new()
46 jack->card = card; in jack_new()
47 INIT_LIST_HEAD(&jack->pins); in jack_new()
48 INIT_LIST_HEAD(&jack->jack_zones); in jack_new()
49 BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier); in jack_new()
51 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new()
55 * snd_soc_card_jack_new - Create a new jack without pins
57 * @id: an identifying string for this jack
[all …]
/linux/sound/core/
H A Djack.c3 * 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
40 static void snd_jack_remove_debugfs(struct snd_jack *jack); in snd_jack_dev_disconnect()
44 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect()
46 snd_jack_remove_debugfs(jack); in snd_jack_dev_disconnect()
49 guard(mutex)(&jack->input_dev_lock); in snd_jack_dev_disconnect()
50 if (!jack->input_dev) in snd_jack_dev_disconnect()
55 if (jack in snd_jack_dev_disconnect()
43 struct snd_jack *jack = device->device_data; snd_jack_dev_disconnect() local
62 struct snd_jack *jack = device->device_data; snd_jack_dev_free() local
85 struct snd_jack *jack = device->device_data; snd_jack_dev_register() local
126 struct snd_jack *jack; snd_jack_inject_report() local
340 snd_jack_debugfs_add_inject_node(struct snd_jack * jack,struct snd_jack_kctl * jack_kctl) snd_jack_debugfs_add_inject_node() argument
390 snd_jack_debugfs_add_inject_node(struct snd_jack * jack,struct snd_jack_kctl * jack_kctl) snd_jack_debugfs_add_inject_node() argument
413 snd_jack_kctl_add(struct snd_jack * jack,struct snd_jack_kctl * jack_kctl) snd_jack_kctl_add() argument
462 snd_jack_add_new_kctl(struct snd_jack * jack,const char * name,int mask) snd_jack_add_new_kctl() argument
493 struct snd_jack *jack; snd_jack_new() local
580 snd_jack_set_parent(struct snd_jack * jack,struct device * parent) snd_jack_set_parent() argument
614 snd_jack_set_key(struct snd_jack * jack,enum snd_jack_types type,int keytype) snd_jack_set_key() argument
639 snd_jack_report(struct snd_jack * jack,int status) snd_jack_report() argument
[all...]
/linux/Documentation/sound/soc/
H A Djack.rst2 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/Documentation/sound/designs/
H A Djack-controls.rst2 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 …]
H A Djack-injection.rst2 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/include/sound/
H A Dsoc-jack.h3 * 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
52 * @report: value to report when jack detected
70 struct snd_soc_jack *jack; member
82 struct snd_jack *jack; member
[all …]
H A Djack.h6 * Jack abstraction layer
16 * enum snd_jack_types - Jack types which can be reported
35 * sound/core/jack.c.
79 struct snd_jack **jack, bool initial_kctl, bool phantom_jack);
80 int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int mask);
82 void snd_jack_set_parent(struct snd_jack *jack, struct device *parent);
83 int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type,
86 void snd_jack_report(struct snd_jack *jack, int status);
90 struct snd_jack **jack, bool initial_kctl, bool phantom_jack) in snd_jack_new() argument
95 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/sound/soc/pxa/
H A Dspitz.c50 /* 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 …]
/linux/sound/soc/qcom/
H A Dcommon.c7 #include <sound/jack.h>
14 SND_SOC_DAPM_HP("Headphone Jack", NULL),
15 SND_SOC_DAPM_MIC("Mic Jack", NULL),
16 SND_SOC_DAPM_SPK("DP0 Jack", NULL),
17 SND_SOC_DAPM_SPK("DP1 Jack", NULL),
18 SND_SOC_DAPM_SPK("DP2 Jack", NULL),
19 SND_SOC_DAPM_SPK("DP3 Jack", NULL),
20 SND_SOC_DAPM_SPK("DP4 Jack", NULL),
21 SND_SOC_DAPM_SPK("DP5 Jack", NULL),
22 SND_SOC_DAPM_SPK("DP6 Jack", NULL),
[all …]
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_cs42l42.c18 #include <sound/jack.h>
22 /* HP jack connectors - unknown if we have jack detection */
45 struct snd_soc_jack *jack; in asoc_sdw_cs42l42_rtd_init() local
63 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in asoc_sdw_cs42l42_rtd_init()
71 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in asoc_sdw_cs42l42_rtd_init()
76 jack = &ctx->sdw_headset; in asoc_sdw_cs42l42_rtd_init()
78 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in asoc_sdw_cs42l42_rtd_init()
79 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in asoc_sdw_cs42l42_rtd_init()
80 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in asoc_sdw_cs42l42_rtd_init()
81 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); in asoc_sdw_cs42l42_rtd_init()
[all …]
H A Dsoc_sdw_rt5682.c19 #include <sound/jack.h>
45 struct snd_soc_jack *jack; in asoc_sdw_rt5682_rtd_init() local
63 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in asoc_sdw_rt5682_rtd_init()
71 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in asoc_sdw_rt5682_rtd_init()
76 jack = &ctx->sdw_headset; in asoc_sdw_rt5682_rtd_init()
78 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in asoc_sdw_rt5682_rtd_init()
79 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in asoc_sdw_rt5682_rtd_init()
80 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in asoc_sdw_rt5682_rtd_init()
81 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in asoc_sdw_rt5682_rtd_init()
83 ret = snd_soc_component_set_jack(component, jack, NULL); in asoc_sdw_rt5682_rtd_init()
[all …]
H A Dsoc_sdw_rt700.c17 #include <sound/jack.h>
43 struct snd_soc_jack *jack; in asoc_sdw_rt700_rtd_init() local
61 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset Jack", in asoc_sdw_rt700_rtd_init()
69 dev_err(rtd->card->dev, "Headset Jack creation failed: %d\n", in asoc_sdw_rt700_rtd_init()
74 jack = &ctx->sdw_headset; in asoc_sdw_rt700_rtd_init()
76 snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in asoc_sdw_rt700_rtd_init()
77 snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); in asoc_sdw_rt700_rtd_init()
78 snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); in asoc_sdw_rt700_rtd_init()
79 snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); in asoc_sdw_rt700_rtd_init()
81 ret = snd_soc_component_set_jack(component, jack, NULL); in asoc_sdw_rt700_rtd_init()
[all …]
/linux/sound/soc/intel/avs/boards/
H A Dda7219.c11 #include <sound/jack.h>
24 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
58 SND_SOC_DAPM_HP("Headphone Jack", NULL),
66 /* HP jack connectors - unknown if we have jack detection */
67 {"Headphone Jack", NULL, "HPL"},
68 {"Headphone Jack", NULL, "HPR"},
72 { "Headphone Jack", NULL, "Platform Clock" },
79 .pin = "Headphone Jack",
98 struct snd_soc_jack *jack; in avs_da7219_codec_init() local
103 jack = snd_soc_card_get_drvdata(card); in avs_da7219_codec_init()
[all …]
H A Drt5682.c16 #include <sound/jack.h>
65 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
70 SND_SOC_DAPM_HP("Headphone Jack", NULL),
75 /* HP jack connectors - unknown if we have jack detect */
76 { "Headphone Jack", NULL, "HPOL" },
77 { "Headphone Jack", NULL, "HPOR" },
85 .pin = "Headphone Jack",
99 struct snd_soc_jack *jack; in avs_rt5682_codec_init() local
102 jack = snd_soc_card_get_drvdata(card); in avs_rt5682_codec_init()
117 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET | SND_JACK_BTN_0 | in avs_rt5682_codec_init()
[all …]
H A Drt286.c10 #include <sound/jack.h>
21 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
22 SOC_DAPM_PIN_SWITCH("Mic Jack"),
27 SND_SOC_DAPM_HP("Headphone Jack", NULL),
28 SND_SOC_DAPM_MIC("Mic Jack", NULL),
33 /* HP jack connectors - unknown if we have jack detect */
34 {"Headphone Jack", NULL, "HPO Pin"},
35 {"MIC1", NULL, "Mic Jack"},
43 .pin = "Headphone Jack",
47 .pin = "Mic Jack",
[all …]
H A Drt5663.c12 #include <sound/jack.h>
23 struct snd_soc_jack jack; member
27 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
32 SND_SOC_DAPM_HP("Headphone Jack", NULL),
37 /* HP jack connectors */
38 { "Headphone Jack", NULL, "HPOL" },
39 { "Headphone Jack", NULL, "HPOR" },
48 .pin = "Headphone Jack",
62 struct snd_soc_jack *jack; in avs_rt5663_codec_init() local
65 jack = &priv->jack; in avs_rt5663_codec_init()
[all …]
H A Dnau8825.c13 #include <sound/jack.h>
49 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
54 SND_SOC_DAPM_HP("Headphone Jack", NULL),
61 { "Headphone Jack", NULL, "HPOL" },
62 { "Headphone Jack", NULL, "HPOR" },
66 { "Headphone Jack", NULL, "Platform Clock" },
72 .pin = "Headphone Jack",
85 struct snd_soc_jack *jack; in avs_nau8825_codec_init() local
88 jack = snd_soc_card_get_drvdata(card); in avs_nau8825_codec_init()
99 ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET | SND_JACK_BTN_0 | in avs_nau8825_codec_init()
[all …]
H A Drt298.c11 #include <sound/jack.h>
32 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
33 SOC_DAPM_PIN_SWITCH("Mic Jack"),
38 SND_SOC_DAPM_HP("Headphone Jack", NULL),
39 SND_SOC_DAPM_MIC("Mic Jack", NULL),
44 /* HP jack connectors - unknown if we have jack detect */
45 {"Headphone Jack", NULL, "HPO Pin"},
46 {"MIC1", NULL, "Mic Jack"},
54 .pin = "Headphone Jack",
58 .pin = "Mic Jack",
[all …]
H A Drt274.c10 #include <sound/jack.h>
23 SOC_DAPM_PIN_SWITCH("Headphone Jack"),
24 SOC_DAPM_PIN_SWITCH("Mic Jack"),
39 /* Codec needs clock for Jack detection and button press */ in avs_rt274_clock_control()
64 SND_SOC_DAPM_HP("Headphone Jack", NULL),
65 SND_SOC_DAPM_MIC("Mic Jack", NULL),
71 {"Headphone Jack", NULL, "HPO Pin"},
72 {"MIC", NULL, "Mic Jack"},
74 {"Headphone Jack", NULL, "Platform Clock"},
80 .pin = "Headphone Jack",
[all …]
/linux/sound/virtio/
H A Dvirtio_jack.c7 #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/Documentation/sound/hd-audio/
H A Dmodels.rst8 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 …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-kontron-samx6i-ads2.dtsi21 "Headphone", "Headphone Jack",
22 "Line", "Line Out Jack",
23 "Microphone", "Microphone Jack",
24 "Line", "Line In Jack";
26 "Line Out Jack", "LINEOUTR",
27 "Line Out Jack", "LINEOUTL",
28 "Headphone Jack", "HPOUTR",
29 "Headphone Jack", "HPOUTL",
30 "IN1L", "Line In Jack",
31 "IN1R", "Line In Jack",
[all …]

12345678910>>...31