All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: alsa-devel@alsa-project.org, broonie@kernel.org
Cc: daniel.baluta@nxp.com, pierre-louis.bossart@linux.intel.com,
	kai.vehmanen@linux.intel.com, ranjani.sridharan@linux.intel.com
Subject: [PATCH 6/8] ASoC: SOF: define INFO_ flags in dsp_ops
Date: Fri, 15 May 2020 16:59:56 +0300	[thread overview]
Message-ID: <20200515135958.17511-7-kai.vehmanen@linux.intel.com> (raw)
In-Reply-To: <20200515135958.17511-1-kai.vehmanen@linux.intel.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 27e322fabd508b ("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: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 sound/soc/sof/imx/imx8m.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c
index 3ac0444dca93..f83581041cf3 100644
--- a/sound/soc/sof/imx/imx8m.c
+++ b/sound/soc/sof/imx/imx8m.c
@@ -273,6 +273,12 @@ struct snd_sof_dsp_ops sof_imx8m_ops = {
 	/* DAI drivers */
 	.drv = imx8m_dai,
 	.num_drv = 1, /* we have only 1 SAI interface on i.MX8M */
+
+	.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_imx8m_ops);
 
-- 
2.26.0


  parent reply	other threads:[~2020-05-15 14:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 13:59 [PATCH 0/8] ASoC: SOF: Intel and IMX updates for 5.8 Kai Vehmanen
2020-05-15 13:59 ` [PATCH 1/8] ASoC: SOF: Do nothing when DSP PM callbacks are not set Kai Vehmanen
2020-05-15 13:59 ` [PATCH 2/8] ASoC: SOF: add a power_down_notify method Kai Vehmanen
2020-05-15 13:59 ` [PATCH 3/8] ASoC: SOF: inform DSP that driver is going to be removed Kai Vehmanen
2020-05-15 13:59 ` [PATCH 4/8] ASoC: SOF: topology: add support to smart amplifier Kai Vehmanen
2020-05-15 13:59 ` [PATCH 5/8] ASoC: SOF: Intel: sdw: relax sdw machine select constraints Kai Vehmanen
2020-05-15 13:59 ` Kai Vehmanen [this message]
2020-05-15 13:59 ` [PATCH 7/8] ASoC: SOF: imx: make dsp_ops static Kai Vehmanen
2020-05-15 13:59 ` [PATCH 8/8] ASoC: SOF: imx: make imx8m_dsp_ops static Kai Vehmanen
2020-05-18 16:40 ` [PATCH 0/8] ASoC: SOF: Intel and IMX updates for 5.8 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=20200515135958.17511-7-kai.vehmanen@linux.intel.com \
    --to=kai.vehmanen@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@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.