From: John Hsu <KCHSU0@nuvoton.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, anatol.pomozov@gmail.com,
YHCHuang@nuvoton.com, lgirdwood@gmail.com, benzh@chromium.org,
CTLIN0@nuvoton.com, mhkuo@nuvoton.com, yong.zhi@intel.com
Subject: Re: [PATCH] ASoC: nau8825: add crosstalk suppression feature
Date: Thu, 17 Mar 2016 12:17:27 +0800 [thread overview]
Message-ID: <56EA2FD7.2020209@nuvoton.com> (raw)
In-Reply-To: <20160302043130.GB18327@sirena.org.uk>
On 3/2/2016 12:31 PM, Mark Brown wrote:
> On Mon, Feb 29, 2016 at 07:21:16AM +0800, John Hsu wrote:
>
> Please fix your mail client to word wrap within paragraphs at something
> substantially less than 80 columns. Doing this makes your messages much
> easier to read and reply to.
>
>
>> On 2/10/2016 2:39 AM, Mark Brown wrote:
>>
>>> On Fri, Feb 05, 2016 at 01:52:46PM +0800, John Hsu wrote:
>>>
>
>
>>>> +static u32 nau8825_intlog10_dec3(u32 value)
>>>>
>
>
>>> This doesn't look driver specific, it should go somewhere generic
>>> (though I can't immediately see any relevant place for it...).
>>>
>
>
>> Do you have any advise what we can do? It's possible to move these functions
>> to other files, isn't it?
>>
>
> Propose a maths helper library?
>
I have no idea where to locate the logarithm function. The function was
writen
in reference to dvb-math which provides some math functions for other dvb
driver to use. But I'm not sure the math is common for audio.
>
>> It has to enable DAC and ADC path for detection and measurement. A little
>> like simple playback and record.
>> Indeed, it spent some time to finish the whole sequence and the situation
>> you mention will happen possibly.
>> Do we can add some mutex in driver to avoid something like race condition
>> happened? Could you give us suggenstion? Very thanks.
>>
>
> Take a look at the da7219 driver, it is doing something similar.
>
Now, we suffer an issue that the detection will interfere DAPM and clock
control when they start at the same time. I thought it's hard to protect
playback start sequence because audio hardware parameter and
preparation are independent operations from user application.
Is it better to let user application control it with kcontrol?
prev parent reply other threads:[~2016-03-17 4:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 5:52 [PATCH] ASoC: nau8825: add crosstalk suppression feature John Hsu
2016-02-09 18:39 ` Mark Brown
2016-02-28 23:21 ` John Hsu
2016-03-02 4:31 ` Mark Brown
2016-03-17 4:17 ` John Hsu [this message]
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=56EA2FD7.2020209@nuvoton.com \
--to=kchsu0@nuvoton.com \
--cc=CTLIN0@nuvoton.com \
--cc=YHCHuang@nuvoton.com \
--cc=alsa-devel@alsa-project.org \
--cc=anatol.pomozov@gmail.com \
--cc=benzh@chromium.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=mhkuo@nuvoton.com \
--cc=yong.zhi@intel.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.