| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | simple-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/simple-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 frame-master: 15 description: Indicates dai-link frame master. 16 $ref: /schemas/types.yaml#/definitions/phandle-array 19 bitclock-master: 20 description: Indicates dai-link bit clock master [all …]
|
| /kernel/linux/linux-5.10/drivers/interconnect/qcom/ |
| D | icc-rpmh.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <dt-bindings/interconnect/qcom,icc.h> 15 * struct qcom_icc_provider - Qualcomm specific interconnect provider 31 * struct bcm_db - Auxiliary data pertaining to each Bus Clock Manager (BCM) 32 * @unit: divisor used to convert bytes/sec bw value to an RPMh msg 33 * @width: multiplier used to convert bytes/sec bw value to an RPMh msg 50 * struct qcom_icc_node - Qualcomm specific interconnect nodes 55 * @channels: num of channels at this node 67 u16 channels; member 76 * struct qcom_icc_bcm - Qualcomm specific hardware accelerator nodes [all …]
|
| /kernel/linux/linux-5.10/sound/isa/sb/ |
| D | emu8000_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 * define the following if you want to use this pcm with non-interleaved mode 21 /* NOTE: for using the non-interleaved mode with alsa-lib, you have to set 34 * besides, for the time being, the non-interleaved mode doesn't work well on 35 * alsa-lib... 65 * open up channels for the simultaneous data transfer and playback 68 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument 73 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm() 74 if (channels > 1) in emu8k_open_dram_for_pcm() 75 snd_emux_lock_voice(emu->emu, 1); in emu8k_open_dram_for_pcm() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | da9150-gpadc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 /* Channels */ 88 complete(&gpadc->complete); in da9150_gpadc_irq() 98 mutex_lock(&gpadc->lock); in da9150_gpadc_read_adc() 101 da9150_reg_write(gpadc->da9150, DA9150_GPADC_MAN, in da9150_gpadc_read_adc() 105 /* Consume left-over completion from a previous timeout */ in da9150_gpadc_read_adc() 106 try_wait_for_completion(&gpadc->complete); in da9150_gpadc_read_adc() 109 wait_for_completion_timeout(&gpadc->complete, msecs_to_jiffies(5)); in da9150_gpadc_read_adc() 112 da9150_bulk_read(gpadc->da9150, DA9150_GPADC_RES_A, 2, result_regs); in da9150_gpadc_read_adc() 114 mutex_unlock(&gpadc->lock); in da9150_gpadc_read_adc() [all …]
|
| D | ad7887.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2010-2011 Analog Devices Inc. 28 #define AD7887_REF_DIS BIT(5) /* on-chip reference disable */ 29 #define AD7887_DUAL BIT(4) /* dual-channel mode */ 30 #define AD7887_CH_AIN1 BIT(3) /* convert on channel 1, DUAL=1 */ 31 #define AD7887_CH_AIN0 0 /* convert on channel 0, DUAL=0,1 */ 44 * struct ad7887_chip_info - chip specifc information 46 * @channels: channels specification 47 * @num_channels: number of channels 48 * @dual_channels: channels specification in dual mode [all …]
|
| D | qcom-vadc-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 /* Max ADC code represents full-scale range of 1.8V */ 32 /* Default decimation - 1024 for rev2, 840 for pmic5 */ 45 #define PMI_CHG_SCALE_1 -138890 55 #define DIE_TEMP_ADC7_SCALE_1 -60000 61 * struct vadc_map_pt - Map the graph representation for ADC channel 72 * VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels. 82 * struct vadc_linear_graph - Represent ADC characteristics. 97 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input. 107 * enum vadc_scale_fn_type - Scaling function to convert ADC code to [all …]
|
| D | ad7091r-base.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2014-2019 Analog Devices Inc. 16 #include "ad7091r-base.h" 67 return -EINVAL; in ad7091r_set_mode() 70 ret = regmap_update_bits(st->map, AD7091R_REG_CONF, in ad7091r_set_mode() 75 st->mode = mode; in ad7091r_set_mode() 85 /* AD7091R_REG_CHANNEL specified which channels to be converted */ in ad7091r_set_channel() 86 ret = regmap_write(st->map, AD7091R_REG_CHANNEL, in ad7091r_set_channel() 95 return regmap_read(st->map, AD7091R_REG_RESULT, &dummy); in ad7091r_set_channel() 109 ret = regmap_read(st->map, AD7091R_REG_RESULT, &val); in ad7091r_read_one() [all …]
|
| D | ti-adc12138.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ADC12130/ADC12132/ADC12138 12-bit plus sign ADC driver 52 * Less may be need if not all channels are enabled, as long as 131 .tx_buf = adc->tx_buf, in adc12138_mode_programming() 132 .rx_buf = adc->rx_buf, in adc12138_mode_programming() 138 if (adc->id != adc12138) in adc12138_mode_programming() 141 adc->tx_buf[0] = mode; in adc12138_mode_programming() 143 ret = spi_sync_transfer(adc->spi, &xfer, 1); in adc12138_mode_programming() 147 memcpy(rx_buf, adc->rx_buf, len); in adc12138_mode_programming() 171 u8 mode = (ch_to_mux[channel->channel] << 4) | in __adc12138_start_conv() [all …]
|
| /kernel/linux/linux-5.10/sound/core/oss/ |
| D | linear.c | 2 * Linear conversion Plug-In 4 * Abramo Bagnara <abramo@alsa-project.org> 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 48 memcpy(p + data->copy_ofs, src + data->src_ofs, data->copy_bytes); in do_convert() 49 if (data->cvt_endian) in do_convert() 51 tmp ^= data->flip; in do_convert() 52 memcpy(dst, p + data->dst_ofs, data->dst_bytes); in do_convert() 55 static void convert(struct snd_pcm_plugin *plugin, in convert() function 60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 62 int nchannels = plugin->src_format.channels; in convert() [all …]
|
| D | mulaw.c | 2 * Mu-Law conversion Plug-In Interface 4 * Uros Bizjak <uros@kss-loka.si> 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 #define SIGN_BIT (0x80) /* Sign bit for a u-law byte. */ 31 #define NSEGS (8) /* Number of u-law segments. */ 55 * linear2ulaw() - Convert a linear PCM value to u-law 58 * is biased by adding 33 which shifts the encoding range from (0 - 8158) to 59 * (33 - 8191). The result can be seen in the following encoding table: 62 * ------------------------ --------------- 75 * four bits wxyz. * The trailing bits (a - h) are ignored. [all …]
|
| /kernel/linux/linux-5.10/include/linux/iio/ |
| D | iio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 37 * struct iio_chan_spec_ext_info - Extended channel info attribute 39 * @shared: Whether this attribute is shared between all channels. 56 * struct iio_enum - Enum channel info attribute 87 * IIO_ENUM() - Initialize enum extended channel attribute 89 * @_shared: Whether the attribute is shared between all channels 104 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute 120 * struct iio_mount_matrix - iio mounting matrix 138 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute 139 * @_shared: Whether the attribute is shared between all channels [all …]
|
| D | consumer.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 18 * struct iio_channel - everything needed for a consumer to use a channel 30 * iio_channel_get() - get description of all that is needed to access channel. 36 * side. This typically describes the channels use within 43 * iio_channel_release() - release channels obtained via iio_channel_get 49 * devm_iio_channel_get() - Resource managed version of iio_channel_get(). 55 * side. This typically describes the channels use within 67 * iio_channel_get_all() - get all channels associated with a client 73 * channels registered as having this consumer. 78 * iio_channel_release_all() - reverse iio_channel_get_all [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
| D | ni_daq_700.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for DAQCard-700 DIO/AI 7 * COMEDI - Linux Control and Measurement Device Interface 13 * Description: National Instruments PCMCIA DAQCard-700 16 * Devices: [National Instruments] PCMCIA DAQ-Card-700 (ni_daq_700) 20 * The daqcard-700 appears in Comedi as a digital I/O subdevice (0) with 21 * 16 channels and a analog input subdevice (1) with 16 single-ended channels 22 * or 8 differential channels, and three input ranges. 24 * Digital: The channel 0 corresponds to the daqcard-700's output 27 * Digital direction configuration: channels 0-7 output, 8-15 input. [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-audio/ |
| D | bcm2835.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <sound/pcm-indirect.h> 24 // convert alsa to chip volume (defined as macro rather than function call) 25 #define alsa2chip(vol) (uint)(-(((vol) << 8) / 100)) 27 // convert chip to alsa volume 28 #define chip2alsa(vol) -(((vol) * 100) >> 8) 50 /* definition of the chip-specific record */ 100 unsigned int channels, unsigned int samplerate,
|
| /kernel/linux/linux-5.10/sound/usb/ |
| D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 /* convert our full speed USB rate into sampling rate in Hz */ 24 /* convert our high speed USB rate into sampling rate in Hz */ 35 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read() 36 if (!atomic_read(&chip->shutdown)) in proc_audio_usbbus_read() 37 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read() 42 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read() 43 if (!atomic_read(&chip->shutdown)) in proc_audio_usbid_read() 45 USB_ID_VENDOR(chip->usb_id), in proc_audio_usbid_read() 46 USB_ID_PRODUCT(chip->usb_id)); in proc_audio_usbid_read() [all …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | gsc-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/hwmon-sysfs.h> 59 u8 reg = hwmon->pdata->fan_base + (2 * attr->index); in pwm_auto_point_temp_show() 63 ret = regmap_bulk_read(hwmon->regmap, reg, regs, 2); in pwm_auto_point_temp_show() 77 u8 reg = hwmon->pdata->fan_base + (2 * attr->index); in pwm_auto_point_temp_store() 83 return -EINVAL; in pwm_auto_point_temp_store() 90 err = regmap_bulk_write(hwmon->regmap, reg, regs, 2); in pwm_auto_point_temp_store() 103 return sprintf(buf, "%d\n", 255 * (50 + (attr->index * 10)) / 100); in pwm_auto_point_pwm_show() 157 ch = hwmon->in_ch[channel]; in gsc_hwmon_read() 160 ch = hwmon->temp_ch[channel]; in gsc_hwmon_read() [all …]
|
| D | max197.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2012 Savoir-faire Linux Inc. 21 #include <linux/hwmon-sysfs.h> 28 #define MAX197_NUM_CH 8 /* 8 Analog Input Channels */ 40 * struct max197_data - device instance specific data 46 * @ctrl_bytes: Channels control byte. 59 data->ctrl_bytes[channel] &= ~MAX197_BIP; in max197_set_unipolarity() 64 data->ctrl_bytes[channel] |= MAX197_BIP; in max197_set_bipolarity() 69 data->ctrl_bytes[channel] &= ~MAX197_RNG; in max197_set_half_range() 74 data->ctrl_bytes[channel] |= MAX197_RNG; in max197_set_full_range() [all …]
|
| /kernel/linux/linux-5.10/Documentation/core-api/ |
| D | dma-isa-lpc.rst | 12 ------------------------ 16 #include <linux/dma-mapping.h> 19 The first is the generic DMA API used to convert virtual addresses to 20 bus addresses (see :doc:`/core-api/dma-api` for details). 28 ----------------- 37 The DMA-able address space is the lowest 16 MB of _physical_ memory. 45 allocate the memory during boot-up it's a good idea to also pass 52 ------------------- 65 Channels chapter 66 -------- [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | brcm,iproc-static-adc.txt | 3 Broadcom iProc ADC controller has 8 channels 10bit ADC. 4 Allows user to convert analog input voltage values to digital. 8 - compatible: Must be "brcm,iproc-static-adc" 10 - adc-syscon: Handler of syscon node defining physical base address of the 13 - #io-channel-cells = <1>; As ADC has multiple outputs 14 refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details. 16 - io-channel-ranges: 17 refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details. 19 - clocks: Clock used for this block. 21 - clock-names: Clock name should be given as tsc_clk. [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | intel_mid_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 25 /* ADC1 - thermal registers */ 35 /* Number of ADC channels */ 37 #define ADC_LOOP_MAX (ADC_CHANLS_MAX - MSIC_THERMAL_SENSORS) 67 * among the 15 channels 84 * to_msic_die_temp - converts adc_val to msic_die temperature 91 return (368 * (adc_val) / 1000) - 220; in to_msic_die_temp() 95 * is_valid_adc - checks whether the adc code is within the defined range 107 * adc_to_temp - converts the ADC code to temperature in C 113 * This technique is used to avoid very long look-up table to get [all …]
|
| /kernel/linux/linux-5.10/sound/soc/generic/ |
| D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 22 struct snd_interval *channels = hw_param_interval(params, in asoc_simple_convert_fixup() local 25 if (data->convert_rate) in asoc_simple_convert_fixup() 26 rate->min = in asoc_simple_convert_fixup() 27 rate->max = data->convert_rate; in asoc_simple_convert_fixup() 29 if (data->convert_channels) in asoc_simple_convert_fixup() 30 channels->min = in asoc_simple_convert_fixup() 31 channels->max = data->convert_channels; in asoc_simple_convert_fixup() 45 /* sampling rate convert */ in asoc_simple_parse_convert() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
| D | vc.c | 22 #include "prm-regbits-34xx.h" 23 #include "prm-regbits-44xx.h" 55 * struct omap_vc_channel_cfg - describe the cfg_channel bitfield 84 * On OMAP3+, all VC channels have the above default bitfield 104 * omap_vc_config_channel - configure VC channel to PMIC mappings 109 * - i2c slave address (SA) 110 * - voltage configuration address (RAV) 111 * - command configuration address (RAC) and enable bit (RACEN) 112 * - command values for ON, ONLP, RET and OFF (CMD) 115 * non-default channel. Starting with OMAP4, there are more than 2 [all …]
|
| /kernel/linux/linux-5.10/sound/soc/intel/boards/ |
| D | bytcht_nocodec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bytcht_nocodec.c - ASoc Machine driver for MinnowBoard Max and Up 4 * to make I2S signals observable on the Low-Speed connector. Audio codec 7 * Copyright (C) 2015-2017 Intel Corp 18 #include "../atom/sst-atom-controls.h" 45 struct snd_interval *channels = hw_param_interval(params, in codec_fixup() local 49 /* The DSP will convert the FE rate to 48k, stereo, 24bits */ in codec_fixup() 50 rate->min = rate->max = 48000; in codec_fixup() 51 channels->min = channels->max = 2; in codec_fixup() 53 /* set SSP2 to 24-bit */ in codec_fixup() [all …]
|
| /kernel/linux/linux-5.10/drivers/edac/ |
| D | e7xxx_edac.c | 11 * http://www.anime.net/~goemon/linux-ecc/ 14 …* http://www.intel.com/content/www/us/en/chipsets/e7501-chipset-memory-controller-hub-datasheet.ht… 76 #define E7XXX_NR_DIMMS 8 /* 2 channels, 4 dimms/channel */ 78 /* E7XXX register addresses - device 0 function 0 */ 93 * 22 Number channels 0=1,1=2 100 /* E7XXX register addresses - device 0 function 1 */ 165 /* FIXME - is this valid for both SECDED and S4ECD4ED? */ 186 struct e7xxx_pvt *pvt = (struct e7xxx_pvt *)mci->pvt_info; in ctl_page_to_phys() 190 if ((page < pvt->tolm) || in ctl_page_to_phys() 191 ((page >= 0x100000) && (page < pvt->remapbase))) in ctl_page_to_phys() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | cpsw.txt | 2 ------------------------------------------------------ 5 - compatible : Should be one of the below:- 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 12 - interrupts : property with a value describing the interrupt 14 - cpdma_channels : Specifies number of channels in CPDMA 15 - ale_entries : Specifies No of entries ALE can hold 16 - bd_ram_size : Specifies internal descriptor RAM size [all …]
|