[PATCH] [ALSA] Added new pin config for first gen macbook.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Takashi Iwai <tiwai@...>, Ivan N. Zlatev <contact@...>, Jaroslav Kysela <perex@...>, <linux-kernel@...>
Date: Monday, September 3, 2007 - 6:25 am

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [ALSA] Added new pin config for first gen macbook., Abhijit Bhopatkar, (Mon Sep 3, 6:25 am)
Re: [PATCH] [ALSA] Added new pin config for first gen macbook., Abhijit Bhopatkar, (Mon Sep 3, 11:42 pm)
Re: [PATCH] [ALSA] Added new pin config for first gen macbook., Abhijit Bhopatkar, (Tue Sep 4, 10:18 am)
Re: [PATCH] [ALSA] Added new pin config for first gen macbook., Alistair John Strachan, (Tue Sep 4, 11:00 am)