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
0a81cbef
Commit
0a81cbef
authored
Aug 15, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
parents
543c6754
69128316
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+7
-5
No files found.
sound/soc/soc-dapm.c
View file @
0a81cbef
...
@@ -2860,12 +2860,14 @@ int snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol,
...
@@ -2860,12 +2860,14 @@ int snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol,
struct
snd_soc_dapm_context
*
dapm
=
snd_soc_dapm_kcontrol_dapm
(
kcontrol
);
struct
snd_soc_dapm_context
*
dapm
=
snd_soc_dapm_kcontrol_dapm
(
kcontrol
);
struct
soc_enum
*
e
=
(
struct
soc_enum
*
)
kcontrol
->
private_value
;
struct
soc_enum
*
e
=
(
struct
soc_enum
*
)
kcontrol
->
private_value
;
unsigned
int
reg_val
,
val
;
unsigned
int
reg_val
,
val
;
int
ret
=
0
;
if
(
e
->
reg
!=
SND_SOC_NOPM
)
if
(
e
->
reg
!=
SND_SOC_NOPM
)
{
ret
=
soc_dapm_read
(
dapm
,
e
->
reg
,
&
reg_val
);
int
ret
=
soc_dapm_read
(
dapm
,
e
->
reg
,
&
reg_val
);
else
if
(
ret
)
return
ret
;
}
else
{
reg_val
=
dapm_kcontrol_get_value
(
kcontrol
);
reg_val
=
dapm_kcontrol_get_value
(
kcontrol
);
}
val
=
(
reg_val
>>
e
->
shift_l
)
&
e
->
mask
;
val
=
(
reg_val
>>
e
->
shift_l
)
&
e
->
mask
;
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
snd_soc_enum_val_to_item
(
e
,
val
);
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
snd_soc_enum_val_to_item
(
e
,
val
);
...
@@ -2875,7 +2877,7 @@ int snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol,
...
@@ -2875,7 +2877,7 @@ int snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol,
ucontrol
->
value
.
enumerated
.
item
[
1
]
=
val
;
ucontrol
->
value
.
enumerated
.
item
[
1
]
=
val
;
}
}
return
ret
;
return
0
;
}
}
EXPORT_SYMBOL_GPL
(
snd_soc_dapm_get_enum_double
);
EXPORT_SYMBOL_GPL
(
snd_soc_dapm_get_enum_double
);
...
...
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