git: 732bb2807dc8 - stable/14 - sound: Remove unused code from pcm/g711.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Dec 2024 12:04:13 UTC
The branch stable/14 has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=732bb2807dc8dcc13822e6511e1703cce26a27cd
commit 732bb2807dc8dcc13822e6511e1703cce26a27cd
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-12-02 16:26:32 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-12-04 12:03:36 +0000
sound: Remove unused code from pcm/g711.h
These routines are already implemented in pcm/intpcm.h.
No functional change intended.
Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch, markj
Differential Revision: https://reviews.freebsd.org/D47734
(cherry picked from commit b882251204128388eb2f8e4f74e83ff1ca7863c4)
---
sys/dev/sound/pcm/g711.h | 33 ---------------------------------
1 file changed, 33 deletions(-)
diff --git a/sys/dev/sound/pcm/g711.h b/sys/dev/sound/pcm/g711.h
index fe9ddb651c8b..b7a57dd17a6b 100644
--- a/sys/dev/sound/pcm/g711.h
+++ b/sys/dev/sound/pcm/g711.h
@@ -187,37 +187,4 @@ static const struct { \
U8_TO_ULAW, U8_TO_ALAW \
}
-#define G711_DECLARE_OP(t) \
-static __inline intpcm_t \
-pcm_read_ulaw(uint8_t v) \
-{ \
- \
- return (_G711_TO_INTPCM((t).ulaw_to_u8, v)); \
-} \
- \
-static __inline intpcm_t \
-pcm_read_alaw(uint8_t v) \
-{ \
- \
- return (_G711_TO_INTPCM((t).alaw_to_u8, v)); \
-} \
- \
-static __inline void \
-pcm_write_ulaw(uint8_t *dst, intpcm_t v) \
-{ \
- \
- *dst = _INTPCM_TO_G711((t).u8_to_ulaw, v); \
-} \
- \
-static __inline void \
-pcm_write_alaw(uint8_t *dst, intpcm_t v) \
-{ \
- \
- *dst = _INTPCM_TO_G711((t).u8_to_alaw, v); \
-}
-
-#define G711_DECLARE(t) \
- G711_DECLARE_TABLE(t); \
- G711_DECLARE_OP(t)
-
#endif /* !_SND_G711_H_ */