Support RK3588S Orange Pi 5

This commit is contained in:
orangepi-xunlong
2022-12-02 19:51:41 +08:00
parent 564f03addc
commit 35069ec81c
128 changed files with 17176 additions and 258 deletions

View File

@@ -4,8 +4,8 @@ OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
CC=gcc
all: $(LIB) tinyplay tinycap tinymix
cp tinyplay tinycap tinymix /usr/local/bin
all: $(LIB) tinyplay tinycap tinymix tinypcminfo
cp tinyplay tinycap tinymix tinypcminfo /usr/local/bin
cp libtinyalsa.so /usr/lib/
tinyplay: $(LIB) tinyplay.o

View File

@@ -92,7 +92,7 @@ static const char *format_lookup[] = {
/* Returns a human readable name for the format associated with bit_index,
* NULL if bit_index is not known.
*/
inline const char *pcm_get_format_name(unsigned bit_index)
char *pcm_get_format_name(unsigned bit_index)
{
return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL;
}