Hi,

Further I have compiled the pmem driver with our kernel.
I have added following 2 memory devices.

#ifdef CONFIG_ANDROID_PMEM
static struct android_pmem_platform_data android_pmem_pdata = {
       .name = "pmem",
       .start = PMEM_BASE,
       .size = PMEM_BASE_SIZE,
       .no_allocator = 1,
       .cached = 1,
};

static struct android_pmem_platform_data android_pmem_adsp_pdata = {
       .name = "pmem_adsp",
       .start = PMEM_ADSP_BASE,
       .size = PMEM_ADSP_BASE_SIZE,
       .no_allocator = 0,
       .cached = 0,
};

static struct platform_device android_pmem_device = {
       .name = "android_pmem",
       .id = 0,
       .dev = { .platform_data = &android_pmem_pdata },
};

static struct platform_device android_pmem_adsp_device = {
       .name = "android_pmem",
       .id = 1,
       .dev = { .platform_data = &android_pmem_adsp_pdata },
};
#endif

static struct platform_device *core_devices[] __initdata = {
#ifdef CONFIG_ANDROID_PMEM
       &android_pmem_device,
       &android_pmem_adsp_device,
#endif
};


with this now atleast /dev/pmem and /dev/pmem_adsp devices are getting
created.

While booting I am getting an error. Need to debug. Any clues??
"pmem: could not find allocation for map."

Thanks in advance,
Manish


On 2/2/09, Manish Sharma <[email protected]> wrote:
>
> Hi All,
>
> I have ported the android environment on my board (ARM9). I am able to play
> the video using PV player.
> I have a specific IP to perform color space conversion. Now in playback
> case after decoding I am able to convert the YUV output from s/w decoder to
> RGB using the h/w. The RGB output is copied in ashmem and posted to msurface
> for display. This is working fine.
>
> I feel this copy of RGB data can be avoided to improve the performance.
> Means I will register the buffer from "MemoryHeapPmem" with the
> SurfaceFlinger and send the same pointer to the h/w for color conv.
> I will use 2 buffers one will be processed by h/w for color conv and other
> will be posted to surface flinger for display.
> Is it feasible to use the pmem driver at this place and how?
>
> Regards,
> Manish
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to