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
6f2a06cd
Commit
6f2a06cd
authored
Jun 28, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-rcar
parents
cd7bcc60
c08c3b08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
+25
-14
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/core.c
+4
-2
sound/soc/sh/rcar/gen.c
sound/soc/sh/rcar/gen.c
+21
-12
No files found.
sound/soc/sh/rcar/core.c
View file @
6f2a06cd
...
...
@@ -297,7 +297,6 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma,
for
(
i
=
1
;
i
<
MOD_MAX
;
i
++
)
{
if
(
!
src
)
{
mod
[
i
]
=
ssi
;
break
;
}
else
if
(
!
dvc
)
{
mod
[
i
]
=
src
;
src
=
NULL
;
...
...
@@ -308,6 +307,9 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma,
if
(
mod
[
i
]
==
this
)
index
=
i
;
if
(
mod
[
i
]
==
ssi
)
break
;
}
if
(
is_play
)
{
...
...
@@ -315,7 +317,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma,
dst_mod
=
mod
[
index
];
}
else
{
src_mod
=
mod
[
index
];
dst_mod
=
mod
[
index
+
1
];
dst_mod
=
mod
[
index
-
1
];
}
index
=
0
;
...
...
sound/soc/sh/rcar/gen.c
View file @
6f2a06cd
...
...
@@ -184,7 +184,7 @@ static int rsnd_gen_regmap_init(struct rsnd_priv *priv,
#define RDMA_CMD_O_N(addr, i) (addr ##_reg - 0x004f8000 + (0x400 * i))
#define RDMA_CMD_O_P(addr, i) (addr ##_reg - 0x001f8000 + (0x400 * i))
void
rsnd_gen
_dma_addr
(
struct
rsnd_priv
*
priv
,
static
void
rsnd_gen2
_dma_addr
(
struct
rsnd_priv
*
priv
,
struct
rsnd_dma
*
dma
,
struct
dma_slave_config
*
cfg
,
int
is_play
,
int
slave_id
)
...
...
@@ -226,17 +226,6 @@ void rsnd_gen_dma_addr(struct rsnd_priv *priv,
}
};
cfg
->
slave_id
=
slave_id
;
cfg
->
src_addr
=
0
;
cfg
->
dst_addr
=
0
;
cfg
->
direction
=
is_play
?
DMA_MEM_TO_DEV
:
DMA_DEV_TO_MEM
;
/*
* gen1 uses default DMA addr
*/
if
(
rsnd_is_gen1
(
priv
))
return
;
/* it shouldn't happen */
if
(
use_dvc
&
!
use_src
)
{
dev_err
(
dev
,
"DVC is selected without SRC
\n
"
);
...
...
@@ -250,6 +239,26 @@ void rsnd_gen_dma_addr(struct rsnd_priv *priv,
id
,
cfg
->
src_addr
,
cfg
->
dst_addr
);
}
void
rsnd_gen_dma_addr
(
struct
rsnd_priv
*
priv
,
struct
rsnd_dma
*
dma
,
struct
dma_slave_config
*
cfg
,
int
is_play
,
int
slave_id
)
{
cfg
->
slave_id
=
slave_id
;
cfg
->
src_addr
=
0
;
cfg
->
dst_addr
=
0
;
cfg
->
direction
=
is_play
?
DMA_MEM_TO_DEV
:
DMA_DEV_TO_MEM
;
/*
* gen1 uses default DMA addr
*/
if
(
rsnd_is_gen1
(
priv
))
return
;
rsnd_gen2_dma_addr
(
priv
,
dma
,
cfg
,
is_play
,
slave_id
);
}
/*
* Gen2
*/
...
...
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