From: Takashi Iwai <tiwai@suse•de>
To: Johannes Berg <johannes@sipsolutions•net>
Cc: linuxppc-dev@ozlabs•org, alsa-devel@alsa-project•org
Subject: Re: [Alsa-devel] [RFC 5/8] snd-aoa: add codecs
Date: Fri, 02 Jun 2006 16:31:49 +0200 [thread overview]
Message-ID: <s5hpshr4oiy.wl%tiwai@suse.de> (raw)
In-Reply-To: <20060601115848.075177000@sipsolutions.net>
At Thu, 01 Jun 2006 13:58:49 +0200,
Johannes Berg wrote:
>
> --- /dev/null
> +++ b/sound/aoa/codecs/snd-aoa-codec-tas-gain-table.h
> @@ -0,0 +1,209 @@
> +/*
> + This is the program used to generate below table.
> +
> +#include <stdio.h>
> +#include <math.h>
> +int main() {
> + int dB2;
> + printf("/" "* This file is only included exactly once!\n");
> + printf(" *\n");
> + printf(" * If they'd only tell us that generating this table was\n");
> + printf(" * as easy as calculating\n");
> + printf(" * hwvalue = 1048576.0*exp(0.057564628*dB*2)\n");
> + printf(" * :) *" "/\n");
> + printf("static int tas_gaintable[] = {\n");
> + printf(" 0x000000, /" "* -infinity dB *" "/\n");
> + for (dB2=-140;dB2<=36;dB2++)
> + printf(" 0x%.6x, /" "* %-02.1f dB *" "/\n", (int)(1048576.0*exp(0.057564628*dB2)), dB2/2.0);
> + printf("};\n\n");
> +}
FYI: We're currently implementing a dB conversion. So, this will be
unneeded in future.
But I'll included this as it is now at committing, and fix the dB
things later.
Takashi
next prev parent reply other threads:[~2006-06-02 14:31 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-01 11:58 [RFC 0/8] snd-aoa: add snd-aoa Johannes Berg
2006-06-01 11:58 ` [RFC 1/8] snd-aoa: add aoa header files Johannes Berg
2006-06-01 11:58 ` [RFC 2/8] snd-aoa: add aoa core Johannes Berg
2006-06-02 13:42 ` [Alsa-devel] " Takashi Iwai
2006-06-02 13:46 ` Johannes Berg
2006-06-01 11:58 ` [RFC 3/8] snd-aoa: add soundbus Johannes Berg
2006-06-02 13:53 ` [Alsa-devel] " Takashi Iwai
2006-06-02 14:07 ` Johannes Berg
2006-06-02 14:21 ` Takashi Iwai
2006-06-02 14:41 ` Andreas Schwab
2006-06-02 14:44 ` Johannes Berg
2006-06-02 14:45 ` Takashi Iwai
2006-06-01 11:58 ` [RFC 4/8] snd-aoa: add i2sbus Johannes Berg
2006-06-02 14:23 ` [Alsa-devel] " Takashi Iwai
2006-06-06 11:17 ` Johannes Berg
2006-06-06 14:00 ` Takashi Iwai
2006-06-07 11:40 ` Johannes Berg
2006-06-07 12:41 ` Takashi Iwai
2006-06-07 12:45 ` Johannes Berg
2006-06-07 12:49 ` Takashi Iwai
2006-06-07 12:52 ` Johannes Berg
2006-06-07 12:58 ` Takashi Iwai
2006-06-07 13:01 ` Johannes Berg
2006-06-01 11:58 ` [RFC 5/8] snd-aoa: add codecs Johannes Berg
2006-06-02 14:31 ` Takashi Iwai [this message]
2006-06-06 11:36 ` [Alsa-devel] " Johannes Berg
2006-06-01 11:58 ` [RFC 6/8] snd-aoa: add layout-id fabric Johannes Berg
2006-06-01 11:58 ` [RFC 7/8] snd-aoa: add Kconfig and Makefile Johannes Berg
2006-06-01 11:58 ` [RFC 8/8] snd-aoa: wire up aoa in sound/ Johannes Berg
2006-06-02 14:43 ` [Alsa-devel] [RFC 0/8] snd-aoa: add snd-aoa Takashi Iwai
2006-06-02 14:56 ` Johannes Berg
2006-06-02 15:23 ` Takashi Iwai
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=s5hpshr4oiy.wl%tiwai@suse.de \
--to=tiwai@suse$(echo .)de \
--cc=alsa-devel@alsa-project$(echo .)org \
--cc=johannes@sipsolutions$(echo .)net \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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