Re: Re: CMEM Error

2008-11-03 Thread ashish pareek
 Hi,
I tried to configure my memory requirements in loadmodules.sh script that 
allocated memory pools , but i got error
CMEMK Error :failed to get big enough free block .

Is it because my mem req are so high ? How cud i find maxm memory supported ?

Ashish 


On Mon, 03 Nov 2008 Vladimir Pantelic wrote :
>ashish pareek wrote:
>>
>>Hi ,
>>Is it possible to have an jpg image of high resolution (i.e. 1920 x 1080) 
>>from jpeg engine using DM355 . Are their any kind of hardware limitation in 
>>doing that ?
>>My idea is to get an high resolution RAW and YUV (i.e. 1920 x 1080) image and 
>>than convert YUV image to jpg using JPEG engine .
>>
>>When i tried to have an image 1920 x 1080 resolution i found following error
>>CMEM Error : getPool : failed to get a pool fitting a size 4147200
>>CMEM Error : getPool : failed to get a pool fitting a size 8294400
>
>CMEM was not able to find a large enough buffer, check how it is configured 
>(when the modules is loaded) and increase the pool size.
>
>
>
>___
>Davinci-linux-open-source mailing list
>Davinci-linux-open-source@linux.davincidsp.com
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Problem with OSD Display settings

2008-11-03 Thread suhas
Hello All,

 

I am currently working on display driver for dm6446 DVEVM.

Results obtained by me till now are not satisfactory.

 

I have tried the following combinations and results for the same are as
below:

 

I am using OSDWIN0 as display window in RGB565 mode

 

Frame Mode:

  Interlaced - Image is not clear. Image is not sharp as required.
It seems to be shaking. 

  Non-Interlaced - Image is stable not sharp but still better than
interlaced mode, also alternate lines get skipped 

i.e. alternate lines does not get displayed. 

 

Field Mode:

  In both modes (interlaced as well as non-interlaced) image gets
elongated. This is obvious as per my understanding as we provide a buffer of
240 lines to display 480 lines. But the image quality is too good, with very
sharp edges.

 

My understanding is that, In Frame mode, the buffer contains data for both
even and odd fields arranged as required. The display controller will access
the data according to the fields to be displayed and in Field mode there has
to be two separate buffers for even and odd fields so that image can be
displayed accordingly. Please correct if my understanding is wrong. 

 

I want to have sharp image to be displayed as in Field mode but, would
require Frame mode for complete display. How could I achieve the same. 

 

Regards,

 

Suhas Jain

Associate

AFTEK Limited - Pune

Web: www.aftek.com

Mail:  [EMAIL PROTECTED]

 

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


DM355 - UBL and display flicker

2008-11-03 Thread richard.zhao
Hi,

I accidentally erased my nand flash on the DM355 EVM board. As a result, the 
UBL and the u-boot were all gone. Fortunately, there is the serial port tool to 
burn the UBL and u-boot ( 
http://wiki.davincidsp.com/index.php?title=Serial_Boot_and_Flash_Loading_Utility
 ) . I did that, and my board came back to live. But there is a problem, now 
