[pulseaudio-discuss] [PATCH 2/3] ALSA: hda-intel: add support for disabling period irq

Clemens Ladisch clemens at ladisch.de
Mon May 17 02:14:49 PDT 2010


Signed-off-by: Clemens Ladisch <clemens at ladisch.de>

--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1224,7 +1224,8 @@ static int azx_setup_periods(struct azx
 			pos_adj = 0;
 		} else {
 			ofs = setup_bdle(substream, azx_dev,
-					 &bdl, ofs, pos_adj, 1);
+					 &bdl, ofs, pos_adj,
+					 !substream->runtime->no_period_irq);
 			if (ofs < 0)
 				goto error;
 		}
@@ -1236,7 +1237,8 @@ static int azx_setup_periods(struct azx
 					 period_bytes - pos_adj, 0);
 		else
 			ofs = setup_bdle(substream, azx_dev, &bdl, ofs,
-					 period_bytes, 1);
+					 period_bytes,
+					 !substream->runtime->no_period_irq);
 		if (ofs < 0)
 			goto error;
 	}
@@ -1505,7 +1507,8 @@ static struct snd_pcm_hardware azx_pcm_h
 				 /* No full-resume yet implemented */
 				 /* SNDRV_PCM_INFO_RESUME |*/
 				 SNDRV_PCM_INFO_PAUSE |
-				 SNDRV_PCM_INFO_SYNC_START),
+				 SNDRV_PCM_INFO_SYNC_START |
+				 SNDRV_PCM_INFO_NO_PERIOD_IRQ),
 	.formats =		SNDRV_PCM_FMTBIT_S16_LE,
 	.rates =		SNDRV_PCM_RATE_48000,
 	.rate_min =		48000,



More information about the pulseaudio-discuss mailing list