From: Brian Austin <brian.austin@cirrus.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Brian Austin <brian.austin@cirrus.com>,
broonie@kernel.org, alsa-devel@alsa-project.org,
paul.handrigan@cirrus.com, lgirdwood@gmail.com
Subject: Re: [PATCH] ASoC: cs42l51: Fix SOC_DOUBLE_R_SX_TLV shift values for ADC, PCM, and Analog kcontrols
Date: Fri, 18 Apr 2014 09:00:35 -0500 [thread overview]
Message-ID: <alpine.DEB.2.02.1404180851570.9674@heelrod> (raw)
In-Reply-To: <20140418112355.4c1fe3ac@skate>
On Fri, 18 Apr 2014, Thomas Petazzoni wrote:
> Simple mixer control 'Analog',0
> Capabilities: pvolume
> Playback channels: Front Left - Front Right
> Limits: Playback 0 - 177
This is wrong
> Mono:
> Front Left: Playback 204 [115%] [0.00dB]
> Front Right: Playback 204 [115%] [0.00dB]
root@beagleboard:~# amixer sget 'Analog'
Simple mixer control 'Analog',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 229
Mono:
Front Left: Playback 204 [89%] [0.00dB]
Front Right: Playback 204 [89%] [0.00dB]
root@beagleboard:~# i2cdump -y -f 1 0x4b
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 d9 7e ae 00 00 a0 00 60 44 00 00 00 00 84 84 .?~?..?.`D....??
10: 19 19 00 00 00 88 00 00 00 00 7f 00 01 3f 00 00 ??...?....?.??..
[...]
As you can see the output of amixer is wrong on your system. There are 229
steps for gain on this control. At 89% we are at 0dB which is correct
according to I2C Tools (0h)
root@beagleboard:~# amixer sset 'Analog' 0
Simple mixer control 'Analog',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 229
Mono:
Front Left: Playback 0 [0%] [-102.00dB]
Front Right: Playback 0 [0%] [-102.00dB]
root@beagleboard:~# i2cdump -y -f 1 0x4b
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 d9 7e ae 00 00 a0 00 60 44 00 00 00 00 84 84 .?~?..?.`D....??
10: 19 19 00 00 00 88 34 34 00 00 7f 00 01 3f 00 00 ??...?44..?.??..
-102dB gives the correct output and register writes as well. (34h)
My regmap output maps correctly too. Weird.
So lets get a few versions of some things to see what and where things
went wrong.
What kernel version?
Alsa-lib version?
What distro are you using?
Thanks,
Brian
next prev parent reply other threads:[~2014-04-18 14:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 15:40 [PATCH] ASoC: cs42l51: Fix SOC_DOUBLE_R_SX_TLV shift values for ADC, PCM, and Analog kcontrols Brian Austin
2014-03-19 16:38 ` Mark Brown
2014-04-17 14:26 ` Thomas Petazzoni
2014-04-17 15:00 ` Brian Austin
2014-04-17 15:08 ` Brian Austin
[not found] ` <20140418112355.4c1fe3ac@skate>
2014-04-18 12:22 ` Austin, Brian
2014-04-18 14:00 ` Brian Austin [this message]
2014-04-18 14:21 ` Thomas Petazzoni
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=alpine.DEB.2.02.1404180851570.9674@heelrod \
--to=brian.austin@cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=paul.handrigan@cirrus.com \
--cc=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox