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
d3fb4c44
Commit
d3fb4c44
authored
Jan 12, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/rockchip' into asoc-next
parents
84d30623
db51707b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sound/soc/rockchip/rockchip_i2s.c
sound/soc/rockchip/rockchip_i2s.c
+3
-2
No files found.
sound/soc/rockchip/rockchip_i2s.c
View file @
d3fb4c44
...
@@ -328,6 +328,7 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream,
...
@@ -328,6 +328,7 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream,
val
|=
I2S_CHN_4
;
val
|=
I2S_CHN_4
;
break
;
break
;
case
2
:
case
2
:
case
1
:
val
|=
I2S_CHN_2
;
val
|=
I2S_CHN_2
;
break
;
break
;
default:
default:
...
@@ -460,7 +461,7 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
...
@@ -460,7 +461,7 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = {
},
},
.
capture
=
{
.
capture
=
{
.
stream_name
=
"Capture"
,
.
stream_name
=
"Capture"
,
.
channels_min
=
2
,
.
channels_min
=
1
,
.
channels_max
=
2
,
.
channels_max
=
2
,
.
rates
=
SNDRV_PCM_RATE_8000_192000
,
.
rates
=
SNDRV_PCM_RATE_8000_192000
,
.
formats
=
(
SNDRV_PCM_FMTBIT_S8
|
.
formats
=
(
SNDRV_PCM_FMTBIT_S8
|
...
@@ -660,7 +661,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
...
@@ -660,7 +661,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
}
}
if
(
!
of_property_read_u32
(
node
,
"rockchip,capture-channels"
,
&
val
))
{
if
(
!
of_property_read_u32
(
node
,
"rockchip,capture-channels"
,
&
val
))
{
if
(
val
>=
2
&&
val
<=
8
)
if
(
val
>=
1
&&
val
<=
8
)
soc_dai
->
capture
.
channels_max
=
val
;
soc_dai
->
capture
.
channels_max
=
val
;
}
}
...
...
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