Home
last modified time | relevance | path

Searched +full:convert +full:- +full:channels (Results 1 – 25 of 631) sorted by relevance

12345678910>>...26

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dsimple-card.yaml1 # 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/
Dicc-rpmh.h1 /* 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/
Demu8000_pcm.c1 // 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-4.19/sound/isa/sb/
Demu8000_pcm.c18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 * define the following if you want to use this pcm with non-interleaved mode
34 /* NOTE: for using the non-interleaved mode with alsa-lib, you have to set
47 * besides, for the time being, the non-interleaved mode doesn't work well on
48 * alsa-lib...
78 * open up channels for the simultaneous data transfer and playback
81 emu8k_open_dram_for_pcm(struct snd_emu8000 *emu, int channels) in emu8k_open_dram_for_pcm() argument
86 snd_emux_lock_voice(emu->emu, 0); in emu8k_open_dram_for_pcm()
87 if (channels > 1) in emu8k_open_dram_for_pcm()
88 snd_emux_lock_voice(emu->emu, 1); in emu8k_open_dram_for_pcm()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dda9150-gpadc.c1 // 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 …]
Dad7887.c1 // 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 …]
Dqcom-vadc-common.h1 /* 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 …]
/kernel/linux/linux-4.19/drivers/iio/adc/
Dda9150-gpadc.c27 /* Channels */
92 complete(&gpadc->complete); in da9150_gpadc_irq()
102 mutex_lock(&gpadc->lock); in da9150_gpadc_read_adc()
105 da9150_reg_write(gpadc->da9150, DA9150_GPADC_MAN, in da9150_gpadc_read_adc()
109 /* Consume left-over completion from a previous timeout */ in da9150_gpadc_read_adc()
110 try_wait_for_completion(&gpadc->complete); in da9150_gpadc_read_adc()
113 wait_for_completion_timeout(&gpadc->complete, msecs_to_jiffies(5)); in da9150_gpadc_read_adc()
116 da9150_bulk_read(gpadc->da9150, DA9150_GPADC_RES_A, 2, result_regs); in da9150_gpadc_read_adc()
118 mutex_unlock(&gpadc->lock); in da9150_gpadc_read_adc()
122 dev_err(gpadc->dev, "Timeout on channel %d of GPADC\n", in da9150_gpadc_read_adc()
[all …]
Dqcom-vadc-common.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 /* Max ADC code represents full-scale range of 1.8V */
34 #define PMI_CHG_SCALE_1 -138890
38 * struct vadc_map_pt - Map the graph representation for ADC channel
49 * VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels.
59 * struct vadc_linear_graph - Represent ADC characteristics.
74 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input.
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).
/kernel/linux/linux-4.19/sound/core/oss/
Dlinear.c2 * 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 …]
Dmulaw.c2 * 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/sound/core/oss/
Dlinear.c2 * 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 …]
Dmulaw.c2 * 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-4.19/Documentation/devicetree/bindings/sound/
Daudio-graph-scu-card.txt1 Audio-Graph-SCU-Card:
3 Audio-Graph-SCU-Card is "Audio-Graph-Card" + "ALSA DPCM".
8 Basically, Audio-Graph-SCU-Card property is same as
9 Simple-Card / Simple-SCU-Card / Audio-Graph-Card.
10 see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt
11 ${LINUX}/Documentation/devicetree/bindings/sound/simple-scu-card.txt
12 ${LINUX}/Documentation/devicetree/bindings/sound/audio-graph-card.txt
14 Below are same as Simple-Card / Audio-Graph-Card.
16 - label
17 - dai-format
[all …]
Dsimple-scu-card.txt4 For example, you can use this driver if you want to exchange sampling rate convert,
9 - compatible : "simple-scu-audio-card"
10 "renesas,rsrc-card"
13 - simple-audio-card,name : see simple-audio-card.txt
14 - simple-audio-card,cpu : see simple-audio-card.txt
15 - simple-audio-card,codec : see simple-audio-card.txt
19 - simple-audio-card,format : see simple-audio-card.txt
20 - simple-audio-card,frame-master : see simple-audio-card.txt
21 - simple-audio-card,bitclock-master : see simple-audio-card.txt
22 - simple-audio-card,bitclock-inversion : see simple-audio-card.txt
[all …]
/kernel/linux/linux-5.10/include/linux/iio/
Diio.h1 /* 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 …]
/kernel/linux/linux-4.19/include/linux/iio/
Diio.h40 * struct iio_chan_spec_ext_info - Extended channel info attribute
42 * @shared: Whether this attribute is shared between all channels.
59 * struct iio_enum - Enum channel info attribute
90 * IIO_ENUM() - Initialize enum extended channel attribute
92 * @_shared: Whether the attribute is shared between all channels
107 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute
123 * struct iio_mount_matrix - iio mounting matrix
141 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute
142 * @_shared: Whether the attribute is shared between all channels
154 * struct iio_event_spec - specification for a channel event
[all …]
/kernel/linux/linux-4.19/sound/soc/generic/
Dsimple-card-utils.c1 // SPDX-License-Identifier: GPL-2.0
3 // simple-card-utils.c
22 struct snd_interval *channels = hw_param_interval(params, in asoc_simple_card_convert_fixup() local
25 if (data->convert_rate) in asoc_simple_card_convert_fixup()
26 rate->min = in asoc_simple_card_convert_fixup()
27 rate->max = data->convert_rate; in asoc_simple_card_convert_fixup()
29 if (data->convert_channels) in asoc_simple_card_convert_fixup()
30 channels->min = in asoc_simple_card_convert_fixup()
31 channels->max = data->convert_channels; in asoc_simple_card_convert_fixup()
38 struct device_node *np = dev->of_node; in asoc_simple_card_parse_convert()
[all …]
/kernel/linux/linux-4.19/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #include <sound/pcm-indirect.h>
71 // convert alsa to chip volume (defined as macro rather than function call)
72 #define alsa2chip(vol) (uint)(-(((vol) << 8) / 100))
74 // convert chip to alsa volume
75 #define chip2alsa(vol) -(((vol) * 100) >> 8)
96 /* definition of the chip-specific record */
129 int channels; member
160 unsigned int channels, unsigned int samplerate,
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_daq_700.c1 // 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-4.19/drivers/staging/comedi/drivers/
Dni_daq_700.c1 // 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/sound/usb/
Dproc.c1 // 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/staging/vc04_services/bcm2835-audio/
Dbcm2835.h1 /* 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/drivers/hwmon/
Dgsc-hwmon.c1 // 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 …]
/kernel/linux/linux-4.19/sound/usb/
Dproc.c14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 /* convert our full speed USB rate into sampling rate in Hz */
37 /* convert our high speed USB rate into sampling rate in Hz */
48 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read()
49 if (!atomic_read(&chip->shutdown)) in proc_audio_usbbus_read()
50 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read()
55 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read()
56 if (!atomic_read(&chip->shutdown)) in proc_audio_usbid_read()
58 USB_ID_VENDOR(chip->usb_id), in proc_audio_usbid_read()
59 USB_ID_PRODUCT(chip->usb_id)); in proc_audio_usbid_read()
[all …]

12345678910>>...26