Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
e6d0b92
ASoC: wm_adsp: Put debugfs_remove_recursive back in
charleskeepax Aug 24, 2021
cab2b9e
ASoC: mediatek: mt8195: update mediatek common driver
wenliangwu Aug 19, 2021
d62ad76
ASoC: mediatek: mt8195: support audsys clock control
wenliangwu Aug 19, 2021
1de9a54
ASoC: mediatek: mt8195: support etdm in platform driver
wenliangwu Aug 19, 2021
3de3eba
ASoC: mediatek: mt8195: support adda in platform driver
wenliangwu Aug 19, 2021
1f95c01
ASoC: mediatek: mt8195: support pcm in platform driver
wenliangwu Aug 19, 2021
6746cc8
ASoC: mediatek: mt8195: add platform driver
wenliangwu Aug 19, 2021
b5bac34
dt-bindings: mediatek: mt8195: add audio afe document
wenliangwu Aug 19, 2021
40d605d
ASoC: mediatek: mt8195: add machine driver with mt6359, rt1019 and rt…
wenliangwu Aug 19, 2021
e581e30
ASoC: mediatek: mt8195: add DPTX audio support
wenliangwu Aug 19, 2021
ef46cd4
ASoC: mediatek: mt8195: add HDMITX audio support
wenliangwu Aug 19, 2021
5f8c991
dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1019-rt5682 document
wenliangwu Aug 19, 2021
0be10d7
ASoC: SOF: intel: remove duplicate include
Aug 24, 2021
88939e7
Merge series "ASoC: mediatek: Add support for MT8195 SoC" from Trevor…
broonie Aug 25, 2021
2d02e7d
Merge branch 'for-5.14' of https://git.kernel.org/pub/scm/linux/kerne…
broonie Aug 25, 2021
dc2d01c
ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio st…
ujfalusi Aug 25, 2021
8d3019b
ASoC: rt5682: Fix the vol+ button detection issue
oortcomet Aug 25, 2021
a8946f0
ASoC: imx-rpmsg: change dev_err to dev_err_probe for -EPROBE_DEFER
TE-N-ShengjiuWang Aug 25, 2021
2fd276c
ASoC: dwc: Get IRQ optionally
rmurphy-arm Aug 25, 2021
67021f2
regmap: teach regmap to use raw spinlocks if requested in the config
vladimiroltean Aug 25, 2021
d287801
Merge series "Use raw spinlocks in the ls-extirq driver" from Vladimi…
broonie Aug 26, 2021
11a08e0
ASoC: mediatek: mt8195: Fix spelling mistake "bitwiedh" -> "bitwidth"
Aug 26, 2021
ca5537c
Merge remote-tracking branch 'regmap/for-5.15' into regmap-next
broonie Aug 26, 2021
023a3f3
ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatile
Aug 24, 2021
acc8b9d
ASoC: rockchip: spdif: Fix some coding style
Aug 24, 2021
c5d4f09
ASoC: rockchip: spdif: Add support for rk3568 spdif
Aug 24, 2021
e79ef3c
ASoC: dt-bindings: rockchip: Add compatible for rk3568 spdif
Aug 24, 2021
ebfea67
ASoC: rockchip: i2s: Add support for set bclk ratio
Aug 26, 2021
6b76bcc
ASoC: rockchip: i2s: Fixup clk div error
Aug 26, 2021
7a2df53
ASoC: rockchip: i2s: Improve dma data transfer efficiency
Aug 26, 2021
53ca9b9
ASoC: rockchip: i2s: Fix regmap_ops hang
Aug 26, 2021
296713a
ASoC: dt-bindings: rockchip: Document reset property for i2s
Aug 26, 2021
1bf5684
ASoC: rockchip: i2s: Fixup config for DAIFMT_DSP_A/B
Aug 26, 2021
4455f26
ASoC: rockchip: i2s: Make playback/capture optional
Aug 26, 2021
f005dc6
ASoC: rockchip: i2s: Add compatible for more SoCs
Aug 26, 2021
d5ceed0
ASoC: dt-bindings: rockchip: Add compatible strings for more SoCs
Aug 26, 2021
917f077
ASoC: rockchip: i2s: Add support for frame inversion
Aug 26, 2021
dac825b
Merge series "Patches to update for rockchip spdif" from Sugar Zhang …
broonie Aug 26, 2021
515b436
Merge series "Patches to update for rockchip i2s" from Sugar Zhang <s…
broonie Aug 26, 2021
2eaf163
ALSA: hda: Disable runtime resume at shutdown
tiwai Aug 26, 2021
7a6a723
ASoC: wcd9335: Fix a double irq free in the remove function
tititiou36 Aug 16, 2021
fc6fc81
ASoC: wcd9335: Fix a memory leak in the error handling path of the pr…
tititiou36 Aug 16, 2021
d3efd26
ASoC: wcd9335: Disable irq on slave ports in the remove function
tititiou36 Aug 16, 2021
0c75fc7
ASoC: soc-pcm: protect BE dailink state changes in trigger
plbossart Aug 17, 2021
6479f75
ASoC: soc-pcm: test refcount before triggering
plbossart Aug 17, 2021
52c64e5
Merge series "ASoC: wcd9335: Firx some resources leak in the probe an…
broonie Aug 26, 2021
f3eef46
ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
Aug 27, 2021
4267c5a
ALSA: usb-audio: Work around for XRUN with low latency playback
tiwai Aug 27, 2021
424e531
ALSA: hda/cs8409: Ensure Type Detection is only run on startup when n…
Aug 27, 2021
ea41a49
ALSA: hda/cs8409: Initialize Codec only in init fixup.
Aug 27, 2021
4801bee
ALSA: usb-audio: Add lowlatency module option
tiwai Aug 29, 2021
f7b82b1
Merge branch 'for-linus' into for-next
tiwai Aug 30, 2021
3202e2f
ASoC: Revert PCM trigger changes
broonie Aug 30, 2021
a617f7d
Merge remote-tracking branch 'asoc/for-5.14' into asoc-linus
broonie Aug 30, 2021
38b7673
Merge remote-tracking branch 'asoc/for-5.15' into asoc-linus
broonie Aug 30, 2021
a8729ef
Merge tag 'asoc-v5.15' of https://git.kernel.org/pub/scm/linux/kernel…
tiwai Aug 30, 2021
cd5e4ef
ASoC: mediatek: mt8195: add MTK_PMIC_WRAP dependency
wenliangwu Aug 31, 2021
5f939f4
ASoC: audio-graph: respawn Platform Support
morimoto Aug 30, 2021
2a6a0a0
ASoC: samsung: s3c24xx_simtec: fix spelling mistake "devicec" -> "dev…
Aug 27, 2021
940ffa1
ASoC: mediatek: SND_SOC_MT8195 should depend on ARCH_MEDIATEK
geertu Aug 31, 2021
222039a
ASoC: dt-bindings: mt8195: remove dependent headers in the example
wenliangwu Aug 31, 2021
0f2ef91
Merge tag 'asoc-v5.15' into asoc-5.15
broonie Sep 1, 2021
0866d64
ASoC: rt5682: fix headset background noise when S3 state
shumingfan Sep 1, 2021
c8b177b
ALSA: usb-audio: Add registration quirk for JBL Quantum 800
puleglot Aug 31, 2021
4f89ff0
ASoC: dt-bindings: fsl_rpmsg: Add compatible string for i.MX8ULP
TE-N-ShengjiuWang Sep 2, 2021
b3dded7
ASoC: Intel: boards: Fix CONFIG_SND_SOC_SDW_MOCKUP select
nathanchance Sep 2, 2021
7eac1e2
ASoC: mt8195: correct the dts parsing logic about DPTX and HDMITX
wenliangwu Sep 3, 2021
fcb958e
ASoC: rockchip: i2s: Fix concurrency between tx/rx
Sep 3, 2021
489d3a1
Merge remote-tracking branch 'asoc/for-5.14' into asoc-linus
broonie Sep 3, 2021
bf342ee
Merge remote-tracking branch 'asoc/for-5.15' into asoc-linus
broonie Sep 3, 2021
8491f59
ALSA: vx222: fix null-ptr-deref
lzto Sep 7, 2021
9d2e19e
ALSA: gus: Fix repeated probes of snd_gus_create()
tiwai Sep 7, 2021
c5433f0
ALSA: gus: Fix repeated probe for ISA interwave card
tiwai Sep 7, 2021
2a41bd4
Merge remote-tracking branch 'regmap/for-next' into sound/upstream-20…
plbossart Sep 7, 2021
090621b
Merge remote-tracking branch 'takashi/for-next' into sound/upstream-2…
plbossart Sep 7, 2021
1c4a746
Merge remote-tracking branch 'soundwire/next' into sound/upstream-202…
plbossart Sep 7, 2021
58852b2
Merge branch 'sound/upstream-20210907' into merge/sound-upstream-2021…
plbossart Sep 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ properties:
- fsl,imx8mn-rpmsg-audio
- fsl,imx8mm-rpmsg-audio
- fsl,imx8mp-rpmsg-audio
- fsl,imx8ulp-rpmsg-audio

