]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: Fix null pointer issue
authorBard Liao <bardliao@realtek.com>
Tue, 29 Jul 2014 05:50:57 +0000 (13:50 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 29 Jul 2014 12:00:08 +0000 (13:00 +0100)
commit85a7bf3bcd9a9404bfa70ac4629139502bd2dba5
tree10030644654a509c2418a99472a0e56deb251f3e
parentb7abe4b892aed1339a448dacabc2b5d0cc06dafe
ASoC: rt286: Fix null pointer issue

To make the interrupt safe if it happens to be called before the card is
ready, we use regmap read/write in the interrupt handler. Also, we try to
prevent the interrupt happen before the card is ready by enabling codec's
IRQ in the ASoC probe.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt286.c