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
81113108
Commit
81113108
authored
Aug 10, 2023
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
ASoC: Merge up fixes
For the benefit of CI
parents
59146c3c
e6475ce2
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
35 additions
and
19 deletions
+35
-19
sound/soc/codecs/max98363.c
sound/soc/codecs/max98363.c
+5
-4
sound/soc/codecs/rt5665.c
sound/soc/codecs/rt5665.c
+2
-0
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_micfil.c
+2
-2
sound/soc/fsl/fsl_micfil.h
sound/soc/fsl/fsl_micfil.h
+1
-1
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw.c
+1
-1
sound/soc/intel/boards/sof_sdw_cs42l42.c
sound/soc/intel/boards/sof_sdw_cs42l42.c
+3
-3
sound/soc/sof/intel/hda-dai-ops.c
sound/soc/sof/intel/hda-dai-ops.c
+10
-1
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/intel/hda-dai.c
+2
-3
sound/soc/sof/intel/hda.h
sound/soc/sof/intel/hda.h
+2
-0
sound/soc/sof/ipc3.c
sound/soc/sof/ipc3.c
+1
-1
sound/soc/sof/ipc4-topology.c
sound/soc/sof/ipc4-topology.c
+6
-3
No files found.
sound/soc/codecs/max98363.c
View file @
81113108
...
@@ -174,10 +174,10 @@ static int max98363_io_init(struct sdw_slave *slave)
...
@@ -174,10 +174,10 @@ static int max98363_io_init(struct sdw_slave *slave)
pm_runtime_get_noresume
(
dev
);
pm_runtime_get_noresume
(
dev
);
ret
=
regmap_read
(
max98363
->
regmap
,
MAX98363_R21FF_REV_ID
,
&
reg
);
ret
=
regmap_read
(
max98363
->
regmap
,
MAX98363_R21FF_REV_ID
,
&
reg
);
if
(
!
ret
)
{
if
(
!
ret
)
dev_info
(
dev
,
"Revision ID: %X
\n
"
,
reg
);
dev_info
(
dev
,
"Revision ID: %X
\n
"
,
reg
);
return
ret
;
else
}
goto
out
;
if
(
max98363
->
first_hw_init
)
{
if
(
max98363
->
first_hw_init
)
{
regcache_cache_bypass
(
max98363
->
regmap
,
false
);
regcache_cache_bypass
(
max98363
->
regmap
,
false
);
...
@@ -187,10 +187,11 @@ static int max98363_io_init(struct sdw_slave *slave)
...
@@ -187,10 +187,11 @@ static int max98363_io_init(struct sdw_slave *slave)
max98363
->
first_hw_init
=
true
;
max98363
->
first_hw_init
=
true
;
max98363
->
hw_init
=
true
;
max98363
->
hw_init
=
true
;
out:
pm_runtime_mark_last_busy
(
dev
);
pm_runtime_mark_last_busy
(
dev
);
pm_runtime_put_autosuspend
(
dev
);
pm_runtime_put_autosuspend
(
dev
);
return
0
;
return
ret
;
}
}
#define MAX98363_RATES SNDRV_PCM_RATE_8000_192000
#define MAX98363_RATES SNDRV_PCM_RATE_8000_192000
...
...
sound/soc/codecs/rt5665.c
View file @
81113108
...
@@ -4472,6 +4472,8 @@ static void rt5665_remove(struct snd_soc_component *component)
...
@@ -4472,6 +4472,8 @@ static void rt5665_remove(struct snd_soc_component *component)
struct
rt5665_priv
*
rt5665
=
snd_soc_component_get_drvdata
(
component
);
struct
rt5665_priv
*
rt5665
=
snd_soc_component_get_drvdata
(
component
);
regmap_write
(
rt5665
->
regmap
,
RT5665_RESET
,
0
);
regmap_write
(
rt5665
->
regmap
,
RT5665_RESET
,
0
);
regulator_bulk_disable
(
ARRAY_SIZE
(
rt5665
->
supplies
),
rt5665
->
supplies
);
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
...
...
sound/soc/fsl/fsl_micfil.c
View file @
81113108
// SPDX-License-Identifier: GPL-2.0
// SPDX-License-Identifier: GPL-2.0
OR BSD-3-Clause
// Copyright 2018 NXP
// Copyright 2018 NXP
#include <linux/bitfield.h>
#include <linux/bitfield.h>
...
@@ -1318,4 +1318,4 @@ module_platform_driver(fsl_micfil_driver);
...
@@ -1318,4 +1318,4 @@ module_platform_driver(fsl_micfil_driver);
MODULE_AUTHOR
(
"Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>"
);
MODULE_AUTHOR
(
"Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>"
);
MODULE_DESCRIPTION
(
"NXP PDM Microphone Interface (MICFIL) driver"
);
MODULE_DESCRIPTION
(
"NXP PDM Microphone Interface (MICFIL) driver"
);
MODULE_LICENSE
(
"
GPL v2
"
);
MODULE_LICENSE
(
"
Dual BSD/GPL
"
);
sound/soc/fsl/fsl_micfil.h
View file @
81113108
/* SPDX-License-Identifier: GPL-2.0 */
/* SPDX-License-Identifier: GPL-2.0
OR BSD-3-Clause
*/
/*
/*
* PDM Microphone Interface for the NXP i.MX SoC
* PDM Microphone Interface for the NXP i.MX SoC
* Copyright 2018 NXP
* Copyright 2018 NXP
...
...
sound/soc/intel/boards/sof_sdw.c
View file @
81113108
...
@@ -488,7 +488,7 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
...
@@ -488,7 +488,7 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Intel Corporation"
),
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Intel Corporation"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Lunar Lake Client Platform"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Lunar Lake Client Platform"
),
},
},
.
driver_data
=
(
void
*
)(
RT711_JD2
_100K
),
.
driver_data
=
(
void
*
)(
RT711_JD2
),
},
},
{}
{}
};
};
...
...
sound/soc/intel/boards/sof_sdw_cs42l42.c
View file @
81113108
...
@@ -99,9 +99,9 @@ static int cs42l42_rtd_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -99,9 +99,9 @@ static int cs42l42_rtd_init(struct snd_soc_pcm_runtime *rtd)
jack
=
&
ctx
->
sdw_headset
;
jack
=
&
ctx
->
sdw_headset
;
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_0
,
KEY_PLAYPAUSE
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_0
,
KEY_PLAYPAUSE
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_1
,
KEY_VO
ICECOMMAND
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_1
,
KEY_VO
LUMEUP
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_2
,
KEY_VOLUME
UP
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_2
,
KEY_VOLUME
DOWN
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_3
,
KEY_VO
LUMEDOWN
);
snd_jack_set_key
(
jack
->
jack
,
SND_JACK_BTN_3
,
KEY_VO
ICECOMMAND
);
ret
=
snd_soc_component_set_jack
(
component
,
jack
,
NULL
);
ret
=
snd_soc_component_set_jack
(
component
,
jack
,
NULL
);
...
...
sound/soc/sof/intel/hda-dai-ops.c
View file @
81113108
...
@@ -524,6 +524,7 @@ static const struct hda_dai_widget_dma_ops hda_ipc4_chain_dma_ops = {
...
@@ -524,6 +524,7 @@ static const struct hda_dai_widget_dma_ops hda_ipc4_chain_dma_ops = {
static
int
hda_ipc3_post_trigger
(
struct
snd_sof_dev
*
sdev
,
struct
snd_soc_dai
*
cpu_dai
,
static
int
hda_ipc3_post_trigger
(
struct
snd_sof_dev
*
sdev
,
struct
snd_soc_dai
*
cpu_dai
,
struct
snd_pcm_substream
*
substream
,
int
cmd
)
struct
snd_pcm_substream
*
substream
,
int
cmd
)
{
{
struct
hdac_ext_stream
*
hext_stream
=
hda_get_hext_stream
(
sdev
,
cpu_dai
,
substream
);
struct
snd_soc_dapm_widget
*
w
=
snd_soc_dai_get_widget
(
cpu_dai
,
substream
->
stream
);
struct
snd_soc_dapm_widget
*
w
=
snd_soc_dai_get_widget
(
cpu_dai
,
substream
->
stream
);
switch
(
cmd
)
{
switch
(
cmd
)
{
...
@@ -531,9 +532,17 @@ static int hda_ipc3_post_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *c
...
@@ -531,9 +532,17 @@ static int hda_ipc3_post_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *c
case
SNDRV_PCM_TRIGGER_STOP
:
case
SNDRV_PCM_TRIGGER_STOP
:
{
{
struct
snd_sof_dai_config_data
data
=
{
0
};
struct
snd_sof_dai_config_data
data
=
{
0
};
int
ret
;
data
.
dai_data
=
DMA_CHAN_INVALID
;
data
.
dai_data
=
DMA_CHAN_INVALID
;
return
hda_dai_config
(
w
,
SOF_DAI_CONFIG_FLAGS_HW_FREE
,
&
data
);
ret
=
hda_dai_config
(
w
,
SOF_DAI_CONFIG_FLAGS_HW_FREE
,
&
data
);
if
(
ret
<
0
)
return
ret
;
if
(
cmd
==
SNDRV_PCM_TRIGGER_STOP
)
return
hda_link_dma_cleanup
(
substream
,
hext_stream
,
cpu_dai
);
break
;
}
}
case
SNDRV_PCM_TRIGGER_PAUSE_PUSH
:
case
SNDRV_PCM_TRIGGER_PAUSE_PUSH
:
return
hda_dai_config
(
w
,
SOF_DAI_CONFIG_FLAGS_PAUSE
,
NULL
);
return
hda_dai_config
(
w
,
SOF_DAI_CONFIG_FLAGS_PAUSE
,
NULL
);
...
...
sound/soc/sof/intel/hda-dai.c
View file @
81113108
...
@@ -109,8 +109,7 @@ hda_dai_get_ops(struct snd_pcm_substream *substream, struct snd_soc_dai *cpu_dai
...
@@ -109,8 +109,7 @@ hda_dai_get_ops(struct snd_pcm_substream *substream, struct snd_soc_dai *cpu_dai
return
sdai
->
platform_private
;
return
sdai
->
platform_private
;
}
}
static
int
hda_link_dma_cleanup
(
struct
snd_pcm_substream
*
substream
,
int
hda_link_dma_cleanup
(
struct
snd_pcm_substream
*
substream
,
struct
hdac_ext_stream
*
hext_stream
,
struct
hdac_ext_stream
*
hext_stream
,
struct
snd_soc_dai
*
cpu_dai
)
struct
snd_soc_dai
*
cpu_dai
)
{
{
const
struct
hda_dai_widget_dma_ops
*
ops
=
hda_dai_get_ops
(
substream
,
cpu_dai
);
const
struct
hda_dai_widget_dma_ops
*
ops
=
hda_dai_get_ops
(
substream
,
cpu_dai
);
...
...
sound/soc/sof/intel/hda.h
View file @
81113108
...
@@ -984,5 +984,7 @@ const struct hda_dai_widget_dma_ops *
...
@@ -984,5 +984,7 @@ const struct hda_dai_widget_dma_ops *
hda_select_dai_widget_ops
(
struct
snd_sof_dev
*
sdev
,
struct
snd_sof_widget
*
swidget
);
hda_select_dai_widget_ops
(
struct
snd_sof_dev
*
sdev
,
struct
snd_sof_widget
*
swidget
);
int
hda_dai_config
(
struct
snd_soc_dapm_widget
*
w
,
unsigned
int
flags
,
int
hda_dai_config
(
struct
snd_soc_dapm_widget
*
w
,
unsigned
int
flags
,
struct
snd_sof_dai_config_data
*
data
);
struct
snd_sof_dai_config_data
*
data
);
int
hda_link_dma_cleanup
(
struct
snd_pcm_substream
*
substream
,
struct
hdac_ext_stream
*
hext_stream
,
struct
snd_soc_dai
*
cpu_dai
);
#endif
#endif
sound/soc/sof/ipc3.c
View file @
81113108
...
@@ -1001,7 +1001,7 @@ void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr,
...
@@ -1001,7 +1001,7 @@ void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr,
ipc3_log_header
(
sdev
->
dev
,
"ipc rx"
,
hdr
->
cmd
);
ipc3_log_header
(
sdev
->
dev
,
"ipc rx"
,
hdr
->
cmd
);
if
(
hdr
->
size
<
sizeof
(
hdr
)
||
hdr
->
size
>
SOF_IPC_MSG_MAX_SIZE
)
{
if
(
hdr
->
size
<
sizeof
(
*
hdr
)
||
hdr
->
size
>
SOF_IPC_MSG_MAX_SIZE
)
{
dev_err
(
sdev
->
dev
,
"The received message size is invalid: %u
\n
"
,
dev_err
(
sdev
->
dev
,
"The received message size is invalid: %u
\n
"
,
hdr
->
size
);
hdr
->
size
);
return
;
return
;
...
...
sound/soc/sof/ipc4-topology.c
View file @
81113108
...
@@ -1731,6 +1731,12 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
...
@@ -1731,6 +1731,12 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
*
ipc_config_size
=
ipc_size
;
*
ipc_config_size
=
ipc_size
;
/* update pipeline memory usage */
sof_ipc4_update_resource_usage
(
sdev
,
swidget
,
&
copier_data
->
base_config
);
/* update pipeline memory usage */
sof_ipc4_update_resource_usage
(
sdev
,
swidget
,
&
copier_data
->
base_config
);
/* copy IPC data */
/* copy IPC data */
memcpy
(
*
ipc_config_data
,
(
void
*
)
copier_data
,
sizeof
(
*
copier_data
));
memcpy
(
*
ipc_config_data
,
(
void
*
)
copier_data
,
sizeof
(
*
copier_data
));
if
(
gtw_cfg_config_length
)
if
(
gtw_cfg_config_length
)
...
@@ -1743,9 +1749,6 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
...
@@ -1743,9 +1749,6 @@ sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
gtw_cfg_config_length
,
gtw_cfg_config_length
,
&
ipc4_copier
->
dma_config_tlv
,
dma_config_tlv_size
);
&
ipc4_copier
->
dma_config_tlv
,
dma_config_tlv_size
);
/* update pipeline memory usage */
sof_ipc4_update_resource_usage
(
sdev
,
swidget
,
&
copier_data
->
base_config
);
/*
/*
* Restore gateway config length now that IPC payload is prepared. This avoids
* Restore gateway config length now that IPC payload is prepared. This avoids
* counting the DMA CONFIG TLV multiple times
* counting the DMA CONFIG TLV multiple times
...
...
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