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
46dd30a8
Commit
46dd30a8
authored
Jun 17, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/jz4740' into asoc-next
parents
18923d7e
010187fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
sound/soc/codecs/jz4740.c
sound/soc/codecs/jz4740.c
+0
-2
sound/soc/jz4740/jz4740-i2s.c
sound/soc/jz4740/jz4740-i2s.c
+8
-9
No files found.
sound/soc/codecs/jz4740.c
View file @
46dd30a8
...
...
@@ -384,8 +384,6 @@ static int jz4740_codec_remove(struct platform_device *pdev)
{
snd_soc_unregister_codec
(
&
pdev
->
dev
);
platform_set_drvdata
(
pdev
,
NULL
);
return
0
;
}
...
...
sound/soc/jz4740/jz4740-i2s.c
View file @
46dd30a8
...
...
@@ -118,7 +118,7 @@ static int jz4740_i2s_startup(struct snd_pcm_substream *substream,
ctrl
|=
JZ_AIC_CTRL_FLUSH
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CTRL
,
ctrl
);
clk_enable
(
i2s
->
clk_i2s
);
clk_
prepare_
enable
(
i2s
->
clk_i2s
);
conf
=
jz4740_i2s_read
(
i2s
,
JZ_REG_AIC_CONF
);
conf
|=
JZ_AIC_CONF_ENABLE
;
...
...
@@ -140,7 +140,7 @@ static void jz4740_i2s_shutdown(struct snd_pcm_substream *substream,
conf
&=
~
JZ_AIC_CONF_ENABLE
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CONF
,
conf
);
clk_disable
(
i2s
->
clk_i2s
);
clk_disable
_unprepare
(
i2s
->
clk_i2s
);
}
static
int
jz4740_i2s_trigger
(
struct
snd_pcm_substream
*
substream
,
int
cmd
,
...
...
@@ -314,10 +314,10 @@ static int jz4740_i2s_suspend(struct snd_soc_dai *dai)
conf
&=
~
JZ_AIC_CONF_ENABLE
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CONF
,
conf
);
clk_disable
(
i2s
->
clk_i2s
);
clk_disable
_unprepare
(
i2s
->
clk_i2s
);
}
clk_disable
(
i2s
->
clk_aic
);
clk_disable
_unprepare
(
i2s
->
clk_aic
);
return
0
;
}
...
...
@@ -327,10 +327,10 @@ static int jz4740_i2s_resume(struct snd_soc_dai *dai)
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
uint32_t
conf
;
clk_enable
(
i2s
->
clk_aic
);
clk_
prepare_
enable
(
i2s
->
clk_aic
);
if
(
dai
->
active
)
{
clk_enable
(
i2s
->
clk_i2s
);
clk_
prepare_
enable
(
i2s
->
clk_i2s
);
conf
=
jz4740_i2s_read
(
i2s
,
JZ_REG_AIC_CONF
);
conf
|=
JZ_AIC_CONF_ENABLE
;
...
...
@@ -368,7 +368,7 @@ static int jz4740_i2s_dai_probe(struct snd_soc_dai *dai)
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
uint32_t
conf
;
clk_enable
(
i2s
->
clk_aic
);
clk_
prepare_
enable
(
i2s
->
clk_aic
);
jz4740_i2c_init_pcm_config
(
i2s
);
...
...
@@ -388,7 +388,7 @@ static int jz4740_i2s_dai_remove(struct snd_soc_dai *dai)
{
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
clk_disable
(
i2s
->
clk_aic
);
clk_disable
_unprepare
(
i2s
->
clk_aic
);
return
0
;
}
...
...
@@ -509,7 +509,6 @@ static int jz4740_i2s_dev_remove(struct platform_device *pdev)
iounmap
(
i2s
->
base
);
release_mem_region
(
i2s
->
mem
->
start
,
resource_size
(
i2s
->
mem
));
platform_set_drvdata
(
pdev
,
NULL
);
kfree
(
i2s
);
return
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