commit | 7cb155ff3e4645188c42d707300e36cfce44e28a | [log] [tgz] |
---|---|---|
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | Mon Aug 15 00:22:53 2011 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Aug 15 10:25:32 2011 +0200 |
tree | c31abbd9c8809bc93498856ed05409ae1a6c164e | |
parent | 1ad5972f71f94d8a8b5b683dd5f81a52a4ddf54c [diff] |
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 <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>