From b3f33ba5ab7caf583a6055045633857eebae8568 Mon Sep 17 00:00:00 2001 From: Roger Monk Date: Fri, 20 Feb 2009 15:33:10 +0000 Subject: codec-engine: Added SDMA linuxutils build and package, minor DSPLINK DIRSEP fix Signed-off-by: Koen Kooi --- .../files/sdma-class-device-and-includes-fix.patch | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/dsplink/files/sdma-class-device-and-includes-fix.patch (limited to 'packages/dsplink/files/sdma-class-device-and-includes-fix.patch') diff --git a/packages/dsplink/files/sdma-class-device-and-includes-fix.patch b/packages/dsplink/files/sdma-class-device-and-includes-fix.patch new file mode 100644 index 0000000000..2dcc7a3b7e --- /dev/null +++ b/packages/dsplink/files/sdma-class-device-and-includes-fix.patch @@ -0,0 +1,59 @@ +diff -uNr codec_engine_2_21/cetools/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c codec_engine_2_21_fix/cetools/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c +--- codec_engine_2_21/cetools/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c 2009-02-20 14:49:41.000000000 +0000 ++++ codec_engine_2_21_fix/cetools/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c 2009-02-20 15:07:59.000000000 +0000 +@@ -17,6 +17,7 @@ + /* + * sdmak.c + */ ++#include + #include + #include + #include +@@ -32,14 +33,20 @@ + #include + #include + #include +- +-#include + #include + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) ++#include + #include + #include +-#include + #include ++#else ++#include ++#include ++#include ++#include ++#endif ++#include + + #include "../interface/sdma.h" + +@@ -229,7 +236,11 @@ + __D("sdma registered major = %d\n", major); + + dma_class = class_create(THIS_MODULE, "sdma"); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) + class_device_create(dma_class, NULL, MKDEV(major, 0), NULL, "sdma"); ++#else ++ device_create(dma_class, NULL, MKDEV(major, 0), NULL, "sdma"); ++#endif + + for (channel = 0; channel < SDMA_NUMCHANNELS; channel++) { + channels[channel].owner = NULL; +@@ -248,7 +259,11 @@ + omap_free_dma(channel); + } + } ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) + class_device_destroy(dma_class, MKDEV(major, 0)); ++#else ++ device_destroy(dma_class, MKDEV(major, 0)); ++#endif + class_destroy(dma_class); + unregister_chrdev(major, "sdma"); + -- cgit v1.2.3