Home
last modified time | relevance | path

Searched +full:adc +full:- +full:joystick (Results 1 – 23 of 23) sorted by relevance

/linux-5.10/Documentation/devicetree/bindings/input/
Dadc-joystick.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
4 ---
5 $id: "http://devicetree.org/schemas/input/adc-joystick.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: ADC attached joystick
11 - Artur Rojek <contact@artur-rojek.eu>
14 Bindings for joystick devices connected to ADC controllers supporting
19 const: adc-joystick
21 io-channels:
[all …]
/linux-5.10/drivers/input/joystick/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Joystick driver configuration
8 If you have a joystick, 6dof controller, gamepad, steering wheel,
13 Please read the file <file:Documentation/input/joydev/joystick.rst> which
22 Say Y here if you have a joystick that connects to the PC
23 gameport. In addition to the usual PC analog joystick, this driver
29 Please read the file <file:Documentation/input/joydev/joystick.rst> which
46 tristate "Simple joystick connected over ADC"
50 Say Y here if you have a simple joystick connected over ADC.
53 module will be called adc-joystick.
[all …]
Da3d.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 1998-2001 Vojtech Pavlik
7 * FP-Gaming Assassin 3D joystick driver for Linux
20 #define DRIVER_DESC "FP-Gaming Assassin 3D joystick driver"
35 static char *a3d_names[] = { NULL, "FP-Gaming Assassin 3D", "MadCatz Panther", "OEM Panther",
40 struct gameport *adc; member
71 t--; in a3d_read_packet()
92 for (i = 0; i < count - 2; i++) in a3d_csum()
94 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum()
99 struct input_dev *dev = a3d->dev; in a3d_read()
[all …]
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
3 * Input driver for joysticks connected over ADC.
4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu>
39 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
41 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
42 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
43 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
44 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle()
45 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle()
66 return -EINVAL; in adc_joystick_handle()
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
8 obj-$(CONFIG_JOYSTICK_A3D) += a3d.o
9 obj-$(CONFIG_JOYSTICK_ADC) += adc-joystick.o
10 obj-$(CONFIG_JOYSTICK_ADI) += adi.o
11 obj-$(CONFIG_JOYSTICK_AMIGA) += amijoy.o
12 obj-$(CONFIG_JOYSTICK_AS5011) += as5011.o
13 obj-$(CONFIG_JOYSTICK_ANALOG) += analog.o
14 obj-$(CONFIG_JOYSTICK_COBRA) += cobra.o
15 obj-$(CONFIG_JOYSTICK_DB9) += db9.o
16 obj-$(CONFIG_JOYSTICK_FSIA6B) += fsia6b.o
[all …]
/linux-5.10/Documentation/input/
Dgameport-programming.rst9 the code needed to register it with the joystick drivers is simple::
34 Please also consider enabling the gameport on the card in the ->open()
35 callback if the io is mapped to ISA space - this way it'll occupy the io
37 ->close() callback. You also can select the io address in the ->open()
70 the driver doesn't have to measure them the old way - an ADC is built into
86 return -(mode != GAMEPORT_MODE_COOKED);
95 experimentation, it is the amount of noise in the ADC data. Perfect
97 See analog.c and input.c for handling of fuzz - the fuzz value determines
105 examples 1+2 or 1+3. Gameports can support internal calibration - see below,
107 more than one gameport instance simultaneously, use the ->private member of
[all …]
/linux-5.10/arch/arm/boot/dts/
Dat91sam9m10g45ek.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
8 /dts-v1/;
10 #include <dt-bindings/pwm/pwm.h>
13 model = "Atmel AT91SAM9M10G45-EK";
18 stdout-path = "serial0:115200n8";
27 clock-frequency = <32768>;
31 clock-frequency = <12000000>;
43 compatible = "atmel,tcb-timer";
48 compatible = "atmel,tcb-timer";
[all …]
Dlpc3250-ea3250.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
20 gpio-keys {
21 compatible = "gpio-keys";
55 label = "Joystick Key 0";
61 label = "Joystick Key 1";
67 label = "Joystick Key 2";
73 label = "Joystick Key 3";
79 label = "Joystick Key 4";
86 compatible = "gpio-leds";
[all …]
/linux-5.10/Documentation/sound/cards/
Dcmipci.rst2 Brief Notes on C-Media 8338/8738/8768/8770 Driver
8 Front/Rear Multi-channel Playback
9 ---------------------------------
11 CM8x38 chip can use ADC as the second DAC so that two different stereo
13 DACs, both streams are handled independently unlike the 4/6ch multi-
22 - The first DAC supports U8 and S16LE formats, while the second DAC
24 - The second DAC supports only two channel stereo.
51 control switch in the driver "Line-In As Rear", which you can change
52 via alsamixer or somewhat else. When this switch is on, line-in jack
60 4/6 Multi-Channel Playback
[all …]
/linux-5.10/include/sound/
Demu10k1.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 #include <sound/pcm-indirect.h>
25 /* ------------------- DEFINES -------------------- */
37 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
55 #define PTR_CHANNELNUM_MASK 0x0000003f /* For each per-channel register, indicates the */
57 /* accessed. For non per-channel registers the */
88 #define IPR_ADCBUFFULL 0x00008000 /* ADC buffer full */
89 #define IPR_ADCBUFHALFFULL 0x00004000 /* ADC buffer half full */
93 #define IPR_CDROMSTATUSCHANGE 0x00000400 /* CD-ROM channel status change */
106 #define INTE_VIRTUALSB_220 0x00000000 /* Capture at I/O base address 0x220-0x22f */
[all …]
/linux-5.10/sound/pci/
Dens1370.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /* Power-Management-Code ( CONFIG_PM )
11 * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/
55 MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI-97 ES1370},"
72 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
79 static bool joystick[SNDRV_CARDS]; variable
96 MODULE_PARM_DESC(joystick_port, "Joystick port address.");
98 module_param_array(joystick, bool, NULL, 0444);
99 MODULE_PARM_DESC(joystick, "Enable joystick.");
104 MODULE_PARM_DESC(spdif, "S/PDIF output (-1 = none, 0 = auto, 1 = force).");
[all …]
Dcs4281.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
120 #define BA0_DMR_SIZE20 (1<<20) /* Sample is 20-bit */
124 #define BA0_DMR_SIZE8 (1<<16) /* Sample is 8-bit */
130 #define BA0_DMR_AUTO (1<<4) /* Auto-Initialize */
215 #define BA0_SLT12O 0x041c /* Slot 12 GPIO Output Register for AC-Link */
219 #define BA0_SERMC_ODSEN2 (1<<25) /* On-Demand Support Enable ASDIN2 */
220 #define BA0_SERMC_ODSEN1 (1<<24) /* On-Demand Support Enable ASDIN1 */
241 #define BA0_SLT12M 0x045c /* Slot 12 Monitor Register for Primary AC-Link */
255 #define BA0_ACOSV_SLV(x) (1<<((x)-3))
[all …]
Dazt3328.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* "PU" == "power-up value", as tested on PCI168 PCI rev. 10
85 …REQ_SUSPECTED_66200 0x06 | SOUNDFORMAT_XTAL2 /* 66200 (13240 * 5); 64000 may have been nicer :-\ */
111 #define IDX_IO_TIMER_VALUE 0x60 /* found this timer area by pure luck :-) */
122 /* some IRQ bit in here might also be used to signal a power-management timer
150 * in case playback is active? Or is this driver-induced?
179 * --> FIFO/timing settings???) */
186 #define IDX_IO_6CH 0x6C /* unknown; fully read-writable */
228 /* enable to have the latch continuously accept ADC values
232 /* joystick data (measured axes) ready for reading: */
[all …]
Dcmipci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for C-Media CMI8338 and 8738 PCI soundcards.
31 MODULE_DESCRIPTION("C-Media CMI8x38 PCI");
33 MODULE_SUPPORTED_DEVICE("{{C-Media,CMI8738},"
34 "{C-Media,CMI8738B},"
35 "{C-Media,CMI8338A},"
36 "{C-Media,CMI8338B}}");
42 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
45 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 1};
46 static long fm_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1};
[all …]
Dsonicvibes.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
38 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
62 #define SV_REG(sonic, x) ((sonic)->enh_port + SV_REG_##x)
65 #define SV_ENHANCED 0x01 /* audio mode select - enhanced mode */
69 #define SV_INTA 0x20 /* INTA driving - should be always 1 */
72 #define SV_DMAA_MASK 0x01 /* mask DMA-A interrupt */
73 #define SV_DMAC_MASK 0x04 /* mask DMA-C interrupt */
74 #define SV_SPEC_MASK 0x08 /* special interrupt mask - should be always masked */
78 #define SV_DMAA_IRQ 0x01 /* DMA-A interrupt */
[all …]
Dintel8x0.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 MODULE_SUPPORTED_DEVICE("{{Intel,82801AA-ICH},"
31 "{Intel,82901AB-ICH0},"
32 "{Intel,82801BA-ICH2},"
33 "{Intel,82801CA-ICH3},"
34 "{Intel,82801DB-ICH4},"
54 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
59 static int buggy_irq = -1; /* auto-check */
61 static int spdif_aclink = -1;
62 static int inside_vm = -1;
[all …]
Dazt3328.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* azt3328.c - driver for Aztech AZF3328 based soundcards (e.g. PCI168).
3 * Copyright (C) 2002, 2005 - 2011 by Andreas Mohr <andi AT lisas.de>
7 * found in a Fujitsu-Siemens PC ("Cordant", aluminum case).
13 * Keywords: Windows XP Vista 168nt4-125.zip 168win95-125.zip PCI 168 download
17 * despite the high level of Internet ignorance - as usual :-P -
18 * about very good support for this card - on Linux!)
25 * in the first place >:-P}),
34 * for compatibility reasons) from Azfin (joint-venture of Aztech and Fincitec,
36 * Fincitec-related company ARSmikro) has the following features:
[all …]
/linux-5.10/sound/pci/trident/
Dtrident.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
29 #define SNDRV_TRIDENT_PAGE_MASK ((1<<SNDRV_TRIDENT_PAGE_SHIFT)-1)
36 #define TRID_REG(trident, x) ((trident)->port + (x))
81 #define LEGACY_DMAR6 0x06 // CNT0 - High bits
107 /* MPU-401 UART */
120 /* Joystick */
146 /* AC-97 Registers */
166 /* ACR1-3 */
229 #define T4D_DEFAULT_PCM_VOL 10 /* 0 - 255 */
230 #define T4D_DEFAULT_PCM_PAN 0 /* 0 - 127 */
[all …]
/linux-5.10/drivers/hwmon/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
20 sensors-detect script from the lm_sensors package. Read
21 <file:Documentation/hwmon/userspace-tools.rst> for details.
52 will be called abx500-temp.
267 will be called as370-hwmon.
290 will be called axi-fan-control
299 lm-sensors 2.10.1 for proper userspace support.
348 Only Intel-based Apple's computers are supported (MacBook Pro,
355 the laptop to act as a pinball machine-esque joystick.
370 will be called scmi-hwmon.
[all …]
/linux-5.10/sound/pci/emu10k1/
Demu10k1_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (c) by James Courtier-Dutton <James@superbug.co.uk>
13 * --
16 * --
92 if (emu->audigy) { in snd_emu10k1_voice_init()
133 { 0x0e, 0xcf }, /* Attenuation Left 0x01 = -103dB, 0xff = 24dB */
140 { 0x15, ADC_MUX_2 }, /* ADC Mixer control. Mic for A2ZS Notebook */
151 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init()
162 outl(0, emu->port + INTE); in snd_emu10k1_init()
168 if (emu->audigy) { in snd_emu10k1_init()
[all …]
/linux-5.10/sound/isa/msnd/
Dmsnd_pinnacle.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * the following is a copy of the 2.4.18 OSS FREE file-heading comment:
21 * -- If MSND_CLASSIC is defined:
23 * -> driver for Turtle Beach Classic/Monterey/Tahiti
25 * -- Else
27 * -> driver for Turtle Beach Pinnacle/Fiji
29 * 12-3-2000 Modified IO port validation Steve Sycamore
62 # define DEV_NAME "msnd-classic"
66 # define DEV_NAME "msnd-pinnacle"
71 chip->play_sample_size = snd_pcm_format_width(DEFSAMPLESIZE); in set_default_audio_parameters()
[all …]
/linux-5.10/Documentation/admin-guide/
Ddevices.txt1 0 Unnamed devices (e.g. non-device mounts)
11 6 = /dev/core OBSOLETE - replaced by /proc/kcore
18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore
31 2 char Pseudo-TTY masters
37 Pseudo-tty's are named as follows:
40 the 1st through 16th series of 16 pseudo-ttys each, and
44 These are the old-style (BSD) PTY devices; Unix98
106 3 char Pseudo-TTY slaves
112 These are the old-style (BSD) PTY devices; Unix98
115 3 block First MFM, RLL and IDE hard disk/CD-ROM interface
[all …]
/linux-5.10/
DMAINTAINERS9 -------------------------
30 ``diff -u`` to make the patch easy to merge. Be prepared to get your
40 See Documentation/process/coding-style.rst for guidance here.
46 See Documentation/process/submitting-patches.rst for details.
57 include a Signed-off-by: line. The current version of this
59 Documentation/process/submitting-patches.rst.
70 that the bug would present a short-term risk to other users if it
76 Documentation/admin-guide/security-bugs.rst for details.
81 ---------------------------------------------------
97 W: *Web-page* with status/info
[all …]