All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
@ 2022-09-17  2:26 ` Chunxu Li
  0 siblings, 0 replies; 6+ messages in thread
From: Chunxu Li @ 2022-09-17  2:26 UTC (permalink / raw)
  To: broonie, pierre-louis.bossart, peter.ujfalusi, lgirdwood,
	angelogioacchino.delregno, daniel.baluta
  Cc: matthias.bgg, yc.hung, linux-kernel, alsa-devel,
	sound-open-firmware, linux-arm-kernel, linux-mediatek,
	project_global_chrome_upstream_group, Chunxu Li

add pcm_hw_params callback for mt8186 to support continue
update dma host position

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index a1be5d74f40b..9ec89fc7fec0 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -460,6 +460,16 @@ static int mt8186_get_bar_index(struct snd_sof_dev *sdev, u32 type)
 	return type;
 }
 
+static int mt8186_pcm_hw_params(struct snd_sof_dev *sdev,
+				struct snd_pcm_substream *substream,
+				struct snd_pcm_hw_params *params,
+				struct snd_sof_platform_stream_params *platform_params)
+{
+	platform_params->cont_update_posn = 1;
+
+	return 0;
+}
+
 static struct snd_soc_dai_driver mt8186_dai[] = {
 {
 	.name = "SOF_DL1",
@@ -526,6 +536,7 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
 
 	/* stream callbacks */
 	.pcm_open	= sof_stream_pcm_open,
+	.pcm_hw_params	= mt8186_pcm_hw_params,
 	.pcm_close	= sof_stream_pcm_close,
 
 	/* firmware loading */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
@ 2022-09-17  2:26 ` Chunxu Li
  0 siblings, 0 replies; 6+ messages in thread
From: Chunxu Li @ 2022-09-17  2:26 UTC (permalink / raw)
  To: broonie, pierre-louis.bossart, peter.ujfalusi, lgirdwood,
	angelogioacchino.delregno, daniel.baluta
  Cc: alsa-devel, Chunxu Li, linux-kernel,
	project_global_chrome_upstream_group, linux-mediatek, yc.hung,
	matthias.bgg, linux-arm-kernel, sound-open-firmware

add pcm_hw_params callback for mt8186 to support continue
update dma host position

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index a1be5d74f40b..9ec89fc7fec0 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -460,6 +460,16 @@ static int mt8186_get_bar_index(struct snd_sof_dev *sdev, u32 type)
 	return type;
 }
 
+static int mt8186_pcm_hw_params(struct snd_sof_dev *sdev,
+				struct snd_pcm_substream *substream,
+				struct snd_pcm_hw_params *params,
+				struct snd_sof_platform_stream_params *platform_params)
+{
+	platform_params->cont_update_posn = 1;
+
+	return 0;
+}
+
 static struct snd_soc_dai_driver mt8186_dai[] = {
 {
 	.name = "SOF_DL1",
@@ -526,6 +536,7 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
 
 	/* stream callbacks */
 	.pcm_open	= sof_stream_pcm_open,
+	.pcm_hw_params	= mt8186_pcm_hw_params,
 	.pcm_close	= sof_stream_pcm_close,
 
 	/* firmware loading */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
@ 2022-09-17  2:26 ` Chunxu Li
  0 siblings, 0 replies; 6+ messages in thread
From: Chunxu Li @ 2022-09-17  2:26 UTC (permalink / raw)
  To: broonie, pierre-louis.bossart, peter.ujfalusi, lgirdwood,
	angelogioacchino.delregno, daniel.baluta
  Cc: matthias.bgg, yc.hung, linux-kernel, alsa-devel,
	sound-open-firmware, linux-arm-kernel, linux-mediatek,
	project_global_chrome_upstream_group, Chunxu Li

add pcm_hw_params callback for mt8186 to support continue
update dma host position

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index a1be5d74f40b..9ec89fc7fec0 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -460,6 +460,16 @@ static int mt8186_get_bar_index(struct snd_sof_dev *sdev, u32 type)
 	return type;
 }
 
+static int mt8186_pcm_hw_params(struct snd_sof_dev *sdev,
+				struct snd_pcm_substream *substream,
+				struct snd_pcm_hw_params *params,
+				struct snd_sof_platform_stream_params *platform_params)
+{
+	platform_params->cont_update_posn = 1;
+
+	return 0;
+}
+
 static struct snd_soc_dai_driver mt8186_dai[] = {
 {
 	.name = "SOF_DL1",
@@ -526,6 +536,7 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
 
 	/* stream callbacks */
 	.pcm_open	= sof_stream_pcm_open,
+	.pcm_hw_params	= mt8186_pcm_hw_params,
 	.pcm_close	= sof_stream_pcm_close,
 
 	/* firmware loading */
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
  2022-09-17  2:26 ` Chunxu Li
  (?)
@ 2022-09-20 20:46   ` Mark Brown
  -1 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-09-20 20:46 UTC (permalink / raw)
  To: peter.ujfalusi, Chunxu Li, lgirdwood, angelogioacchino.delregno,
	daniel.baluta, pierre-louis.bossart
  Cc: matthias.bgg, sound-open-firmware, alsa-devel, linux-kernel,
	linux-mediatek, yc.hung, linux-arm-kernel,
	project_global_chrome_upstream_group

On Sat, 17 Sep 2022 10:26:10 +0800, Chunxu Li wrote:
> add pcm_hw_params callback for mt8186 to support continue
> update dma host position
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
      commit: 78091edc1c7806846049e1d480f6a8051507ed94

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
@ 2022-09-20 20:46   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-09-20 20:46 UTC (permalink / raw)
  To: peter.ujfalusi, Chunxu Li, lgirdwood, angelogioacchino.delregno,
	daniel.baluta, pierre-louis.bossart
  Cc: alsa-devel, linux-kernel, project_global_chrome_upstream_group,
	linux-mediatek, yc.hung, matthias.bgg, linux-arm-kernel,
	sound-open-firmware

On Sat, 17 Sep 2022 10:26:10 +0800, Chunxu Li wrote:
> add pcm_hw_params callback for mt8186 to support continue
> update dma host position
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
      commit: 78091edc1c7806846049e1d480f6a8051507ed94

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
@ 2022-09-20 20:46   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-09-20 20:46 UTC (permalink / raw)
  To: peter.ujfalusi, Chunxu Li, lgirdwood, angelogioacchino.delregno,
	daniel.baluta, pierre-louis.bossart
  Cc: matthias.bgg, sound-open-firmware, alsa-devel, linux-kernel,
	linux-mediatek, yc.hung, linux-arm-kernel,
	project_global_chrome_upstream_group

On Sat, 17 Sep 2022 10:26:10 +0800, Chunxu Li wrote:
> add pcm_hw_params callback for mt8186 to support continue
> update dma host position
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186
      commit: 78091edc1c7806846049e1d480f6a8051507ed94

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-20 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17  2:26 [PATCH] ASoC: SOF: mediatek: add pcm_hw_params callback for mt8186 Chunxu Li
2022-09-17  2:26 ` Chunxu Li
2022-09-17  2:26 ` Chunxu Li
2022-09-20 20:46 ` Mark Brown
2022-09-20 20:46   ` Mark Brown
2022-09-20 20:46   ` Mark Brown

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.