All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@diasemi.com>
To: Mark Brown <broonie@kernel.org>,
	"Opensource [Adam Thomson]" <Adam.Thomson.Opensource@diasemi.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Support Opensource" <Support.Opensource@diasemi.com>
Subject: RE: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver
Date: Fri, 6 Nov 2015 13:17:28 +0000	[thread overview]
Message-ID: <2E89032DDAA8B9408CB92943514A0337D460CAAD@SW-EX-MBX01.diasemi.com> (raw)
In-Reply-To: <20151106115451.GG18409@sirena.org.uk>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 817 bytes --]

On November 6, 2015 11:55, Mark Brown wrote:

> > > > I can envisage in a system you may want to choose which capture channels can
> > > > trigger level detection (if any), and this may change depending on the use-case
> > > > at the time, so having it as a control makes sense to me.
> 
> > > What is a "capture channel" here?
> 
> > Input filters 1L/R and 2L/R, which are fed from either Mic1(ADC1) or DMic1L/R
> > and Mic2(ADC2) or DMic2L/R.
> 
> Hang on, is this just recording a DC value with the ADC and then looking
> at that?

The RMS of the Mic signal is taken and compared to the trigger level set. If
it's above that level then an IRQ is raised.
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

WARNING: multiple messages have this Message-ID (diff)
From: "Opensource [Adam Thomson]" <Adam.Thomson.Opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Opensource [Adam Thomson]"
	<Adam.Thomson.Opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
Cc: Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Jaroslav Kysela <perex-/Fr2/VpizcU@public.gmane.org>,
	Takashi Iwai <tiwai-IBi9RG/b67k@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Ian Campbell
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org"
	<alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Support Opensource
	<Support.Opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
Subject: RE: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver
Date: Fri, 6 Nov 2015 13:17:28 +0000	[thread overview]
Message-ID: <2E89032DDAA8B9408CB92943514A0337D460CAAD@SW-EX-MBX01.diasemi.com> (raw)
In-Reply-To: <20151106115451.GG18409-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>

On November 6, 2015 11:55, Mark Brown wrote:

> > > > I can envisage in a system you may want to choose which capture channels can
> > > > trigger level detection (if any), and this may change depending on the use-case
> > > > at the time, so having it as a control makes sense to me.
> 
> > > What is a "capture channel" here?
> 
> > Input filters 1L/R and 2L/R, which are fed from either Mic1(ADC1) or DMic1L/R
> > and Mic2(ADC2) or DMic2L/R.
> 
> Hang on, is this just recording a DC value with the ADC and then looking
> at that?

The RMS of the Mic signal is taken and compared to the trigger level set. If
it's above that level then an IRQ is raised.

  reply	other threads:[~2015-11-06 13:17 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 10:43 [PATCH 0/2] ASoC: Add support for DA7217 and DA7218 audio codecs Adam Thomson
2015-11-05 10:43 ` Adam Thomson
2015-11-05 10:43 ` [PATCH 1/2] ASoC: da7218: Add bindings documentation for DA7218 audio codec Adam Thomson
2015-11-05 10:43   ` Adam Thomson
2015-11-05 14:58   ` Mark Brown
2015-11-05 17:59     ` Opensource [Adam Thomson]
2015-11-05 17:59       ` Opensource [Adam Thomson]
2015-11-06 10:30       ` Mark Brown
2015-11-05 10:43 ` [PATCH 2/2] ASoC: codecs: Add da7218 codec driver Adam Thomson
2015-11-05 10:43   ` Adam Thomson
2015-11-05 15:27   ` Mark Brown
2015-11-06 11:11     ` Opensource [Adam Thomson]
2015-11-06 11:11       ` Opensource [Adam Thomson]
2015-11-06 11:21       ` Mark Brown
2015-11-06 11:21         ` Mark Brown
2015-11-06 11:53         ` Opensource [Adam Thomson]
2015-11-06 11:53           ` Opensource [Adam Thomson]
2015-11-06 11:54           ` Mark Brown
2015-11-06 11:54             ` Mark Brown
2015-11-06 13:17             ` Opensource [Adam Thomson] [this message]
2015-11-06 13:17               ` Opensource [Adam Thomson]
2015-11-08 10:34               ` Mark Brown
2015-11-08 10:34                 ` Mark Brown
2015-11-09 12:28                 ` Opensource [Adam Thomson]
2015-11-09 12:28                   ` Opensource [Adam Thomson]
2015-11-09 14:02                   ` Mark Brown
2015-11-09 14:02                     ` Mark Brown
2015-11-10 13:55                     ` Opensource [Adam Thomson]
2015-11-10 13:55                       ` Opensource [Adam Thomson]
2015-11-10 14:15                       ` Mark Brown
2015-11-10 14:24                         ` Opensource [Adam Thomson]
2015-11-10 14:24                           ` Opensource [Adam Thomson]
2015-11-10 15:44                           ` Mark Brown
2015-11-10 16:21                             ` Opensource [Adam Thomson]
2015-11-10 16:21                               ` Opensource [Adam Thomson]
2015-11-10 16:42                               ` Mark Brown
2015-11-10 16:42                                 ` 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=2E89032DDAA8B9408CB92943514A0337D460CAAD@SW-EX-MBX01.diasemi.com \
    --to=adam.thomson.opensource@diasemi.com \
    --cc=Support.Opensource@diasemi.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=perex@perex.cz \
    --cc=robh+dt@kernel.org \
    --cc=tiwai@suse.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.