Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Remy Bruno <remy.bruno@trinnov.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: RME 9632 - Problem half solved
Date: Mon, 9 Oct 2006 12:18:59 +0200	[thread overview]
Message-ID: <20061009101859.GA16650@trinnov.com> (raw)
In-Reply-To: <s5h64exs714.wl%tiwai@suse.de>

On Friday 06 October at 19:12, Takashi Iwai wrote:
> Could you give a proper changelog text and a signed-off-by line to
> merge your patch into ALSA tree?

Changelog:
hdsp: support for mixer matrix of RME9632 rev 152

Signed-off-by: Remy Bruno <remy.bruno@trinnov.com>

> 
> > 
> > For the frequency problem, I got an answer from RME which explains that another
> > register needs to be set (together with the freq0, 1, 2 bits of the control
> > register). This register is the "DDS" register. Here is how it should be
> > computed:
> > UINT64 CalcDDSValue(UINT64 rate)
> > {
> >         if (rate >= 112000)
> >                 rate /= 4;
> >         else if (rate >= 56000)
> >                 rate /= 2;
> > 
> >         return 104857600000000 / rate;
> > }
> > MemBase[FREQ_REG] = (ULONG)CalcDDSValue(new_rate)
> > 
> > Any ideas of what the offset of this register is? If not, I will ask him. BTW,
> > this register exists only for the 9632 and not for the 9652.
> 
> Hm, the numerator is pretty big, it's 0x100000 * 10^7.
> A clock with fixed point?

Yes, that's weird. That's what they told me. I'll investigate this.

> 
> Anyway, remember that you cannot use 64bit division in the linux
> kernel code as it is.  You can use a macro div64_32 defined in pcm.h,
> though.

OK

Remy

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

      reply	other threads:[~2006-10-09 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-03 10:37 RME 9632 Remy Bruno
2006-10-06 13:53 ` RME 9632 - Problem half solved Remy Bruno
2006-10-06 17:12   ` Takashi Iwai
2006-10-09 10:18     ` Remy Bruno [this message]

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=20061009101859.GA16650@trinnov.com \
    --to=remy.bruno@trinnov.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.de \
    /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