Skip to contentSkip to conversation

soundwire: sdw.h: fix PRBS/Static_1 swapped

PATCH Applied Bard Liao 2 participants 4 messages Jul 15, 2020 SoundWire

lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

cover soundwire: sdw.h: fix PRBS/Static_1 swapped

Fix PRBS/Static_1 swapped definitions and indentation in sdw.h

Pierre-Louis Bossart (2):
soundwire: sdw.h: fix PRBS/Static_1 swapped definitions
soundwire: sdw.h: fix indentation

 include/linux/soundwire/sdw.h | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH 1/2 soundwire: sdw.h: fix PRBS/Static_1 swapped definitions

From: Pierre-Louis Bossart <[email protected]>

Table 110 "Port Data Modes" of the SoundWire 1.2 specification lists PRBS as b01 and Static_1 as b11. The existing headers swapped the two values, fix.

---
 include/linux/soundwire/sdw.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/soundwire/sdw.h +6 -6
index 4057adf7f049..6452bac957b3 100644
@@ -152,19 +152,19 @@ enum sdw_data_direction {
  *
  * @SDW_PORT_DATA_MODE_NORMAL: Normal data mode where audio data is received
  * and transmitted.
+ * @SDW_PORT_DATA_MODE_PRBS: Test mode which uses a PRBS generator to produce
+ * a pseudo random data pattern that is transferred
+ * @SDW_PORT_DATA_MODE_STATIC_0: Simple test mode which uses static value of
+ * logic 0. The encoding will result in no signal transitions
  * @SDW_PORT_DATA_MODE_STATIC_1: Simple test mode which uses static value of
  * logic 1. The encoding will result in signal transitions at every bitslot
  * owned by this Port
- * @SDW_PORT_DATA_MODE_STATIC_0: Simple test mode which uses static value of
- * logic 0. The encoding will result in no signal transitions
- * @SDW_PORT_DATA_MODE_PRBS: Test mode which uses a PRBS generator to produce
- * a pseudo random data pattern that is transferred
  */
 enum sdw_port_data_mode {
 	SDW_PORT_DATA_MODE_NORMAL = 0,
-	SDW_PORT_DATA_MODE_STATIC_1 = 1,
+	SDW_PORT_DATA_MODE_PRBS = 1,
 	SDW_PORT_DATA_MODE_STATIC_0 = 2,
-	SDW_PORT_DATA_MODE_PRBS = 3,
+	SDW_PORT_DATA_MODE_STATIC_1 = 3,
 };
 
 /*
Signature · 1 line
2.17.1
author maintainer
#2 lore raw

PATCH 2/2 soundwire: sdw.h: fix indentation

In reply to Bard Liao

From: Pierre-Louis Bossart <[email protected]>

Not sure how this went undetected for years.

---
 include/linux/soundwire/sdw.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/soundwire/sdw.h +4 -4
index 6452bac957b3..76052f12c9f7 100644
@@ -88,10 +88,10 @@ enum sdw_slave_status {
  * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare
  */
 enum sdw_clk_stop_type {
-	       SDW_CLK_PRE_PREPARE = 0,
-	       SDW_CLK_POST_PREPARE,
-	       SDW_CLK_PRE_DEPREPARE,
-	       SDW_CLK_POST_DEPREPARE,
+	SDW_CLK_PRE_PREPARE = 0,
+	SDW_CLK_POST_PREPARE,
+	SDW_CLK_PRE_DEPREPARE,
+	SDW_CLK_POST_DEPREPARE,
 };
 
 /**
Signature · 1 line
2.17.1
maintainer Applied
#3 lore raw
In reply to Bard Liao
Quoted 1 line · Bard Liao

Fix PRBS/Static_1 swapped definitions and indentation in sdw.h

Applied both, thanks

Signature · 1 line
~Vinod