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
195dee56
Commit
195dee56
authored
Sep 29, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
parents
08895a8b
a3930ed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+5
-1
No files found.
sound/soc/soc-dapm.c
View file @
195dee56
...
...
@@ -823,6 +823,7 @@ static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w,
case
snd_soc_dapm_switch
:
case
snd_soc_dapm_mixer
:
case
snd_soc_dapm_pga
:
case
snd_soc_dapm_out_drv
:
wname_in_long_name
=
true
;
kcname_in_long_name
=
true
;
break
;
...
...
@@ -3049,6 +3050,9 @@ int snd_soc_dapm_get_volsw(struct snd_kcontrol *kcontrol,
}
mutex_unlock
(
&
card
->
dapm_mutex
);
if
(
ret
)
return
ret
;
if
(
invert
)
ucontrol
->
value
.
integer
.
value
[
0
]
=
max
-
val
;
else
...
...
@@ -3200,7 +3204,7 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol,
if
(
e
->
shift_l
!=
e
->
shift_r
)
{
if
(
item
[
1
]
>
e
->
items
)
return
-
EINVAL
;
val
|=
snd_soc_enum_item_to_val
(
e
,
item
[
1
])
<<
e
->
shift_
l
;
val
|=
snd_soc_enum_item_to_val
(
e
,
item
[
1
])
<<
e
->
shift_
r
;
mask
|=
e
->
mask
<<
e
->
shift_r
;
}
...
...
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