CHROMIUM: ALSA: hda/ca0132 - Fix divide error when frame_bits not set
authorHsin-Yu Chao <hychao@chromium.org>
Fri, 19 Oct 2012 06:04:00 +0000 (14:04 +0800)
committerGerrit <chrome-bot@google.com>
Fri, 19 Oct 2012 19:08:52 +0000 (12:08 -0700)
commit193562bf3c04c7894b54dbd6eb0858f9659c353d
treec8d6838e400de83bb4b042e87041802d43faa4e5
parent14673644eb8bb4edb60169c4d5b0de81d264f428
CHROMIUM: ALSA: hda/ca0132 - Fix divide error when frame_bits not set

When frame_bits hasn't been set in snd_pcm_runtime, skip the calcuation
for latency value.

BUG=chrome-os-partner:12926
TEST=Manual. Boot system on battery, open youtube can play without
crash. Run looptest tool with debug log can see latency value changes
correctly according to effects setting.

Change-Id: Iab2d289d9f33e5d4ed178764217b1a08c30c73c5
Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36047
Reviewed-by: Chih-Chung Chang <chihchung@chromium.org>
Commit-Ready: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
sound/pci/hda/patch_ca0132.c