ALSA: hdspm - Introduce hdspm_get_latency() to harmonize latency calculation
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Sun, 14 Aug 2011 22:22:53 +0000 (00:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Aug 2011 08:25:32 +0000 (10:25 +0200)
commit7cb155ff3e4645188c42d707300e36cfce44e28a
treec31abbd9c8809bc93498856ed05409ae1a6c164e
parent1ad5972f71f94d8a8b5b683dd5f81a52a4ddf54c
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>
sound/pci/rme9652/hdspm.c