From: Patrick Lai <plai@codeaurora.org>
To: alsa-devel <alsa-devel@alsa-project.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>, lrg@ti.com
Subject: Mixer control for signed gain value
Date: Wed, 22 Jun 2011 23:32:19 -0700 [thread overview]
Message-ID: <4E02DDF3.2070509@codeaurora.org> (raw)
Hi,
The CODEC I am working with takes byte-long gain value in two's
complement form.
In soc-core.c, the closest functions I see are
snd_soc_info_volsw_s8
snd_soc_get_volsw_s8
snd_soc_set_volsw_s8
These functions are coded to work with two integer values. For my
purpose, I suppose that I can always set 2nd integer input as zero.
However, would I still be able to set volume like
amixer sset "Codec Gain" 100 as percentage. If yes, how will amixer
know to put upper 8 bits of 16 bit gain in 2nd integer value element?
Thanks
Patrick
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next reply other threads:[~2011-06-23 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 6:32 Patrick Lai [this message]
2011-06-23 10:37 ` Mixer control for signed gain value Mark Brown
2011-06-28 16:21 ` Patrick Lai
2011-06-28 16:32 ` Mark Brown
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=4E02DDF3.2070509@codeaurora.org \
--to=plai@codeaurora.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.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 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.