Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunix #1

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
451 changes: 43 additions & 408 deletions Makefile

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions Makefile2
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BIN_FILE = main
OBJECTS = main.o record.o key.o oled_iic.o mem_gpio.o
CC = mipsel-openwrt-linux-gcc

$(BIN_FILE) : $(OBJECTS)
$(CC) -o $(BIN_FILE) $(OBJECTS) -L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib -L. -lasound -lm -lmp3lame -lshine

main.o : main.c
$(CC) -c main.c

mem_gpio.o : mem_gpio.c
$(CC) -c mem_gpio.c

key.o : key.c
$(CC) -c key.c

oled_iic.o : oled_iic.c
$(CC) -c oled_iic.c

record.o : record.c
$(CC) -c record.o record.c -I /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include \
-L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib -lasound -lm -lmp3lame -lshine

clean :
rm main *.o
Binary file modified a.out
Binary file not shown.
17 changes: 17 additions & 0 deletions alsa/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SOURCE = record_control.c
OBJECTS = record_control.o
OUTFILE = record_control
CC = mipsel-openwrt-linux-gcc
#LIBS = lasound
INC = /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/*.h
LIBS = /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib

$(OUTFILE) : $(OBJECTS)
$(CC) -L/$(LIBS) -o $(OUTFILE) $(OBJECTS)

$(OBJECTS) : $(SOURCE) $(INC)
$(CC) -c $(OBJECTS) $(SOURCE)

.PHONY : clean
clean:
rm $(OBJECTS) $(OUTFILE)
25 changes: 25 additions & 0 deletions alsa/Makefile2
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BIN_FILE = main
OBJECTS = main.o mem_gpio.o key.o oled_iic.o record.o
CC = mipsel-openwrt-linux-gcc

$(BIN_FILE) : $(OBJECTS)
$(CC) -o $(BIN_FILE) $(OBJECTS) -L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib -L. -lasound -lm -lmp3lame -lshine

main.o : main.c
$(CC) -c main.c

mem_gpio.o : mem_gpio.c
$(CC) -c mem_gpio.c

key.o : key.c
$(CC) -c key.c

oled_iic.o : oled_iic.c
$(CC) -c oled_iic.c

record.o : record.c
$(CC) -c record.o record.c -I /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include \
-L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib -lasound -lm -lmp3lame -lshine

clean :
rm main *.o
65 changes: 65 additions & 0 deletions alsa/asoundlib.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* \file include/asoundlib.h
* \brief Application interface library for the ALSA driver
* \author Jaroslav Kysela <[email protected]>
* \author Abramo Bagnara <[email protected]>
* \author Takashi Iwai <[email protected]>
* \date 1998-2001
*
* Application interface library for the ALSA driver
*/
/*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/

#ifndef __ASOUNDLIB_H
#define __ASOUNDLIB_H

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/poll.h>
#include <errno.h>
#include <stdarg.h>
#include <endian.h>

#ifndef __GNUC__
#define __inline__ inline
#endif

#include <alsa/asoundef.h>
#include <alsa/version.h>
#include <alsa/global.h>
#include <alsa/input.h>
#include <alsa/output.h>
#include <alsa/error.h>
#include <alsa/conf.h>
#include <alsa/pcm.h>
#include <alsa/rawmidi.h>
#include <alsa/timer.h>
#include <alsa/hwdep.h>
#include <alsa/control.h>
#include <alsa/mixer.h>
#include <alsa/seq_event.h>
#include <alsa/seq.h>
#include <alsa/seqmid.h>
#include <alsa/seq_midi_event.h>

#endif /* __ASOUNDLIB_H */
Binary file modified alsa/autorecord4
Binary file not shown.
8 changes: 8 additions & 0 deletions alsa/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
BIN_FILE=record_control
STR_FILE=$BIN_FILE'.c'
mipsel-openwrt-linux-gcc -o $BIN_FILE $STR_FILE \
-I /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/ \
-L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib \
-L. \
-lasound -lm -lmp3lame -lshine
8 changes: 8 additions & 0 deletions alsa/build.sh1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
BIN_FILE=autorecord4
STR_FILE=$BIN_FILE'.c'
/home/zyc/Documents/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc -o $BIN_FILE $STR_FILE \
-I /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/ \
-L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib \
-L. \
-lasound -lm -lmp3lame -lshine
Empty file modified alsa/filter.h
100644 → 100755
Empty file.
Empty file modified alsa/filter_test.c
100644 → 100755
Empty file.
Empty file modified alsa/layer3.h
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions alsa/libasound.so
1 change: 1 addition & 0 deletions alsa/libasound.so.2
Binary file added alsa/libasound.so.2.0.0
Binary file not shown.
4 changes: 2 additions & 2 deletions alsa/makerecord3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN_FILE=autorecord3
STR_FILE=$BIN_FILE'.c'
../openwrt-gcc -o $BIN_FILE $STR_FILE \
-I /home/midas/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/ \
-L /home/midas/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib \
-I /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/ \
-L /home/zyc/Documents/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib \
-L. \
-lasound -lm -lmp3lame
2 changes: 1 addition & 1 deletion alsa/makerecord4.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
BIN_FILE=autorecord4
STR_FILE=$BIN_FILE'.c'
../openwrt-gcc -o $BIN_FILE $STR_FILE \
/home/zyc/Documents/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc -o $BIN_FILE $STR_FILE \
-I /home/midas/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/include/ \
-L /home/midas/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/alsa-lib-1.0.28/ipkg-install/usr/lib \
-L. \
Expand Down
Empty file modified alsa/pcm2wav.h.gch
100644 → 100755
Empty file.
Binary file added alsa/record_control
Binary file not shown.
Loading