| /OK3568_Linux_fs/kernel/sound/isa/opti9xx/ |
| H A D | opti92x-ad1848.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 card-opti92x-ad1848.c - driver for OPTi 82c92x based soundcards. 4 Copyright (C) 1998-2000 by Massimo Piccioni <dafastidio@libero.it> 42 MODULE_DESCRIPTION("OPTi92X - CS4231"); 46 MODULE_DESCRIPTION("OPTi92X - AD1848"); 53 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 62 static int irq = SNDRV_DEFAULT_IRQ1; /* 5,7,9,10,11 */ variable 82 MODULE_PARM_DESC(mpu_port, "MPU-401 port # for opti9xx driver."); 85 module_param_hw(irq, int, irq, 0444); 86 MODULE_PARM_DESC(irq, "WSS irq # for opti9xx driver."); [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/ |
| H A D | azt3328.c | 1 // 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 …]
|
| H A D | intel8x0m.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * This is modified (by Sasha Khapyorsky <sashak@alsa-project.org>) version 28 MODULE_SUPPORTED_DEVICE("{{Intel,82801AA-ICH}," 29 "{Intel,82901AB-ICH0}," 30 "{Intel,82801BA-ICH2}," 31 "{Intel,82801CA-ICH3}," 32 "{Intel,82801DB-ICH4}," 44 static int index = -2; /* Exclude the first card */ 53 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = auto-detect)."); 68 ICH_REG_##name##_BDBAR = base + 0x0, /* dword - buffer descriptor list base address */ \ [all …]
|
| H A D | atiixp_modem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 static int index = -2; /* Exclude the first card */ 37 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); 215 int ac97_pcm_type; /* index # of ac97_pcm to access, -1 = not used */ 228 int irq; member 241 unsigned int codec_not_ready_bits; /* for codec detection */ 270 void __iomem *addr = chip->remap_addr + reg; in snd_atiixp_update_bits() 285 writel(value, chip->remap_addr + ATI_REG_##reg) 287 readl(chip->remap_addr + ATI_REG_##reg) 295 * in a future version, a scatter-gather buffer should be implemented. [all …]
|
| H A D | atiixp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 33 static int ac97_codec = -1; 40 MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz)."); 44 MODULE_PARM_DESC(ac97_codec, "Specify codec instead of probing."); 46 MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); 144 #define ATI_REG_OUT_DMA_SLOT_BIT(x) (1U << ((x) - 3)) 170 #define ATI_REG_6CH_REORDER_EN (1U<<0) /* 3,4,7,8,6,9 -> 3,4,6,9,7,8 */ 240 int ac97_pcm_type; /* index # of ac97_pcm to access, -1 = not used */ 253 int irq; member [all …]
|
| H A D | intel8x0.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/sound/pci/ali5451/ |
| H A D | ali5451.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * -- 11 * -- 21 #include <linux/dma-mapping.h> 142 #define ALI_REG(codec, x) ((codec)->port + x) argument 181 struct snd_ali *codec; member 186 int count; /* runtime->period_size */ 188 /* --- */ 215 int irq; member 267 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/zoran/ |
| H A D | videocodec.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's 15 /* Should ease the (re-)usage of drivers supporting cards with (different) 19 The codecs are typically have a "strong" binding to their master - so I 21 i2c. If you have an other opinion, let's discuss & implement it :-))) 28 The best is just calling them at module (de-)initialisation. 46 ---------------------------------------------------------------------------- 50 ---------------------------------------------------------------------------- 59 name -> name of the device structure for reference and debugging 60 master_data -> data ref. for the master (e.g. the zr36055,57,67) [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/skylake/ |
| H A D | skl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * skl.c - Implementation of ASoC Intel SKL HD Audio driver 5 * Copyright (C) 2014-2015 Intel Corp 23 #include <sound/soc-acpi.h> 24 #include <sound/soc-acpi-intel-match.h> 29 #include <sound/intel-nhlt.h> 30 #include <sound/intel-dsp-config.h> 32 #include "skl-sst-dsp.h" 33 #include "skl-sst-ipc.h" 61 * Clear bits 0-2 of PCI register TCSEL (at offset 0x44) in skl_init_pci() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/ |
| H A D | cirrus,lochnagar.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 15 Logic devices on mini-cards, as well as allowing connection of various 26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt 29 [3] include/dt-bindings/pinctrl/lochnagar.h 37 - cirrus,lochnagar-pinctrl 39 gpio-controller: true [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | mainstone-wm97xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for 16 * - codecs supported:- WM9705, WM9712, WM9713 17 * - processors supported:- Intel XScale PXA25x, PXA26x, PXA27x 24 #include <linux/irq.h> 30 #include <mach/regs-ac97.h> 32 #include <asm/mach-types.h> 35 u16 id; /* codec id */ 61 static int irq; variable 74 * event. If the irq request fails then it will fall back to polling mode. [all …]
|
| H A D | wm97xx-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712 15 * - supports WM9705, WM9712, WM9713 16 * - polling mode 17 * - continuous mode (arch-dependent) 18 * - adjustable rpu/dpp settings 19 * - adjustable pressure current 20 * - adjustable sample settle delay 21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only) 22 * - pen down detection [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/cirrus/ |
| H A D | ep93xx-ac97.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Based on s3c-ac97 ASoC driver by Jaswinder Singh. 23 #include <linux/platform_data/dma-ep93xx.h> 26 #include "ep93xx-pcm.h" 29 * Per channel (1-4) registers. 31 #define AC97CH(n) (((n) - 1) * 0x20) 88 * struct ep93xx_ac97_info - EP93xx AC97 controller info structure 107 .name = "ac97-pcm-out", 113 .name = "ac97-pcm-in", 121 return __raw_readl(info->regs + reg); in ep93xx_ac97_read_reg() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | ab8500.txt | 1 * AB8500 Multi-Functional Device (MFD) 4 - compatible : contains "stericsson,ab8500" or "stericsson,ab8505"; 5 - interrupts : contains the IRQ line for the AB8500 6 - interrupt-controller : describes the AB8500 as an Interrupt Controller (has its own domain) 7 - #interrupt-cells : should be 2, for 2-cell format 8 - The first cell is the AB8500 local IRQ number 9 - The second cell is used to specify optional parameters 10 - bits[3:0] trigger type and level flags: 11 1 = low-to-high edge triggered 12 2 = high-to-low edge triggered [all …]
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | cs4231-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 /* codec registers */ 29 #define CS4231_PLAYBK_FORMAT 0x08 /* clock and data format - playback - bits 7-0 MCE */ 30 #define CS4231_IFACE_CTRL 0x09 /* interface control - bits 7-2 MCE */ 50 #define CS4231_IRQ_STATUS 0x18 /* irq status register */ 52 #define CS4231_VERSION 0x19 /* CS4231(A) - version values */ 57 #define CS4231_REC_FORMAT 0x1c /* clock and data format - record - bits 7-0 MCE */ 63 /* definitions for codec register select port - CODECP( REGSEL ) */ 65 #define CS4231_INIT 0x80 /* CODEC is initializing */ 69 /* definitions for codec status register - CODECP( STATUS ) */ [all …]
|
| H A D | wss.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 #include <sound/cs4231-regs.h> 16 /* defines for codec.mode */ 24 /* defines for codec.hardware */ 38 #define WSS_HW_CS4235 0x0400 /* CS4235 - Crystal Clear (tm) stereo enhancement */ 40 #define WSS_HW_CS4237B 0x0402 /* CS4237B - SRS 3D */ 41 #define WSS_HW_CS4238B 0x0403 /* CS4238B - QSOUND 3D */ 42 #define WSS_HW_CS4239 0x0404 /* CS4239 - Crystal Clear (tm) stereo enhancement */ 51 #define WSS_HW_OPL3SA2 0x1101 /* OPL3-SA2 chip, similar to cs4231 */ 54 /* defines for codec.hwshare */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/hantro/ |
| H A D | hantro.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Hantro VPU codec driver 8 * Based on s5p-mfc driver by Samsung Electronics Co., Ltd. 20 #include <media/v4l2-ctrls.h> 21 #include <media/v4l2-device.h> 22 #include <media/v4l2-ioctl.h> 23 #include <media/v4l2-mem2mem.h> 24 #include <media/videobuf2-core.h> 25 #include <media/videobuf2-dma-contig.h> 40 * struct hantro_irq - irq handler and name [all …]
|
| H A D | hantro_drv.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Hantro VPU codec driver 9 * Based on s5p-mfc driver by Samsung Electronics Co., Ltd. 22 #include <media/v4l2-event.h> 23 #include <media/v4l2-mem2mem.h> 24 #include <media/videobuf2-core.h> 25 #include <media/videobuf2-vmalloc.h> 31 #define DRIVER_NAME "hantro-vpu" 36 "Debug level - higher value produces more verbose messages"); 42 ctrl = v4l2_ctrl_find(&ctx->ctrl_handler, id); in hantro_get_ctrl() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/txx9/ |
| H A D | txx9aclc-ac97.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * (C) Copyright TOSHIBA CORPORATION 2004-2006 17 #include <asm/mach-tx39xx/ioremap.h> /* for TXX9_DIRECTMAP_BASE */ 42 return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; in txx9aclc_regready() 45 /* AC97 controller reads codec register */ 50 void __iomem *base = drvdata->base; in txx9aclc_ac97_read() 53 if (!(__raw_readl(base + ACINTSTS) & ACINT_CODECRDY(ac97->num))) in txx9aclc_ac97_read() 55 reg |= ac97->num << 7; in txx9aclc_ac97_read() 78 /* AC97 controller writes to codec register */ 83 void __iomem *base = drvdata->base; in txx9aclc_ac97_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | mc13xxx-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2009-2010 Pengutronix 4 * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> 50 if (!mutex_trylock(&mc13xxx->lock)) { in mc13xxx_lock() 51 dev_dbg(mc13xxx->dev, "wait for %s from %ps\n", in mc13xxx_lock() 54 mutex_lock(&mc13xxx->lock); in mc13xxx_lock() 56 dev_dbg(mc13xxx->dev, "%s from %ps\n", in mc13xxx_lock() 63 dev_dbg(mc13xxx->dev, "%s from %ps\n", in mc13xxx_unlock() 65 mutex_unlock(&mc13xxx->lock); in mc13xxx_unlock() 73 ret = regmap_read(mc13xxx->regmap, offset, val); in mc13xxx_reg_read() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/rockchip/ |
| H A D | rockchip_multicodecs.c | 2 * Rockchip machine ASoC driver for Rockchip Multi-codecs audio 6 * Authors: Sugar Zhang <sugar.zhang@rock-chips.com>, 22 #include <linux/extcon-provider.h> 28 #include <linux/irq.h> 39 #include <sound/soc-dapm.h> 41 #define DRV_NAME "rk-multicodecs" 42 #define WAIT_CARDS (SNDRV_CARDS - 1) 87 poller->poll_interval_ms = interval; in mc_set_poll_interval() 94 delay = msecs_to_jiffies(poller->poll_interval_ms); in mc_keys_poller_queue_work() 98 queue_delayed_work(system_freezable_wq, &poller->work, delay); in mc_keys_poller_queue_work() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/au88x0/ |
| H A D | au88x0.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 44 /* IRQ flags */ 64 /* codec io: VORTEX_CODEC_IO bits */ 73 //#define VORTEX_IS_QUAD(x) (((x)->codec == NULL) ? 0 : ((x)->codec->ext_id&0x80)) 74 #define VORTEX_IS_QUAD(x) ((x)->isquad) 77 (x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_VORTEX_2) || \ 78 (x->rev == 0xfe && x->device == PCI_DEVICE_ID_AUREAL_ADVANTAGE)) 89 #define MIX_CAPT(x) (vortex->mixcapt[x]) 90 #define MIX_PLAYB(x) (vortex->mixplayb[x]) 91 #define MIX_SPDIF(x) (vortex->mixspdif[x]) [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/samsung/ |
| H A D | aries_wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 #include <linux/input-event-codes.h> 92 static irqreturn_t headset_det_irq_thread(int irq, void *data) in headset_det_irq_thread() argument 100 if (!gpiod_get_value(priv->gpio_headset_detect)) { in headset_det_irq_thread() 103 gpiod_set_value(priv->gpio_earpath_sel, 0); in headset_det_irq_thread() 107 time_left_ms -= 20; in headset_det_irq_thread() 111 ret = regulator_enable(priv->reg_headset_micbias); in headset_det_irq_thread() 115 gpiod_set_value(priv->gpio_earpath_sel, 1); in headset_det_irq_thread() 117 ret = iio_read_channel_processed(priv->adc, &adc); in headset_det_irq_thread() 129 ret = regulator_disable(priv->reg_headset_micbias); in headset_det_irq_thread() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/include/mach/ |
| H A D | mainstone.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * arch/arm/mach-pxa/include/mach/mainstone.h 19 #define MST_P2V(x) ((x) - MST_FPGA_PHYS + MST_FPGA_VIRT) 20 #define MST_V2P(x) ((x) - MST_FPGA_VIRT + MST_FPGA_PHYS) 45 #define MST_MSCWR1_LCD_CTL (1 << 13) /* General-purpose LCD control */ 68 #define MST_MSCWR2_I2S_SPKROFF (1 << 3) /* I2S CODEC amplifier control */ 69 #define MST_MSCWR2_AC97_SPKROFF (1 << 2) /* AC97 CODEC amplifier control */ 71 #define MST_MSCWR2_RADIO_WAKE (1 << 0) /* Radio module wake-up signal */ 86 #define MST_MSCRD_nMMC_WP (1 << 0) /* SD/MMC write-protect status */ 88 #define MST_INT_S1_IRQ (1 << 15) /* PCMCIA socket 1 IRQ */ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sound/ |
| H A D | alsa-configuration.rst | 2 Advanced Linux Sound Architecture - Driver Configuration guide 38 ---------- 47 limiting card index for auto-loading (1-8); 49 For auto-loading more than one card, specify this option 50 together with snd-card-X aliases. 63 Module snd-pcm-oss 64 ------------------ 86 regarding opening the device. When this option is non-zero, 90 Module snd-rawmidi 91 ------------------ [all …]
|