All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasily Khoruzhick <anarsoul@gmail.com>
To: pHilipp Zabel <philipp.zabel@gmail.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@sirena.org.uk>
Subject: Re: asoc: s3c24xx+uda1380 - some questions
Date: Tue, 3 Feb 2009 01:46:32 +0200	[thread overview]
Message-ID: <200902030146.38863.anarsoul@gmail.com> (raw)
In-Reply-To: <200901272232.17752.anarsoul@gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1073 bytes --]

On Tuesday 27 January 2009 22:32:11 Vasily Khoruzhick wrote:
> On 27 January 2009 21:49:01 pHilipp Zabel wrote:
> > The uda1380 data sheet says that the reset time should be at least 1
> > µs - could that be a problem?
> >
> > regards
> > Philipp
>
> Nope, added mdelay(10) in reset sequence, but it didn't help.
>
> Regards
> Vasily

Here's patch that fixes 2nd bug I've mentioned (there's a sound only on second 
and later aplay). It's bug in uda1380 driver (probably, just a typo), driver 
switches to WSPLL in uda1380_pcm_prepare even if SYSCLK was chosen 
(uda1380_pcm_prepare modifies UDA1380_CLK register before flushing reg cache, 
but doesn't restore its value later)

One more question: it seems that my rx1950 clocked in a way that I can't get 
precise divisor for 44100 and 22050 rates, but uda1380 driver propose them 
(look UDA1380_RATES define and struct snd_soc_dai uda1380_dai[].
How to exclude all rates except 16000 and 48000? Should I declare my own 
snd_soc_dai and copy necessary members from uda1380's one?

Regards
Vasily

[-- Attachment #1.1.2: 0001-Fix-typo-in-uda1380-driver.patch --]
[-- Type: text/x-patch, Size: 789 bytes --]

From ad025e64d006dc86b7a669b8f5ab611b0b33b292 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Tue, 3 Feb 2009 01:34:09 +0200
Subject: [PATCH] Fix typo in uda1380 driver


Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---
 sound/soc/codecs/uda1380.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c
index a69ee72..a4d32b1 100644
--- a/sound/soc/codecs/uda1380.c
+++ b/sound/soc/codecs/uda1380.c
@@ -433,7 +433,7 @@ static int uda1380_pcm_prepare(struct snd_pcm_substream *substream)
 	}
 
 	/* FIXME enable DAC_CLK */
-	uda1380_write(codec, UDA1380_CLK, clk | R00_DAC_CLK);
+	uda1380_write(codec, UDA1380_CLK, clk);
 
 	return 0;
 }
-- 
1.6.1.1


[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2009-02-02 23:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27 13:19 asoc: s3c24xx+uda1380 - some questions Vasily Khoruzhick
2009-01-27 15:00 ` Mark Brown
2009-01-27 15:19   ` Vasily Khoruzhick
2009-01-27 15:25     ` Mark Brown
2009-01-27 15:49       ` Vasily Khoruzhick
2009-01-27 16:06         ` pHilipp Zabel
2009-01-27 16:22           ` Vasily Khoruzhick
2009-01-27 19:49             ` pHilipp Zabel
2009-01-27 20:32               ` Vasily Khoruzhick
2009-02-02 23:46                 ` Vasily Khoruzhick [this message]
2009-02-03 11:41                   ` Mark Brown
2009-02-03 11:57                     ` Vasily Khoruzhick
2009-02-03 12:05                       ` Mark Brown
2009-02-03 13:52                         ` Vasily Khoruzhick
2009-02-03 16:09                           ` pHilipp Zabel
2009-02-03 17:21                           ` Mark Brown
2009-01-27 20:00             ` Mark Brown
2009-01-27 20:14               ` Vasily Khoruzhick
2009-01-27 20:19                 ` Mark Brown

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=200902030146.38863.anarsoul@gmail.com \
    --to=anarsoul@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@sirena.org.uk \
    --cc=philipp.zabel@gmail.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.