All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pedro I. Sanchez" <psanchez@fosstel.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASoC: at91sam9260-PCM1808/TAS5709-based board driver
Date: Tue, 25 Aug 2009 13:31:57 -0400	[thread overview]
Message-ID: <4A94200D.6080707@fosstel.com> (raw)
In-Reply-To: <20090811224132.GB4691@sirena.org.uk>

Hello,

I've been working on my driver, this time concentrating on the TAS5760. 
I decided to use the WM8731 codec and the sam9g20_wm8731 machine drivers 
as templates.

Things are mostly OK now, my kernel modules install, and the driver can 
read/write the chip registers properly. User space applications can see 
my custom board as a sound card. Tha's progress!

The TAS5709 is a playback-slave-only device The SSC is therefore put in 
master mode and I can see the SSC clock signals (SCLK and LRCLK) on the 
scope when playing a sound file. I can also see the activity on the data 
line. But unfortunately, there is no sound, just a speaker Hisss when I 
play a file. I doubled checked all the volume levels to ensure they are 
not mutted.

However, I noticed that the duty cycle of the SSC clocks is not 50% as I 
would expect it to be. There seem to be much more bits on one channel 
than in the other (my sample file is stereo, 16 bits, 44.1 MHz). The 
sample clock illustrations in the TAS5709 all have the same number of 
bits per channel, but it doesn't say explicitly that this is mandatory. 
 From my understanding of the I2S spec, this is not.

The TAS5709 is supposed to detect the clock and data rates 
automatically. Do you know if this non-50% duty cycle could be the 
reason for the lack of sound? Is there a way to force it to be 50%?

Thanks,

-- 
Pedro

  reply	other threads:[~2009-08-25 17:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-08 17:39 ASoC: at91sam9260-PCM1808/TAS5709-based board driver Pedro Sanchez
2009-08-09 10:36 ` Mark Brown
2009-08-09 13:35 ` Jon Smirl
2009-08-09 13:37   ` Jon Smirl
2009-08-11 18:41     ` Pedro I. Sanchez
2009-08-11 18:51       ` Jon Smirl
2009-08-11 22:41       ` Mark Brown
2009-08-25 17:31         ` Pedro I. Sanchez [this message]
2009-08-25 18:29           ` Mark Brown
2009-08-25 19:46             ` Pedro I. Sanchez
2009-08-26 11:44               ` Mark Brown
2009-08-27 19:11                 ` Pedro I. Sanchez
2009-08-28 12:15                   ` Mark Brown
2009-08-28 21:24                     ` Pedro I. Sanchez
2009-08-28 21:52                       ` Pedro I. Sanchez
2009-08-29  9:18                       ` Mark Brown
2009-08-29 16:01                         ` Pedro I. Sanchez

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=4A94200D.6080707@fosstel.com \
    --to=psanchez@fosstel.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 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.