Home
last modified time | relevance | path

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

12345678910>>...20

/linux/Documentation/devicetree/bindings/sound/ !
H A 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.
18 bitclock-master:
19 description: Indicates dai-link bit clock master
22 frame-inversion:
[all …]
H A Drenesas,rsnd.txt1 Renesas R-Car sound
7 Renesas R-Car and RZ/G sound is constructed from below modules
10 SCU : Sampling Rate Converter Unit
11 - SRC : Sampling Rate Converter
12 - CMD
13 - CTU : Channel Transfer Unit
14 - MIX : Mixer
15 - DVC : Digital Volume and Mute Function
25 Multi channel is supported by Multi-SSI, or TDM-SSI.
27 Multi-SSI : 6ch case, you can use stereo x 3 SSI
[all …]
/linux/sound/soc/renesas/rcar/ !
H A Dsrc.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car SRC support
9 * You can use Synchronous Sampling Rate Convert (if no DVC)
11 * amixer set "SRC Out Rate" on
13 * amixer set "SRC Out Rate" 96000 // convert rate to 96000Hz
14 * amixer set "SRC Out Rate" 22050 // convert rate to 22050Hz
36 struct rsnd_kctrl_cfg_s sen; /* sync convert enable */
37 struct rsnd_kctrl_cfg_s sync; /* sync convert */
44 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id)
45 #define rsnd_src_nr(priv) ((priv)->src_nr)
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/ !
H A Dmain.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
31 /* Lightweight function to convert a frequency (in Mhz) to a channel number. */
40 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg()
51 /* Lightweight function to convert a channel number to a frequency (in Mhz). */
73 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument
75 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate()
76 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate()
77 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate()
[all …]
/linux/drivers/tty/ !
H A Dtty_baudrate.c1 // SPDX-License-Identifier: GPL-2.0
15 * Routine which returns the baud rate of the tty
50 * Convert termios baud rate data into a speed. This should be called
53 * ->c_[io]speed directly as they are updated.
62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate()
66 return termios->c_ospeed; in tty_termios_baud_rate()
80 * Convert termios baud rate data into a speed. This should be called
83 * ->c_[io]speed directly as they are updated.
90 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate()
97 return termios->c_ispeed; in tty_termios_input_baud_rate()
[all …]
/linux/include/drm/ !
H A Ddrm_audio_component.h1 // SPDX-License-Identifier: MIT
14 * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver
45 * @sync_audio_rate: set n/cts based on the sample rate
48 * sample rate, it will call this function to set n/cts
50 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate);
68 * struct drm_audio_component_audio_ops - Ops implemented by hda driver, called by DRM driver
85 * @pin2port: Check and convert from pin node to port number
87 * Called by HDA driver to check and convert from the pin widget node
94 * Called at binding master component, for HDA codec-specific
101 * Called at unbinding master component, for HDA codec-specific
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/ !
H A Dixgbe_ptp.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
18 * period of 6.4ns. In order to convert the scale counter into
30 * Period * [ 2 ^ ( MaxWidth - PeriodWidth ) ]
41 * value in order to quickly convert it into a nanosecond clock,
47 * +--------------+ +--------------+
49 * *--------------+ +--------------+
52 * +--------------+ +--------------+
54 * *--------------+ +--------------+
58 * 2^36 * 10^-9 / 60 = 1.14 minutes or 69 seconds
[all …]
/linux/arch/arm/mach-omap2/ !
H A Dvoltage.h1 /* SPDX-License-Identifier: GPL-2.0-only */
16 #include <linux/platform_data/voltage-omap.h>
32 * struct omap_vfsm_instance - per-voltage manager FSM register/bitfield
47 * struct voltagedomain - omap voltage domain global structure.
55 * @read: read-modify-write a VC/VP register
80 u32 rate; member
109 * struct omap_voltdm_pmic - PMIC specific data required by voltage driver.
110 * @slew_rate: PMIC slew rate (in uv/us)
114 * @cmd_reg_addr: command (on, on-LP, ret, off) configuration register address
115 * @i2c_high_speed: whether VC uses I2C high-speed mode to PMIC
[all …]
/linux/drivers/rtc/ !
H A Drtc-ac100.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * RTC Driver for X-Powers AC100
5 * Copyright (c) 2016 Chen-Yu Tsai
7 * Chen-Yu Tsai <wens@csie.org>
11 #include <linux/clk-provider.h>
62 * the year 1900. This macro is used to convert this offset to another one
65 * The year range is 1970 - 2069. This range is selected to match Allwinner's
70 #define AC100_YEAR_OFF (AC100_YEAR_MIN - 1900)
80 #define AC100_RTC_32K_NAME "ac100-rtc-32k"
85 "ac100-cko1-rtc",
[all …]
/linux/sound/usb/ !
H A 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 …]
/linux/sound/core/oss/ !
H A 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 …]
/linux/drivers/clk/bcm/ !
H A Dclk-kona.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include "clk-kona.h"
12 #include <linux/clk-provider.h>
28 /* Produces a mask of set bits covering a range of a 32-bit value */
31 return ((1 << width) - 1) << shift; in bitfield_mask()
50 /* Convert a divider into the scaled divisor value it represents. */
53 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value()
61 return (u64)div->u.fixed; in scaled_div_min()
72 return (u64)div->u.fixed; in scaled_div_max()
74 reg_div = ((u32)1 << div->u.s.width) - 1; in scaled_div_max()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ !
H A Drate.h34 /* phy rate in kbps [20Mhz] */
36 /* phy rate in kbps [40Mhz] */
38 /* phy rate in kbps [20Mhz] with SGI */
40 /* phy rate in kbps [40Mhz] with SGI */
42 /* phy ctl byte 3, code rate, modulation type, # of streams */
44 /* matching legacy ofdm rate in 500bkps */
52 #define MCS_TXS_MASK 0xc0 /* num tx streams - 1 bit mask */
53 #define MCS_TXS_SHIFT 6 /* num tx streams - 1 bit shift */
55 /* returns num tx streams - 1 */
75 #define BRCMS_RATE_MASK_FULL 0xff /* Rate value mask with basic rate flag */
[all …]
/linux/drivers/media/rc/img-ir/ !
H A Dimg-ir-hw.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright 2010-2014 Imagination Technologies Ltd.
12 #include <media/rc-core.h>
18 #define IMG_IR_CODETYPE_BIPHASE 0x2 /* RC-5/6 */
19 #define IMG_IR_CODETYPE_2BITPULSEPOS 0x3 /* RC-MM */
25 * struct img_ir_control - Decoder control settings
53 * struct img_ir_timing_range - range of timing values
65 * struct img_ir_symbol_timing - timing data for a symbol
75 * struct img_ir_free_timing - timing data for free time symbol
88 * struct img_ir_timings - Timing values.
[all …]
/linux/sound/soc/intel/avs/boards/ !
H A Dmax98357a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // 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
35 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_max98357a_be_fixup()
39 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_max98357a_be_fixup()
40 rate->min = rate->max = 48000; in avs_max98357a_be_fixup()
41 channels->min = channels->max = 2; in avs_max98357a_be_fixup()
58 return -ENOMEM; in avs_create_dai_link()
[all …]
H A Dmax98927.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #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
53 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_max98927_be_fixup()
57 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_max98927_be_fixup()
58 rate->min = rate->max = 48000; in avs_max98927_be_fixup()
[all …]
H A Dmax98373.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #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
53 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_max98373_be_fixup()
57 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_max98373_be_fixup()
58 rate->min = rate->max = 48000; in avs_max98373_be_fixup()
[all …]
H A Dssm4567.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // 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
70 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_ssm4567_be_fixup()
74 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_ssm4567_be_fixup()
75 rate->min = rate->max = 48000; in avs_ssm4567_be_fixup()
[all …]
/linux/sound/soc/intel/boards/ !
H A Dhsw_rt5640.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <sound/soc-acpi.h>
36 struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in codec_link_hw_params_fixup() local
38 /* The ADSP will convert the FE rate to 48k, stereo. */ in codec_link_hw_params_fixup()
39 rate->min = rate->max = 48000; in codec_link_hw_params_fixup()
40 channels->min = channels->max = 2; in codec_link_hw_params_fixup()
56 dev_err(rtd->dev, "set codec sysclk failed: %d\n", ret); in codec_link_hw_params()
61 snd_soc_component_update_bits(codec_dai->component, 0x83, 0xffff, 0x8000); in codec_link_hw_params()
76 SND_SOC_DAILINK_DEF(codec, DAILINK_COMP_ARRAY(COMP_CODEC("i2c-INT33CA:00", "rt5640-aif1")));
77 SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio")));
[all …]
H A Dbytcht_nocodec.c1 // 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"
43 struct snd_interval *rate = 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 …]
/linux/net/sched/ !
H A Dsch_pie.c1 // SPDX-License-Identifier: GPL-2.0-only
37 u64 local_prob = vars->prob; in pie_drop_early()
41 if (vars->burst_time > 0) in pie_drop_early()
47 if ((vars->qdelay < params->target / 2) && in pie_drop_early()
48 (vars->prob < MAX_PROB / 5)) in pie_drop_early()
51 /* If we have fewer than 2 mtu-sized packets, disable pie_drop_early, in pie_drop_early()
60 if (params->bytemode && packet_size <= mtu) in pie_drop_early()
63 local_prob = vars->prob; in pie_drop_early()
66 vars->accu_prob = 0; in pie_drop_early()
68 vars->accu_prob += local_prob; in pie_drop_early()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ !
H A Dhtb.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
12 u64 rate; member
16 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()
[all …]
/linux/drivers/clk/rockchip/ !
H A Dclk-mmc-phase.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include <linux/clk-provider.h>
43 * Each fine delay is between 44ps-77ps. Assume each fine delay is 60ps to
51 unsigned long rate = clk_hw_get_rate(hw); in rockchip_mmc_get_phase() local
57 if (!rate) in rockchip_mmc_get_phase()
60 if (mmc_clock->grf) in rockchip_mmc_get_phase()
61 regmap_read(mmc_clock->grf, mmc_clock->grf_reg, &raw_value); in rockchip_mmc_get_phase()
63 raw_value = readl(mmc_clock->reg); in rockchip_mmc_get_phase()
65 raw_value >>= mmc_clock->shift; in rockchip_mmc_get_phase()
72 36 * (rate / 10000); in rockchip_mmc_get_phase()
[all …]
/linux/sound/core/ !
H A Dpcm_misc.c2 * PCM Interface - misc routines
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #define SND_PCM_FORMAT_UNKNOWN (-1)
37 signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */
38 signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */
52 .width = 8, .phys = 8, .le = -1, .signd = 1,
56 .width = 8, .phys = 8, .le = -1, .signd = 0,
108 .width = 32, .phys = 32, .le = 1, .signd = -1,
112 .width = 32, .phys = 32, .le = 0, .signd = -1,
116 .width = 64, .phys = 64, .le = 1, .signd = -1,
[all …]
/linux/kernel/time/ !
H A Dsched_clock.c1 // SPDX-License-Identifier: GPL-2.0
4 * counters to full 64-bit ns values.
24 * struct clock_data - all data needed for sched_clock() (including
31 * @rate: Tick rate of the registered clock.
36 * into a single 64-byte cache line.
42 unsigned long rate; member
48 static int irqtime = -1;
55 * We don't need to use get_jiffies_64 on 32-bit arches here in jiffy_sched_clock_read()
58 return (u64)(jiffies - INITIAL_JIFFIES); in jiffy_sched_clock_read()
93 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in __sched_clock()
[all …]

12345678910>>...20