From: "Trevor Wu (吳文良)" <Trevor.Wu@mediatek.com>
To: "broonie@kernel.org" <broonie@kernel.org>
Cc: "linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"tiwai@suse.com" <tiwai@suse.com>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"perex@perex.cz" <perex@perex.cz>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH] ASoC: mediatek: mt8188: add constraints for PCM
Date: Fri, 30 Jun 2023 05:29:23 +0000 [thread overview]
Message-ID: <0e8b5ca298a01b16da0419928a30af6371e923ca.camel@mediatek.com> (raw)
In-Reply-To: <5995e77b-ea8e-4e88-8ca2-f716df9c9579@sirena.org.uk>
On Thu, 2023-06-29 at 16:06 +0100, Mark Brown wrote:
> On Thu, Jun 29, 2023 at 03:59:10PM +0800, Trevor Wu wrote:
>
> > For certain projects, only a limited number of parameters are
> > necessary.
> > Therefore, it may be beneficial to add constraints that restrict
> > the
> > capacity of the PCM.
>
> This commit message isn't entirely clear. The effect of the commit
> is
> to restrict the configurations supported when using a nau8825 but
> it's
> not clear what a nau8825 has to do with this or why we're doing this
> in
> general. What exactly do you mean when saying that "only a limited
> number of parameters are necessary" and what makes this the case?
Hi Mark,
For instance, some userspace frameworks only support specific sampling
rates such as 48kHz on Chromebook, making other parameters unnecessary.
By restricting the configuration, unexpected usage can be prevented and
the alsa_conformance_test process which checks all parameters provided
by an ALSA driver can be sped up.
Although machine drivers can be reused for multiple projects, not all
projects have the same criterion. Therefore, I will add the criterion
only for mt8188_nau8825 which is used for Chromebook board.
If there are similar criteria for other projects, they can be adopted
in the same way. Perhaps a new constraint, such as DPCM_FE_CONSTRAINT1,
could be introduced for different parameter combinations.
Would it be more beneficial to establish the criteria as a general rule
for this machine driver, while limiting the use of the machine driver
solely to the Chromebook project? Or do you just suggest that I add
more details in the commit messages?
Thanks,
Trevor
next prev parent reply other threads:[~2023-06-30 5:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-29 7:59 Trevor Wu
2023-06-29 15:06 ` Mark Brown
2023-06-30 5:29 ` Trevor Wu (吳文良) [this message]
2023-06-30 11:00 ` Mark Brown
2023-07-03 12:27 ` AngeloGioacchino Del Regno
2023-07-04 2:01 ` Trevor Wu (吳文良)
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=0e8b5ca298a01b16da0419928a30af6371e923ca.camel@mediatek.com \
--to=trevor.wu@mediatek.com \
--cc=alsa-devel@alsa-project.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=perex@perex.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®