/linux/sound/usb/ |
H A D | mixer_scarlett.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 * Auto-detection via UAC2 is not feasible to properly discover the vast 38 * - change Impedance of inputs (Line-in, Mic / Instrument, Hi-Z) 39 * - select clock source 40 * - dynamic input to mixer-matrix assignment 41 * - 18 x 6 mixer-matrix gain stages 42 * - bus routing & volume control 43 * - automatic re-initialization on connect if device was power-cycled 49 * pad (-10dB) switch, wValue=0x0b01 + channel, data=Off/On (2bytes) 54 * 0x29 Set Sample-rate, wValue=0x0100, data=sample-rate(4bytes) [all …]
|
H A D | stream.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/usb/audio-v2.h> 11 #include <linux/usb/audio-v3.h> 33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free() 34 kfree(fp->rate_table); in audioformat_free() 35 kfree(fp->chmap); in audioformat_free() 46 if (!subs->num_formats) in free_substream() 48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream() 50 kfree(subs->str_pd); in free_substream() 60 free_substream(&stream->substream[0]); in snd_usb_audio_stream_free() [all …]
|
/linux/include/uapi/linux/hsi/ |
H A D | hsi_char.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 16 #define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype) argument 17 #define HSC_IOR(num, dtype) _IOR(HSI_CHAR_MAGIC, num, dtype) argument 18 #define HSC_IOWR(num, dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype) argument 19 #define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num) argument 41 __u32 channels; member 46 __u32 channels; member
|
/linux/tools/iio/ |
H A D | iio_generic_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * generic_buffer -n <device_name> -t <trigger_name> 38 * enum autochan - state for the automatic channel enabling mechanism 47 * size_from_channelarray() - calculate the storage size of a scan 48 * @channels: the channel info array 49 * @num_channels: number of channels 51 * Has the side effect of filling the channels[i].location values used 54 static unsigned int size_from_channelarray(struct iio_channel_info *channels, int num_channels) in size_from_channelarray() argument 61 if (channels[i].bytes > max) in size_from_channelarray() 62 max = channels[i].bytes; in size_from_channelarray() [all …]
|
/linux/drivers/hsi/controllers/ |
H A D | omap_ssi_port.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/dma-mapping.h> 36 return gpiod_get_value(omap_port->wake_gpio); in ssi_wakein() 44 debugfs_remove_recursive(omap_port->dir); in ssi_debug_remove_port() 49 struct hsi_port *port = m->private; in ssi_port_regs_show() 51 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_port_regs_show() 53 void __iomem *base = omap_ssi->sys; in ssi_port_regs_show() 56 pm_runtime_get_sync(omap_port->pdev); in ssi_port_regs_show() 57 if (omap_port->wake_irq > 0) in ssi_port_regs_show() 60 readl(base + SSI_WAKE_REG(port->num))); in ssi_port_regs_show() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | channels.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 4 #include "channels.h" 11 return chs->num; in mlx5e_channels_get_num() 17 return chs->c[ix]; in mlx5e_channels_get() 24 return test_bit(MLX5E_CHANNEL_STATE_XSK, c->state); in mlx5e_channels_is_xsk() 32 *rqn = c->rq.rqn; in mlx5e_channels_get_regular_rqn() 34 *vhca_id = MLX5_CAP_GEN(c->mdev, vhca_id); in mlx5e_channels_get_regular_rqn() 42 WARN_ON_ONCE(!test_bit(MLX5E_CHANNEL_STATE_XSK, c->state)); in mlx5e_channels_get_xsk_rqn() 44 *rqn = c->xskrq.rqn; in mlx5e_channels_get_xsk_rqn() 46 *vhca_id = MLX5_CAP_GEN(c->mdev, vhca_id); in mlx5e_channels_get_xsk_rqn() [all …]
|
H A D | qos.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 21 return -EINVAL; in mlx5e_qos_bytes_rate_check() 41 * 1. This function is called only after checking selq->htb_maj_id != 0, in mlx5e_qid_from_qos() 43 * 2. When selq->htb_maj_id becomes 0, synchronize_rcu waits for in mlx5e_qid_from_qos() 44 * mlx5e_select_queue to finish while holding priv->state_lock, in mlx5e_qid_from_qos() 47 bool is_ptp = MLX5E_GET_PFLAG(&chs->params, MLX5E_PFLAG_TX_PORT_TS); in mlx5e_qid_from_qos() 49 return (chs->params.num_channels + is_ptp) * mlx5e_get_dcb_num_tc(&chs->params) + qid; in mlx5e_qid_from_qos() 56 struct mlx5e_params *params = &priv->channels.params; in mlx5e_get_qos_sq() 61 ix = qid % params->num_channels; in mlx5e_get_qos_sq() 62 qid /= params->num_channels; in mlx5e_get_qos_sq() [all …]
|
/linux/sound/soc/codecs/ |
H A D | ad193x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 * AD193X volume/mute/de-emphasis etc. controls 37 static const DECLARE_TLV_DB_MINMAX(adau193x_tlv, -9563, 0); 67 /* DAC de-emphasis */ 78 /* ADC high-pass filter */ 105 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in ad193x_check_pll() 108 return !!ad193x->sysclk; in ad193x_check_pll() 131 switch (ad193x->type) { in ad193x_has_adc() 148 struct ad193x_priv *ad193x = snd_soc_component_get_drvdata(dai->component); in ad193x_mute() 151 regmap_update_bits(ad193x->regmap, AD193X_DAC_CTRL2, in ad193x_mute() [all …]
|
/linux/Documentation/devicetree/bindings/pwm/ |
H A D | pwm-st.txt | 2 -------------------------------------- 5 - compatible : "st,pwm" 6 - #pwm-cells : Number of cells used to specify a PWM. First cell 7 specifies the per-chip index of the PWM to use and the 8 second cell is the period in nanoseconds - fixed to 2 10 - reg : Physical base address and length of the controller's 12 - pinctrl-names: Set to "default". 13 - pinctrl-0: List of phandles pointing to pin configuration nodes 16 - clock-names: Valid entries are "pwm" and/or "capture". 17 - clocks: phandle of the clock used by the PWM module. [all …]
|
/linux/sound/core/ |
H A D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 43 delta = new_ptr - ptr; in update_silence_vars() 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence [all …]
|
/linux/drivers/dma/ |
H A D | ste_dma40.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Ericsson AB 2007-2008 4 * Copyright (C) ST-Ericsson SA 2008-2010 5 * Author: Per Forlin <per.forlin@stericsson.com> for ST-Ericsson 6 * Author: Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson 9 #include <linux/dma-mapping.h> 32 * struct stedma40_platform_data - Configuration struct for the dma device. 34 * @disabled_channels: A vector, ending with -1, that marks physical channels 36 * @soft_lli_chans: A vector, that marks physical channels will use LLI by SW 40 * @num_of_soft_lli_chans: The number of channels that needs to be configured [all …]
|
/linux/Documentation/devicetree/bindings/dma/xilinx/ |
H A D | xilinx_dma.txt | 2 It can be configured to have one channel or two channels. If configured 3 as two channels, one is to transmit to the video device and another is 7 target devices. It can be configured to have one channel or two channels. 8 If configured as two channels, one is to transmit to the device and another 11 Xilinx AXI CDMA engine, it does transfers between memory-mapped source 12 address and a memory-mapped destination address. 16 and receive channels. 19 - compatible: Should be one of- 20 "xlnx,axi-vdma-1.00.a" 21 "xlnx,axi-dma-1.00.a" [all …]
|
/linux/drivers/iio/adc/ |
H A D | ti-adc084s021.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 __be16 channels[4]; member 39 __be16 rx_buf[5]; /* First 16-bits are trash */ 42 #define ADC084S021_VOLTAGE_CHANNEL(num) \ argument 45 .channel = (num), \ 47 .scan_index = (num), \ 68 * adc084s021_adc_conversion() - Read an ADC channel and return its value. 75 int n_words = (adc->spi_trans.len >> 1) - 1; /* Discard first word */ in adc084s021_adc_conversion() 79 ret = spi_sync(adc->spi, &adc->message); in adc084s021_adc_conversion() 84 *(data + i) = adc->rx_buf[i + 1]; in adc084s021_adc_conversion() [all …]
|
H A D | mcp320x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * ------------ 20 * ------------ 23 * ------------ 65 const struct iio_chan_spec *channels; member 72 * struct mcp320x - Microchip SPI ADC instance 81 * @tx_buf: buffer for @transfer[0] (not used on single-channel converters) 116 return -EINVAL; in mcp320x_channel_to_tx_data() 125 if (adc->chip_info->conv_time) { in mcp320x_adc_conversion() 126 ret = spi_sync(adc->spi, &adc->start_conv_msg); in mcp320x_adc_conversion() [all …]
|
H A D | ti-adc128s052.c | 1 // SPDX-License-Identifier: GPL-2.0 22 const struct iio_chan_spec *channels; member 33 * Serialize the SPI 'write-channel + read data' accesses and protect 48 guard(mutex)(&adc->lock); in adc128_adc_conversion() 50 adc->buffer[0] = channel << 3; in adc128_adc_conversion() 51 adc->buffer[1] = 0; in adc128_adc_conversion() 53 ret = spi_write(adc->spi, &adc->buffer, sizeof(adc->buffer)); in adc128_adc_conversion() 57 ret = spi_read(adc->spi, &adc->buffer16, sizeof(adc->buffer16)); in adc128_adc_conversion() 61 return be16_to_cpu(adc->buffer16) & 0xFFF; in adc128_adc_conversion() 74 ret = adc128_adc_conversion(adc, channel->channel); in adc128_read_raw() [all …]
|
/linux/sound/firewire/bebob/ |
H A D | bebob_maudio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bebob_maudio.c - a part of driver for BeBoB based devices 5 * Copyright (c) 2013-2014 Takashi Sakamoto 24 * source is not SYT-Match (I note no devices use SYT-Match). 33 * write-transaction directly into a certain address. All of addresses for mixer 88 * For some M-Audio devices, this module just send cue to load firmware. After 107 * 'date' is not null-terminated. in snd_bebob_maudio_load_firmware() 110 dev_err(&unit->device, in snd_bebob_maudio_load_firmware() 112 return -ENXIO; in snd_bebob_maudio_load_firmware() 117 return -ENOMEM; in snd_bebob_maudio_load_firmware() [all …]
|
H A D | bebob_focusrite.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bebob_focusrite.c - a part of driver for BeBoB based devices 5 * Copyright (c) 2013-2014 Takashi Sakamoto 68 err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in saffire_read_block() 86 err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, in saffire_read_quad() 102 return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, in saffire_write_quad() 124 [SAFFIREPRO_CLOCK_SOURCE_SKIP] = -1, /* not supported */ 126 [SAFFIREPRO_CLOCK_SOURCE_ADAT1] = -1, /* not supported */ 127 [SAFFIREPRO_CLOCK_SOURCE_ADAT2] = -1, /* not supported */ 133 [SAFFIREPRO_CLOCK_SOURCE_SKIP] = -1, /* not supported */ [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | scan.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 13 * enum iwl_scan_subcmd_ids - scan commands 33 * struct iwl_ssid_ie - directed scan network information element 78 * struct iwl_scan_offload_blocklist - SCAN_OFFLOAD_BLACKLIST_S 81 * @client_bitmap: clients ignore this entry - enum scan_framework_client 112 * struct iwl_scan_offload_profile - SCAN_OFFLOAD_PROFILE_S 114 * @unicast_cipher: encryption algorithm to match - bitmap [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | am33xx-usb.txt | 3 - compatible: ti,am33xx-usb 4 - reg: offset and length of the usbss register sets 5 - ti,hwmods : must be "usb_otg_hs" 13 - compatible: ti,am335x-usb-ctrl-module 14 - reg: offset and length of the "USB control registers" in the "Control 17 - reg-names: "phy_ctrl" for the "USB control registers" and "wakeup" for 22 compatible: ti,am335x-usb-phy 25 reg-names: phy 31 - compatible: ti,musb-am33xx 32 - reg: offset and length of "USB Controller Registers", and offset and [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | fsl,qmc-audio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/fsl,qmc-audio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 14 Controller) channels to transfer the audio data. 16 if only one QMC channel is used by the DAI or it is working in non-interleaved 17 mode if several QMC channels are used by the DAI. 20 - $ref: dai-common.yaml# 24 const: fsl,qmc-audio [all …]
|
/linux/sound/soc/xilinx/ |
H A D | xlnx_i2s.c | 1 // SPDX-License-Identifier: GPL-2.0 32 u32 channels; member 44 return -EINVAL; in xlnx_i2s_set_sclkout_div() 46 drv_data->sysclk = 0; in xlnx_i2s_set_sclkout_div() 48 writel(div, drv_data->base + I2S_I2STIM_OFFSET); in xlnx_i2s_set_sclkout_div() 58 drv_data->sysclk = freq; in xlnx_i2s_set_sysclk() 62 if (drv_data->is_32bit_lrclk) in xlnx_i2s_set_sysclk() 65 bits_per_sample = drv_data->data_width; in xlnx_i2s_set_sysclk() 67 drv_data->ratnum.num = freq / (bits_per_sample * drv_data->channels) / 2; in xlnx_i2s_set_sysclk() 68 drv_data->ratnum.den_step = 1; in xlnx_i2s_set_sysclk() [all …]
|
/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2005-2009 Freescale Semiconductor, Inc. 26 #include <video/imx-ipu-v3.h> 27 #include "ipu-prv.h" 31 return readl(ipu->cm_reg + offset); in ipu_cm_read() 36 writel(value, ipu->cm_reg + offset); in ipu_cm_write() 41 return ipu->id; in ipu_get_num() 157 return -EINVAL; in ipu_degrees_to_rot_mode() 168 struct ipuv3_channel *ipu_idmac_get(struct ipu_soc *ipu, unsigned num) in ipu_idmac_get() argument 172 dev_dbg(ipu->dev, "%s %d\n", __func__, num); in ipu_idmac_get() [all …]
|
/linux/drivers/leds/flash/ |
H A D | leds-mt6370-flash.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/led-class-flash.h> 22 #include <media/v4l2-flash-led-class.h> 43 #define MT6370_FLCSEN_MASK(_id) BIT(MT6370_LED_FLASH2 - (_id)) 90 struct mt6370_priv *priv = led->priv; in mt6370_torch_brightness_set() 91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set() 92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set() 98 mutex_lock(&priv->lock); in mt6370_torch_brightness_set() 104 if (priv->fled_strobe_used) { in mt6370_torch_brightness_set() 105 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n", priv->fled_strobe_used); in mt6370_torch_brightness_set() [all …]
|
/linux/sound/isa/sb/ |
H A D | sb8_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Uros Bizjak <uros@kss-loka.si> 6 * Routines for control of 8-bit SoundBlaster cards and clones 9 * -- 15 * Wed Jul 12 22:02:55 CEST 2000 Uros Bizjak <uros@kss-loka.si> 27 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Uros Bizjak <uros@kss-loka.si>"); 28 MODULE_DESCRIPTION("Routines for control of 8-bit SoundBlaster cards and clones"); 36 .num = SB8_CLOCK, 49 .num = SB8_CLOCK, 55 .num = SB8_CLOCK, [all …]
|
/linux/Documentation/devicetree/bindings/mailbox/ |
H A D | ti,omap-mailbox.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 35 lines can also be routed to different processor sub-systems on DRA7xx as they 49 within a SoC. The sub-mailboxes (actual communication channels) are 56 "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt 59 phandle to the intended sub-mailbox child node to be used for communication. 60 The equivalent "mbox-names" property value can be used to give a name to the [all …]
|