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
b614e38e
Commit
b614e38e
authored
Sep 25, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
e68d3b31
0077ca0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
sound/soc/sh/migor.c
sound/soc/sh/migor.c
+13
-2
sound/soc/soc-cache.c
sound/soc/soc-cache.c
+3
-2
No files found.
sound/soc/sh/migor.c
View file @
b614e38e
...
...
@@ -12,6 +12,7 @@
#include <linux/firmware.h>
#include <linux/module.h>
#include <asm/clkdev.h>
#include <asm/clock.h>
#include <cpu/sh7722.h>
...
...
@@ -40,12 +41,12 @@ static struct clk_ops siumckb_clk_ops = {
};
static
struct
clk
siumckb_clk
=
{
.
name
=
"siumckb_clk"
,
.
id
=
-
1
,
.
ops
=
&
siumckb_clk_ops
,
.
rate
=
0
,
/* initialised at run-time */
};
static
struct
clk_lookup
*
siumckb_lookup
;
static
int
migor_hw_params
(
struct
snd_pcm_substream
*
substream
,
struct
snd_pcm_hw_params
*
params
)
{
...
...
@@ -180,6 +181,13 @@ static int __init migor_init(void)
if
(
ret
<
0
)
return
ret
;
siumckb_lookup
=
clkdev_alloc
(
&
siumckb_clk
,
"siumckb_clk"
,
NULL
);
if
(
!
siumckb_lookup
)
{
ret
=
-
ENOMEM
;
goto
eclkdevalloc
;
}
clkdev_add
(
siumckb_lookup
);
/* Port number used on this machine: port B */
migor_snd_device
=
platform_device_alloc
(
"soc-audio"
,
1
);
if
(
!
migor_snd_device
)
{
...
...
@@ -200,12 +208,15 @@ static int __init migor_init(void)
epdevadd:
platform_device_put
(
migor_snd_device
);
epdevalloc:
clkdev_drop
(
siumckb_lookup
);
eclkdevalloc:
clk_unregister
(
&
siumckb_clk
);
return
ret
;
}
static
void
__exit
migor_exit
(
void
)
{
clkdev_drop
(
siumckb_lookup
);
clk_unregister
(
&
siumckb_clk
);
platform_device_unregister
(
migor_snd_device
);
}
...
...
sound/soc/soc-cache.c
View file @
b614e38e
...
...
@@ -203,7 +203,8 @@ static int snd_soc_8_16_write(struct snd_soc_codec *codec, unsigned int reg,
data
[
1
]
=
(
value
>>
8
)
&
0xff
;
data
[
2
]
=
value
&
0xff
;
if
(
!
snd_soc_codec_volatile_register
(
codec
,
reg
))
if
(
!
snd_soc_codec_volatile_register
(
codec
,
reg
)
&&
reg
<
codec
->
reg_cache_size
)
reg_cache
[
reg
]
=
value
;
if
(
codec
->
cache_only
)
{
...
...
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