From: Jochen Voss <voss@seehuhn.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [RFC] Add dB scale information to AK4xxx codec
Date: Thu, 7 Sep 2006 12:00:30 +0100 [thread overview]
Message-ID: <20060907110027.GA3030@tarte.seehuhn.de> (raw)
In-Reply-To: <s5hirk0klu9.wl%tiwai@suse.de>
[-- Attachment #1.1: Type: text/plain, Size: 2075 bytes --]
Hello Takashi,
On Thu, Sep 07, 2006 at 12:33:18PM +0200, Takashi Iwai wrote:
> Yes. Then we need to take the controls back to a single one.
> Will do later.
Ok.
> I still wonder whether this is also true for AK4524...
No idea about this, I do not have an AK4524 so I cannot test.
> > > Also, it's possible that I did make a silly mistake. Put a debug
> > > printk around ak->ops.write() in snd_akm4xxx_write() to check what
> > > values are written to register 4 and 5.
> >
> > I will try this in the evening.
This sounded more fun than the simulation I am supposed to do for work,
so I sneaked away and did this first ;-)
I used the following printk:
======================================================================
--- ak4xxx-adda.c~ 2006-08-31 01:00:11.000000000 +0100
+++ ak4xxx-adda.c 2006-09-07 11:49:57.394999424 +0100
@@ -40,6 +40,9 @@
unsigned char val)
{
ak->ops.lock(ak, chip);
+ if (ak->type == SND_AK5365 && (reg==4 || reg==5)) {
+ printk (KERN_INFO "reg%d <- %02x\n", reg, val);
+ }
ak->ops.write(ak, chip, reg, val);
/* save the data */
======================================================================
Results from my second test (s2.sh vs s3.sh):
s2.sh: The commands
amixer set "PCM Capture Gain" 0
amixer set "PCM Capture Gain" 20
amixer set "PCM" 0
amixer set "PCM" 80%
translate into
reg4 <- 80
reg5 <- 80
reg4 <- 94
reg5 <- 94
reg4 <- 00
reg5 <- 00
reg4 <- 5e
reg5 <- 5e
s3.sh: The commands
amixer set "PCM" 0
amixer set "PCM" 80%
amixer set "PCM Capture Gain" 0
amixer set "PCM Capture Gain" 20
translate into
reg4 <- 00
reg5 <- 00
reg4 <- 5e
reg5 <- 5e
reg4 <- 80
reg5 <- 80
reg4 <- 94
reg5 <- 94
This seems to be the expected register assignments. As stated before,
these settings lead to different recording volume.
All the best,
Jochen
--
http://seehuhn.de/
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
next prev parent reply other threads:[~2006-09-07 11:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 11:38 [RFC] Add dB scale information to AK4xxx codec Takashi Iwai
2006-08-28 14:52 ` Takashi Iwai
2006-09-03 15:53 ` Jochen Voss
2006-09-04 9:58 ` Takashi Iwai
2006-09-04 11:13 ` Jochen Voß
2006-09-04 11:35 ` Takashi Iwai
2006-09-04 12:12 ` Jochen Voß
2006-09-04 17:41 ` Jochen Voss
2006-09-04 18:28 ` Takashi Iwai
2006-09-04 19:27 ` Jochen Voss
2006-09-05 9:36 ` Takashi Iwai
2006-09-05 19:24 ` Jochen Voss
2006-09-07 10:09 ` Takashi Iwai
2006-09-07 10:29 ` Jochen Voss
2006-09-07 10:33 ` Takashi Iwai
2006-09-07 11:00 ` Jochen Voss [this message]
2006-09-07 12:49 ` Takashi Iwai
2006-09-07 14:52 ` Takashi Iwai
2006-09-07 22:18 ` Jochen Voss
2006-09-08 10:32 ` Takashi Iwai
2006-09-10 22:38 ` Jochen Voss
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=20060907110027.GA3030@tarte.seehuhn.de \
--to=voss@seehuhn.de \
--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 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.