| /linux/Documentation/devicetree/bindings/sound/ | 
| H A D | dai-params.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/sound/dai-params.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
 15   convert-channels:
 16     description: Number of audio channels used by DAI
 21   convert-sample-format:
 25       - s8
 26       - s16_le
 [all …]
 
 | 
| /linux/sound/isa/sb/ | 
| H A D | emu8000_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later17  * 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-li
 68 emu8k_open_dram_for_pcm(struct snd_emu8000 * emu,int channels) emu8k_open_dram_for_pcm()  argument
 [all...]
 | 
| /linux/sound/core/oss/ | 
| H A D | linear.c | 2  *  Linear conversion Plug-In4  *			  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 Interface4  *                        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 …]
 
 | 
| /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 …]
 
 | 
| /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 …]
 
 | 
| /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 …]
 
 | 
| /linux/arch/arm64/boot/dts/renesas/ | 
| H A D | ulcb-kf-simple-audio-card-mix+split.dtsi | 1 // SPDX-License-Identifier: GPL-2.012  *	(A) CPU0 (2ch) <----> (2ch) (X)	ak4613	   (MIX-0)
 13  *	(B) CPU1 (2ch)  --/			   (MIX-1)
 14  *	(C) CPU3 (2ch)  ----> (8ch) (Y)	PCM3168A-p (TDM-0 : 0,1ch)
 15  *	(D) CPU2 (2ch)  --/			   (TDM-1 : 2,3ch)
 16  *	(E) CPU4 (2ch)  --/			   (TDM-2 : 4,5ch)
 17  *	(F) CPU5 (2ch)  --/			   (TDM-3 : 6,7ch)
 18  *	(G) CPU6 (2ch) <----  (6ch) (Z) PCM3168A-c (TDM-a: 0,1ch)
 19  *	(H) CPU7 (2ch) <--/			   (TDM-b: 2,3ch)
 20  *	(I) CPU8 (2ch) <--/			   (TDM-c: 4,5ch)
 [all …]
 
 | 
| H A D | ulcb-kf-audio-graph-card-mix+split.dtsi | 1 // SPDX-License-Identifier: GPL-2.012  *	(A) CPU0 (2ch) <----> (2ch) (X) ak4613	   (MIX-0)
 13  *	(B) CPU1 (2ch)  --/			   (MIX-1)
 14  *	(C) CPU2 (2ch)  ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
 15  *	(D) CPU3 (2ch)  --/			   (TDM-1 : 2,3ch)
 16  *	(E) CPU4 (2ch)  --/			   (TDM-2 : 4,5ch)
 17  *	(F) CPU5 (2ch)  --/			   (TDM-3 : 6,7ch)
 18  *	(G) CPU6 (2ch) <----  (6ch) (Z) PCM3168A-c (TDM-a: 0,1ch)
 19  *	(H) CPU7 (2ch) <--/			   (TDM-b: 2,3ch)
 20  *	(I) CPU8 (2ch) <--/			   (TDM-c: 4,5ch)
 [all …]
 
 | 
| H A D | ulcb-kf-audio-graph-card2-mix+split.dtsi | 1 // SPDX-License-Identifier: GPL-2.012  *	(A) CPU0 (2ch) <----> (2ch) (X)	ak4613	   (MIX-0)
 13  *	(B) CPU1 (2ch)  --/			   (MIX-1)
 14  *	(C) CPU3 (2ch)  ----> (8ch) (Y)	PCM3168A-p (TDM-0 : 0,1ch)
 15  *	(D) CPU2 (2ch)  --/			   (TDM-1 : 2,3ch)
 16  *	(E) CPU4 (2ch)  --/			   (TDM-2 : 4,5ch)
 17  *	(F) CPU5 (2ch)  --/			   (TDM-3 : 6,7ch)
 18  *	(G) CPU6 (2ch) <----  (6ch) (Z) PCM3168A-c (TDM-a: 0,1ch)
 19  *	(H) CPU7 (2ch) <--/			   (TDM-b: 2,3ch)
 20  *	(I) CPU8 (2ch) <--/			   (TDM-c: 4,5ch)
 [all …]
 
 | 
| /linux/sound/usb/ | 
| H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later18 /* 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->de in proc_audio_usbbus_read()
 [all...]
 | 
| /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 */
 100 			     unsigned int channels, unsigned int samplerate,
 
 | 
| /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
 
 | 
| /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 …]
 
 | 
