From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: [PATCH 2/3] ALSA: hda-intel: add support for disabling period irq Date: Mon, 17 May 2010 11:14:49 +0200 Message-ID: <4BF10909.3070003@ladisch.de> References: <4BDABDDD.4050502@ladisch.de> <4BF1086F.9070900@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by alsa0.perex.cz (Postfix) with ESMTP id C3E91245CC for ; Mon, 17 May 2010 11:15:09 +0200 (CEST) In-Reply-To: <4BF1086F.9070900@ladisch.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: pl bossart Cc: Takashi Iwai , General PulseAudio Discussion , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Signed-off-by: Clemens Ladisch --- 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,