Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0c7985e1
Commit
0c7985e1
authored
Sep 13, 2021
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge existing fixes from asoc/for-5.15
parents
6880fa6c
7bd5d979
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
69 additions
and
35 deletions
+69
-35
MAINTAINERS
MAINTAINERS
+2
-1
sound/soc/fsl/fsl_esai.c
sound/soc/fsl/fsl_esai.c
+10
-6
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_micfil.c
+10
-5
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.c
+9
-5
sound/soc/fsl/fsl_spdif.c
sound/soc/fsl/fsl_spdif.c
+9
-5
sound/soc/fsl/fsl_xcvr.c
sound/soc/fsl/fsl_xcvr.c
+10
-5
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw.c
+5
-0
sound/soc/mediatek/Kconfig
sound/soc/mediatek/Kconfig
+3
-0
sound/soc/mediatek/common/mtk-afe-fe-dai.c
sound/soc/mediatek/common/mtk-afe-fe-dai.c
+11
-8
No files found.
MAINTAINERS
View file @
0c7985e1
...
...
@@ -17891,7 +17891,8 @@ M: Olivier Moysan <olivier.moysan@foss.st.com>
M: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
L: alsa-devel@alsa-project.org (moderated for non-subscribers)
S: Maintained
F: Documentation/devicetree/bindings/iio/adc/st,stm32-*.yaml
F: Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
F: Documentation/devicetree/bindings/sound/st,stm32-*.yaml
F: sound/soc/stm/
STM32 TIMER/LPTIMER DRIVERS
...
...
sound/soc/fsl/fsl_esai.c
View file @
0c7985e1
...
...
@@ -1073,6 +1073,16 @@ static int fsl_esai_probe(struct platform_device *pdev)
if
(
ret
<
0
)
goto
err_pm_get_sync
;
/*
* Register platform component before registering cpu dai for there
* is not defer probe for platform component in snd_soc_add_pcm_runtime().
*/
ret
=
imx_pcm_dma_init
(
pdev
,
IMX_ESAI_DMABUF_SIZE
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"failed to init imx pcm dma: %d
\n
"
,
ret
);
goto
err_pm_get_sync
;
}
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_esai_component
,
&
fsl_esai_dai
,
1
);
if
(
ret
)
{
...
...
@@ -1082,12 +1092,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
INIT_WORK
(
&
esai_priv
->
work
,
fsl_esai_hw_reset
);
ret
=
imx_pcm_dma_init
(
pdev
,
IMX_ESAI_DMABUF_SIZE
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"failed to init imx pcm dma: %d
\n
"
,
ret
);
goto
err_pm_get_sync
;
}
return
ret
;
err_pm_get_sync:
...
...
sound/soc/fsl/fsl_micfil.c
View file @
0c7985e1
...
...
@@ -737,18 +737,23 @@ static int fsl_micfil_probe(struct platform_device *pdev)
pm_runtime_enable
(
&
pdev
->
dev
);
regcache_cache_only
(
micfil
->
regmap
,
true
);
/*
* Register platform component before registering cpu dai for there
* is not defer probe for platform component in snd_soc_add_pcm_runtime().
*/
ret
=
devm_snd_dmaengine_pcm_register
(
&
pdev
->
dev
,
NULL
,
0
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"failed to pcm register
\n
"
);
return
ret
;
}
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_micfil_component
,
&
fsl_micfil_dai
,
1
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"failed to register component %s
\n
"
,
fsl_micfil_component
.
name
);
return
ret
;
}
ret
=
devm_snd_dmaengine_pcm_register
(
&
pdev
->
dev
,
NULL
,
0
);
if
(
ret
)
dev_err
(
&
pdev
->
dev
,
"failed to pcm register
\n
"
);
return
ret
;
}
...
...
sound/soc/fsl/fsl_sai.c
View file @
0c7985e1
...
...
@@ -1152,11 +1152,10 @@ static int fsl_sai_probe(struct platform_device *pdev)
if
(
ret
<
0
)
goto
err_pm_get_sync
;
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_component
,
&
sai
->
cpu_dai_drv
,
1
);
if
(
ret
)
goto
err_pm_get_sync
;
/*
* Register platform component before registering cpu dai for there
* is not defer probe for platform component in snd_soc_add_pcm_runtime().
*/
if
(
sai
->
soc_data
->
use_imx_pcm
)
{
ret
=
imx_pcm_dma_init
(
pdev
,
IMX_SAI_DMABUF_SIZE
);
if
(
ret
)
...
...
@@ -1167,6 +1166,11 @@ static int fsl_sai_probe(struct platform_device *pdev)
goto
err_pm_get_sync
;
}
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_component
,
&
sai
->
cpu_dai_drv
,
1
);
if
(
ret
)
goto
err_pm_get_sync
;
return
ret
;
err_pm_get_sync:
...
...
sound/soc/fsl/fsl_spdif.c
View file @
0c7985e1
...
...
@@ -1434,16 +1434,20 @@ static int fsl_spdif_probe(struct platform_device *pdev)
pm_runtime_enable
(
&
pdev
->
dev
);
regcache_cache_only
(
spdif_priv
->
regmap
,
true
);
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_spdif_component
,
&
spdif_priv
->
cpu_dai_drv
,
1
);
/*
* Register platform component before registering cpu dai for there
* is not defer probe for platform component in snd_soc_add_pcm_runtime().
*/
ret
=
imx_pcm_dma_init
(
pdev
,
IMX_SPDIF_DMABUF_SIZE
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"failed to register DAI: %d
\n
"
,
ret
);
dev_err
_probe
(
&
pdev
->
dev
,
ret
,
"imx_pcm_dma_init failed
\n
"
);
goto
err_pm_disable
;
}
ret
=
imx_pcm_dma_init
(
pdev
,
IMX_SPDIF_DMABUF_SIZE
);
ret
=
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
fsl_spdif_component
,
&
spdif_priv
->
cpu_dai_drv
,
1
);
if
(
ret
)
{
dev_err
_probe
(
&
pdev
->
dev
,
ret
,
"imx_pcm_dma_init failed
\n
"
);
dev_err
(
&
pdev
->
dev
,
"failed to register DAI: %d
\n
"
,
ret
);
goto
err_pm_disable
;
}
...
...
sound/soc/fsl/fsl_xcvr.c
View file @
0c7985e1
...
...
@@ -1215,18 +1215,23 @@ static int fsl_xcvr_probe(struct platform_device *pdev)
pm_runtime_enable
(
dev
);
regcache_cache_only
(
xcvr
->
regmap
,
true
);
/*
* Register platform component before registering cpu dai for there
* is not defer probe for platform component in snd_soc_add_pcm_runtime().
*/
ret
=
devm_snd_dmaengine_pcm_register
(
dev
,
NULL
,
0
);
if
(
ret
)
{
dev_err
(
dev
,
"failed to pcm register
\n
"
);
return
ret
;
}
ret
=
devm_snd_soc_register_component
(
dev
,
&
fsl_xcvr_comp
,
&
fsl_xcvr_dai
,
1
);
if
(
ret
)
{
dev_err
(
dev
,
"failed to register component %s
\n
"
,
fsl_xcvr_comp
.
name
);
return
ret
;
}
ret
=
devm_snd_dmaengine_pcm_register
(
dev
,
NULL
,
0
);
if
(
ret
)
dev_err
(
dev
,
"failed to pcm register
\n
"
);
return
ret
;
}
...
...
sound/soc/intel/boards/sof_sdw.c
View file @
0c7985e1
...
...
@@ -929,6 +929,11 @@ static int create_sdw_dailink(struct snd_soc_card *card,
cpus
+
*
cpu_id
,
cpu_dai_num
,
codecs
,
codec_num
,
NULL
,
&
sdw_ops
);
/*
* SoundWire DAILINKs use 'stream' functions and Bank Switch operations
* based on wait_for_completion(), tag them as 'nonatomic'.
*/
dai_links
[
*
be_index
].
nonatomic
=
true
;
ret
=
set_codec_init_func
(
card
,
link
,
dai_links
+
(
*
be_index
)
++
,
playback
,
group_id
);
...
...
sound/soc/mediatek/Kconfig
View file @
0c7985e1
# SPDX-License-Identifier: GPL-2.0-only
config SND_SOC_MEDIATEK
tristate
select REGMAP_MMIO
config SND_SOC_MT2701
tristate "ASoC support for Mediatek MT2701 chip"
...
...
@@ -188,7 +189,9 @@ config SND_SOC_MT8192_MT6359_RT1015_RT5682
config SND_SOC_MT8195
tristate "ASoC support for Mediatek MT8195 chip"
depends on ARCH_MEDIATEK || COMPILE_TEST
depends on COMMON_CLK
select SND_SOC_MEDIATEK
select MFD_SYSCON if SND_SOC_MT6359
help
This adds ASoC platform driver support for Mediatek MT8195 chip
that can be used with other codecs.
...
...
sound/soc/mediatek/common/mtk-afe-fe-dai.c
View file @
0c7985e1
...
...
@@ -334,9 +334,11 @@ int mtk_afe_suspend(struct snd_soc_component *component)
devm_kcalloc
(
dev
,
afe
->
reg_back_up_list_num
,
sizeof
(
unsigned
int
),
GFP_KERNEL
);
for
(
i
=
0
;
i
<
afe
->
reg_back_up_list_num
;
i
++
)
regmap_read
(
regmap
,
afe
->
reg_back_up_list
[
i
],
&
afe
->
reg_back_up
[
i
]);
if
(
afe
->
reg_back_up
)
{
for
(
i
=
0
;
i
<
afe
->
reg_back_up_list_num
;
i
++
)
regmap_read
(
regmap
,
afe
->
reg_back_up_list
[
i
],
&
afe
->
reg_back_up
[
i
]);
}
afe
->
suspended
=
true
;
afe
->
runtime_suspend
(
dev
);
...
...
@@ -356,12 +358,13 @@ int mtk_afe_resume(struct snd_soc_component *component)
afe
->
runtime_resume
(
dev
);
if
(
!
afe
->
reg_back_up
)
if
(
!
afe
->
reg_back_up
)
{
dev_dbg
(
dev
,
"%s no reg_backup
\n
"
,
__func__
);
for
(
i
=
0
;
i
<
afe
->
reg_back_up_list_num
;
i
++
)
mtk_regmap_write
(
regmap
,
afe
->
reg_back_up_list
[
i
],
afe
->
reg_back_up
[
i
]);
}
else
{
for
(
i
=
0
;
i
<
afe
->
reg_back_up_list_num
;
i
++
)
mtk_regmap_write
(
regmap
,
afe
->
reg_back_up_list
[
i
],
afe
->
reg_back_up
[
i
]);
}
afe
->
suspended
=
false
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment