Merge the PCM_READ|WRITE_* macros defined in pcm/pcm.h, as well as the
intpcm_read|write_* macros defined in pcm/feeder_format.c, into twofour
inline functions -: pcm_sample_read() and pcm_sample_write|write[_shift](). The absence of macro
of macro magic makes the code significantly easier to read, use and
modify.
SinAlso introduce pcm_sample_read() and pcm_sample_write() tak|write_24bit(), which are the input/outputsame as
format as a parameter,pcm_sample_read|write(), but include a 24bit <-> 32-bit conversion. get rid of the read() and write() functionSee
pointers defined in struct feed_related comment in pcm_sample_read_24bit().
Since these functions take the input/output format_info as a parameter, as well as theget
feeder_format_read|rid of the read() and write_op() functions, and use pcm_sample_read() and pointers defined in struct
pcm_sample_feed_format_info, as well as the feeder_format_read|write()_op()
functions, and use the new read/write functions directly.
Sponsored by: The FreeBSD Fondation
MFC after: 1 week