]> 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)
commitbcce322150b2215832c2e07127617fd663673f3d
treeeaa604d5faae416c0a51b5cdba78d625ca62cf2b
parent44072f50ed53031dc6c26ff9a4679da37b05b1a5
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