mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Baluta <daniel.baluta@oss.nxp.com>
To: alsa-devel@alsa-project.org, broonie@kernel.org
Cc: linux-imx@nxp.com, linux-kernel@vger.kernel.org,
	festevam@gmail.com, shengjiu.wang@nxp.com
Subject: [PATCH 1/7] ASoC: SOF: define INFO_ flags in dsp_ops for imx8
Date: Mon, 20 Jul 2020 10:20:40 +0300	[thread overview]
Message-ID: <20200720072046.8152-2-daniel.baluta@oss.nxp.com> (raw)
In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com>

From: Daniel Baluta <daniel.baluta@nxp.com>

In the past, the INFO_ flags such as PAUSE/NO_PERIOD_WAKEUP were
defined in the SOF PCM core, but that was changed since
commit 27e322fabd50 ("ASoC: SOF: define INFO_ flags in dsp_ops")

Now these flags must be set in DSP ops.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
---
 sound/soc/sof/imx/imx8.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c
index a4fa8451d8cb..b558132bb609 100644
--- a/sound/soc/sof/imx/imx8.c
+++ b/sound/soc/sof/imx/imx8.c
@@ -416,6 +416,13 @@ struct snd_sof_dsp_ops sof_imx8_ops = {
 	/* DAI drivers */
 	.drv = imx8_dai,
 	.num_drv = 1, /* we have only 1 ESAI interface on i.MX8 */
+
+	/* ALSA HW info flags */
+	.hw_info =	SNDRV_PCM_INFO_MMAP |
+			SNDRV_PCM_INFO_MMAP_VALID |
+			SNDRV_PCM_INFO_INTERLEAVED |
+			SNDRV_PCM_INFO_PAUSE |
+			SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
 };
 EXPORT_SYMBOL(sof_imx8_ops);
 
-- 
2.17.1


  reply	other threads:[~2020-07-20  7:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-20  7:20 [PATCH 0/7] SOF IMX fixes Daniel Baluta
2020-07-20  7:20 ` Daniel Baluta [this message]
2020-07-20  7:20 ` [PATCH 2/7] ASoC: SOF: imx: Use ARRAY_SIZE instead of hardcoded value Daniel Baluta
2020-07-20  7:20 ` [PATCH 3/7] ASoC: SOF: imx8: Fix ESAI DAI driver name for i.MX8/iMX8X Daniel Baluta
2020-07-20  7:20 ` [PATCH 4/7] ASoC: SOF: imx8m: Fix SAI DAI driver for i.MX8M Daniel Baluta
2020-07-20  7:20 ` [PATCH 5/7] ASoC: SOF: imx8: Add SAI dai driver for i.MX/i.MX8X Daniel Baluta
2020-07-20  7:20 ` [PATCH 6/7] ASoC: SOF: topology: Update SAI config bclk/fsync rate Daniel Baluta
2020-07-20  7:20 ` [PATCH 7/7] ASoC: SOF: pcm: Update rate/channels for SAI/ESAI DAIs Daniel Baluta
2020-07-22 13:44 ` [PATCH 0/7] SOF IMX fixes 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=20200720072046.8152-2-daniel.baluta@oss.nxp.com \
    --to=daniel.baluta@oss.nxp.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=festevam@gmail.com \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shengjiu.wang@nxp.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®