model:
$ref: /schemas/types.yaml#/definitions/string
Expand Down
182 changes: 182 additions & 0 deletions Documentation/devicetree/bindings/sound/mt8195-afe-pcm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Mediatek AFE PCM controller for mt8195

maintainers:
- Trevor Wu <trevor.wu@mediatek.com>

properties:
compatible:
const: mediatek,mt8195-audio

reg:
maxItems: 1

interrupts:
maxItems: 1

mediatek,topckgen:
$ref: "/schemas/types.yaml#/definitions/phandle"
description: The phandle of the mediatek topckgen controller

power-domains:
maxItems: 1

clocks:
items:
- description: 26M clock
- description: audio pll1 clock
- description: audio pll2 clock
- description: clock divider for i2si1_mck
- description: clock divider for i2si2_mck
- description: clock divider for i2so1_mck
- description: clock divider for i2so2_mck
- description: clock divider for dptx_mck
- description: a1sys hoping clock
- description: audio intbus clock
- description: audio hires clock
- description: audio local bus clock
- description: mux for dptx_mck
- description: mux for i2so1_mck
- description: mux for i2so2_mck
- description: mux for i2si1_mck
- description: mux for i2si2_mck
- description: audio infra 26M clock
- description: infra bus clock

clock-names:
items:
- const: clk26m
- const: apll1_ck
- const: apll2_ck
- const: apll12_div0
- const: apll12_div1
- const: apll12_div2
- const: apll12_div3
- const: apll12_div9
- const: a1sys_hp_sel
- const: aud_intbus_sel
- const: audio_h_sel
- const: audio_local_bus_sel
- const: dptx_m_sel
- const: i2so1_m_sel
- const: i2so2_m_sel
- const: i2si1_m_sel
- const: i2si2_m_sel
- const: infra_ao_audio_26m_b
- const: scp_adsp_audiodsp

