summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-12-08Update vmeta to BMMv2HEADv2.0masterRussell King
Update vmeta to use the dma_buf handling now provided by libbmm v2. This permits more flexible buffer management, as the buffers can now be passed via a standardized mechanism to other subsystems (such as DRM), and image data to be encoded can be accepted directly from other subsystems without needing to be copied. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-07-30Update debian changelogRussell King
* Convert to use bmm_malloc_aligned_phys() API * Turn on compiler warnings and fix them * Open /dev/vmeta with O_CLOEXEC * Clean up vmeta IRQ control Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-23Clean up vmeta IRQ controlRussell King
Rather than having two functions, one to enable and another to disable, we can combine the two and take an argument to indicate what action is required. As these aren't part of the library API, we're free to make this change.
2013-06-23Open /dev/vmeta with O_CLOEXECRussell King
Ensure that the vmeta file descriptor gets closed if the application exec()'s another program.
2013-06-23Turn on compiler warnings and fix themRussell King
2013-06-23Convert to use bmm_malloc_aligned_phys() APIRussell King
BMM internally allocates memory by physical address, and then maps it to a virtual address. Rather than using an API which returns the virtual address which then has to be re-translated back to a physical address, use an API which gets us all the information we need in one go. This gets rid of the bmm_get_paddr() step when allocating memory.
2012-11-23Debian build system fixesRussell King
2012-11-11Convert to use shmem for shared software contextRussell King
2012-11-11Update debian build filesRussell King
2012-10-25Remove casts for physical addressesRussell King
2012-10-23Convert to use bmm_malloc_aligned()Russell King
The bmm subsystem can now provide us with pre-aligned memory allocations, so let's use the new interface to avoid having to do our own alignment in the vmeta library.
2012-10-23Update debian build filesRussell King
2012-10-23Add .gitignore to ignore build generated filesRussell King
2012-10-23Remove debian example scripts from debian/ directoryRussell King
2012-10-23Convert to autotoolsRussell King
2012-10-23Makefile should not be executableRussell King
2012-10-23Do not permit undefined references from this libraryRussell King
All references from this library should be resolvable when the library is created; this is not a stand-alone module. All symbols should be found in either libc or libbmm.
2012-10-23Major cleanup: rework for miscdevice kernel interfaceRussell King
This removes all support for the uio-based interface from libvmeta, replacing it with the new miscdevice interface code. This represents a substantial cleanup of this code.
2012-10-23Add support for /dev/vmeta miscdeviceRussell King
The kernel folk don't like the uio ioctl idea, so we can't use uio for this driver. Instead, switch it to be a self-contained miscdevice. This adds support to this library for the miscdevice interface.
2012-10-23Move user id management into the kernel driverRussell King
Move the user id management into the kernel driver. This removes the necessity to export operations on kernel semaphores to userspace, along with the kernel shared memory.
2012-10-23Cleanup debug output functionRussell King
2012-10-23Consolidate bmm allocation functionsRussell King
2012-10-20More formatting cleanupsRussell King
2012-10-20Remove spaces before \nRussell King
2012-10-20Provide a common function to setup mapsRussell King
Provide a common function to read the size and physical address from a UIO map, and to mmap() the UIO map if desired. This avoids a lot of repeated code in several functions.
2012-10-20Update get_file_unsg32() to take a format stringRussell King
2012-10-20Constify argument to get_version()Russell King
2012-10-20Consolidate get_mem_size() and get_mem_addr()Russell King
There's no need to have two functions doing exactly the same thing; consolidate these into one function - and adjust the error reporting to report the file which we failed on.
2012-10-20Sanitize vdec_os_api_flush_cache()Russell King
No point in repeating all the logic multiple times. Just convert the direction argument and then call the appropriate function according to the size.
2012-10-20Only memset() _after_ checking the returned pointer for NULL, not beforeRussell King
2012-10-20More useless cast removalRussell King
2012-10-20Remove some unnecessary (void *) casts.Russell King
2012-10-20Fix a whole pile of compiler warningsRussell King
2012-10-20Correctly type kernel_share_va/io_mem_virt_addr/vdec_obj_vaRussell King
This avoids a whole raft of completely unnecessary casts.
2012-10-18Add armhf support to debian control fileRussell King
2012-10-18Fix file modes on source files.Russell King
2012-10-18Formatting cleanups and make unexported functions staticRussell King
2010-12-09dch -iLi Li
Signed-off-by: Li Li <lea.li@marvell.com>
2010-12-09fix vmeta get hw obj issue in unit testRaymondWu
Change-Id: Ic90317435c8b6d5cd6358f0a862daa7058dc595e Signed-off-by: RaymondWu <xywu@marvell.com>
2010-12-09Fix pthread memory leakage issue.RaymondWu
Since we use child thread to monitor parent thread. The child thread will not release resources created by parent. So we detach it manually. Change-Id: Ia7cf2f595cfd2215bdfafca6ca3da2677978d815 Signed-off-by: RaymondWu <xywu@marvell.com>
2010-12-09vmeta fix virtual memory leakage.RaymondWu
Unmap useless virtual memory in user space. Code clean: replace all printf() with dbg_printf(). Add gst fix. Change-Id: I34ca001b093225de4d60b6ed92fc0399ea785aa0 Signed-off-by: RaymondWu <xywu@marvell.com>
2010-12-07dch -iLi Li
Signed-off-by: Li Li <lea.li@marvell.com>
2010-11-24add libvmeta-dev packagesJun Jiang
2010-11-17add debian rules for native build on UbuntuJun Jiang
2010-11-08Fix vmeta segmentation fault in unit test.RaymondWu
Root causes are : a) In QA's test case, it only calls driver init() and clean(). So some variables have not been initialized yet. b) init() and clean() are not protected by mutexes in multi-threads case. Change-Id: I0b0f36d2d840c23e4848f8b1a89522eb42660be0 Signed-off-by: RaymondWu <xywu@marvell.com>
2010-11-08Fix cannot enter suspend after playbackRaymondWu
Root cause is IPP/application cannot garantee that vmeta clock or power can be turned off before exit. So add code in vdec_os_driver_clean() to handle this. Change-Id: I60d89def830bba5124309d320e54fc8788cc4d0d Signed-off-by: RaymondWu <xywu@marvell.com>
2010-11-08fix camcorder broken issueRaymondWu
Root cause is monitor and playback are in different threads. When vmeta exits, monitor will use some resourcs shared by the playback thread, which may have been released. This fix removes the private_lock(), which will use shared "fd". I think it's safe because when code enters here, it means an abnormal exit, so the instance will come to and end, we can safely release it's resources. Change-Id: Idc837e8135e393c2700961423258109706d20589 Signed-off-by: RaymondWu <xywu@marvell.com>
2010-10-28fix abnormal exit logicJoseph Lo
Currently, we only check the lock status. In fact, we should check the register or used status, too. So changed the logic in code. This can help to clear the unwanted lock or instance entry when abnormal exit happens.
2010-10-28vmeta add debug file optionJoseph Lo
Under Android, we cannot use printf. So we write to a debug file instead. It's useful under Android.
2010-10-26update libvmeta to "build-004" versionJoseph Lo