From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Mark Brown <broonie@kernel.org>, Stephan Gerhold <stephan@gerhold.net>
Cc: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>,
alsa-devel@alsa-project.org, tiwai@suse.de,
Daniel Baluta <daniel.baluta@gmail.com>,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Bard Liao <yung-chuan.liao@linux.intel.com>
Subject: Re: [PATCH 1/4] ASoC: soc-pcm: dpcm: fix playback/capture checks
Date: Thu, 18 Jun 2020 10:45:45 -0500 [thread overview]
Message-ID: <145da893-5cb4-63fc-b988-c048ee839785@linux.intel.com> (raw)
In-Reply-To: <20200618150143.GJ5789@sirena.org.uk>
On 6/18/20 10:01 AM, Mark Brown wrote:
> On Wed, Jun 17, 2020 at 07:46:35PM +0200, Stephan Gerhold wrote:
>
>> At the end the question is if those machine drivers that have
>> dpcm_playback/capture hardcoded just set it because it was required to
>> make DPCM work, or if they actually use it to restrict the direction of
>> a DAI link.
I think those flags are absolutely not DPCM specific, the only use I see
for the flags is to set:
if (rtd->dai_link->no_pcm || rtd->dai_link->params) {
if (playback)
pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd;
if (capture)
pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd;
goto out;
}
and that's why I highlighted some time back that they are probably
redundant with capture_only and playback_only. We don't need 4 flags to
specify 2 directions.
In all cases the use for those flags seems to be to restrict the
direction of a DAI link.
Note that people can screw-up the configurations without DPCM, e.g. by
not setting capture_only for a microphone, I found last week a WoV DAI
link on Broadwell where the capture_only flag was not set... DPCM does
not have a monopoly on brokenness...
> The other question would be if they are restricting it to limit the
> direction of a DAI link beyond the limits that the hardware has why are
> they doing that? I'm not sure that'd be a sensible thing to do.
I don't see any such case. When both directions are not set, it's only
because the hardware is only capable of one, e.g. dmic, HDMI or SoundWire.
There's one set of cases where we have amplifiers on an SSP link (which
is bidirectional), but the amplifier itself does not provide any
capture/feedback. That part is probably borderline incorrect, but
harmless since the topology does not try to use those links for capture.
next prev parent reply other threads:[~2020-06-18 15:46 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 19:44 [PATCH 0/4] ASoC: Fix dailink checks for DPCM Pierre-Louis Bossart
2020-06-08 19:44 ` [PATCH 1/4] ASoC: soc-pcm: dpcm: fix playback/capture checks Pierre-Louis Bossart
2020-06-16 8:54 ` Stephan Gerhold
2020-06-16 9:02 ` Stephan Gerhold
2020-06-16 14:23 ` Pierre-Louis Bossart
2020-06-16 14:52 ` Mark Brown
2020-06-16 15:05 ` Pierre-Louis Bossart
2020-06-16 15:55 ` Stephan Gerhold
2020-06-16 16:32 ` Pierre-Louis Bossart
2020-06-16 17:05 ` Pierre-Louis Bossart
2020-06-17 9:01 ` Stephan Gerhold
2020-06-17 14:33 ` Pierre-Louis Bossart
2020-06-17 17:46 ` Stephan Gerhold
2020-06-18 15:01 ` Mark Brown
2020-06-18 15:45 ` Pierre-Louis Bossart [this message]
2020-06-22 17:54 ` Stephan Gerhold
2020-06-22 17:59 ` Mark Brown
2020-06-16 16:42 ` Mark Brown
2020-07-17 13:42 ` Jerome Brunet
2020-07-17 17:13 ` Pierre-Louis Bossart
2020-07-17 18:18 ` Mark Brown
2020-07-17 18:34 ` Pierre-Louis Bossart
2020-06-08 19:44 ` [PATCH 2/4] ASoC: core: only convert non DPCM link to DPCM link Pierre-Louis Bossart
2020-06-08 19:44 ` [PATCH 3/4] ASoC: Intel: boards: replace capture_only by dpcm_capture Pierre-Louis Bossart
2020-06-08 19:44 ` [PATCH 4/4] ASoC: SOF: nocodec: conditionally set dpcm_capture/dpcm_playback flags Pierre-Louis Bossart
2020-06-09 15:28 ` [PATCH 0/4] ASoC: Fix dailink checks for DPCM 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=145da893-5cb4-63fc-b988-c048ee839785@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=daniel.baluta@gmail.com \
--cc=guennadi.liakhovetski@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=srinivas.kandagatla@linaro.org \
--cc=stephan@gerhold.net \
--cc=tiwai@suse.de \
--cc=yung-chuan.liao@linux.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.