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
2022d24e
Commit
2022d24e
authored
Feb 10, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
parents
388f7b1d
41d80025
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+4
-4
No files found.
sound/soc/soc-dapm.c
View file @
2022d24e
...
@@ -310,7 +310,7 @@ struct dapm_kcontrol_data {
...
@@ -310,7 +310,7 @@ struct dapm_kcontrol_data {
};
};
static
int
dapm_kcontrol_data_alloc
(
struct
snd_soc_dapm_widget
*
widget
,
static
int
dapm_kcontrol_data_alloc
(
struct
snd_soc_dapm_widget
*
widget
,
struct
snd_kcontrol
*
kcontrol
)
struct
snd_kcontrol
*
kcontrol
,
const
char
*
ctrl_name
)
{
{
struct
dapm_kcontrol_data
*
data
;
struct
dapm_kcontrol_data
*
data
;
struct
soc_mixer_control
*
mc
;
struct
soc_mixer_control
*
mc
;
...
@@ -333,7 +333,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
...
@@ -333,7 +333,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
if
(
mc
->
autodisable
)
{
if
(
mc
->
autodisable
)
{
struct
snd_soc_dapm_widget
template
;
struct
snd_soc_dapm_widget
template
;
name
=
kasprintf
(
GFP_KERNEL
,
"%s %s"
,
kcontrol
->
id
.
name
,
name
=
kasprintf
(
GFP_KERNEL
,
"%s %s"
,
ctrl_
name
,
"Autodisable"
);
"Autodisable"
);
if
(
!
name
)
{
if
(
!
name
)
{
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
...
@@ -371,7 +371,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
...
@@ -371,7 +371,7 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
if
(
e
->
autodisable
)
{
if
(
e
->
autodisable
)
{
struct
snd_soc_dapm_widget
template
;
struct
snd_soc_dapm_widget
template
;
name
=
kasprintf
(
GFP_KERNEL
,
"%s %s"
,
kcontrol
->
id
.
name
,
name
=
kasprintf
(
GFP_KERNEL
,
"%s %s"
,
ctrl_
name
,
"Autodisable"
);
"Autodisable"
);
if
(
!
name
)
{
if
(
!
name
)
{
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
...
@@ -871,7 +871,7 @@ static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w,
...
@@ -871,7 +871,7 @@ static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w,
kcontrol
->
private_free
=
dapm_kcontrol_free
;
kcontrol
->
private_free
=
dapm_kcontrol_free
;
ret
=
dapm_kcontrol_data_alloc
(
w
,
kcontrol
);
ret
=
dapm_kcontrol_data_alloc
(
w
,
kcontrol
,
name
);
if
(
ret
)
{
if
(
ret
)
{
snd_ctl_free_one
(
kcontrol
);
snd_ctl_free_one
(
kcontrol
);
goto
exit_free
;
goto
exit_free
;
...
...
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