| /linux/sound/soc/intel/avs/boards/ | 
| H A D | max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only3 // Copyright(c) 2021-2022 Intel Corporation
 13 #include <sound/soc-acpi.h>
 14 #include <sound/soc-dapm.h>
 32 	struct snd_interval *rate, *channels; in avs_max98357a_be_fixup()   local
 36 	channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS); in avs_max98357a_be_fixup()
 39 	/* The ADSP will convert th in avs_max98357a_be_fixup()
 [all...]
 | 
| H A D | max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only13 #include <sound/soc-acpi.h>
 14 #include <sound/soc-dapm.h>
 17 #define MAX98927_DEV0_NAME	"i2c-MX98927:00"
 18 #define MAX98927_DEV1_NAME	"i2c-MX98927:01"
 19 #define MAX98927_CODEC_NAME	"max98927-aif1"
 50 	struct snd_interval *rate, *channels; in avs_max98927_be_fixup()   local
 [all...]
 | 
| H A D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0-only13 #include <sound/soc-acpi.h>
 14 #include <sound/soc-dapm.h>
 17 #define MAX98373_DEV0_NAME	"i2c-MX98373:00"
 18 #define MAX98373_DEV1_NAME	"i2c-MX98373:01"
 19 #define MAX98373_CODEC_NAME	"max98373-aif1"
 50 	struct snd_interval *rate, *channels; in avs_max98373_be_fixup()   local
 [all...]
 | 
| H A D | ssm4567.c | 1 // SPDX-License-Identifier: GPL-2.0-only3 // Copyright(c) 2021-2022 Intel Corporation
 15 #include <sound/soc-acpi.h>
 19 #define SKL_SSM_CODEC_DAI	"ssm4567-hifi"
 23 		.dlc = COMP_CODEC_CONF("i2c-INT343B:00"),
 27 		.dlc = COMP_CODEC_CONF("i2c-INT343B:01"),
 67 	struct snd_interval *rate, *channels; in avs_ssm4567_be_fixup()   local
 [all...]
 | 
| /linux/arch/arm/mach-omap2/ | 
| H A D | vc.c | 1 // SPDX-License-Identifier: GPL-2.0-only19 #include "prm-regbits-34xx.h"
 20 #include "prm-regbits-44xx.h"
 52  * struct omap_vc_channel_cfg - describe the cfg_channel bitfield
 81  * On OMAP3+, all VC channels have the above default bitfield
 101  * omap_vc_config_channel - configure VC channel to PMIC mappings
 106  * - i2c slave address (SA)
 107  * - voltage configuration address (RAV)
 108  * - command configuration address (RAC) and enable bit (RACEN)
 109  * - command values for ON, ONLP, RET and OFF (CMD)
 [all …]
 
 | 
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ | 
| H A D | htb.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB16 	u32 classid; /* 16-bit, except root. */
 39 	hash_for_each(htb->qos_tc2node, bkt, node, hnode) {  in mlx5e_htb_enumerate_leaves()
 40 		if (node->qid == MLX5E_QOS_QID_INNER)  in mlx5e_htb_enumerate_leaves()
 42 		err = callback(data, node->qid, node->hw_id);  in mlx5e_htb_enumerate_leaves()
 53 	last = find_last_bit(htb->qos_used_qids, mlx5e_qos_max_leaf_nodes(htb->mdev));  in mlx5e_htb_cur_leaf_nodes()
 54 	return last == mlx5e_qos_max_leaf_nodes(htb->mdev) ? 0 : last + 1;  in mlx5e_htb_cur_leaf_nodes()
 59 	int size = mlx5e_qos_max_leaf_nodes(htb->mdev);  in mlx5e_htb_find_unused_qos_qid()
 60 	struct mlx5e_priv *priv = htb->priv;  in mlx5e_htb_find_unused_qos_qid()
 63 	WARN_ONCE(!mutex_is_locked(&priv->state_lock), "%s: state_lock is not held\n", __func__);  in mlx5e_htb_find_unused_qos_qid()
 [all …]
 
 | 
| /linux/tools/net/ynl/pyynl/ | 
| H A D | ethtool.py | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause17     Verify and convert command-line arguments to the ynl-compatible request.
 20     valid_attrs.remove('header') # not user-provided
 44     Pretty-prin
 [all...]
 | 
| /linux/sound/soc/sof/ | 
| H A D | ipc4-pcm.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)11 #include "sof-audio.h"
 12 #include "sof-priv.h"
 14 #include "ipc4-priv.h"
 15 #include "ipc4-topology.h"
 16 #include "ipc4-fw-reg.h"
 19  * struct sof_ipc4_timestamp_info - IPC4 timestamp info
 42  * struct sof_ipc4_pcm_stream_priv - IPC4 specific private data
 57  * the wrap-around point of any hardware counter, and larger than any
 67 	struct sof_ipc4_pcm_stream_priv *stream_priv = sps->private;  in sof_ipc4_sps_to_time_info()
 [all …]
 
 | 
| /linux/drivers/edac/ | 
| H A 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 …]
 
 | 
| /linux/drivers/hwmon/ | 
| H A D | mr75203.c | 1 // SPDX-License-Identifier: GPL-2.0111 #define PVT_TEMP_MIN_mC		-40000
 117 #define PVT_SERIES5_J_CONST	-100
 133  * struct voltage_device - VM single input parameters.
 139  * The structure provides mapping between channel-number (0..N-1) to VM-index
 140  * (0..num_vm-1) and channel-index (0..ch_num-1) where N = num_vm * ch_num.
 150  * struct voltage_channels - VM channel count.
 151  * @total: Total number of channels in all VMs.
 152  * @max: Maximum number of channels among all VMs.
 188 	struct pvt_device *pvt = file->private_data;  in pvt_ts_coeff_j_read()
 [all …]
 
 | 
| /linux/arch/arm/boot/dts/cirrus/ | 
| H A D | ep93xx-edb9302.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause5 /dts-v1/;
 9 	#address-cells = <1>;
 10 	#size-cells = <1>;
 27 		compatible = "audio-graph-card2";
 33 		compatible = "gpio-leds";
 34 		led-0 {
 37 			linux,default-trigger = "heartbeat";
 41 		led-1 {
 55 		compatible = "cfi-flash";
 [all …]
 
 |