Re: [RFC] Add dB scale information to AK4xxx codec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Takashi,

On Mon, Sep 04, 2006 at 08:28:32PM +0200, Takashi Iwai wrote:
> OK, maybe the problem is its naming.
I ignored this for the moment.  Once we are sure how many controls
there are, we can think about the naming.

> 	% amixer set "PCM Gain" 2
> 	% amixer set "PCM Gain" 0
> 	% amixer set "Capture" 0
> 	% amixer set "Capture" 80%
> 	recording...
> 
> 	% amixer set "PCM Gain" 0
> 	% amixer set "PCM Gain" 2
> 	% amixer set "Capture" 0
> 	% amixer set "Capture" 80%
> 	recording...
> 
> If the volumes of two cases are same, the IPGA isn't independent and
> both controls should be merged to a single control.

I read the AK4524 data sheet and I see now what you mean.  The
descriptions there are almost identical.

I tried the following.  My amixer output is at the end of the mail for
reference.  first I created two shell scripts:

-- s1.sh -------------------------------------------------------------
#! /bin/sh
amixer set "PCM Capture Gain" 2
amixer set "PCM Capture Gain" 0
amixer set "PCM" 0
amixer set "PCM" 80%
----------------------------------------------------------------------

-- s2.sh -------------------------------------------------------------
#! /bin/sh
amixer set "PCM Capture Gain" 0
amixer set "PCM Capture Gain" 2
amixer set "PCM" 0
amixer set "PCM" 80%
----------------------------------------------------------------------

and then I run the following command on the shell

    while true; do ./s1.sh; sleep 1; ./s2.sh; sleep 1; done

While this was running I recorded a wav file with arecord.  The volume
of the recorded file was extremely low (is this normal?) so I
normalised it with audacity.  I looked at the wave form in audacity
and I played the normalised file with alsamixer.

Results:

1) I cannot hear or see the difference between the settings from s1.sh
and s2.sh.

2) As a test I tried the following: I can hear (and maybe just see)
the difference between 80% (value 102) and 82% (value 104).  I cannot
notice any difference between 80% (value 102) and 81% (value 103).

Do you have any idea how different the volumes would be if IPGA and
DATT were independent?

All the best,
Jochen



-- amixer output -----------------------------------------------------
Simple mixer control 'PCM',0
  Capabilities: pvolume cvolume cswitch cswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 127 Capture 0 - 127
  Front Left: Playback 102 [80%] Capture 102 [80%] [on]
  Front Right: Playback 102 [80%] Capture 102 [80%] [on]
Simple mixer control 'PCM Capture Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 36
  Front Left: 2 [6%]
  Front Right: 2 [6%]
Simple mixer control 'PCM Center',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%]
Simple mixer control 'PCM LFE',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%]
Simple mixer control 'PCM Rear',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%]
  Front Right: Playback 127 [100%]
Simple mixer control 'IEC958',0
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'H/W In 0'
Simple mixer control 'IEC958 Output',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'H/W In 1'
Simple mixer control 'Deemphasis',0
  Capabilities: enum
  Items: '44.1kHz' 'Off' '48kHz' '32kHz'
  Item0: 'Off'
Simple mixer control 'H/W',0
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',1
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',2
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'H/W In 0'
Simple mixer control 'H/W',3
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'H/W In 1'
Simple mixer control 'H/W',4
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'IEC958 In L'
Simple mixer control 'H/W',5
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'IEC958 In R'
Simple mixer control 'Multi Track Internal Clock',0
  Capabilities: enum
  Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000' '44100' '48000' '64000' '88200' '96000' '176400' '192000' 'IEC958 Input'
  Item0: '44100'
Simple mixer control 'Multi Track Peak',0
  Capabilities: volume
  Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
  Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
  Limits: 0 - 255
  Front Left: 0 [0%]
  Front Right: 0 [0%]
  Rear Left: 0 [0%]
  Rear Right: 0 [0%]
  Front Center: 0 [0%]
  Woofer: 0 [0%]
  Side Left: 0 [0%]
  Side Right: 0 [0%]
  Rear Center: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
Simple mixer control 'Multi Track Rate Locking',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Multi Track Rate Reset',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
----------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux