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
Kirill Smelkov
linux
Commits
6a441c5c
Commit
6a441c5c
authored
Dec 02, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/omap' into asoc-next
parents
d0f3ea42
1c08e7e3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
+2
-2
sound/soc/omap/mcbsp.c
sound/soc/omap/mcbsp.c
+1
-3
sound/soc/omap/mcbsp.h
sound/soc/omap/mcbsp.h
+6
-0
sound/soc/omap/omap-abe-twl6040.c
sound/soc/omap/omap-abe-twl6040.c
+2
-2
sound/soc/omap/omap-mcbsp.c
sound/soc/omap/omap-mcbsp.c
+2
-3
No files found.
Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
View file @
6a441c5c
...
...
@@ -12,7 +12,7 @@ Required properties:
Optional properties:
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected
- ti,jack_detection: Need to be
set to <1>
if the board capable to detect jack
- ti,jack_detection: Need to be
present
if the board capable to detect jack
insertion, removal.
Available audio endpoints for the audio-routing table:
...
...
@@ -59,7 +59,7 @@ sound {
compatible = "ti,abe-twl6040";
ti,model = "SDP4430";
ti,jack-detection
= <1>
;
ti,jack-detection;
ti,mclk-freq = <38400000>;
ti,mcpdm = <&mcpdm>;
...
...
sound/soc/omap/mcbsp.c
View file @
6a441c5c
...
...
@@ -28,8 +28,6 @@
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <plat/cpu.h>
#include "mcbsp.h"
static
void
omap_mcbsp_write
(
struct
omap_mcbsp
*
mcbsp
,
u16
reg
,
u32
val
)
...
...
@@ -612,7 +610,7 @@ void omap_mcbsp_free(struct omap_mcbsp *mcbsp)
* system will refuse to enter idle if the CLKS pin source is not reset
* back to internal source.
*/
if
(
!
cpu_class_is
_omap1
())
if
(
!
mcbsp
_omap1
())
omap2_mcbsp_set_clks_src
(
mcbsp
,
MCBSP_CLKS_PRCM_SRC
);
spin_lock
(
&
mcbsp
->
lock
);
...
...
sound/soc/omap/mcbsp.h
View file @
6a441c5c
...
...
@@ -26,6 +26,12 @@
#include "omap-pcm.h"
#ifdef CONFIG_ARCH_OMAP1
#define mcbsp_omap1() 1
#else
#define mcbsp_omap1() 0
#endif
/* McBSP register numbers. Register address offset = num * reg_step */
enum
{
/* Common registers */
...
...
sound/soc/omap/omap-abe-twl6040.c
View file @
6a441c5c
...
...
@@ -331,8 +331,8 @@ static __devinit int omap_abe_probe(struct platform_device *pdev)
num_links
=
1
;
}
of_property_read_u32
(
node
,
"ti,jack-detection"
,
&
priv
->
jack_detection
);
priv
->
jack_detection
=
of_property_read_bool
(
node
,
"ti,jack-detection"
);
of_property_read_u32
(
node
,
"ti,mclk-freq"
,
&
priv
->
mclk_freq
);
if
(
!
priv
->
mclk_freq
)
{
...
...
sound/soc/omap/omap-mcbsp.c
View file @
6a441c5c
...
...
@@ -34,7 +34,6 @@
#include <sound/initval.h>
#include <sound/soc.h>
#include <plat/cpu.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include "mcbsp.h"
#include "omap-mcbsp.h"
...
...
@@ -512,7 +511,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
regs
->
srgr2
|=
CLKSM
;
break
;
case
OMAP_MCBSP_SYSCLK_CLKS_FCLK
:
if
(
cpu_class_is
_omap1
())
{
if
(
mcbsp
_omap1
())
{
err
=
-
EINVAL
;
break
;
}
...
...
@@ -520,7 +519,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
MCBSP_CLKS_PRCM_SRC
);
break
;
case
OMAP_MCBSP_SYSCLK_CLKS_EXT
:
if
(
cpu_class_is
_omap1
())
{
if
(
mcbsp
_omap1
())
{
err
=
0
;
break
;
}
...
...
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