Skip to content

Commit

Permalink
topology2: common_definitions: improve SAMPLE_TYPE documentation
Browse files Browse the repository at this point in the history
Clarify documentation of SAMPLE_TYPE_MSB_INTEGER sample type
value and fix documentation of SAMPLE_TYPE_LSB_INTEGER. These
definitions are often confused with integer endianness, which is
not related. Clarify this better.

Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed May 8, 2024
1 parent 4a761f6 commit 43415d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ Define {
CHANNEL_MAP_INVALID 0xFFFFFFFF

# Sample types
SAMPLE_TYPE_MSB_INTEGER 0 # integer with Most Significant Byte first
SAMPLE_TYPE_LSB_INTEGER 1 # integer with Most Significant Byte first
SAMPLE_TYPE_MSB_INTEGER 0 # integer with valid samples in most significant
# bits, aka left aligned (not endianness!)
SAMPLE_TYPE_LSB_INTEGER 1 # integer with valid samples in least significant
# bits, aka right aligned (not endianness!)
SAMPLE_TYPE_SIGNED_INTEGER 2 # Signed Integer
SAMPLE_TYPE_UNSIGNED_INTEGER 3 # Unsigned Integer
SAMPLE_TYPE_FLOAT 4 # Float
Expand Down

0 comments on commit 43415d0

Please sign in to comment.