]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't take unresponsive D3 transition too serious
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Jun 2013 12:20:19 +0000 (14:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Jun 2013 12:20:19 +0000 (14:20 +0200)
commit702d8370923a1c0889db38857eeea414623b437d
treeeaa604d5faae416c0a51b5cdba78d625ca62cf2b
parentf2598209aacd59fb0b83e15a3b9a4f1362af8d7a
ALSA: hda - Don't take unresponsive D3 transition too serious

When a codec is powered off, some systems don't respond properly after
D3 FG transition, while the driver still expects the response and
tries to fall back to different modes (polling and single-cmd).  When
the fallback happens, the driver stays in that mode, and falling back
to the single-cmd mode means it'll loose the unsol event handling,
too.

The unresponsiveness at D3 isn't too serious, thus this fallback is
mostly superfluous.  We can gracefully ignore the error there so that
the driver keeps the normal operation mode.

This patch adds a new bit flag for codec read/write, set in the power
transition stage, which is notified to the controller driver via a new
bus->no_response_fallback flag.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_intel.c