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
a6093a24
Commit
a6093a24
authored
Jun 12, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/asoc' into for-linus
* topic/asoc: ASoC: Fix lm4857 control
parents
85e013a1
236e6723
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
sound/soc/s3c24xx/neo1973_wm8753.c
sound/soc/s3c24xx/neo1973_wm8753.c
+10
-6
No files found.
sound/soc/s3c24xx/neo1973_wm8753.c
View file @
a6093a24
...
@@ -345,9 +345,11 @@ static void lm4857_write_regs(void)
...
@@ -345,9 +345,11 @@ static void lm4857_write_regs(void)
static
int
lm4857_get_reg
(
struct
snd_kcontrol
*
kcontrol
,
static
int
lm4857_get_reg
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
int
reg
=
kcontrol
->
private_value
&
0xFF
;
struct
soc_mixer_control
*
mc
=
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0F
;
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xFF
;
int
reg
=
mc
->
reg
;
int
shift
=
mc
->
shift
;
int
mask
=
mc
->
max
;
pr_debug
(
"Entered %s
\n
"
,
__func__
);
pr_debug
(
"Entered %s
\n
"
,
__func__
);
...
@@ -358,9 +360,11 @@ static int lm4857_get_reg(struct snd_kcontrol *kcontrol,
...
@@ -358,9 +360,11 @@ static int lm4857_get_reg(struct snd_kcontrol *kcontrol,
static
int
lm4857_set_reg
(
struct
snd_kcontrol
*
kcontrol
,
static
int
lm4857_set_reg
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
int
reg
=
kcontrol
->
private_value
&
0xFF
;
struct
soc_mixer_control
*
mc
=
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0F
;
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xFF
;
int
reg
=
mc
->
reg
;
int
shift
=
mc
->
shift
;
int
mask
=
mc
->
max
;
if
(((
lm4857_regs
[
reg
]
>>
shift
)
&
mask
)
==
if
(((
lm4857_regs
[
reg
]
>>
shift
)
&
mask
)
==
ucontrol
->
value
.
integer
.
value
[
0
])
ucontrol
->
value
.
integer
.
value
[
0
])
...
...
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