[alsa-devel] [PATCH 3/8] McBSP: OMAP3: Add Sidetone feature

Eero Nurkkala ext-eero.nurkkala at nokia.com
Mon Oct 12 08:17:41 CEST 2009

On Fri, 2009-10-09 at 12:44 +0200, ext Mark Brown wrote:
> On Fri, Oct 09, 2009 at 08:09:27AM +0300, Eero Nurkkala wrote:
> > On Thu, 2009-10-08 at 15:17 +0200, ext Mark Brown wrote:
> > > This stuff, particularly the enable, probably wants to be pushed out via
> > > an ALSA API rather than via random sysfs stuff.  It'd be better to
> > > publish a control API here and then use that from within ALSA.
> > Hmm. What would be the way to transfer 128 x s16 words; is there an ALSA
> > control for something like that already ? IIRC correctly, the max
> > bytesize per control is (or used to be) something like 256 bytes or so.
> > So that gets right at it. (that's the sidetone 128 tap FIR in question)
> For things like the FIR you probably don't want to expose the entire
> table directly to user space.  Depending on the typical usage it may be
> that platform data is the appropriate mechanism, with some simpler thing
> presented to applications allowing switching between a limited set of
> settings.  sysfs may end up being the best option for the FIR setup.
> My main concern here is that the control goes into the ALSA domain so
> that the audio drivers know what's going on with these sidetone paths,
> particular in terms of the routing.

Indeed. If I'm not totally wrong, the sidetone engineering is such,
that the sinetones should be of constant volume (this may depend on
the usecase). So, let's say we have the TPA6130 codec's volume used
along with a sidetone:

1. A change in TPA6130 volume should lead to a change in
   the sidetone's gain (if it's enabled). The change of gain
   is directly related to the change in the TPA's volume.

That said, if the sidetone's gain is of the domain [-2,2], how
could it translate into the TPA's nonlinear dB domain?. If
that may be resolved somehow feasibly, this sounds like a very
useful relation? Ideas?

This is all assumed that the FIR itself doesn't cause any gains
to the signal level at the desired frequency domain(s).

- Eero

To unsubscribe from this list: send the line "unsubscribe alsa-devel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

More information about the Alsa-devel mailing list