diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-12-02 08:49:47 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-03 07:46:30 +0100 |
commit | e38e486d66e2a3b902768fd71c32dbf10f77e1cb (patch) | |
tree | 6ae80036fac060db3a79149f51e6663450130dd2 /include/sound/hdaudio.h | |
parent | d2cd795c4ece1a24fda170c35eeb4f17d9826cbb (diff) | |
download | blackbird-op-linux-e38e486d66e2a3b902768fd71c32dbf10f77e1cb.tar.gz blackbird-op-linux-e38e486d66e2a3b902768fd71c32dbf10f77e1cb.zip |
ALSA: hda: Modify stream stripe mask only when needed
The recent commit in HD-audio stream management for changing the
stripe control seems causing a regression on some platforms. The
stripe control is currently used only by HDMI codec, and applying the
stripe mask unconditionally may lead to scratchy and static noises as
seen on some MacBooks.
For addressing the regression, this patch changes the stream
management code to apply the stripe mask conditionally only when the
codec driver requested.
Fixes: 9b6f7e7a296e ("ALSA: hda: program stripe bits for controller")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=204477
Tested-by: Michael Pobega <mpobega@neverware.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191202074947.1617-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/hdaudio.h')
-rw-r--r-- | include/sound/hdaudio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index b260c5fd2337..e05b95e83d5a 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -493,6 +493,7 @@ struct hdac_stream { bool prepared:1; bool no_period_wakeup:1; bool locked:1; + bool stripe:1; /* apply stripe control */ /* timestamp */ unsigned long start_wallclk; /* start + minimum wallclk */ |