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
db1f3283
Commit
db1f3283
authored
May 27, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/rcar' into asoc-next
parents
84bf51ea
de196515
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
16 deletions
+21
-16
sound/soc/sh/rcar/adg.c
sound/soc/sh/rcar/adg.c
+2
-6
sound/soc/sh/rcar/dma.c
sound/soc/sh/rcar/dma.c
+8
-4
sound/soc/sh/rcar/rsnd.h
sound/soc/sh/rcar/rsnd.h
+7
-6
sound/soc/sh/rcar/src.c
sound/soc/sh/rcar/src.c
+4
-0
No files found.
sound/soc/sh/rcar/adg.c
View file @
db1f3283
...
...
@@ -492,9 +492,7 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
*/
if
(
!
count
)
{
clk
=
clk_register_fixed_rate
(
dev
,
clkout_name
[
CLKOUT
],
parent_clk_name
,
(
parent_clk_name
)
?
0
:
CLK_IS_ROOT
,
req_rate
);
parent_clk_name
,
0
,
req_rate
);
if
(
!
IS_ERR
(
clk
))
{
adg
->
clkout
[
CLKOUT
]
=
clk
;
of_clk_add_provider
(
np
,
of_clk_src_simple_get
,
clk
);
...
...
@@ -506,9 +504,7 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
else
{
for
(
i
=
0
;
i
<
CLKOUTMAX
;
i
++
)
{
clk
=
clk_register_fixed_rate
(
dev
,
clkout_name
[
i
],
parent_clk_name
,
(
parent_clk_name
)
?
0
:
CLK_IS_ROOT
,
parent_clk_name
,
0
,
req_rate
);
if
(
!
IS_ERR
(
clk
))
{
adg
->
onecell
.
clks
=
adg
->
clkout
;
...
...
sound/soc/sh/rcar/dma.c
View file @
db1f3283
...
...
@@ -316,11 +316,15 @@ static u32 rsnd_dmapp_get_id(struct rsnd_dai_stream *io,
size
=
ARRAY_SIZE
(
gen2_id_table_cmd
);
}
if
(
!
entry
)
return
0xFF
;
if
(
(
!
entry
)
||
(
size
<=
id
))
{
struct
device
*
dev
=
rsnd_priv_to_dev
(
rsnd_io_to_priv
(
io
))
;
if
(
size
<=
id
)
return
0xFF
;
dev_err
(
dev
,
"unknown connection (%s[%d])
\n
"
,
rsnd_mod_name
(
mod
),
rsnd_mod_id
(
mod
));
/* use non-prohibited SRS number as error */
return
0x00
;
/* SSI00 */
}
return
entry
[
id
];
}
...
...
sound/soc/sh/rcar/rsnd.h
View file @
db1f3283
...
...
@@ -276,8 +276,9 @@ struct rsnd_mod {
/*
* status
*
* 0xH0000CB
0
* 0xH0000CB
A
*
* A 0: probe 1: remove
* B 0: init 1: quit
* C 0: start 1: stop
*
...
...
@@ -287,19 +288,19 @@ struct rsnd_mod {
* H 0: fallback
* H 0: hw_params
*/
#define __rsnd_mod_shift_probe 0
#define __rsnd_mod_shift_remove 0
#define __rsnd_mod_shift_init 4
#define __rsnd_mod_shift_quit 4
#define __rsnd_mod_shift_start 8
#define __rsnd_mod_shift_stop 8
#define __rsnd_mod_shift_probe 28
/* always called */
#define __rsnd_mod_shift_remove 28
/* always called */
#define __rsnd_mod_shift_irq 28
/* always called */
#define __rsnd_mod_shift_pcm_new 28
/* always called */
#define __rsnd_mod_shift_fallback 28
/* always called */
#define __rsnd_mod_shift_hw_params 28
/* always called */
#define __rsnd_mod_add_probe
0
#define __rsnd_mod_add_remove
0
#define __rsnd_mod_add_probe
1
#define __rsnd_mod_add_remove
-1
#define __rsnd_mod_add_init 1
#define __rsnd_mod_add_quit -1
#define __rsnd_mod_add_start 1
...
...
@@ -310,7 +311,7 @@ struct rsnd_mod {
#define __rsnd_mod_add_hw_params 0
#define __rsnd_mod_call_probe 0
#define __rsnd_mod_call_remove
0
#define __rsnd_mod_call_remove
1
#define __rsnd_mod_call_init 0
#define __rsnd_mod_call_quit 1
#define __rsnd_mod_call_start 0
...
...
sound/soc/sh/rcar/src.c
View file @
db1f3283
...
...
@@ -572,6 +572,9 @@ int rsnd_src_probe(struct rsnd_priv *priv)
i
=
0
;
for_each_child_of_node
(
node
,
np
)
{
if
(
!
of_device_is_available
(
np
))
goto
skip
;
src
=
rsnd_src_get
(
priv
,
i
);
snprintf
(
name
,
RSND_SRC_NAME_SIZE
,
"%s.%d"
,
...
...
@@ -595,6 +598,7 @@ int rsnd_src_probe(struct rsnd_priv *priv)
if
(
ret
)
goto
rsnd_src_probe_done
;
skip:
i
++
;
}
...
...
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