]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] ASoC: sh: improve generated code for HAC module (AC97)
authorManuel Lauss <mano@roarinelk.homelinux.net>
Tue, 6 Nov 2007 10:56:17 +0000 (11:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:17 +0000 (17:29 +0100)
commitf859390c094f69a1cde2b2ae4d1f098c9bb902ee
treed4cb76b81691fd959e8194d65cb036e3aac02040
parent132e3fd348ddb4f8b5897da2139e2d6a0c089759
[ALSA] ASoC: sh: improve generated code for HAC module (AC97)

Change loops in ac97_read/write functions to count down to zero
rather than up. Gcc will then use the 'dt' (decrement-and-test) op
instead of an increment/compare op-pair.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/soc/sh/hac.c