mediatek,etdm-in1-chn-disabled:
$ref: /schemas/types.yaml#/definitions/uint8-array
maxItems: 24
description: Specify which input channel should be disabled.

mediatek,etdm-in2-chn-disabled:
$ref: /schemas/types.yaml#/definitions/uint8-array
maxItems: 16
description: Specify which input channel should be disabled.

patternProperties:
"^mediatek,etdm-in[1-2]-mclk-always-on-rate-hz$":
description: Specify etdm in mclk output rate for always on case.

"^mediatek,etdm-out[1-3]-mclk-always-on-rate-hz$":
description: Specify etdm out mclk output rate for always on case.

"^mediatek,etdm-in[1-2]-multi-pin-mode$":
type: boolean
description: if present, the etdm data mode is I2S.

"^mediatek,etdm-out[1-3]-multi-pin-mode$":
type: boolean
description: if present, the etdm data mode is I2S.

"^mediatek,etdm-in[1-2]-cowork-source$":
$ref: /schemas/types.yaml#/definitions/uint32
description: |
etdm modules can share the same external clock pin. Specify
which etdm clock source is required by this etdm in moudule.
enum:
- 0 # etdm1_in
- 1 # etdm2_in
- 2 # etdm1_out
- 3 # etdm2_out

"^mediatek,etdm-out[1-2]-cowork-source$":
$ref: /schemas/types.yaml#/definitions/uint32
description: |
etdm modules can share the same external clock pin. Specify
which etdm clock source is required by this etdm out moudule.
enum:
- 0 # etdm1_in
- 1 # etdm2_in
- 2 # etdm1_out
- 3 # etdm2_out

