This is a note to let you know that I've just added the patch titled
ALSA: hda - Stop LPIB delay counting on broken hardware
to the 3.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
alsa-hda-stop-lpib-delay-counting-on-broken-hardware.patch
and it can be found in the queue-3.6 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 1f04661fde9deda4a2cd5845258715a22d8af197 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Tue, 16 Oct 2012 16:52:26 +0200
Subject: ALSA: hda - Stop LPIB delay counting on broken hardware
From: Takashi Iwai <[email protected]>
commit 1f04661fde9deda4a2cd5845258715a22d8af197 upstream.
If LPIB reports a pretty bad value, we can't trust such hardware for
calculating the PCM delay. Automatically turn off the delay counting
when such a problem is encountered.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=48911
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
sound/pci/hda/hda_intel.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2136,9 +2136,12 @@ static unsigned int azx_get_position(str
if (delay < 0)
delay += azx_dev->bufsize;
if (delay >= azx_dev->period_bytes) {
- snd_printdd("delay %d > period_bytes %d\n",
- delay, azx_dev->period_bytes);
- delay = 0; /* something is wrong */
+ snd_printk(KERN_WARNING SFX
+ "Unstable LPIB (%d >= %d); "
+ "disabling LPIB delay counting\n",
+ delay, azx_dev->period_bytes);
+ delay = 0;
+ chip->driver_caps &= ~AZX_DCAPS_COUNT_LPIB_DELAY;
}
azx_dev->substream->runtime->delay =
bytes_to_frames(azx_dev->substream->runtime, delay);
Patches currently in stable-queue which might be from [email protected] are
queue-3.6/alsa-hda-always-check-array-bounds-in-alc_get_line_out_pfx.patch
queue-3.6/alsa-hda-stop-lpib-delay-counting-on-broken-hardware.patch
queue-3.6/alsa-hda-fix-memory-leaks-at-error-path-in-patch_cirrus.c.patch
queue-3.6/alsa-hda-do-not-detect-jack-on-internal-speakers-for-realtek.patch
queue-3.6/alsa-hda-fix-registration-race-of-vga-switcheroo.patch
queue-3.6/alsa-hda-add-missing-hda_gen_spec-to-struct-via_spec.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html