All of lore.kernel.org
 help / color / mirror / Atom feed
From: "chaithrika" <chaithrika@ti.com>
To: 'Troy Kisky' <troy.kisky@boundarydevices.com>
Cc: alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com,
	davinci-linux-open-source@linux.davincidsp.com
Subject: Re: [PATCH 1/2] ASoC: DaVinci: McASP driver enhacements
Date: Mon, 10 Aug 2009 10:28:26 +0530	[thread overview]
Message-ID: <020101ca1977$323fe010$96bfa030$@com> (raw)
In-Reply-To: <4A7C8789.40408@boundarydevices.com>

On Sat, Aug 08, 2009 at 01:29:05, Troy Kisky wrote:
> Chaithrika U S wrote:
> > ---
> >  sound/soc/davinci/davinci-mcasp.c |  113
++++++++++++++++++++++++++++++++++--
> >  sound/soc/davinci/davinci-mcasp.h |    5 ++
> >  sound/soc/davinci/davinci-pcm.c   |    4 +-
> >  sound/soc/davinci/davinci-pcm.h   |    1 +
> >  4 files changed, 115 insertions(+), 8 deletions(-)
> 
> .....
> > diff --git a/sound/soc/davinci/davinci-pcm.c
b/sound/soc/davinci/davinci-pcm.c
> > index 8fd0c3c..1e2dfd0 100644
> > --- a/sound/soc/davinci/davinci-pcm.c
> > +++ b/sound/soc/davinci/davinci-pcm.c
> > @@ -67,6 +67,7 @@ static void davinci_pcm_enqueue_dma(struct
snd_pcm_substream *substream)
> >  	dma_addr_t src, dst;
> >  	unsigned short src_bidx, dst_bidx;
> >  	unsigned int data_type;
> > +	unsigned short acnt;
> >  	unsigned int count;
> >  
> >  	period_size = snd_pcm_lib_period_bytes(substream);
> > @@ -91,11 +92,12 @@ static void davinci_pcm_enqueue_dma(struct
snd_pcm_substream *substream)
> >  		dst_bidx = data_type;
> >  	}
> >  
> > +	acnt = prtd->params->acnt;
> >  	edma_set_src(lch, src, INCR, W8BIT);
> >  	edma_set_dest(lch, dst, INCR, W8BIT);
> >  	edma_set_src_index(lch, src_bidx, 0);
> >  	edma_set_dest_index(lch, dst_bidx, 0);
> > -	edma_set_transfer_params(lch, data_type, count, 1, 0, ASYNC);
> > +	edma_set_transfer_params(lch, acnt, count, 1, 0, ASYNC);
> 
> Since I see no change to davinci-i2s, I think this will break any platform
which
> uses davinci-i2s.
> 
Yes, I agree. I have missed out the changes got davinci-i2s.
I will submit a patch for this.

Thanks,
Chaithrika


> >  
> >  	prtd->period++;
> >  	if (unlikely(prtd->period >= runtime->periods))
> > diff --git a/sound/soc/davinci/davinci-pcm.h
b/sound/soc/davinci/davinci-pcm.h
> > index eb4287f..63d9625 100644
> > --- a/sound/soc/davinci/davinci-pcm.h
> > +++ b/sound/soc/davinci/davinci-pcm.h
> > @@ -19,6 +19,7 @@
> >  struct davinci_pcm_dma_params {
> >  	char *name;			/* stream identifier */
> >  	int channel;			/* sync dma channel ID */
> > +	unsigned short acnt;
> >  	dma_addr_t dma_addr;		/* device physical address for DMA
*/
> >  	enum dma_event_q eventq_no;	/* event queue number */
> >  	unsigned char data_type;	/* xfer data type */
> 
> 

  reply	other threads:[~2009-08-10  4:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 14:07 [PATCH 1/2] ASoC: DaVinci: McASP driver enhacements Chaithrika U S
2009-08-07 19:59 ` Troy Kisky
2009-08-10  4:58   ` chaithrika [this message]
2009-08-08  8:11 ` Mark Brown
2009-08-10  5:07   ` chaithrika

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='020101ca1977$323fe010$96bfa030$@com' \
    --to=chaithrika@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=troy.kisky@boundarydevices.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.