Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Pohanka" <xhpohanka@gmail.com>
To: alsa-devel@alsa-project.org
Subject: ASoC davinci: playing mono sound doubles all samples on the i2s (pcm) bus except the first one
Date: Fri, 27 Jan 2012 12:31:53 +0100	[thread overview]
Message-ID: <op.v8qqbfafyxxkfz@localhost.localdomain> (raw)

Hello,

I'm working with a board with TI dm365 processor and using McBSP  
pheripheral to send sound samples to a GSM module. The kernel version is  
2.6.32.17 and the ASoC driver state is based on this commit  
http://arago-project.org/git/projects/?p=linux-davinci.git;a=commit;h=a4c8ea2ddaed2f461606c2828b19786524b551ac

I have configured the hw interface to send two words in a frame on 8000Hz,  
this is working fine. When playing mono waveforms I noticed that all  
samples are doubled (it should be correct because snd_pcm_hardware has  
SNDRV_PCM_INFO_INTERLEAVED flag) but except the first one, that is send  
only once. This leads to a state when one sample in each frame is delayed.  
Unfortunately I'm not an expert on ALSA and ASoC and I'm not sure whether  
this problem rises in the core of ALSA or only in the driver for davinci  
dm365 (probably somewhere in the dma handling).

Could please someone give me some hint where to find the source of the  
problem? I hope I described the situation enough...

best regards
Jan

-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

                 reply	other threads:[~2012-01-27 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=op.v8qqbfafyxxkfz@localhost.localdomain \
    --to=xhpohanka@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox