Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110930
b: refs/heads/master
c: f83a59c
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Jaroslav Kysela committed Aug 25, 2008
1 parent 38ebca8 commit 6be0f3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 36463a9660a69018c98f6bde93183a523667e598
refs/heads/master: f83a59c3c15471e866b6af09f82a9ac1eb76fce7
10 changes: 5 additions & 5 deletions trunk/sound/isa/wss/wss_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,9 @@ static int snd_ad1848_probe(struct snd_wss *chip)
spin_lock_irqsave(&chip->reg_lock, flags);

/* set CS423x MODE 1 */
snd_wss_out(chip, CS4231_MISC_INFO, 0);
snd_wss_dout(chip, CS4231_MISC_INFO, 0);

snd_wss_out(chip, CS4231_RIGHT_INPUT, 0x45); /* 0x55 & ~0x10 */
snd_wss_dout(chip, CS4231_RIGHT_INPUT, 0x45); /* 0x55 & ~0x10 */
r = snd_wss_in(chip, CS4231_RIGHT_INPUT);
if (r != 0x45) {
/* RMGE always high on AD1847 */
Expand All @@ -1174,7 +1174,7 @@ static int snd_ad1848_probe(struct snd_wss *chip)
}
hardware = WSS_HW_AD1847;
} else {
snd_wss_out(chip, CS4231_LEFT_INPUT, 0xaa);
snd_wss_dout(chip, CS4231_LEFT_INPUT, 0xaa);
r = snd_wss_in(chip, CS4231_LEFT_INPUT);
/* L/RMGE always low on AT2320 */
if ((r | CS4231_ENABLE_MIC_GAIN) != 0xaa) {
Expand All @@ -1199,7 +1199,7 @@ static int snd_ad1848_probe(struct snd_wss *chip)
r = snd_wss_in(chip, CS4231_MISC_INFO);

/* set CS423x MODE 2 */
snd_wss_out(chip, CS4231_MISC_INFO, CS4231_MODE2);
snd_wss_dout(chip, CS4231_MISC_INFO, CS4231_MODE2);
for (i = 0; i < 16; i++) {
if (snd_wss_in(chip, i) != snd_wss_in(chip, 16 + i)) {
/* we have more than 16 registers: check ID */
Expand All @@ -1221,7 +1221,7 @@ static int snd_ad1848_probe(struct snd_wss *chip)
else
chip->hardware = WSS_HW_AD1848;
out_mode:
snd_wss_out(chip, CS4231_MISC_INFO, 0);
snd_wss_dout(chip, CS4231_MISC_INFO, 0);
out:
spin_unlock_irqrestore(&chip->reg_lock, flags);
return err;
Expand Down

0 comments on commit 6be0f3f

Please sign in to comment.