Skip to contentSkip to conversation

ALSA: soc/au1x: declare that FIFO is reported in frames

PATCH Superseded Oswald Buddenhagen 2 participants 2 messages Apr 1, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: soc/au1x: declare that FIFO is reported in frames

---

Is this right? The comment on the field says "fifo entries of AC97/I2S PSC", which suggests frames, but that may mean whatever.

Cc Manuel Lauss <[email protected]>
---
 sound/soc/au1x/dbdma2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/au1x/dbdma2.c +2 -1
index ea01d6490cec..2c8c01a5fb8f 100644
@@ -66,7 +66,8 @@ struct au1xpsc_audio_dmadata {
 /* PCM hardware DMA capabilities - platform specific */
 static const struct snd_pcm_hardware au1xpsc_pcm_hardware = {
 	.info		  = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |
-			    SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BATCH,
+			    SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BATCH |
+			    SNDRV_PCM_INFO_FIFO_IN_FRAMES,
 	.period_bytes_min = AU1XPSC_PERIOD_MIN_BYTES,
 	.period_bytes_max = 4096 * 1024 - 1,
 	.periods_min	  = 2,

--
2.42.0.419.g70bf8a5751

#1 lore raw
Quoted 8 lines · Oswald Buddenhagen

---

Is this right? The comment on the field says "fifo entries of AC97/I2S PSC", which suggests frames, but that may mean whatever.

Cc Manuel Lauss <[email protected]>

Use a right subject prefix (ASoC in this case) and put the corresponding maintainers to Cc.

thanks,

Takashi

Quoted 21 lines
---
 sound/soc/au1x/dbdma2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/au1x/dbdma2.c +2 -2
index ea01d6490cec..2c8c01a5fb8f 100644
@@ -66,7 +66,8 @@ struct au1xpsc_audio_dmadata {
 /* PCM hardware DMA capabilities - platform specific */
 static const struct snd_pcm_hardware au1xpsc_pcm_hardware = {
 	.info		  = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |
-			    SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BATCH,
+			    SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BATCH |
+			    SNDRV_PCM_INFO_FIFO_IN_FRAMES,
 	.period_bytes_min = AU1XPSC_PERIOD_MIN_BYTES,
 	.period_bytes_max = 4096 * 1024 - 1,
 	.periods_min	  = 2,
--

2.42.0.419.g70bf8a5751