From: Adrian Knoth Date: Sun, 14 Aug 2011 22:22:53 +0000 (+0200) Subject: ALSA: hdspm - Introduce hdspm_get_latency() to harmonize latency calculation X-Git-Tag: v3.2-rc1~127^2~2^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb155ff3e4645188c42d707300e36cfce44e28a;p=pandora-kernel.git ALSA: hdspm - Introduce hdspm_get_latency() to harmonize latency calculation Currently, hdspm_decode_latency is called several times, violating the DRY principle. Given that we need to distinguish between old and new cards when decoding the latency bits in the control register, introduce hdspm_get_latency() to provide the required functionality. Signed-off-by: Adrian Knoth Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed