All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [ALSA] Added new pin config for first gen macbook.
@ 2007-09-03 10:25 Abhijit Bhopatkar
  2007-09-03 10:36 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Abhijit Bhopatkar @ 2007-09-03 10:25 UTC (permalink / raw)
  To: Takashi Iwai, Ivan N. Zlatev, Jaroslav Kysela, linux-kernel

commit 5d5d3bc3eddf2ad97b2cb090b92580e7fed6cee1 changed all
pin configs for intel macs, but it breaks sound on
Macbook first generation.

Readded a known working pin config for first gen macbooks.

Signed-off-by: Abhijit Bhopatkar <bainonline@gmail.com>
---
 sound/pci/hda/patch_sigmatel.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 3f25de7..a2b0422 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -585,6 +585,12 @@ static unsigned int intel_mac_v5_pin_configs[10] = {
        0x400000fc, 0x400000fb,
 };

+static unsigned int intel_macbook_first_gen_pin_configs[10] = {
+       0x0321e230, 0x03a1e020, 0x9017e110, 0x01014010,
+       0x01a19021, 0x0381e021, 0x1345e240, 0x13c5e22e,
+       0x02a19320, 0x400000fb,
+};
+
 static unsigned int stac922x_dell_pin_configs[10] = {
        0x0221121e, 0x408103ff, 0x02a1123e, 0x90100310,
        0x408003f1, 0x0221122f, 0x03451340, 0x40c003f2,
@@ -603,7 +609,7 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
        [STAC_INTEL_MAC_V5] = intel_mac_v5_pin_configs,
        /* for backward compitability */
        [STAC_MACMINI] = intel_mac_v3_pin_configs,
-       [STAC_MACBOOK] = intel_mac_v5_pin_configs,
+       [STAC_MACBOOK] = intel_macbook_first_gen_pin_configs,
        [STAC_MACBOOK_PRO_V1] = intel_mac_v3_pin_configs,
        [STAC_MACBOOK_PRO_V2] = intel_mac_v3_pin_configs,
        [STAC_IMAC_INTEL] = intel_mac_v2_pin_configs,
@@ -2132,6 +2138,8 @@ static int patch_stac922x(struct hda_codec *codec)
                        spec->board_config = STAC_INTEL_MAC_V4;
                        break;
                case 0x106b0a00:
+                       spec->board_config = STAC_MACBOOK;
+                       break;
                case 0x106b2200:
                        spec->board_config = STAC_INTEL_MAC_V5;
                        break;
-- 
1.5.2.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-04 15:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-03 10:25 [PATCH] [ALSA] Added new pin config for first gen macbook Abhijit Bhopatkar
2007-09-03 10:36 ` Takashi Iwai
2007-09-03 11:07   ` Ivan N. Zlatev
2007-09-03 12:06     ` Ivan N. Zlatev
2007-09-04  3:42       ` Abhijit Bhopatkar
2007-09-04 12:56         ` Takashi Iwai
2007-09-04 14:18           ` Abhijit Bhopatkar
2007-09-04 15:00             ` Alistair John Strachan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.