| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/ |
| D | simple-scu-card.txt | 4 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 …]
|
| D | audio-graph-scu-card.txt | 1 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| 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. 16 $ref: /schemas/types.yaml#/definitions/phandle-array 19 bitclock-master: 20 description: Indicates dai-link bit clock master [all …]
|
| D | audio-graph-card.txt | 3 Audio Graph Card specifies audio DAI connections of SoC <-> codec. 8 see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.yaml 10 Below are same as Simple-Card. 12 - label 13 - widgets 14 - routing 15 - dai-format 16 - frame-master 17 - bitclock-master 18 - bitclock-inversion [all …]
|
| D | renesas,rsnd.txt | 1 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 …]
|
| /kernel/linux/linux-4.19/sound/soc/sh/rcar/ |
| D | src.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Renesas R-Car SRC support 26 struct rsnd_kctrl_cfg_s sen; /* sync convert enable */ 27 struct rsnd_kctrl_cfg_s sync; /* sync convert */ 28 u32 convert_rate; /* sampling rate convert */ 34 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 35 #define rsnd_src_nr(priv) ((priv)->src_nr) 36 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val) 44 ((pos) = (struct rsnd_src *)(priv)->src + i); \ 49 * image of SRC (Sampling Rate Converter) [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sh/rcar/ |
| D | src.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Renesas R-Car SRC support 26 struct rsnd_kctrl_cfg_s sen; /* sync convert enable */ 27 struct rsnd_kctrl_cfg_s sync; /* sync convert */ 33 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 34 #define rsnd_src_nr(priv) ((priv)->src_nr) 35 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val) 43 ((pos) = (struct rsnd_src *)(priv)->src + i); \ 48 * image of SRC (Sampling Rate Converter) 50 * 96kHz <-> +-----+ 48kHz +-----+ 48kHz +-------+ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
| D | main.h | 1 /* 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/broadcom/b43legacy/ |
| D | main.h | 5 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 13 driver Copyright(c) 2003 - 2004 Intel Corporation. 28 Boston, MA 02110-1301, USA. 44 /* Lightweight function to convert a frequency (in Mhz) to a channel number. */ 53 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg() 64 /* Lightweight function to convert a channel number to a frequency (in Mhz). */ 86 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument 88 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate() 89 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate() 90 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/hisilicon/ |
| D | clk-hi6220-stub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 71 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq() 81 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq() 89 mbox_send_message(stub_clk->mbox, &data); in hi6220_acpu_set_freq() 100 regmap_read(stub_clk->dfs_map, ACPU_DFS_FLAG, &limit_flag); in hi6220_acpu_round_freq() 102 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_LMT, &limit_freq); in hi6220_acpu_round_freq() 105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq() 119 u32 rate = 0; in hi6220_stub_clk_recalc_rate() local 122 switch (stub_clk->id) { in hi6220_stub_clk_recalc_rate() [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/hisilicon/ |
| D | clk-hi6220-stub.c | 15 #include <linux/clk-provider.h> 75 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq() 85 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq() 93 mbox_send_message(stub_clk->mbox, &data); in hi6220_acpu_set_freq() 104 regmap_read(stub_clk->dfs_map, ACPU_DFS_FLAG, &limit_flag); in hi6220_acpu_round_freq() 106 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_LMT, &limit_freq); in hi6220_acpu_round_freq() 109 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq() 123 u32 rate = 0; in hi6220_stub_clk_recalc_rate() local 126 switch (stub_clk->id) { in hi6220_stub_clk_recalc_rate() 128 rate = hi6220_acpu_get_freq(stub_clk); in hi6220_stub_clk_recalc_rate() [all …]
|
| /kernel/linux/linux-5.10/include/drm/ |
| D | drm_audio_component.h | 1 // SPDX-License-Identifier: MIT 11 * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver 42 * @sync_audio_rate: set n/cts based on the sample rate 45 * sample rate, it will call this function to set n/cts 47 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate); 65 * struct drm_audio_component_audio_ops - Ops implemented by hda driver, called by DRM driver 82 * @pin2port: Check and convert from pin node to port number 84 * Called by HDA driver to check and convert from the pin widget node 91 * Called at binding master component, for HDA codec-specific 98 * Called at unbinding master component, for HDA codec-specific [all …]
|
| /kernel/linux/linux-4.19/include/drm/ |
| D | drm_audio_component.h | 1 // SPDX-License-Identifier: MIT 10 * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver 38 * @sync_audio_rate: set n/cts based on the sample rate 41 * sample rate, it will call this function to set n/cts 43 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate); 61 * struct drm_audio_component_audio_ops - Ops implemented by hda driver, called by DRM driver 78 * @pin2port: Check and convert from pin node to port number 80 * Called by HDA driver to check and convert from the pin widget node 87 * Called at binding master component, for HDA codec-specific 94 * Called at unbinding master component, for HDA codec-specific [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ptp.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/tty/ |
| D | tty_baudrate.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * Routine which returns the baud rate of the tty 49 * Convert termios baud rate data into a speed. This should be called 52 * function but should use ->c_[io]speed directly as they are updated. 61 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 66 return termios->c_ospeed; in tty_termios_baud_rate() 72 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 84 * Convert termios baud rate data into a speed. This should be called 87 * function but should use ->c_[io]speed directly as they are updated. 95 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() [all …]
|
| /kernel/linux/linux-4.19/drivers/tty/ |
| D | tty_baudrate.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * Routine which returns the baud rate of the tty 53 * Convert termios baud rate data into a speed. This should be called 56 * function but should use ->c_[io]speed directly as they are updated. 65 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 70 return termios->c_ospeed; in tty_termios_baud_rate() 76 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 88 * Convert termios baud rate data into a speed. This should be called 91 * function but should use ->c_[io]speed directly as they are updated. 99 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/qcom/ |
| D | clk-rpmh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 6 #include <linux/clk-provider.h> 13 #include <soc/qcom/cmd-db.h> 17 #include <dt-bindings/clock/qcom,rpmh.h> 23 * struct bcm_db - Auxiliary data pertaining to each Bus Clock Manager(BCM) 24 * @unit: divisor used to convert Hz value to an RPMh msg 25 * @width: multiplier used to convert Hz value to an RPMh msg 37 * struct clk_rpmh - individual rpmh clock data structure 38 * @hw: handle between common and hardware-specific interfaces [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ptp.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/sound/usb/ |
| D | proc.c | 14 * 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 …]
|
| /kernel/linux/linux-4.19/sound/soc/generic/ |
| D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 20 struct snd_interval *rate = 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-5.10/arch/arm/mach-omap2/ |
| D | voltage.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/sound/usb/ |
| 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 …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-omap2/ |
| D | voltage.h | 19 #include <linux/platform_data/voltage-omap.h> 35 * struct omap_vfsm_instance - per-voltage manager FSM register/bitfield 50 * struct voltagedomain - omap voltage domain global structure. 58 * @read: read-modify-write a VC/VP register 83 u32 rate; member 112 * struct omap_voltdm_pmic - PMIC specific data required by voltage driver. 113 * @slew_rate: PMIC slew rate (in uv/us) 117 * @cmd_reg_addr: command (on, on-LP, ret, off) configuration register address 118 * @i2c_high_speed: whether VC uses I2C high-speed mode to PMIC 119 * @i2c_mcode: master code value for I2C high-speed preamble transmission [all …]
|
| /kernel/linux/linux-5.10/drivers/rtc/ |
| D | rtc-ac100.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/drivers/rtc/ |
| D | rtc-ac100.c | 2 * RTC Driver for X-Powers AC100 4 * Copyright (c) 2016 Chen-Yu Tsai 6 * Chen-Yu Tsai <wens@csie.org> 19 #include <linux/clk-provider.h> 70 * the year 1900. This macro is used to convert this offset to another one 73 * The year range is 1970 - 2069. This range is selected to match Allwinner's 78 #define AC100_YEAR_OFF (AC100_YEAR_MIN - 1900) 88 #define AC100_RTC_32K_NAME "ac100-rtc-32k" 93 "ac100-cko1-rtc", 94 "ac100-cko2-rtc", [all …]
|