From: Takashi Iwai Date: Wed, 18 Feb 2015 14:39:59 +0000 (+0100) Subject: ALSA: hda - Move codec suspend/resume to codec driver X-Git-Tag: omap-for-v4.2/o2_dc~120^2~6^2~43^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ed1eade1d6ec24751baca99305f9713a5d779e;p=pandora-kernel.git ALSA: hda - Move codec suspend/resume to codec driver This patch moves the suspend/resume mechanisms down to each codec driver level, as we have a proper codec driver bound on the bus now. Then we get the asynchronous PM gratis without fiddling much in the driver level. As a soft-landing transition, implement the common suspend/resume pm ops for hda_codec_driver and keep the each codec driver intact. Only the callers of suspend/resume in the controller side (azx_suspend() and azx_resume()) are removed. Another involved place is azx_bus_reset() calling the temporary suspend and resume as a hackish method of bus reset. The HD-audio core provide a helper function snd_hda_bus_reset() instead. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed