Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Sm8150 Mainline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pan Ortiz
Sm8150 Mainline
Commits
d0023a57
Commit
d0023a57
authored
1 year ago
by
map220v
Committed by
Viola Guerrera
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ASoC: qcom: sm8150: Fix compilation in v6.7.0
parent
dfcaca00
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/qcom/sm8150.c
+18
-17
18 additions, 17 deletions
sound/soc/qcom/sm8150.c
with
18 additions
and
17 deletions
sound/soc/qcom/sm8150.c
+
18
−
17
View file @
d0023a57
...
...
@@ -3,6 +3,7 @@
* Copyright (c) 2022, The Linux Foundation. All rights reserved.
*/
#include
<dt-bindings/sound/qcom,q6afe.h>
#include
<linux/module.h>
#include
<linux/platform_device.h>
#include
<linux/of_device.h>
...
...
@@ -63,8 +64,8 @@ static int sm8150_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
static
int
sm8150_slim_snd_hw_params
(
struct
snd_pcm_substream
*
substream
,
struct
snd_pcm_hw_params
*
params
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
codec_dai
;
struct
sm8150_snd_data
*
pdata
=
snd_soc_card_get_drvdata
(
rtd
->
card
);
u32
rx_ch
[
SLIM_MAX_RX_PORTS
],
tx_ch
[
SLIM_MAX_TX_PORTS
];
...
...
@@ -103,8 +104,8 @@ static int sm8150_slim_snd_hw_params(struct snd_pcm_substream *substream,
static
int
sm8150_tdm_snd_hw_params
(
struct
snd_pcm_substream
*
substream
,
struct
snd_pcm_hw_params
*
params
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
codec_dai
;
int
ret
=
0
,
j
;
int
channels
,
slot_width
;
...
...
@@ -194,8 +195,8 @@ static int sm8150_tdm_snd_hw_params(struct snd_pcm_substream *substream,
static
int
sm8150_snd_hw_params
(
struct
snd_pcm_substream
*
substream
,
struct
snd_pcm_hw_params
*
params
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
int
ret
=
0
;
switch
(
cpu_dai
->
id
)
{
...
...
@@ -216,8 +217,8 @@ static int sm8150_snd_hw_params(struct snd_pcm_substream *substream,
static
int
sm8150_dai_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_soc_card
*
card
=
rtd
->
card
;
struct
snd_soc_dai
*
codec_dai
=
a
soc_rtd_to_codec
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
codec_dai
=
snd_
soc_rtd_to_codec
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
sm8150_snd_data
*
pdata
=
snd_soc_card_get_drvdata
(
card
);
struct
snd_soc_dai_link
*
link
=
rtd
->
dai_link
;
struct
snd_jack
*
jack
;
...
...
@@ -298,11 +299,11 @@ static int sm8150_snd_startup(struct snd_pcm_substream *substream)
{
unsigned
int
fmt
=
SND_SOC_DAIFMT_CBS_CFS
;
unsigned
int
codec_dai_fmt
=
SND_SOC_DAIFMT_CBS_CFS
;
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
snd_soc_card
*
card
=
rtd
->
card
;
struct
sm8150_snd_data
*
data
=
snd_soc_card_get_drvdata
(
card
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
codec_dai
=
a
soc_rtd_to_codec
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
codec_dai
=
snd_
soc_rtd_to_codec
(
rtd
,
0
);
switch
(
cpu_dai
->
id
)
{
case
QUATERNARY_TDM_RX_0
:
...
...
@@ -326,10 +327,10 @@ static int sm8150_snd_startup(struct snd_pcm_substream *substream)
static
void
sm8150_snd_shutdown
(
struct
snd_pcm_substream
*
substream
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
snd_soc_card
*
card
=
rtd
->
card
;
struct
sm8150_snd_data
*
data
=
snd_soc_card_get_drvdata
(
card
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
switch
(
cpu_dai
->
id
)
{
case
QUATERNARY_TDM_RX_0
:
...
...
@@ -351,9 +352,9 @@ static void sm8150_snd_shutdown(struct snd_pcm_substream *substream)
static
int
sm8150_snd_prepare
(
struct
snd_pcm_substream
*
substream
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
sm8150_snd_data
*
data
=
snd_soc_card_get_drvdata
(
rtd
->
card
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
sdw_stream_runtime
*
sruntime
=
data
->
sruntime
[
cpu_dai
->
id
];
int
ret
;
...
...
@@ -390,9 +391,9 @@ static int sm8150_snd_prepare(struct snd_pcm_substream *substream)
static
int
sm8150_snd_hw_free
(
struct
snd_pcm_substream
*
substream
)
{
struct
snd_soc_pcm_runtime
*
rtd
=
a
soc_substream_to_rtd
(
substream
);
struct
snd_soc_pcm_runtime
*
rtd
=
snd_
soc_substream_to_rtd
(
substream
);
struct
sm8150_snd_data
*
data
=
snd_soc_card_get_drvdata
(
rtd
->
card
);
struct
snd_soc_dai
*
cpu_dai
=
a
soc_rtd_to_cpu
(
rtd
,
0
);
struct
snd_soc_dai
*
cpu_dai
=
snd_
soc_rtd_to_cpu
(
rtd
,
0
);
struct
sdw_stream_runtime
*
sruntime
=
data
->
sruntime
[
cpu_dai
->
id
];
if
(
sruntime
&&
data
->
stream_prepared
[
cpu_dai
->
id
])
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment