| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | adc-joystick.yaml | 1 # 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 …]
|
| /kernel/linux/linux-5.10/drivers/input/joystick/ |
| D | Kconfig | 1 # 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 …]
|
| D | a3d.c | 1 // 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 …]
|
| D | adc-joystick.c | 1 // 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 …]
|
| D | Makefile | 1 # 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 …]
|
| /kernel/linux/linux-4.19/Documentation/input/ |
| D | gameport-programming.rst | 9 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 …]
|
| /kernel/linux/linux-5.10/Documentation/input/ |
| D | gameport-programming.rst | 9 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 …]
|
| /kernel/linux/linux-4.19/drivers/input/joystick/ |
| D | a3d.c | 2 * Copyright (c) 1998-2001 Vojtech Pavlik 6 * FP-Gaming Assassin 3D joystick driver for Linux 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 #define DRIVER_DESC "FP-Gaming Assassin 3D joystick driver" 47 static char *a3d_names[] = { NULL, "FP-Gaming Assassin 3D", "MadCatz Panther", "OEM Panther", 52 struct gameport *adc; member 83 t--; in a3d_read_packet() 104 for (i = 0; i < count - 2; i++) in a3d_csum() 106 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum() 111 struct input_dev *dev = a3d->dev; in a3d_read() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | at91sam9m10g45ek.dts | 1 // 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 …]
|
| D | lpc3250-ea3250.dts | 1 // 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 …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | at91sam9m10g45ek.dts | 2 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board 9 /dts-v1/; 11 #include <dt-bindings/pwm/pwm.h> 14 model = "Atmel AT91SAM9M10G45-EK"; 19 stdout-path = "serial0:115200n8"; 28 clock-frequency = <32768>; 32 clock-frequency = <12000000>; 44 compatible = "atmel,tcb-timer"; 49 compatible = "atmel,tcb-timer"; 55 pinctrl-0 = [all …]
|
| D | lpc3250-ea3250.dts | 10 * http://www.opensource.org/licenses/gpl-license.html 14 /dts-v1/; 20 #address-cells = <1>; 21 #size-cells = <1>; 29 compatible = "gpio-keys"; 30 #address-cells = <1>; 31 #size-cells = <0>; 59 label = "Joystick Key 0"; 64 label = "Joystick Key 1"; 69 label = "Joystick Key 2"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/sound/cards/ |
| D | cmipci.rst | 2 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 …]
|
| /kernel/linux/linux-4.19/Documentation/sound/cards/ |
| D | cmipci.rst | 2 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 …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| D | emu10k1.h | 1 /* 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 …]
|
| /kernel/linux/linux-4.19/include/sound/ |
| D | emu10k1.h | 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 31 #include <sound/pcm-indirect.h> 40 /* ------------------- DEFINES -------------------- */ 52 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */ 70 #define PTR_CHANNELNUM_MASK 0x0000003f /* For each per-channel register, indicates the */ 72 /* accessed. For non per-channel registers the */ 103 #define IPR_ADCBUFFULL 0x00008000 /* ADC buffer full */ 104 #define IPR_ADCBUFHALFFULL 0x00004000 /* ADC buffer half full */ 108 #define IPR_CDROMSTATUSCHANGE 0x00000400 /* CD-ROM channel status change */ 121 #define INTE_VIRTUALSB_220 0x00000000 /* Capture at I/O base address 0x220-0x22f */ [all …]
|
| /kernel/linux/linux-5.10/sound/pci/ |
| D | ens1370.c | 1 // 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 …]
|
| D | cs4281.c | 1 // 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 …]
|
| D | azt3328.h | 1 /* 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 …]
|
| /kernel/linux/linux-4.19/sound/pci/ |
| D | ens1370.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 /* Power-Management-Code ( CONFIG_PM ) 25 * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ 69 MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI-97 ES1370}," 86 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 93 static bool joystick[SNDRV_CARDS]; variable 110 MODULE_PARM_DESC(joystick_port, "Joystick port address."); 112 module_param_array(joystick, bool, NULL, 0444); 113 MODULE_PARM_DESC(joystick, "Enable joystick."); 118 MODULE_PARM_DESC(spdif, "S/PDIF output (-1 = none, 0 = auto, 1 = force)."); [all …]
|
| D | cs4281.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 45 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 135 #define BA0_DMR_SIZE20 (1<<20) /* Sample is 20-bit */ 139 #define BA0_DMR_SIZE8 (1<<16) /* Sample is 8-bit */ 145 #define BA0_DMR_AUTO (1<<4) /* Auto-Initialize */ 230 #define BA0_SLT12O 0x041c /* Slot 12 GPIO Output Register for AC-Link */ 234 #define BA0_SERMC_ODSEN2 (1<<25) /* On-Demand Support Enable ASDIN2 */ 235 #define BA0_SERMC_ODSEN1 (1<<24) /* On-Demand Support Enable ASDIN1 */ 256 #define BA0_SLT12M 0x045c /* Slot 12 Monitor Register for Primary AC-Link */ 270 #define BA0_ACOSV_SLV(x) (1<<((x)-3)) [all …]
|
| D | azt3328.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/sound/pci/trident/ |
| D | trident.h | 1 /* 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 …]
|
| /kernel/linux/linux-4.19/sound/pci/trident/ |
| D | trident.h | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 44 #define SNDRV_TRIDENT_PAGE_MASK ((1<<SNDRV_TRIDENT_PAGE_SHIFT)-1) 51 #define TRID_REG(trident, x) ((trident)->port + (x)) 96 #define LEGACY_DMAR6 0x06 // CNT0 - High bits 122 /* MPU-401 UART */ 135 /* Joystick */ 161 /* AC-97 Registers */ 181 /* ACR1-3 */ 244 #define T4D_DEFAULT_PCM_VOL 10 /* 0 - 255 */ 245 #define T4D_DEFAULT_PCM_PAN 0 /* 0 - 127 */ [all …]
|
| /kernel/linux/linux-4.19/drivers/hwmon/ |
| D | Kconfig | 19 sensors-detect script from the lm_sensors package. Read 20 <file:Documentation/hwmon/userspace-tools> for details. 50 will be called abx500-temp. 268 lm-sensors 2.10.1 for proper userspace support. 308 Only Intel-based Apple's computers are supported (MacBook Pro, 315 the laptop to act as a pinball machine-esque joystick. 330 will be called scmi-hwmon. 394 - Dallas Semiconductor DS1625 395 - Maxim Integrated DS1631 396 - Maxim Integrated DS1721 [all …]
|