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
5450487a
Commit
5450487a
authored
Jan 11, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'asoc/topic/rcar' and 'asoc/topic/rockchip' into asoc-next
parents
4aace4ce
8012c983
4ab936d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
16 deletions
+22
-16
sound/soc/rockchip/rockchip_i2s.c
sound/soc/rockchip/rockchip_i2s.c
+7
-2
sound/soc/sh/rcar/ssi.c
sound/soc/sh/rcar/ssi.c
+14
-13
sound/soc/sh/rcar/ssiu.c
sound/soc/sh/rcar/ssiu.c
+1
-1
No files found.
sound/soc/rockchip/rockchip_i2s.c
View file @
5450487a
...
...
@@ -242,6 +242,9 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream,
case
SNDRV_PCM_FORMAT_S24_LE
:
val
|=
I2S_TXCR_VDW
(
24
);
break
;
case
SNDRV_PCM_FORMAT_S32_LE
:
val
|=
I2S_TXCR_VDW
(
32
);
break
;
default:
return
-
EINVAL
;
}
...
...
@@ -360,7 +363,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
.
formats
=
(
SNDRV_PCM_FMTBIT_S8
|
SNDRV_PCM_FMTBIT_S16_LE
|
SNDRV_PCM_FMTBIT_S20_3LE
|
SNDRV_PCM_FMTBIT_S24_LE
),
SNDRV_PCM_FMTBIT_S24_LE
|
SNDRV_PCM_FMTBIT_S32_LE
),
},
.
capture
=
{
.
stream_name
=
"Capture"
,
...
...
@@ -370,7 +374,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
.
formats
=
(
SNDRV_PCM_FMTBIT_S8
|
SNDRV_PCM_FMTBIT_S16_LE
|
SNDRV_PCM_FMTBIT_S20_3LE
|
SNDRV_PCM_FMTBIT_S24_LE
),
SNDRV_PCM_FMTBIT_S24_LE
|
SNDRV_PCM_FMTBIT_S32_LE
),
},
.
ops
=
&
rockchip_i2s_dai_ops
,
.
symmetric_rates
=
1
,
...
...
sound/soc/sh/rcar/ssi.c
View file @
5450487a
...
...
@@ -403,29 +403,30 @@ static int rsnd_ssi_quit(struct rsnd_mod *mod,
struct
rsnd_ssi
*
ssi
=
rsnd_mod_to_ssi
(
mod
);
struct
device
*
dev
=
rsnd_priv_to_dev
(
priv
);
if
(
rsnd_ssi_is_parent
(
mod
,
io
))
goto
rsnd_ssi_quit_end
;
if
(
!
ssi
->
usrcnt
)
{
dev_err
(
dev
,
"%s[%d] usrcnt error
\n
"
,
rsnd_mod_name
(
mod
),
rsnd_mod_id
(
mod
));
return
-
EIO
;
}
if
(
ssi
->
err
>
0
)
dev_warn
(
dev
,
"%s[%d] under/over flow err = %d
\n
"
,
rsnd_mod_name
(
mod
),
rsnd_mod_id
(
mod
),
ssi
->
err
);
if
(
!
rsnd_ssi_is_parent
(
mod
,
io
))
{
if
(
ssi
->
err
>
0
)
dev_warn
(
dev
,
"%s[%d] under/over flow err = %d
\n
"
,
rsnd_mod_name
(
mod
),
rsnd_mod_id
(
mod
),
ssi
->
err
);
ssi
->
cr_own
=
0
;
ssi
->
err
=
0
;
ssi
->
cr_own
=
0
;
ssi
->
err
=
0
;
rsnd_ssi_irq_disable
(
mod
);
rsnd_ssi_irq_disable
(
mod
);
}
rsnd_ssi_quit_end:
rsnd_ssi_master_clk_stop
(
ssi
,
io
);
rsnd_mod_power_off
(
mod
);
ssi
->
usrcnt
--
;
if
(
ssi
->
usrcnt
<
0
)
dev_err
(
dev
,
"%s[%d] usrcnt error
\n
"
,
rsnd_mod_name
(
mod
),
rsnd_mod_id
(
mod
));
return
0
;
}
...
...
sound/soc/sh/rcar/ssiu.c
View file @
5450487a
...
...
@@ -73,7 +73,7 @@ static int rsnd_ssiu_init(struct rsnd_mod *mod,
switch
(
multi_ssi_slaves
)
{
case
0x0206
:
/* SSI0/1/2/9 */
val2
=
(
1
<<
4
)
|
/* SSI0129 sync */
rsnd_rdai_is_clk_master
(
rdai
)
?
0x2
:
0x1
;
(
rsnd_rdai_is_clk_master
(
rdai
)
?
0x2
:
0x1
)
;
/* fall through */
case
0x0006
:
/* SSI0/1/2 */
val1
=
rsnd_rdai_is_clk_master
(
rdai
)
?
...
...
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