required:
- compatible
- reg
- interrupts
- mediatek,topckgen
- power-domains
- clocks
- clock-names

additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

afe: mt8195-afe-pcm@10890000 {
compatible = "mediatek,mt8195-audio";
reg = <0x10890000 0x10000>;
interrupts = <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH 0>;
mediatek,topckgen = <&topckgen>;
power-domains = <&spm 7>; //MT8195_POWER_DOMAIN_AUDIO
clocks = <&clk26m>,
<&topckgen 163>, //CLK_TOP_APLL1
<&topckgen 166>, //CLK_TOP_APLL2
<&topckgen 233>, //CLK_TOP_APLL12_DIV0
<&topckgen 234>, //CLK_TOP_APLL12_DIV1
<&topckgen 235>, //CLK_TOP_APLL12_DIV2
<&topckgen 236>, //CLK_TOP_APLL12_DIV3
<&topckgen 238>, //CLK_TOP_APLL12_DIV9
<&topckgen 100>, //CLK_TOP_A1SYS_HP_SEL
<&topckgen 33>, //CLK_TOP_AUD_INTBUS_SEL
<&topckgen 34>, //CLK_TOP_AUDIO_H_SEL
<&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS_SEL
<&topckgen 98>, //CLK_TOP_DPTX_M_SEL
<&topckgen 94>, //CLK_TOP_I2SO1_M_SEL
<&topckgen 95>, //CLK_TOP_I2SO2_M_SEL
<&topckgen 96>, //CLK_TOP_I2SI1_M_SEL
<&topckgen 97>, //CLK_TOP_I2SI2_M_SEL
<&infracfg_ao 50>, //CLK_INFRA_AO_AUDIO_26M_B
<&scp_adsp 0>; //CLK_SCP_ADSP_AUDIODSP
clock-names = "clk26m",
"apll1_ck",
"apll2_ck",
"apll12_div0",
"apll12_div1",
"apll12_div2",
"apll12_div3",
"apll12_div9",
"a1sys_hp_sel",
"aud_intbus_sel",
"audio_h_sel",
"audio_local_bus_sel",
"dptx_m_sel",
"i2so1_m_sel",
"i2so2_m_sel",
"i2si1_m_sel",
"i2si2_m_sel",
"infra_ao_audio_26m_b",
"scp_adsp_audiodsp";
};

...
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/mt8195-mt6359-rt1019-rt5682.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Mediatek MT8195 with MT6359, RT1019 and RT5682 ASoC sound card driver

maintainers:
- Trevor Wu <trevor.wu@mediatek.com>

description:
This binding describes the MT8195 sound card.

properties:
compatible:
const: mediatek,mt8195_mt6359_rt1019_rt5682

mediatek,platform:
$ref: "/schemas/types.yaml#/definitions/phandle"
description: The phandle of MT8195 ASoC platform.

mediatek,dptx-codec:
$ref: "/schemas/types.yaml#/definitions/phandle"
description: The phandle of MT8195 Display Port Tx codec node.

mediatek,hdmi-codec:
$ref: "/schemas/types.yaml#/definitions/phandle"
description: The phandle of MT8195 HDMI codec node.

additionalProperties: false

required:
- compatible
- mediatek,platform

examples:
- |

sound: mt8195-sound {
compatible = "mediatek,mt8195_mt6359_rt1019_rt5682";
mediatek,platform = <&afe>;
pinctrl-names = "default";
pinctrl-0 = <&aud_pins_default>;
};

...
11 changes: 11 additions & 0 deletions Documentation/devicetree/bindings/sound/rockchip-i2s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ properties:
- items:
- enum:
- rockchip,px30-i2s
- rockchip,rk1808-i2s
- rockchip,rk3036-i2s
- rockchip,rk3128-i2s
- rockchip,rk3188-i2s
- rockchip,rk3228-i2s
- rockchip,rk3288-i2s
Expand All @@ -29,6 +31,7 @@ properties:
- rockchip,rk3366-i2s
- rockchip,rk3368-i2s
- rockchip,rk3399-i2s
- rockchip,rv1126-i2s
- const: rockchip,rk3066-i2s

