Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ermine
R128
Commits
a6093a24
Commit
a6093a24
authored
15 years ago
by
Takashi Iwai
Browse files
Options
Downloads
Plain Diff
Merge branch 'topic/asoc' into for-linus
* topic/asoc: ASoC: Fix lm4857 control
parents
85e013a1
236e6723
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/s3c24xx/neo1973_wm8753.c
+10
-6
10 additions, 6 deletions
sound/soc/s3c24xx/neo1973_wm8753.c
with
10 additions
and
6 deletions
sound/soc/s3c24xx/neo1973_wm8753.c
+
10
−
6
View file @
a6093a24
...
...
@@ -345,9 +345,11 @@ static void lm4857_write_regs(void)
static
int
lm4857_get_reg
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
{
int
reg
=
kcontrol
->
private_value
&
0xFF
;
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0F
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xFF
;
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
reg
=
mc
->
reg
;
int
shift
=
mc
->
shift
;
int
mask
=
mc
->
max
;
pr_debug
(
"Entered %s
\n
"
,
__func__
);
...
...
@@ -358,9 +360,11 @@ static int lm4857_get_reg(struct snd_kcontrol *kcontrol,
static
int
lm4857_set_reg
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
{
int
reg
=
kcontrol
->
private_value
&
0xFF
;
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0F
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xFF
;
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
reg
=
mc
->
reg
;
int
shift
=
mc
->
shift
;
int
mask
=
mc
->
max
;
if
(((
lm4857_regs
[
reg
]
>>
shift
)
&
mask
)
==
ucontrol
->
value
.
integer
.
value
[
0
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment