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
Kirill Smelkov
linux
Commits
1166f985
Commit
1166f985
authored
Jan 28, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.38' into for-2.6.39
parents
dddf3e4c
e9cf7049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sound/soc/codecs/cq93vc.c
sound/soc/codecs/cq93vc.c
+1
-1
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+3
-3
No files found.
sound/soc/codecs/cq93vc.c
View file @
1166f985
...
@@ -153,7 +153,7 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
...
@@ -153,7 +153,7 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
static
int
cq93vc_probe
(
struct
snd_soc_codec
*
codec
)
static
int
cq93vc_probe
(
struct
snd_soc_codec
*
codec
)
{
{
struct
davinci_vc
*
davinci_vc
=
codec
->
dev
->
platform_data
;
struct
davinci_vc
*
davinci_vc
=
snd_soc_codec_get_drvdata
(
codec
)
;
davinci_vc
->
cq93vc
.
codec
=
codec
;
davinci_vc
->
cq93vc
.
codec
=
codec
;
codec
->
control_data
=
davinci_vc
;
codec
->
control_data
=
davinci_vc
;
...
...
sound/soc/soc-dapm.c
View file @
1166f985
...
@@ -1779,7 +1779,7 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
...
@@ -1779,7 +1779,7 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
int
max
=
mc
->
max
;
int
max
=
mc
->
max
;
unsigned
int
mask
=
(
1
<<
fls
(
max
))
-
1
;
unsigned
int
mask
=
(
1
<<
fls
(
max
))
-
1
;
unsigned
int
invert
=
mc
->
invert
;
unsigned
int
invert
=
mc
->
invert
;
unsigned
int
val
,
val_mask
;
unsigned
int
val
;
int
connect
,
change
;
int
connect
,
change
;
struct
snd_soc_dapm_update
update
;
struct
snd_soc_dapm_update
update
;
...
@@ -1787,13 +1787,13 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
...
@@ -1787,13 +1787,13 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
if
(
invert
)
if
(
invert
)
val
=
max
-
val
;
val
=
max
-
val
;
val_
mask
=
mask
<<
shift
;
mask
=
mask
<<
shift
;
val
=
val
<<
shift
;
val
=
val
<<
shift
;
mutex_lock
(
&
widget
->
codec
->
mutex
);
mutex_lock
(
&
widget
->
codec
->
mutex
);
widget
->
value
=
val
;
widget
->
value
=
val
;
change
=
snd_soc_test_bits
(
widget
->
codec
,
reg
,
val_
mask
,
val
);
change
=
snd_soc_test_bits
(
widget
->
codec
,
reg
,
mask
,
val
);
if
(
change
)
{
if
(
change
)
{
if
(
val
)
if
(
val
)
/* new connection */
/* new connection */
...
...
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