/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | audio-graph-port.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 15 port-base: 16 $ref: /schemas/graph.yaml#/$defs/port-base 18 convert-rate: 19 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate 20 convert-channels: [all …]
|
H A 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. 18 bitclock-master: 19 description: Indicates dai-link bit clock master 22 frame-inversion: [all …]
|
H A D | audio-graph.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 $ref: /schemas/types.yaml#/definitions/phandle-array 25 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 32 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 33 convert-rate: 34 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/interconnect/qcom/ |
H A 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
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_payload.robot | 101 ${user_id_in_hex}= Convert To Hex ${userid} 102 ${userid_in_hex_format}= Convert To Hex ${userid} prefix=0x length=2 154 [Documentation] Verify get user access payload for user access(Read-only) privileged user. 191 ... all active channels. 213 [Documentation] Verify get channel payload support IPMI command for active channels. 223 [Documentation] Verify get channel payload support IPMI command for invalid channels. 236 [Documentation] Get active and inactive/invalid channels from channel_config.json file 298 # (e.g. 4-Administrator, 3-Operator, 2-Readonly). 328 # (e.g. 0x04-Administrator, 0x03-Operator, 0x02-Readonly). 346 # options Additional ipmitool command options (e.g "-L=Operator","-C=3"). [all …]
|
H A D | test_ipmi_cipher.robot | 82 [Documentation] Verify cipher ID and Supported Algorithms for all Available Channels. 96 Verify Get Cipher Suite Command For Invalid Channels 97 [Documentation] Verify Get Cipher Suite Command For all Invalid Channels. 120 [Documentation] Get active and inactive/invalid channels from channel_config.json file 141 ${cipher_suite_id}= Convert To Integer ${data_list}[2] base=16 156 …# e.g 01 c0 11 03 44 81 ---> list of algorithms by cipher suite (0x80 in request data 3rd byt… 196 ... Convert To Hex ${CHANNEL_NUMBER} length=2 198 ... Convert To Hex ${channel_num} length=2
|
H A D | test_ipmi_user.robot | 81 ${index}= Evaluate ${random_userid} - 1 361 Verify Administrator And User Privilege For Different Channels 362 [Documentation] Set administrator and user privilege for different channels and verify. 364 [Setup] Check Active Ethernet Channels 392 Verify Operator And User Privilege For Different Channels 393 [Documentation] Set operator and user privilege for different channels and verify. 395 [Setup] Check Active Ethernet Channels 632 Check Active Ethernet Channels 633 [Documentation] Check active ethernet channels and set suite variables. 663 ${root_userid}= Set Variable ${-1} [all …]
|
/openbmc/linux/sound/core/oss/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/sound/isa/sb/ |
H A 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 …]
|
/openbmc/linux/include/linux/iio/ |
H A D | iio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 39 * struct iio_chan_spec_ext_info - Extended channel info attribute 41 * @shared: Whether this attribute is shared between all channels. 58 * struct iio_enum - Enum channel info attribute 89 * IIO_ENUM() - Initialize enum extended channel attribute 91 * @_shared: Whether the attribute is shared between all channels 106 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute 108 * @_shared: Whether the attribute is shared between all channels 123 * struct iio_mount_matrix - iio mounting matrix 140 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | temperature-transducer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Beguin <liambeguin@gmail.com> 19 When an io-channel measures the output voltage of a temperature analog front 35 ----- 37 +---+---+ 39 +---+---+ ----- 41 V proportional to T +----+----+ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | moortec,mr75203.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rahul Tanwar <rtanwar@maxlinear.com> 19 *) Temperature Sensor (TS) - used to monitor core temperature (e.g. mr74137). 20 *) Voltage Monitor (VM) - used to monitor voltage levels (e.g. mr74138). 21 *) Process Detector (PD) - used to assess silicon speed (e.g. mr74139). 22 *) Delay Chain - ring oscillator connected to the PD, used to measure IO 25 *) Pre Scaler - provides divide-by-X scaling of input voltage, which can then 26 be presented for VM for measurement within its range (e.g. mr76006 - [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A 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 …]
|
/openbmc/linux/drivers/hwmon/ |
H A 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))); 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 …]
|
H A 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 …]
|
/openbmc/linux/sound/soc/intel/avs/boards/ |
H A D | max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 31 struct snd_interval *rate, *channels; in avs_max98357a_be_fixup() local 35 channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS); in avs_max98357a_be_fixup() 38 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_max98357a_be_fixup() 39 rate->min = rate->max = 48000; in avs_max98357a_be_fixup() 40 channels->min = channels->max = 2; in avs_max98357a_be_fixup() 57 return -ENOMEM; in avs_create_dai_link() [all …]
|
H A D | ssm4567.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 15 #include <sound/soc-acpi.h> 18 #define SKL_SSM_CODEC_DAI "ssm4567-hifi" 22 .dlc = COMP_CODEC_CONF("i2c-INT343B:00"), 26 .dlc = COMP_CODEC_CONF("i2c-INT343B:01"), 68 struct snd_interval *rate, *channels; in avs_ssm4567_be_fixup() local 72 channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS); in avs_ssm4567_be_fixup() 75 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_ssm4567_be_fixup() 76 rate->min = rate->max = 48000; in avs_ssm4567_be_fixup() [all …]
|
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <sound/pcm-indirect.h> 25 // convert alsa to chip volume (defined as macro rather than function call) 26 #define alsa2chip(vol) ((uint)(-(((vol) << 8) / 100))) 28 // convert chip to alsa volume 29 #define chip2alsa(vol) -(((vol) * 100) >> 8) 51 /* definition of the chip-specific record */ 101 unsigned int channels, unsigned int samplerate,
|
/openbmc/linux/sound/usb/ |
H A 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 …]
|
/openbmc/linux/include/linux/iio/adc/ |
H A D | qcom-vadc-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 /* Max ADC code represents full-scale range of 1.8V */ 35 /* Default decimation - 1024 for rev2, 840 for pmic5 */ 48 #define PMI_CHG_SCALE_1 -138890 59 * VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels. 69 * struct vadc_linear_graph - Represent ADC characteristics. 84 * enum vadc_scale_fn_type - Scaling function to convert ADC code to 86 * SCALE_DEFAULT: Default scaling to convert raw adc code to voltage (uV). 92 * SCALE_HW_CALIB_DEFAULT: Default scaling to convert raw adc code to
|
/openbmc/linux/Documentation/core-api/ |
H A 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 Documentation/core-api/dma-api.rst 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 …]
|
/openbmc/u-boot/include/ |
H A D | adc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 /* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */ 13 /* The last possible selected channel with 32-bit mask */ 19 * - ADC_DATA_FORMAT_BIN - binary offset 20 * - ADC_DATA_FORMAT_2S - two's complement 31 * struct adc_channel - structure to hold channel conversion data. 32 * Useful to keep the result of a multi-channel conversion output. 34 * @id - channel id 35 * @data - channel conversion data 43 * struct adc_uclass_platdata - basic ADC info [all …]
|