annotate drivers/Makefile @ 4218:3931c41f740a

Added new syncengine thanks to a new previously undocumented feature of the em8300, this might fix playback on both slow and fast machines (more testing needed). This also requires users to get the em8300 driver from cvs until the next version is released (will probably happen this weekend) Added lots of comments, should be pretty easy to understand most of the internals now Added lots of brackets to if's for's while's etc, this is not a cosmetical thing but rather due to the fact I got some very odd bugs with else's since I didn't properly use brackets (and it's the K&R standard to have brackets everywhere) Fixed some bugs that would occur when disabling libmp1e Switched to default to the new naming scheme of device nodes, the driver will slowly switch over to this state, if it can't find devices under the new name it will try the old naming scheme I stopped opening devices in non-blocking mode, it would break the new syncengine which tries to burst data to the device (alot of times meaning it will fill the fifo pretty fast which would previously result in jerkyness on fast machines) The device now sets the initial state of the pts and speed (probably not needed, but assumption is the mother of all fuckups =) Keep the control interface open during the entire duration of the libvo device, we might need this to flush video buffers on seeking (currently not implemented, therefore seeking is broken) This is beta stuff to the driver, I will get some users to test it for me and do my best to fix seeking as soon as possible...
author mswitch
date Thu, 17 Jan 2002 10:33:47 +0000
parents fda4c0ea039f
children b69ddd4d3bb9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 KERNEL_INCLUDES = /usr/src/linux/include
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 INCLUDES = -I$(KERNEL_INCLUDES)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
3768
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
5 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
6 MDIR = /lib/modules/$(VERSION)/misc
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7
57
baa0a12438eb config interface changed
arpi_esp
parents: 1
diff changeset
8 all: mga_vid.o mga_vid_test
baa0a12438eb config interface changed
arpi_esp
parents: 1
diff changeset
9 # sis_vid.o
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 mga_vid.o: mga_vid.c mga_vid.h
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 sis_vid.o: sis_vid.c sis_vid.h
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 mga_vid_test: mga_vid_test.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 $(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
3768
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
20 install: mga_vid.o
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
21 if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
22 install -m 644 mga_vid.o $(MDIR)/mga_vid.o
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
23 depmod -a
fda4c0ea039f install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents: 1395
diff changeset
24
1395
a721a2b91d3d Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents: 57
diff changeset
25 dep:
a721a2b91d3d Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents: 57
diff changeset
26
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 rm -f *.o *~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 distclean: clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 rm -f mga_vid_test