]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ALSA: hda - Make converter setups sticky
authorTakashi Iwai <tiwai@suse.de>
Fri, 6 Aug 2010 11:48:11 +0000 (13:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Aug 2010 11:48:11 +0000 (13:48 +0200)
commiteb541337b7a43822fce7d0c9d967ee149b2d9a96
tree6f46656a2b8545720a818304050fbbeddd872989
parentfe3eb0a73ca052ee9346a1544f4c00e697cc9a4e
ALSA: hda - Make converter setups sticky

So far, we reset the converter setups like the stream-tag, the
channel-id and format-id in prepare callbacks, and clear them in
cleanup callbacks.  This often causes a silence of the digital
receiver for a couple of seconds.

This patch tries to delay the converter setup changes as much as
possible.  The converter setups are cached and aren't reset as long
as the same values are used.  At suspend/resume, they are cleared
to be recovered properly, too.

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