when I run the encodedecode demo, a lot of annoying noise/flicker pop up 
everywhere on the screen, and the frame rate drops to < 20fps. I tried the 
"writeb" program from 
(http://linux.omap.com/pipermail/davinci-linux-open-source/2008-June/007264.html),
 it doesn't help. The demo ran well with my old UBL and u-boot. Since I use the 
same u-boot, I guess the problem must be the UBL coming with the Serial Flash 
Loading Utility. This tool can't load other UBL except for its own.

Does anyone know how to load the UBL without a JTAG emulator (I don't have 
one)? Or someone has similar experience? Thanks a lot!

Richard
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: CMEM Error

2008-11-03 Thread Vladimir Pantelic

ashish pareek wrote:
   


Hi ,
Is it possible to have an jpg image of high resolution (i.e. 1920 x 
1080) from jpeg engine using DM355 . Are their any kind of hardware 
limitation in doing that ?
My idea is to get an high resolution RAW and YUV (i.e. 1920 x 1080) 
image and than convert YUV image to jpg using JPEG engine .


When i tried to have an image 1920 x 1080 resolution i found following error
CMEM Error : getPool : failed to get a pool fitting a size 4147200
CMEM Error : getPool : failed to get a pool fitting a size 8294400


CMEM was not able to find a large enough buffer, check how it is configured (when the modules is loaded) and increase 
the pool size.




___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: DM355 - UBL and display flicker

2008-11-03 Thread Deepak Shankar-TLS,Chennai.

Hi,
 
Please see -
http://wiki.davincidsp.com/index.php?title=Flashing_NAND_Flash
As far as I remember you've to change the bootswitch in the EVM to do
make it through UART.
 
I have tried this sometime back and it worked;
 
Cheers,
Deepak



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of richard.zhao
Sent: Monday, November 03, 2008 3:10 PM
To: davinci-linux-open-source
Subject: DM355 - UBL and display flicker


Hi,

I accidentally erased my nand flash on the DM355 EVM board. As a result,
the UBL and the u-boot were all gone. Fortunately, there is the serial
port tool to burn the UBL and u-boot (
http://wiki.davincidsp.com/index.php?title=Serial_Boot_and_Flash_Loading
_Utility
  ) . I did that, and my board came back to live. But there is
a problem, now when I run the encodedecode demo, a lot of annoying
noise/flicker pop up everywhere on the screen, and the frame rate drops
to < 20fps. I tried the "writeb" program from
(http://linux.omap.com/pipermail/davinci-linux-open-source/2008-June/007
264.html
 ), it doesn't help. The demo ran well with my old UBL and
u-boot. Since I use the same u-boot, I guess the problem must be the U
 BL coming with the Serial Flash Loading Utility. This tool can't load
other UBL except for its own.

Does anyone know how to load the UBL without a JTAG emulator (I don't
have one)? Or someone has similar experience? Thanks a lot!

Richard


 


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: [PATCH] ARM: DaVinci: Audio: Fix the audio stall problem when doing full-duplex

2008-11-03 Thread Steve Chen
Naresh,

Part of patch 1875 depends on updates for DM646x which is not yet in the
git tree.  Since you already put in the effort of debugging and testing
for DM644x, lets just push this patch in now.  I can submit the rest of
the patch in once code for dm646x are in.

Regards,

Steve

On Mon, 2008-11-03 at 03:38, Medisetty, Naresh wrote:
> Steve,
> 
> I looked at the patch 1875 in MV Pro 5.0 kernel and that indeed seems to be 
> fixing the same issue. The disposition on the patch says "needs submitting to 
> linux-arm-kernel", so I assume you plan to submit it to arm linux mailing 
> list soon. Since the issue is getting fixed upstream, we can drop including 
> this patch in DaVinci GIT
> 
> 
> From: Steve Chen [EMAIL PROTECTED]
> Sent: Friday, October 31, 2008 4:56 PM
> To: Medisetty, Naresh
> Cc: davinci-linux-open-source@linux.davincidsp.com
> Subject: Re: [PATCH] ARM: DaVinci: Audio: Fix the audio stall problem when
>   doing full-duplex
> 
> Naresh,
> 
> This patch seem to derived from patch level 1875 of the Monta Vista
> tree.  If you can attach the original patch header, it would be much
> appreciated.
> 
> Regards,
> 
> Steve
> 
> On Fri, 2008-10-31 at 01:59, [EMAIL PROTECTED] wrote:
> > From: Naresh Medisetty <[EMAIL PROTECTED]>
> >
> > Fixes the audio stall problem when doing playback and capture at the same 
> > time.
> >
> > Signed-off-by: Naresh Medisetty <[EMAIL PROTECTED]>
> > ---
> >  sound/soc/davinci/davinci-i2s.c |   35 ---
> >  1 files changed, 24 insertions(+), 11 deletions(-)
> >
> > diff --git a/sound/soc/davinci/davinci-i2s.c 
> > b/sound/soc/davinci/davinci-i2s.c
> > index d8279ad..8b29463 100644
> > --- a/sound/soc/davinci/davinci-i2s.c
> > +++ b/sound/soc/davinci/davinci-i2s.c
> > @@ -262,17 +262,30 @@ static int davinci_i2s_hw_params(struct 
> > snd_pcm_substream *substream,
> >   u32 w;
> >
> >   /* general line settings */
> > - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG,
> > - DAVINCI_MCBSP_SPCR_RINTM(3) |
> > - DAVINCI_MCBSP_SPCR_XINTM(3) |
> > - DAVINCI_MCBSP_SPCR_FREE);
> > - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG,
> > - DAVINCI_MCBSP_RCR_RFRLEN1(1) |
> > - DAVINCI_MCBSP_RCR_RDATDLY(1));
> > - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG,
> > - DAVINCI_MCBSP_XCR_XFRLEN1(1) |
> > - DAVINCI_MCBSP_XCR_XDATDLY(1) |
> > - DAVINCI_MCBSP_XCR_XFIG);
> > + if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
> > +
> > + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG);
> > + w |= (DAVINCI_MCBSP_SPCR_RINTM(3) | DAVINCI_MCBSP_SPCR_FREE);
> > + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w);
> > +
> > + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_RCR_REG);
> > + w |= (DAVINCI_MCBSP_RCR_RFRLEN1(1) |
> > + DAVINCI_MCBSP_RCR_RDATDLY(1));
> > + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG, w);
> > +
> > + } else {
> > +
> > + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG);
> > + w |= DAVINCI_MCBSP_SPCR_XINTM(3) | DAVINCI_MCBSP_SPCR_FREE;
> > + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w);
> > +
> > + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_XCR_REG);
> > + w |= (DAVINCI_MCBSP_XCR_XFRLEN1(1) |
> > + DAVINCI_MCBSP_XCR_XDATDLY(1) |
> > + DAVINCI_MCBSP_XCR_XFIG);
> > + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG, w);
> > +
> > + }
> >
> >   i = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS);
> >   w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SRGR_REG);


___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Icecrusher

2008-11-03 Thread Griffis, Brad
Does this issue occur ONLY on your custom board, i.e. can you successfully 
connect to the EVM using the same configuration?


From: Marta Gros Marín [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 02, 2008 9:56 PM
To: Griffis, Brad
Subject: RE: Icecrusher

Hi Brad,

Thank you for your answer.

I'm using CSS 3.3 SR2  and Blackhawk Driver Release v3.3.200.2,( 05 SEP 2008 )
I attached some plots about CCS setup, so I don't miss anything. There I try 
changing the JTAG TCLK frequency but it didn't work.

Do you know what could be the problem with my custom board?

Thanks in advance.

Best regards,
Marta






De: "Griffis, Brad" <[EMAIL PROTECTED]>
Enviado: viernes, 31 de octubre de 2008 16:46
Para: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "Davinci-linux-open-source" 

Asunto: RE: Icecrusher

Which version of CCS are you using (e.g. CCS 3.3 SR11). What version of the 
Blackhawk emulation drivers do you have? How did you configure cc_setup?

Brad


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marta Gros Marín
Sent: Friday, October 31, 2008 6:51 AM
To: Davinci-linux-open-source
Subject: Icecrusher


Hi to all,

I have a problem with my custom board (with DM355), I'm trying to connect it 
using BlackHawk JTAG USB510L but I always get this error:

Error connecting to the target: Error 0x8240/-1029 Fatal Error during: 
Initialization, OCS,  The ICECrusher register scan returned invalid data   
Sequence ID: 0 Error Code: -1029 Error Class: 0x8240

Could anyone please give me some advise on how to find out what's going on and 
how to solve the problem?

Thanks in advance.

Best regards,
Marta
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: CMEM Error

2008-11-03 Thread Vladimir Pantelic

ashish pareek wrote:

  Hi,
I tried to configure my memory requirements in loadmodules.sh script 
that allocated memory pools , but i got error

CMEMK Error :failed to get big enough free block .


increase the size of memory that you give to cmem and reduce the size given to 
linux (mem=xxx).

Is it because my mem req are so high ? How cud i find maxm memory 
supported ?


I don't know your memory requirements, but you exchange cmem for linux mem 
easily.




Ashish


On Mon, 03 Nov 2008 Vladimir Pantelic wrote :
 >ashish pareek wrote:
 >>   
 >>Hi ,
 >>Is it possible to have an jpg image of high resolution (i.e. 1920 x 
1080) from jpeg engine using DM355 . Are their any kind of hardware 
limitation in doing that ?
 >>My idea is to get an high resolution RAW and YUV (i.e. 1920 x 1080) 
image and than convert YUV image to jpg using JPEG engine .

 >>
 >>When i tried to have an image 1920 x 1080 resolution i found 
following error

 >>CMEM Error : getPool : failed to get a pool fitting a size 4147200
 >>CMEM Error : getPool : failed to get a pool fitting a size 8294400
 >
 >CMEM was not able to find a large enough buffer, check how it is 
configured (when the modules is loaded) and increase the pool size.

 >
 >
 >
 >___
 >Davinci-linux-open-source mailing list
 >Davinci-linux-open-source@linux.davincidsp.com
 >http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source



Rediff Shopping 






___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


CMEM Error

2008-11-03 Thread ashish pareek


Hi ,
Is it possible to have an jpg image of high resolution (i.e. 1920 x 1080) from 
jpeg engine using DM355 . Are their any kind of hardware limitation in doing 
that ?
My idea is to get an high resolution RAW and YUV (i.e. 1920 x 1080) image and 
than convert YUV image to jpg using JPEG engine .

When i tried to have an image 1920 x 1080 resolution i found following error
CMEM Error : getPool : failed to get a pool fitting a size 4147200
CMEM Error : getPool : failed to get a pool fitting a size 8294400

Ashish
 
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Re: CMEM Error

2008-11-03 Thread Tivy, Robert
Your loadmodules.sh shows you giving 12MB to CMEM (although the insmod line 
appears to be commented out).  This amount will satisfy your specified needs of
My memory req are like
pool fitting a size 4147200
pool fitting a size 8294400
although enough for only one of each.  However, you are partitioning the 12MB 
with too many pools/buffers to allow your allocations to succeed.  Try 
specifying:
pools=1x8294400,1x4147200

If you need more than just those two buffers, you will need to give less memory 
to Linux and more to CMEM.  Linux kernel memory is specified on the boot 
command.  With your given loadmodules.sh, you would need to be specifying 
mem=116M at a maximum, and to give more to CMEM you would need to specify less 
than 116M.

- Rob


From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of ashish pareek [EMAIL 
PROTECTED]
Sent: Monday, November 03, 2008 4:56 AM
To: Vladimir Pantelic
Cc: davinci
Subject: Re: Re: CMEM Error

  Hi,
Since i am new to linux can u let me know how i can exchange memory with linux .
My loadmodules.sh script looks like

#!/bin/sh

# 12MB
# insmod cmemk.ko phys_start=0x8740 phys_end=0x8800 
pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096
./mapdmaq

insmod dm350mmap.ko
rm -f /dev/dm350mmap
mknod /dev/dm350mmap c `awk "\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0

My memory req are like
pool fitting a size 4147200
pool fitting a size 8294400

Regard's
Ashish




On Mon, 03 Nov 2008 Vladimir Pantelic wrote : >ashish pareek wrote: >> Hi, >>I 
tried to configure my memory requirements in loadmodules.sh script that 
allocated memory pools , but i got error >>CMEMK Error :failed to get big 
enough free block . > >increase the size of memory that you give to cmem and 
reduce the size given to linux (mem=xxx). > >>Is it because my mem req are so 
high ? How cud i find maxm memory supported ? > >I don't know your memory 
requirements, but you exchange cmem for linux mem easily. > > >> >>Ashish >> >> 
>>On Mon, 03 Nov 2008 Vladimir Pantelic wrote : >> >ashish pareek wrote: >> >> 
>>Hi , >> >>Is it possible to have an jpg image of high resolution (i.e. 1920 x 
1080) from jpeg engine using DM355 . Are their any kind of hardware limitation 
in doing that ? >> >>My idea is to get an high resolution RAW and YUV (i.e. 
1920 x 1080) image and than convert YUV image to jpg using JPEG engine . >> >> 
>> >>When i tried to have an image 1920 x 1080 resolution i found following 
error >> >>CMEM Error : getPool : failed to get a pool fitting a size 4147200 
>> >>CMEM Error : getPool : failed to get a pool fitting a size 8294400 >> > >> 
>CMEM was not able to find a large enough buffer, check how it is configured 
(when the modules is loaded) and increase the pool size. >> > >> > >> > >> 
>___ >> >Davinci-linux-open-source 
mailing list >> >Davinci-linux-open-source@linux.davincidsp.com >> 
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source >> >> 
>> >>Rediff Shopping >> > > >___ 
>Davinci-linux-open-source mailing list 
>Davinci-linux-open-source@linux.davincidsp.com 
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: Re: CMEM Error

2008-11-03 Thread ashish pareek
  Hi,
Since i am new to linux can u let me know how i can exchange memory with linux .
My loadmodules.sh script looks like

#!/bin/sh# 12MB# insmod cmemk.ko phys_start=0x8740 phys_end=0x8800 
pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096./mapdmaqinsmod
 dm350mmap.korm -f /dev/dm350mmapmknod /dev/dm350mmap c `awk 
"\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0

My memory req are like 
pool fitting a size 4147200pool fitting a size 8294400 

Regard'sAshish




On Mon, 03 Nov 2008 Vladimir Pantelic wrote :
>ashish pareek wrote:
>>   Hi,
>>I tried to configure my memory requirements in loadmodules.sh script 
that allocated memory pools , but i got error
>>CMEMK Error :failed to get big enough free block .
>
>increase the size of memory that you give to cmem and reduce the size given 
to linux (mem=xxx).
>
>>Is it because my mem req are so high ? How cud i find maxm memory 
supported ?
>
>I don't know your memory requirements, but you exchange cmem for linux mem 
easily.
>
>
>>
>>Ashish
>>
>>
>>On Mon, 03 Nov 2008 Vladimir Pantelic wrote :
>>  >ashish pareek wrote:
>>  >>>>Hi ,
>>  >>Is it possible to have an jpg image of high resolution (i.e. 
1920 x 1080) from jpeg engine using DM355 . Are their any kind of hardware 
limitation in doing that ?
>>  >>My idea is to get an high resolution RAW and YUV (i.e. 1920 x 
1080) image and than convert YUV image to jpg using JPEG engine .
>>  >>
>>  >>When i tried to have an image 1920 x 1080 resolution i found 
following error
>>  >>CMEM Error : getPool : failed to get a pool fitting a size 
4147200
>>  >>CMEM Error : getPool : failed to get a pool fitting a size 
8294400
>>  >
>>  >CMEM was not able to find a large enough buffer, check how it is 
configured (when the modules is loaded) and increase the pool size.
>>  >
>>  >
>>  >
>>  >___
>>  >Davinci-linux-open-source mailing list
>>  >Davinci-linux-open-source@linux.davincidsp.com
>>  
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>>
>>
>>Rediff Shopping 
>>
>
>
>___
>Davinci-linux-open-source mailing list
>Davinci-linux-open-source@linux.davincidsp.com
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: [PATCH] ARM: DaVinci: Audio: Fix the audio stall problem when doing full-duplex

2008-11-03 Thread Medisetty, Naresh
Steve,

I looked at the patch 1875 in MV Pro 5.0 kernel and that indeed seems to be 
fixing the same issue. The disposition on the patch says "needs submitting to 
linux-arm-kernel", so I assume you plan to submit it to arm linux mailing list 
soon. Since the issue is getting fixed upstream, we can drop including this 
patch in DaVinci GIT


From: Steve Chen [EMAIL PROTECTED]
Sent: Friday, October 31, 2008 4:56 PM
To: Medisetty, Naresh
Cc: davinci-linux-open-source@linux.davincidsp.com
Subject: Re: [PATCH] ARM: DaVinci: Audio: Fix the audio stall problem when  
doing full-duplex

Naresh,

This patch seem to derived from patch level 1875 of the Monta Vista
tree.  If you can attach the original patch header, it would be much
appreciated.

Regards,

Steve

On Fri, 2008-10-31 at 01:59, [EMAIL PROTECTED] wrote:
> From: Naresh Medisetty <[EMAIL PROTECTED]>
>
> Fixes the audio stall problem when doing playback and capture at the same 
> time.
>
> Signed-off-by: Naresh Medisetty <[EMAIL PROTECTED]>
> ---
>  sound/soc/davinci/davinci-i2s.c |   35 ---
>  1 files changed, 24 insertions(+), 11 deletions(-)
>
> diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c
> index d8279ad..8b29463 100644
> --- a/sound/soc/davinci/davinci-i2s.c
> +++ b/sound/soc/davinci/davinci-i2s.c
> @@ -262,17 +262,30 @@ static int davinci_i2s_hw_params(struct 
> snd_pcm_substream *substream,
>   u32 w;
>
>   /* general line settings */
> - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG,
> - DAVINCI_MCBSP_SPCR_RINTM(3) |
> - DAVINCI_MCBSP_SPCR_XINTM(3) |
> - DAVINCI_MCBSP_SPCR_FREE);
> - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG,
> - DAVINCI_MCBSP_RCR_RFRLEN1(1) |
> - DAVINCI_MCBSP_RCR_RDATDLY(1));
> - davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG,
> - DAVINCI_MCBSP_XCR_XFRLEN1(1) |
> - DAVINCI_MCBSP_XCR_XDATDLY(1) |
> - DAVINCI_MCBSP_XCR_XFIG);
> + if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
> +
> + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG);
> + w |= (DAVINCI_MCBSP_SPCR_RINTM(3) | DAVINCI_MCBSP_SPCR_FREE);
> + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w);
> +
> + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_RCR_REG);
> + w |= (DAVINCI_MCBSP_RCR_RFRLEN1(1) |
> + DAVINCI_MCBSP_RCR_RDATDLY(1));
> + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG, w);
> +
> + } else {
> +
> + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG);
> + w |= DAVINCI_MCBSP_SPCR_XINTM(3) | DAVINCI_MCBSP_SPCR_FREE;
> + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w);
> +
> + w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_XCR_REG);
> + w |= (DAVINCI_MCBSP_XCR_XFRLEN1(1) |
> + DAVINCI_MCBSP_XCR_XDATDLY(1) |
> + DAVINCI_MCBSP_XCR_XFIG);
> + davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG, w);
> +
> + }
>
>   i = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS);
>   w = davinci_mcbsp_read_reg(dev, 
> DAVINCI_MCBSP_SRGR_REG);___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: setup the TVP5146

2008-11-03 Thread Andrea Gasparini
Panchy Rivas spiffera, alle Friday 31 October 2008 circa:
> Does the linux kernel setup the TVP5146 (decode IC) or is it all done in
> the application in capture.c in the demo for example.  If anything is
> done in the kernel can you please post what and where the code is.

Of course the kernel does.
All you need is in the /drivers/media/video/davinci/ of the last MV kernel. 
In particular take a look at davinci_vpfe.c and tvp5146.c

bye.
-- 
Andrea Gasparini 
 ImaVis S.r.l. 
web: www.imavis.com

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Encodedecode: Failed to open codec engine

2008-11-03 Thread jcm
Hi Mugdha,

Thanks for your reply and the pointer.
I've checked the dsplink configuration at
dsplink/packages/dsplink/config/CURRENTCFG.MK (is it the right place?) and
it seems that CHNL module is ON:

 export USE_CHNL:= 1


The error is launched when TraceUtil_start(ENGINE_NAME) is called from
main(). ENGINE_NAME's value is "encodedecode".

Maybe I touched something in build toolchain, because with my current
environment every demo fails in the same way. However, old backed-up
binaries work fine.

Is there some place in the demos toolchain, where dsplink configuration 
could be modified and then make demos fail? Does this make sense to you?
Is a goog idea to recompile dsplink introducing more traces?

