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
nexedi
linux
Commits
d52dad0b
Commit
d52dad0b
authored
Jul 24, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
parents
523d939e
a6d4faeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
sound/soc/intel/skylake/skl-topology.c
sound/soc/intel/skylake/skl-topology.c
+9
-4
sound/soc/intel/skylake/skl-topology.h
sound/soc/intel/skylake/skl-topology.h
+1
-0
No files found.
sound/soc/intel/skylake/skl-topology.c
View file @
d52dad0b
...
...
@@ -448,7 +448,7 @@ static int skl_tplg_set_module_params(struct snd_soc_dapm_widget *w,
if
(
bc
->
set_params
==
SKL_PARAM_SET
)
{
ret
=
skl_set_module_params
(
ctx
,
(
u32
*
)
bc
->
params
,
bc
->
max
,
(
u32
*
)
bc
->
params
,
bc
->
size
,
bc
->
param_id
,
mconfig
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -483,7 +483,7 @@ static int skl_tplg_set_module_init_data(struct snd_soc_dapm_widget *w)
continue
;
mconfig
->
formats_config
.
caps
=
(
u32
*
)
&
bc
->
params
;
mconfig
->
formats_config
.
caps_size
=
bc
->
max
;
mconfig
->
formats_config
.
caps_size
=
bc
->
size
;
break
;
}
...
...
@@ -1102,7 +1102,7 @@ static int skl_tplg_tlv_control_get(struct snd_kcontrol *kcontrol,
if
(
w
->
power
)
skl_get_module_params
(
skl
->
skl_sst
,
(
u32
*
)
bc
->
params
,
bc
->
max
,
bc
->
param_id
,
mconfig
);
bc
->
size
,
bc
->
param_id
,
mconfig
);
/* decrement size for TLV header */
size
-=
2
*
sizeof
(
u32
);
...
...
@@ -1136,6 +1136,10 @@ static int skl_tplg_tlv_control_set(struct snd_kcontrol *kcontrol,
struct
skl
*
skl
=
get_skl_ctx
(
w
->
dapm
->
dev
);
if
(
ac
->
params
)
{
if
(
size
>
ac
->
max
)
return
-
EINVAL
;
ac
->
size
=
size
;
/*
* if the param_is is of type Vendor, firmware expects actual
* parameter id and size from the control.
...
...
@@ -1151,7 +1155,7 @@ static int skl_tplg_tlv_control_set(struct snd_kcontrol *kcontrol,
if
(
w
->
power
)
return
skl_set_module_params
(
skl
->
skl_sst
,
(
u32
*
)
ac
->
params
,
ac
->
max
,
(
u32
*
)
ac
->
params
,
ac
->
size
,
ac
->
param_id
,
mconfig
);
}
...
...
@@ -1683,6 +1687,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be,
ac
->
max
=
dfw_ac
->
max
;
ac
->
param_id
=
dfw_ac
->
param_id
;
ac
->
set_params
=
dfw_ac
->
set_params
;
ac
->
size
=
dfw_ac
->
max
;
if
(
ac
->
max
)
{
ac
->
params
=
(
char
*
)
devm_kzalloc
(
dev
,
ac
->
max
,
GFP_KERNEL
);
...
...
sound/soc/intel/skylake/skl-topology.h
View file @
d52dad0b
...
...
@@ -319,6 +319,7 @@ struct skl_algo_data {
u32
param_id
;
u32
set_params
;
u32
max
;
u32
size
;
char
*
params
;
};
...
...
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