[ALSA] intel8x0: an attempt to make ac97_clock measurement more reliable
commit920e4ae31cb113328e617f4a0663fb17d7b09124
authorJaroslav Kysela <perex@perex.cz>
Mon, 13 Apr 2009 18:45:42 +0000 (13 20:45 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 13 Apr 2009 19:28:27 +0000 (13 21:28 +0200)
tree1e58bfffcb3b244d056e26026a1a73a43bb5f385
parentbbf6ad1399e9516b0a95de3ad58ffbaed670e4cc
[ALSA] intel8x0: an attempt to make ac97_clock measurement more reliable

- use monotonic posix clock to measure time
- try to avoid reading zero from PICB (position in current buffer) register
- show also measured samples
- when clock is near 41000 or 44100, use exactly these values
  (they appears to be reference clocks for hardware manufacturers)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/intel8x0.c