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)
commit63e51fd708f511a5989da04c669647993bc1a512
treeeaa604d5faae416c0a51b5cdba78d625ca62cf2b
parente7ecc27e520a9c9891362c6dabd18c4da9885946
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