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
1ce71394
Commit
1ce71394
authored
Mar 20, 2020
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/ro_wordlength' into next
parents
b468a785
a9107de4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
drivers/soundwire/stream.c
drivers/soundwire/stream.c
+9
-7
include/linux/soundwire/sdw.h
include/linux/soundwire/sdw.h
+2
-0
No files found.
drivers/soundwire/stream.c
View file @
1ce71394
...
...
@@ -167,13 +167,15 @@ static int sdw_program_slave_port_params(struct sdw_bus *bus,
return
ret
;
}
/* Program DPN_BlockCtrl1 register */
ret
=
sdw_write
(
s_rt
->
slave
,
addr2
,
(
p_params
->
bps
-
1
));
if
(
ret
<
0
)
{
dev_err
(
&
s_rt
->
slave
->
dev
,
"DPN_BlockCtrl1 register write failed for port %d
\n
"
,
t_params
->
port_num
);
return
ret
;
if
(
!
dpn_prop
->
read_only_wordlength
)
{
/* Program DPN_BlockCtrl1 register */
ret
=
sdw_write
(
s_rt
->
slave
,
addr2
,
(
p_params
->
bps
-
1
));
if
(
ret
<
0
)
{
dev_err
(
&
s_rt
->
slave
->
dev
,
"DPN_BlockCtrl1 register write failed for port %d
\n
"
,
t_params
->
port_num
);
return
ret
;
}
}
/* Program DPN_SampleCtrl1 register */
...
...
include/linux/soundwire/sdw.h
View file @
1ce71394
...
...
@@ -299,6 +299,7 @@ struct sdw_dpn_audio_mode {
* @max_async_buffer: Number of samples that this port can buffer in
* asynchronous modes
* @block_pack_mode: Type of block port mode supported
* @read_only_wordlength: Read Only wordlength field in DPN_BlockCtrl1 register
* @port_encoding: Payload Channel Sample encoding schemes supported
* @audio_modes: Audio modes supported
*/
...
...
@@ -322,6 +323,7 @@ struct sdw_dpn_prop {
u32
modes
;
u32
max_async_buffer
;
bool
block_pack_mode
;
bool
read_only_wordlength
;
u32
port_encoding
;
struct
sdw_dpn_audio_mode
*
audio_modes
;
};
...
...
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