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
06b753d6
Commit
06b753d6
authored
Jun 17, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/atmel' into asoc-next
parents
9912b30f
6f0d9479
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
drivers/misc/atmel-ssc.c
drivers/misc/atmel-ssc.c
+4
-4
sound/soc/atmel/sam9g20_wm8731.c
sound/soc/atmel/sam9g20_wm8731.c
+0
-9
No files found.
drivers/misc/atmel-ssc.c
View file @
06b753d6
...
@@ -58,7 +58,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
...
@@ -58,7 +58,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
ssc
->
user
++
;
ssc
->
user
++
;
spin_unlock
(
&
user_lock
);
spin_unlock
(
&
user_lock
);
clk_enable
(
ssc
->
clk
);
clk_
prepare_
enable
(
ssc
->
clk
);
return
ssc
;
return
ssc
;
}
}
...
@@ -69,7 +69,7 @@ void ssc_free(struct ssc_device *ssc)
...
@@ -69,7 +69,7 @@ void ssc_free(struct ssc_device *ssc)
spin_lock
(
&
user_lock
);
spin_lock
(
&
user_lock
);
if
(
ssc
->
user
)
{
if
(
ssc
->
user
)
{
ssc
->
user
--
;
ssc
->
user
--
;
clk_disable
(
ssc
->
clk
);
clk_disable
_unprepare
(
ssc
->
clk
);
}
else
{
}
else
{
dev_dbg
(
&
ssc
->
pdev
->
dev
,
"device already free
\n
"
);
dev_dbg
(
&
ssc
->
pdev
->
dev
,
"device already free
\n
"
);
}
}
...
@@ -167,10 +167,10 @@ static int ssc_probe(struct platform_device *pdev)
...
@@ -167,10 +167,10 @@ static int ssc_probe(struct platform_device *pdev)
}
}
/* disable all interrupts */
/* disable all interrupts */
clk_enable
(
ssc
->
clk
);
clk_
prepare_
enable
(
ssc
->
clk
);
ssc_writel
(
ssc
->
regs
,
IDR
,
-
1
);
ssc_writel
(
ssc
->
regs
,
IDR
,
-
1
);
ssc_readl
(
ssc
->
regs
,
SR
);
ssc_readl
(
ssc
->
regs
,
SR
);
clk_disable
(
ssc
->
clk
);
clk_disable
_unprepare
(
ssc
->
clk
);
ssc
->
irq
=
platform_get_irq
(
pdev
,
0
);
ssc
->
irq
=
platform_get_irq
(
pdev
,
0
);
if
(
!
ssc
->
irq
)
{
if
(
!
ssc
->
irq
)
{
...
...
sound/soc/atmel/sam9g20_wm8731.c
View file @
06b753d6
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/i2c.h>
#include <linux/pinctrl/consumer.h>
#include <linux/atmel-ssc.h>
#include <linux/atmel-ssc.h>
#include <sound/core.h>
#include <sound/core.h>
...
@@ -203,15 +201,8 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
...
@@ -203,15 +201,8 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
struct
device_node
*
codec_np
,
*
cpu_np
;
struct
device_node
*
codec_np
,
*
cpu_np
;
struct
clk
*
pllb
;
struct
clk
*
pllb
;
struct
snd_soc_card
*
card
=
&
snd_soc_at91sam9g20ek
;
struct
snd_soc_card
*
card
=
&
snd_soc_at91sam9g20ek
;
struct
pinctrl
*
pinctrl
;
int
ret
;
int
ret
;
pinctrl
=
devm_pinctrl_get_select_default
(
&
pdev
->
dev
);
if
(
IS_ERR
(
pinctrl
))
{
dev_err
(
&
pdev
->
dev
,
"Failed to request pinctrl for mck
\n
"
);
return
PTR_ERR
(
pinctrl
);
}
if
(
!
np
)
{
if
(
!
np
)
{
if
(
!
(
machine_is_at91sam9g20ek
()
||
if
(
!
(
machine_is_at91sam9g20ek
()
||
machine_is_at91sam9g20ek_2mmc
()))
machine_is_at91sam9g20ek_2mmc
()))
...
...
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