aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-11-15 22:44:58 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2020-01-07 17:52:49 +0100
commitc633f54a3cdc95d6d1130be6cc5dc930c104beac (patch)
tree33d9e9465ebcafa750e5476982f6bfcee69885f1
parentb8121e79ef53b30df535fb38987b3a48853ebbe9 (diff)
struct amr_header: copy comments to little endian part
I will soon apply struct_endianess.py to this code, and then the comments that are now only in the big endian part would be lost. Copy them to preserve them. Change-Id: Ie4279928bd77a5d425d0e7a3c4d58bac3cf0230a
-rw-r--r--include/osmocom/netif/amr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h
index 46ec86a..729d0ae 100644
--- a/include/osmocom/netif/amr.h
+++ b/include/osmocom/netif/amr.h
@@ -55,12 +55,12 @@ struct amr_hdr {
#elif OSMO_IS_LITTLE_ENDIAN
/* Payload Header */
uint8_t pad1:4,
- cmr:4;
+ cmr:4; /* Codec Mode Request */
/* Table of Contents */
uint8_t pad2:2,
- q:1,
- ft:4,
- f:1;
+ q:1, /* OK (not damaged) at origin? */
+ ft:4, /* coding mode */
+ f:1; /* followed by another speech frame? */
#endif
} __attribute__((packed));