reg:
Expand Down Expand Up @@ -61,6 +64,14 @@ properties:
power-domains:
maxItems: 1

reset-names:
items:
- const: reset-m
- const: reset-h

resets:
maxItems: 2

rockchip,capture-channels:
$ref: /schemas/types.yaml#/definitions/uint32
default: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
- const: rockchip,rk3366-spdif
- const: rockchip,rk3368-spdif
- const: rockchip,rk3399-spdif
- const: rockchip,rk3568-spdif
- items:
- enum:
- rockchip,rk3188-spdif
Expand Down
4 changes: 4 additions & 0 deletions drivers/base/regmap/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ struct regmap {
spinlock_t spinlock;
unsigned long spinlock_flags;
};
struct {
raw_spinlock_t raw_spinlock;
unsigned long raw_spinlock_flags;
};
};
regmap_lock lock;
regmap_unlock unlock;
Expand Down
35 changes: 30 additions & 5 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,23 @@ __releases(&map->spinlock)
spin_unlock_irqrestore(&map->spinlock, map->spinlock_flags);
}

static void regmap_lock_raw_spinlock(void *__map)
__acquires(&map->raw_spinlock)
{
struct regmap *map = __map;
unsigned long flags;

raw_spin_lock_irqsave(&map->raw_spinlock, flags);
map->raw_spinlock_flags = flags;
}

static void regmap_unlock_raw_spinlock(void *__map)
__releases(&map->raw_spinlock)
{
struct regmap *map = __map;
raw_spin_unlock_irqrestore(&map->raw_spinlock, map->raw_spinlock_flags);
}

static void dev_get_regmap_release(struct device *dev, void *res)
{
/*
Expand Down Expand Up @@ -770,11 +787,19 @@ struct regmap *__regmap_init(struct device *dev,
} else {
if ((bus && bus->fast_io) ||
config->fast_io) {
spin_lock_init(&map->spinlock);
map->lock = regmap_lock_spinlock;
map->unlock = regmap_unlock_spinlock;
lockdep_set_class_and_name(&map->spinlock,
lock_key, lock_name);
if (config->use_raw_spinlock) {
raw_spin_lock_init(&map->raw_spinlock);
map->lock = regmap_lock_raw_spinlock;
map->unlock = regmap_unlock_raw_spinlock;
lockdep_set_class_and_name(&map->raw_spinlock,
lock_key, lock_name);
} else {
spin_lock_init(&map->spinlock);
map->lock = regmap_lock_spinlock;
map->unlock = regmap_unlock_spinlock;
lockdep_set_class_and_name(&map->spinlock,
lock_key, lock_name);
}
} else {
mutex_init(&map->mutex);
map->lock = regmap_lock_mutex;
Expand Down
2 changes: 2 additions & 0 deletions include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ typedef void (*regmap_unlock)(void *);
* @ranges: Array of configuration entries for virtual address ranges.
* @num_ranges: Number of range configuration entries.
* @use_hwlock: Indicate if a hardware spinlock should be used.
* @use_raw_spinlock: Indicate if a raw spinlock should be used.
* @hwlock_id: Specify the hardware spinlock id.
* @hwlock_mode: The hardware spinlock mode, should be HWLOCK_IRQSTATE,
* HWLOCK_IRQ or 0.
Expand Down Expand Up @@ -403,6 +404,7 @@ struct regmap_config {
unsigned int num_ranges;

bool use_hwlock;
bool use_raw_spinlock;
unsigned int hwlock_id;
unsigned int hwlock_mode;

Expand Down
2 changes: 1 addition & 1 deletion sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ static int snd_pcm_lib_ioctl_fifo_size(struct snd_pcm_substream *substream,
channels = params_channels(params);
frame_size = snd_pcm_format_size(format, channels);
if (frame_size > 0)
params->fifo_size /= (unsigned)frame_size;
params->fifo_size /= frame_size;
}
return 0;
}
Expand Down
Loading