ALSA: hda-intel: support for period wakeup disabling

Allow disabling period wakeup interrupts for HDA PCM streams.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Clemens Ladisch 2010-11-15 10:49:47 +01:00 коммит произвёл Takashi Iwai
Родитель ab69a4904b
Коммит 7bb8fb70c4
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1235,7 +1235,8 @@ static int azx_setup_periods(struct azx *chip,
pos_adj = 0; pos_adj = 0;
} else { } else {
ofs = setup_bdle(substream, azx_dev, ofs = setup_bdle(substream, azx_dev,
&bdl, ofs, pos_adj, 1); &bdl, ofs, pos_adj,
!substream->runtime->no_period_wakeup);
if (ofs < 0) if (ofs < 0)
goto error; goto error;
} }
@ -1247,7 +1248,8 @@ static int azx_setup_periods(struct azx *chip,
period_bytes - pos_adj, 0); period_bytes - pos_adj, 0);
else else
ofs = setup_bdle(substream, azx_dev, &bdl, ofs, ofs = setup_bdle(substream, azx_dev, &bdl, ofs,
period_bytes, 1); period_bytes,
!substream->runtime->no_period_wakeup);
if (ofs < 0) if (ofs < 0)
goto error; goto error;
} }
@ -1515,7 +1517,8 @@ static struct snd_pcm_hardware azx_pcm_hw = {
/* No full-resume yet implemented */ /* No full-resume yet implemented */
/* SNDRV_PCM_INFO_RESUME |*/ /* SNDRV_PCM_INFO_RESUME |*/
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_SYNC_START), SNDRV_PCM_INFO_SYNC_START |
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP),
.formats = SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
.rates = SNDRV_PCM_RATE_48000, .rates = SNDRV_PCM_RATE_48000,
.rate_min = 48000, .rate_min = 48000,