obj-$(CONFIG_MARU_FB) += maru_fb.o
obj-$(CONFIG_MARU_CAMERA) += maru_camera.o
obj-$(CONFIG_MARU_BACKLIGHT) += maru_bl.o
-obj-$(MARU_OVERLAY) += maru_overlay.o
+obj-$(CONFIG_MARU_OVERLAY) += maru_overlay.o
obj-$(CONFIG_MARU_JACK) += maru_jack.o
obj-$(CONFIG_MARU_POWER_SUPPLY) += maru_power_supply.o
obj-$(CONFIG_MARU_USB_MASS_STORAGE) += maru_usb_mass_storage.o
#include "avformat.h"
-#define DRIVER_NAME "svcodec"
+#define DRIVER_NAME "codec"
#define CODEC_MAJOR 240
MODULE_DESCRIPTION("Virtual Codec Device Driver");
static int svcodec_open (struct inode *inode, struct file *file)
{
- SVCODEC_LOG("\n");
+ printk(KERN_DEBUG "[%s]\n", __func__);
try_module_get(THIS_MODULE);
/* register interrupt handler */
int i;
if (!svcodec) {
- printk(KERN_ERR "[%s] : Fail to get codec device info\n", __func__);
+ printk(KERN_ERR "[%s]:Fail to get codec device info\n", __func__);
}
if (copy_from_user(¶mInfo, buf, sizeof(struct _param))) {
return 0;
}
-static void svcodec_vm_open(struct vm_area_struct *vm)
-{
-}
-
-static void svcodec_vm_close(struct vm_area_struct *vm)
-{
-}
-
-static const struct vm_operations_struct svcodec_vm_ops = {
- .open = svcodec_vm_open,
- .close = svcodec_vm_close,
-};
-
static int svcodec_mmap (struct file *file, struct vm_area_struct *vm)
{
unsigned long off;
return -EAGAIN;
}
- vm->vm_ops = &svcodec_vm_ops;
vm->vm_flags |= VM_IO;
vm->vm_flags |= VM_RESERVED;
}
#endif
-struct file_operations codec_fops = {
+struct file_operations svcodec_fops = {
.owner = THIS_MODULE,
.read = svcodec_read,
.write = svcodec_write,
}
// pci_set_drvdata(pci_dev, svcodec);
- if (register_chrdev(CODEC_MAJOR, DRIVER_NAME, &codec_fops)) {
+ if (register_chrdev(CODEC_MAJOR, DRIVER_NAME, &svcodec_fops)) {
printk(KERN_ERR "[%s] : register_chrdev failed\n", __func__);
goto err_io_unmap;
}
#define PCI_VENDOR_ID_SAMSUNG 0x144d
-#define PCI_VENDOR_ID_TIZEN 0x1480
-#define PCI_DEVICE_ID_VIRTUAL_CAMERA 0x1018
-#define PCI_DEVICE_ID_VIRTUAL_CODEC 0x101C
+#define PCI_VENDOR_ID_TIZEN 0xC9B5
+#define PCI_DEVICE_ID_VIRTUAL_OVERLAY 0x1010
+#define PCI_DEVICE_ID_VIRTUAL_BRIGHTNESS 0x1014
+#define PCI_DEVICE_ID_VIRTUAL_CAMERA 0x1018
+#define PCI_DEVICE_ID_VIRTUAL_CODEC 0x101C
#define PCI_VENDOR_ID_GIGABYTE 0x1458