X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Fcore%2Fpcm_native.c;h=4be45e7be8ad0ab7385102f46817e45d402abb55;hp=c0ebb5162e95dc5e3893140d5c879da161268dc2;hb=66dc918d42eaaa9afe42a47d07526765162017a9;hpb=b2034d474b7e1e8578bd5c2977024b51693269d9;ds=sidebyside diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index c0ebb5162e95..4be45e7be8ad 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -422,6 +422,9 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream, runtime->info = params->info; runtime->rate_num = params->rate_num; runtime->rate_den = params->rate_den; + runtime->no_period_wakeup = + (params->info & SNDRV_PCM_INFO_NO_PERIOD_WAKEUP) && + (params->flags & SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP); bits = snd_pcm_format_physical_width(runtime->format); runtime->sample_bits = bits;