]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Keep powering up ADCs on Cirrus codecs
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 Apr 2016 20:07:50 +0000 (22:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Apr 2016 20:07:50 +0000 (22:07 +0200)
commit7a23e51ada72b5fe38d59380af053c61cadc7f50
tree5ab2e67a5c451c0b226441e029375519064ed287
parentc4f5a67688df915ea3d1fb6b48d843cba0c59578
ALSA: hda - Keep powering up ADCs on Cirrus codecs

Although one weird behavior about the input path (inconsistent D0/D3
switch) on Cirrus CS420x codecs was fixed in the previous commit,
there is still an issue on some Mac machines: the capture stream
stalls when switching the ADCs on the fly.  More badly, this keeps
stuck until the next reboot.

The dynamic ADC switching is already a bit fragile and assuming
optimistically that the chip accepts the frequent power changes.  On
Cirrus codecs, this doesn't seem applicable.

As a quick workaround, we pin down the ADCs to keep up in D0 when
spec->dyn_adc_switch is set.  In this way, the ADCs are kept up only
for the system that were confirmed to be broken.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=116171
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c