]> git.karo-electronics.de Git - linux-beck.git/blobdiff - sound/pci/hda/hda_intel.c
ALSA: hda - More relax for pending period handling
[linux-beck.git] / sound / pci / hda / hda_intel.c
index 1df25cf5ce38c35f0d04fdddd43be9ea1d23c3f4..66d420212d9a517aa2958c655784e7fb035bce32 100644 (file)
@@ -1653,7 +1653,8 @@ static int azx_pcm_prepare(struct snd_pcm_substream *substream)
        format_val = snd_hda_calc_stream_format(runtime->rate,
                                                runtime->channels,
                                                runtime->format,
-                                               hinfo->maxbps);
+                                               hinfo->maxbps,
+                                               apcm->codec->spdif_ctls);
        if (!format_val) {
                snd_printk(KERN_ERR SFX
                           "invalid format_val, rate=%d, ch=%d, format=%d\n",
@@ -1960,7 +1961,7 @@ static void azx_irq_pending_work(struct work_struct *work)
                spin_unlock_irq(&chip->reg_lock);
                if (!pending)
                        return;
-               cond_resched();
+               msleep(1);
        }
 }