dsplink and cmem modules appear when I lsmod in the target.

And you're right, my dsplink version is 1.30.08.02.

Thanks and regards,
Jose.

--

RE: Encodedecode: Failed to open codec engine

Kamoolkar, Mugdha
Sun, 02 Nov 2008 23:47:11 -0800

Jose,

The error prints that you got in debug build are from DSPLink. For example,
look at the first error:
Failure: Status:[0x80008008] File:[0x50c] Line:[216]

Look at the following wiki page for an interpretation of this:
http://tiexpressdsp.com/wiki/index.php?title=Debugging_DSPLink_using_SET_FAILURE_REASON_prints

This tells us that the file was dsplink/gpp/src/api/Linux/drv_api.c
Failure was at line 216.
In DSPLink version 1.30.08 (which is the version you seem to be using), this
indicates following failure:
#if defined (CHNL_COMPONENT)
if (DSP_SUCCEEDED (status)) {
osStatus = ioctl ((*drvObj)->driverHandle,
  CMD_DRV_GETCHNLMAPTABLE_ADDRESS,
  &cmdArgs) ;

if (osStatus < 0) {
status = DSP_EFAIL ;
SET_FAILURE_REASON ;
}
That means that the ioctl failed. The only reason I can guess that the ioctl
would fail, is if, for some reason, the DSPLink kernel module dsplinkk.ko was
built with CHNL module off in the DSPLink configuration. But the user-side
library of DSPLink was built with CHNL module enabled. In this case, the
user-side #if defined (CHNL_COMPONENT) would go through, and attempt the
ioctl.
But the kernel driver does not understand this command and hence fails.

Is this possible in your build?

Regards,
Mugdha



From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Alan Campbell
Sent: Monday, November 03, 2008 6:22 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Re: Encodedecode: Failed to open codec engine

hello,

You may want to consider the createFromServer method -
http://wiki.davincidsp.com/index.php?title=Configuring_Codec_Engine_in_Arm_apps_with_createFromServer
At least takes the potential-dsp.v.-arm-memory-map-inconsistency out of the
equation.

U need >= CodecEng v2.0 which is shipped in DVSDK >= 1.30.

If u upgrade u should also take advantage of CE_DEBUG=2
http://wiki.davincidsp.com/index.php?title=Codec_Engine_FAQ#Runtime_Troubleshooting
 to debug this further.
cheers, AC
-



From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Stephen Berry <[EMAIL PROTECTED]>
Cc: davinci-linux-open-source@linux.davincidsp.com
Sent: Friday, October 31, 2008 1:45:25 PM
Subject: Re: Encodedecode: Failed to open codec engine


Thanks for your quick answer, Steve.

Yes, I think it is already correctly configured:

/*
*   Engine Configuration 
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var demoEngine = Engine.create("encodedecode", [
{name: "h264enc", mod: H264ENC, local: false, groupId: 0},
{name: "h264dec", mod: H264DEC, local: false, groupId: 0},

]);




> I'm no expert, but you might want to check your encodedecode.cfg file.
> Make sure that the line:
>
>var myEngine = Engine.create("encode", [
>
> says "encodedecode" to match the engine name that you are trying to open.
>
>Steve
>
> [EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote:
>> Hi all.
>>
>> I'm modifying the demos of DVEVM6446 and I'm stuck in the error <> to open codec engine "encodedecode">>.
>>
>> What seems strange to me is that only encodedecode fails. Decode and
>> encode run correctly. I also kept an old binary of encodedecode that
>> works
>> fine. So, my doubts (due to my lack of experience, for sure) are, what
>> should I modify (maybe in the code) to make this works? and Why the
>> other
>> demos, using the same codec, works fine?
>>
>> Thanks in advance,
>> Jose
>>
>> --
>> With the DEBUG define, the traces are:
>>
>> Entered PROC_Setup ()
>> Entered DRV_Initialize ()
>> drvObj[0x31af0]
>> arg[0x0]
>>
>> Failure: Status:[0x80008008] File:[0x50c] Line:[216]
>> Leaving DRV_Initialize () status [0x80008008]
>>
>> Failure: Status:[0x80008008] File:[0x200] Line:[116]
>> Leaving PROC_Setup () status [0x80008008]
>> Entered MSGQ_TransportClose

Re: RE: DM355 - UBL and display flicker

2008-11-03 Thread richard.zhao
HI Deepak,

Yes I have tried the DVFlasher, every operation will halt at "UART UBL 
Transmitted successfully". Having waited for a moment I change the boot switch, 
it runs. I had thought the task failed when halting at "UART UBL Transmitted 
successfully" before.

Thanks very much

Regards,
Richard
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Encodedecode: Failed to open codec engine

2008-11-03 Thread Kamoolkar, Mugdha
Jose,

I recall that Codec Engine disables USE_CHNL in DSPLink pre-built binaries that 
it provides. So if USE_CHNL is 1 and you have re-built user-side, you could see 
this issue. Can you make USE_CHNL 0 in CURRENTCFG.MK and re-build the user-side?

Regards,
Mugdha

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:46 AM
To: Davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Encodedecode: Failed to open codec engine

Hi Mugdha,

Thanks for your reply and the pointer.
I've checked the dsplink configuration at 
dsplink/packages/dsplink/config/CURRENTCFG.MK (is it the right place?) and it 
seems that CHNL module is ON:

 export USE_CHNL:= 1


The error is launched when TraceUtil_start(ENGINE_NAME) is called from main(). 
ENGINE_NAME's value is "encodedecode".

Maybe I touched something in build toolchain, because with my current 
environment every demo fails in the same way. However, old backed-up binaries 
work fine.

Is there some place in the demos toolchain, where dsplink configuration could 
be modified and then make demos fail? Does this make sense to you?
Is a goog idea to recompile dsplink introducing more traces?

dsplink and cmem modules appear when I lsmod in the target.

And you're right, my dsplink version is 1.30.08.02.

Thanks and regards,
Jose.

--

RE: Encodedecode: Failed to open codec engine

Kamoolkar, Mugdha
Sun, 02 Nov 2008 23:47:11 -0800

Jose,

The error prints that you got in debug build are from DSPLink. For example, 
look at the first error:
Failure: Status:[0x80008008] File:[0x50c] Line:[216]

Look at the following wiki page for an interpretation of this:
http://tiexpressdsp.com/wiki/index.php?title=Debugging_DSPLink_using_SET_FAILURE_REASON_prints

This tells us that the file was dsplink/gpp/src/api/Linux/drv_api.c
Failure was at line 216.
In DSPLink version 1.30.08 (which is the version you seem to be using), this 
indicates following failure:
#if defined (CHNL_COMPONENT)
if (DSP_SUCCEEDED (status)) {
osStatus = ioctl ((*drvObj)->driverHandle,
  CMD_DRV_GETCHNLMAPTABLE_ADDRESS,
  &cmdArgs) ;

if (osStatus < 0) {
status = DSP_EFAIL ;
SET_FAILURE_REASON ;
}
That means that the ioctl failed. The only reason I can guess that the ioctl 
would fail, is if, for some reason, the DSPLink kernel module dsplinkk.ko was 
built with CHNL module off in the DSPLink configuration. But the user-side 
library of DSPLink was built with CHNL module enabled. In this case, the 
user-side #if defined (CHNL_COMPONENT) would go through, and attempt the ioctl.
But the kernel driver does not understand this command and hence fails.

Is this possible in your build?

Regards,
Mugdha



From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Alan Campbell
Sent: Monday, November 03, 2008 6:22 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Re: Encodedecode: Failed to open codec engine

hello,

You may want to consider the createFromServer method - 
http://wiki.davincidsp.com/index.php?title=Configuring_Codec_Engine_in_Arm_apps_with_createFromServer
At least takes the potential-dsp.v.-arm-memory-map-inconsistency out of the 
equation.

U need >= CodecEng v2.0 which is shipped in DVSDK >= 1.30.

If u upgrade u should also take advantage of CE_DEBUG=2 
http://wiki.davincidsp.com/index.php?title=Codec_Engine_FAQ#Runtime_Troubleshooting
 to debug this further.
cheers, AC
-



From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Stephen Berry <[EMAIL PROTECTED]>
Cc: davinci-linux-open-source@linux.davincidsp.com
Sent: Friday, October 31, 2008 1:45:25 PM
Subject: Re: Encodedecode: Failed to open codec engine


Thanks for your quick answer, Steve.

Yes, I think it is already correctly configured:

/*
*   Engine Configuration  */ var Engine = 
xdc.useModule('ti.sdo.ce.Engine');
var demoEngine = Engine.create("encodedecode", [
{name: "h264enc", mod: H264ENC, local: false, groupId: 0},
{name: "h264dec", mod: H264DEC, local: false, groupId: 0},

]);




> I'm no expert, but you might want to check your encodedecode.cfg file.
> Make sure that the line:
>
>var myEngine = Engine.create("encode", [
>
> says "encodedecode" to match the engine name that you are trying to open.
>
>Steve
>
> [EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote:
>> Hi all.
>>
>> I'm modifying the demos of DVEVM6446 and I'm stuck in the error 
>> <>.
>>
>> What seems strange to me is that only encodedecode fails. Decode and 
>> encode run correctly. I also kept an old binary of encodedecode that 
>> works fine. So, my doubts (due to my lack of experience, for sure) 
>> are, what should I modify (maybe in the code) to make this works? and 
>> Why th

Components needed to decode video on davinci platform

2008-11-03 Thread amr ali
Hi,
If I want to decode video on DM6446 and want to get the best of it, what are 
the hardware components I must use?
As an initial thought, I should use:


ARM core

DSP core

Resizer
Do I miss any component on the board?
 
BR,
Amr.
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source