Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270566
b: refs/heads/master
c: 0f73644
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 8, 2011
1 parent c5a0145 commit 894f90d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ed464659a1d83a87f4ef79fab4d85a8dcf677c9
refs/heads/master: 0f73644f372281f2f9c33a0459dfdfc8bc77fbda
10 changes: 7 additions & 3 deletions trunk/sound/soc/codecs/ad1980.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,22 @@ static int ad1980_soc_probe(struct snd_soc_codec *codec)
}

/* Read out vendor ID to make sure it is ad1980 */
if (ac97_read(codec, AC97_VENDOR_ID1) != 0x4144)
if (ac97_read(codec, AC97_VENDOR_ID1) != 0x4144) {
ret = -ENODEV;
goto reset_err;
}

vendor_id2 = ac97_read(codec, AC97_VENDOR_ID2);

if (vendor_id2 != 0x5370) {
if (vendor_id2 != 0x5374)
if (vendor_id2 != 0x5374) {
ret = -ENODEV;
goto reset_err;
else
} else {
printk(KERN_WARNING "ad1980: "
"Found AD1981 - only 2/2 IN/OUT Channels "
"supported\n");
}
}

/* unmute captures and playbacks volume */
Expand Down

0 comments on commit 894f90d

Please sign in to comment.