Skip to contentSkip to conversation

fix patch_ucb1400 for proper resume

PATCH In review Mike Rapoport 1 participant 2 messages Jul 2, 2008 – Jul 9, 2008 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix patch_ucb1400 for proper resume

Replace 'snd_ac97_write' with snd_ac97_write_cache' in pacth_ucb1400 to allow proper codec wakeup.

sound/pci/ac97/ac97_patch.c +2 -2
index 1292dce..b821874 100644
@@ -3633,7 +3633,7 @@ static int patch_ucb1400(struct snd_ac97 * ac97)
 {
 	ac97->build_ops = &patch_ucb1400_ops;
 	/* enable headphone driver and smart low power mode by default */
-	snd_ac97_write(ac97, 0x6a, 0x0050);
-	snd_ac97_write(ac97, 0x6c, 0x0030);
+	snd_ac97_write_cache(ac97, 0x6a, 0x0050);
+	snd_ac97_write_cache(ac97, 0x6c, 0x0030);
 	return 0;
 }
Signature · 2 lines
Sincerely yours,
Mike.
#1 lore raw

Any comments on this?

Quoted 21 lines · Mike Rapoport

Replace 'snd_ac97_write' with snd_ac97_write_cache' in pacth_ucb1400 to allow proper codec wakeup.

sound/pci/ac97/ac97_patch.c +2 -2
index 1292dce..b821874 100644
@@ -3633,7 +3633,7 @@ static int patch_ucb1400(struct snd_ac97 * ac97)
 {
 	ac97->build_ops = &patch_ucb1400_ops;
 	/* enable headphone driver and smart low power mode by default */
-	snd_ac97_write(ac97, 0x6a, 0x0050);
-	snd_ac97_write(ac97, 0x6c, 0x0030);
+	snd_ac97_write_cache(ac97, 0x6a, 0x0050);
+	snd_ac97_write_cache(ac97, 0x6c, 0x0030);
 	return 0;
 }
Signature · 2 lines
Sincerely yours,
Mike.