git: b88225120412 - main - sound: Remove unused code from pcm/g711.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Dec 2024 16:27:22 UTC
The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=b882251204128388eb2f8e4f74e83ff1ca7863c4 commit b882251204128388eb2f8e4f74e83ff1ca7863c4 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2024-12-02 16:26:32 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2024-12-02 16:26:32 +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 --- 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_ */