[alsa-devel] [PATCH] Sony Vaio with stac9872

107 107 at mail.ru
Fri Feb 24 13:41:43 CET 2012


Hello, I have no sound on my Sony Vaio SZ4XRN laptop with newest kernels.
Sound: hda-intel, sigmatel - STAC9872

To solve this issue I make this patch for sound/pci/hda/patch_sigmatel.c:

--- patch_sigmatel.c.bak        2012-02-23 21:01:28.577515317 +0400
+++ patch_sigmatel.c    2012-02-23 21:53:21.035605216 +0400
@@ -6357,7 +6357,16 @@
  */
 
 static const struct hda_verb stac9872_core_init[] = {
-       {0x15, AC_VERB_SET_CONNECT_SEL, 0x1}, /* mic-sel: 0a,0d,14,02 */
+       {0x0a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP }, /* HP <- 0x2 */
+       {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT }, /* Speaker <- 0x5 */
+       {0x0d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 }, /* Mic? (<- 0x2) */
+       {0x0e, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN }, /* CD */
+       {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 }, /* Mic? */
+       {0x15, AC_VERB_SET_CONNECT_SEL, 0x2 /*0x1*/ }, /* mic-sel: 0a,0d,14,02 */
+       {0x02, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE}, /* HP */
+       {0x05, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE}, /* Speaker */
+       {0x09, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, /* capture sw/vol -> 0x8 */
+       {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, /* CD-in -> 0x6 */
        {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, /* Mic-in -> 0x9 */
        {}
 };


Constants got from old kernel (2.6.22).
With this patch sound works fine. Thank you. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-patch
Size: 1049 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120224/218f78c4/attachment.bin 


More information about the Alsa-devel mailing list