projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'asoc/topic/w-codec' into asoc-next
[linux-2.6-microblaze.git]
/
sound
/
soc
/
codecs
/
rt286.c
diff --git
a/sound/soc/codecs/rt286.c
b/sound/soc/codecs/rt286.c
index
8104d22
..
d069889
100644
(file)
--- a/
sound/soc/codecs/rt286.c
+++ b/
sound/soc/codecs/rt286.c
@@
-305,6
+305,8
@@
static int rt286_jack_detect(struct rt286_priv *rt286, bool *hp, bool *mic)
*hp = false;
*mic = false;
+ if (!rt286->codec)
+ return -EINVAL;
if (rt286->pdata.cbj_en) {
regmap_read(rt286->regmap, RT286_GET_HP_SENSE, &buf);
*hp = buf & 0x80000000;