Home
last modified time | relevance | path

Searched +full:bt +full:- +full:pcm +full:- +full:int +full:- +full:params (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dbroadcom-bluetooth.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/broadcom-bluetooth.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
13 This binding describes Broadcom UART-attached bluetooth chips.
18 - brcm,bcm20702a1
19 - brcm,bcm4329-bt
20 - brcm,bcm4330-bt
21 - brcm,bcm4334-bt
[all …]
/openbmc/linux/Documentation/sound/soc/
H A Ddpcm.rst2 Dynamic PCM
8 Dynamic PCM allows an ALSA PCM device to digitally route its PCM audio to
9 various digital endpoints during the PCM stream runtime. e.g. PCM0 can route
16 determine the path used by each ALSA PCM.
18 DPCM re-uses all the existing component codec, platform and DAI drivers without
23 -------------------------------------
26 document for all examples :-
32 PCM0 <------------> * * <----DAI0-----> Codec Headset
34 PCM1 <------------> * * <----DAI1-----> Codec Speakers
36 PCM2 <------------> * * <----DAI2-----> MODEM
[all …]
/openbmc/linux/sound/soc/mediatek/mt2701/
H A Dmt2701-cs42448.c1 // SPDX-License-Identifier: GPL-2.0
3 * mt2701-cs42448.c -- MT2701 CS42448 ALSA SoC machine driver
17 #include "mt2701-afe-common.h"
20 int i2s1_in_mux;
21 int i2s1_in_mux_gpio_sel_1;
22 int i2s1_in_mux_gpio_sel_2;
35 static int mt2701_cs42448_i2sin1_mux_get(struct snd_kcontrol *kcontrol, in mt2701_cs42448_i2sin1_mux_get()
41 ucontrol->value.integer.value[0] = priv->i2s1_in_mux; in mt2701_cs42448_i2sin1_mux_get()
45 static int mt2701_cs42448_i2sin1_mux_set(struct snd_kcontrol *kcontrol, in mt2701_cs42448_i2sin1_mux_set()
51 if (ucontrol->value.integer.value[0] == priv->i2s1_in_mux) in mt2701_cs42448_i2sin1_mux_set()
[all …]
H A Dmt2701-afe-pcm.c1 // SPDX-License-Identifier: GPL-2.0
19 #include "mt2701-afe-common.h"
20 #include "mt2701-afe-clock-ctrl.h"
21 #include "../common/mtk-afe-platform-driver.h"
22 #include "../common/mtk-afe-fe-dai.h"
38 unsigned int rate;
39 unsigned int regvalue;
63 static const unsigned int mt2701_afe_backup_list[] = {
84 static int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num) in mt2701_dai_num_to_i2s()
86 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_dai_num_to_i2s()
[all …]
/openbmc/linux/sound/soc/mediatek/mt8183/
H A Dmt8183-da7219-max98357.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt8183-da7219-max98357.c
4 // -- MT8183-DA7219-MAX98357 ALSA SoC machine driver
19 #include "../common/mtk-afe-platform-driver.h"
20 #include "mt8183-afe-common.h"
22 #define DA7219_CODEC_DAI "da7219-hifi"
23 #define DA7219_DEV_NAME "da7219.5-001a"
24 #define RT1015_CODEC_DAI "rt1015-aif"
25 #define RT1015_DEV0_NAME "rt1015.6-0028"
26 #define RT1015_DEV1_NAME "rt1015.6-0029"
[all …]
H A Dmt8183-mt6358-ts3a227-max98357.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt8183-mt6358.c --
4 // MT8183-MT6358-TS3A227-MAX98357 ALSA SoC machine driver
18 #include "../common/mtk-afe-platform-driver.h"
19 #include "mt8183-afe-common.h"
21 #define RT1015_CODEC_DAI "rt1015-aif"
22 #define RT1015_DEV0_NAME "rt1015.6-0028"
23 #define RT1015_DEV1_NAME "rt1015.6-0029"
43 static int mt8183_mt6358_i2s_hw_params(struct snd_pcm_substream *substream, in mt8183_mt6358_i2s_hw_params()
44 struct snd_pcm_hw_params *params) in mt8183_mt6358_i2s_hw_params() argument
[all …]
/openbmc/linux/arch/arm/boot/dts/rockchip/
H A Drk3288-veyron-broadcom-bluetooth.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
11 pinctrl-names = "default";
12 pinctrl-0 = <&bt_host_wake_l>, <&bt_enable_l>,
15 compatible = "brcm,bcm43540-bt";
16 host-wakeup-gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>;
17 shutdown-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
18 device-wakeup-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
19 max-speed = <3000000>;
20 brcm,bt-pcm-int-params = [01 02 00 01 01];
/openbmc/linux/sound/soc/intel/boards/
H A Dsof_nau8825.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <sound/pcm.h>
20 #include <sound/soc-acpi.h>
22 #include "../common/soc-intel-quirks.h"
41 /* BT audio offload: reserve 3 bits for future */
58 int device;
67 static int sof_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sof_hdmi_init()
69 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
71 struct sof_hdmi_pcm *pcm; in sof_hdmi_init() local
73 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
[all …]
H A Dsof_rt5682.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2019-2020 Intel Corporation.
16 #include <sound/pcm.h>
22 #include <sound/soc-acpi.h>
27 #include "../common/soc-intel-quirks.h"
54 /* BT audio offload: reserve 3 bits for future */
75 static int is_legacy_cpu;
81 int device;
92 static int sof_rt5682_quirk_cb(const struct dmi_system_id *id) in sof_rt5682_quirk_cb()
94 sof_rt5682_quirk = (unsigned long)id->driver_data; in sof_rt5682_quirk_cb()
[all …]
H A Dsof_cs42l42.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <sound/pcm.h>
20 #include <sound/soc-acpi.h>
21 #include <dt-bindings/sound/cs42l42.h>
23 #include "../common/soc-intel-quirks.h"
79 int device;
88 static int sof_hdmi_init(struct snd_soc_pcm_runtime *rtd) in sof_hdmi_init()
90 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
92 struct sof_hdmi_pcm *pcm; in sof_hdmi_init() local
94 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
[all …]
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-mt6366-da7219-max98357.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt8186-mt6366-da7219-max98357.c
4 // -- MT8186-MT6366-DA7219-MAX98357 ALSA SoC machine driver
19 #include "../common/mtk-afe-platform-driver.h"
20 #include "../common/mtk-dsp-sof-common.h"
21 #include "../common/mtk-soc-card.h"
22 #include "mt8186-afe-common.h"
23 #include "mt8186-afe-clk.h"
24 #include "mt8186-afe-gpio.h"
25 #include "mt8186-mt6366-common.h"
[all …]
H A Dmt8186-mt6366-rt1019-rt5682s.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt8186-mt6366-rt1019-rt5682s.c
4 // -- MT8186-MT6366-RT1019-RT5682S ALSA SoC machine driver
22 #include "../common/mtk-afe-platform-driver.h"
23 #include "../common/mtk-dsp-sof-common.h"
24 #include "../common/mtk-soc-card.h"
25 #include "mt8186-afe-common.h"
26 #include "mt8186-afe-clk.h"
27 #include "mt8186-afe-gpio.h"
28 #include "mt8186-mt6366-common.h"
[all …]
/openbmc/linux/sound/soc/hisilicon/
H A Dhi6210-i2s.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/sound/soc/m8m/hi6210_i2s.c - I2S IP driver
8 * This driver only deals with S2 interface (BT)
20 #include <sound/pcm.h>
30 #include <linux/reset-controller.h>
32 #include "hi6210-i2s.h"
38 int clocks;
44 int clk_rate;
46 int rate;
47 int format;
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dhci_bcm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
53 * struct bcm_device_data - device specific data
55 * @drive_rts_on_open: drive RTS signal on ->open() when platform requires it
69 * struct bcm_device - device driver resources
106 * @drive_rts_on_open: drive RTS signal on ->open() when platform requires it
108 * @pcm_int_params: keep the initial PCM configuration
123 int (*set_device_wakeup)(struct bcm_device *, bool);
124 int (*set_shutdown)(struct bcm_device *, bool);
127 int gpio_count;
128 int gpio_int_idx;
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dwl1273.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/mfd/wl1273-core.h>
13 #include <sound/pcm.h>
26 unsigned int channels;
29 static int snd_wl1273_fm_set_i2s_mode(struct wl1273_core *core, in snd_wl1273_fm_set_i2s_mode()
30 int rate, int width) in snd_wl1273_fm_set_i2s_mode()
32 struct device *dev = &core->client->dev; in snd_wl1273_fm_set_i2s_mode()
33 int r = 0; in snd_wl1273_fm_set_i2s_mode()
39 mutex_lock(&core->lock); in snd_wl1273_fm_set_i2s_mode()
41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode()
[all …]
H A Dwm8753.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8753.c -- WM8753 ALSA Soc Audio driver
5 * Copyright 2003-11 Wolfson Microelectronics PLC.
9 * The WM8753 is a low power, high quality stereo codec with integrated PCM
12 * Dual DAI:-
14 * This driver support 2 DAI PCM's. This makes the default PCM available for
15 * HiFi audio (e.g. MP3, ogg) playback/capture and the other PCM available for
18 * Please note that the voice PCM can be connected directly to a Bluetooth
23 * Fast DAI switching:-
26 * an alsa kcontrol. This allows the PCM to remain open.
[all …]
H A Dak4641.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4641.c -- AK4641 ALSA Soc Audio driver
20 #include <sound/pcm.h>
52 unsigned int sysclk;
53 int deemph;
54 int playback_fs;
68 static const int deemph_settings[] = {44100, 0, 48000, 32000};
70 static int ak4641_set_deemph(struct snd_soc_component *component) in ak4641_set_deemph()
73 int i, best = 0; in ak4641_set_deemph()
77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph()
[all …]
/openbmc/linux/sound/soc/samsung/
H A Daries_wm8994.c1 // SPDX-License-Identifier: GPL-2.0+
4 #include <linux/input-event-codes.h>
21 unsigned int modem_dai_fmt;
46 static int aries_extcon_notifier(struct notifier_block *this, in aries_extcon_notifier()
91 static irqreturn_t headset_det_irq_thread(int irq, void *data) in headset_det_irq_thread()
94 int ret = 0; in headset_det_irq_thread()
95 int time_left_ms = 300; in headset_det_irq_thread()
96 int adc; in headset_det_irq_thread()
99 if (!gpiod_get_value(priv->gpio_headset_detect)) { in headset_det_irq_thread()
102 gpiod_set_value(priv->gpio_earpath_sel, 0); in headset_det_irq_thread()
[all …]
/openbmc/linux/sound/soc/intel/catpt/
H A Dpcm.c1 // SPDX-License-Identifier: GPL-2.0-only
81 type = cpu_dai->driver->id; in catpt_get_stream_template()
86 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template()
90 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template()
105 spin_lock(&cdev->list_lock); in catpt_stream_find()
106 list_for_each_entry(pos, &cdev->stream_list, node) { in catpt_stream_find()
107 if (pos->info.stream_hw_id == stream_hw_id) { in catpt_stream_find()
113 spin_unlock(&cdev->list_lock); in catpt_stream_find()
122 memcpy_fromio(&pos, cdev->lpe_ba + stream->info.read_pos_regaddr, in catpt_stream_read_position()
135 offset = stream->info.volume_regaddr[channel]; in catpt_stream_volume()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dtda1997x.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/v4l2-dv-timings.h>
19 #include <media/v4l2-ctrls.h>
20 #include <media/v4l2-device.h>
21 #include <media/v4l2-dv-timings.h>
22 #include <media/v4l2-event.h>
23 #include <media/v4l2-fwnode.h>
27 #include <sound/pcm.h>
31 #include <dt-bindings/media/tda1997x.h>
38 static int debug;
[all …]
/openbmc/linux/sound/soc/amd/
H A Dacp-pcm-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * AMD ALSA SoC PCM Driver for ACP 2.x
5 * Copyright 2014-2015 Advanced Micro Devices, Inc.
129 * Configure a given dma channel parameters - enable/disable,
170 acp_reg_write(descr_info->src, acp_mmio, mmACP_SRBM_Targ_Idx_Data); in config_dma_descriptor_in_sram()
173 acp_reg_write(descr_info->dest, acp_mmio, mmACP_SRBM_Targ_Idx_Data); in config_dma_descriptor_in_sram()
177 acp_reg_write(descr_info->xfer_val, acp_mmio, mmACP_SRBM_Targ_Idx_Data); in config_dma_descriptor_in_sram()
183 int ret; in pre_config_reset()
200 * system memory <-> ACP SRAM
203 u32 size, int direction, in set_acp_sysmem_dma_descriptors()
[all …]
/openbmc/linux/drivers/media/pci/cx18/
H A Dcx18-streams.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Derived from ivtv-streams.c
11 #include "cx18-driver.h"
12 #include "cx18-io.h"
13 #include "cx18-fileops.h"
14 #include "cx18-mailbox.h"
15 #include "cx18-i2c.h"
16 #include "cx18-queue.h"
17 #include "cx18-ioctl.h"
18 #include "cx18-streams.h"
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>
8 Copyright (c) 2005-2009 Michael Buesch <m@bues.ch>
11 Copyright (c) 2010-2011 Rafał Miłecki <zajec5@gmail.com>
17 driver Copyright(c) 2003 - 2004 Intel Corporation.
31 #include <linux/dma-mapping.h>
75 static int modparam_bad_frames_preempt;
76 module_param_named(bad_frames_preempt, modparam_bad_frames_preempt, int, 0444);
84 static int modparam_hwpctl;
85 module_param_named(hwpctl, modparam_hwpctl, int, 0444);
[all …]
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_hdmi.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * and transfers them over an internal MAI (multi-channel audio
50 #include <sound/hdmi-codec.h>
129 unsigned int bpc, enum vc4_hdmi_output_format fmt);
133 struct drm_display_info *display = &vc4_hdmi->connector.display_info; in vc4_hdmi_supports_scrambling()
135 lockdep_assert_held(&vc4_hdmi->mutex); in vc4_hdmi_supports_scrambling()
137 if (!display->is_hdmi) in vc4_hdmi_supports_scrambling()
140 if (!display->hdmi.scdc.supported || in vc4_hdmi_supports_scrambling()
141 !display->hdmi.scdc.scrambling.supported) in vc4_hdmi_supports_scrambling()
148 unsigned int bpc, in vc4_hdmi_mode_needs_scrambling()
[all …]
/openbmc/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra210-smaug.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/mfd/max77620.h>
6 #include <dt-bindings/pinctrl/pinctrl-tegra.h>
12 compatible = "google,smaug-rev8", "google,smaug-rev7",
13 "google,smaug-rev6", "google,smaug-rev5",
14 "google,smaug-rev4", "google,smaug-rev3",
15 "google,smaug-rev2", "google,smaug-rev1",
25 stdout-path = "serial0:115200n8";
[all …]

12