HDA - Add support for the OQO Model 2
This patch adds support for the OQO Model 2 Ultra Mobile PC.
Signed off by Tobin Davis <[email protected]>
pci/hda/patch_sigmatel.c +12 -1
@@ -39,6 +39,7 @@enum {STAC_REF , +STAC_9200_OQO ,STAC_9200_DELL_D21 ,STAC_9200_DELL_D22 ,STAC_9200_DELL_D23 ,
@@ -1052,9 +1054,15 @@ static unsigned int dell9200_m27_pin_con 0x90170310, 0x04a11020, 0x90170310, 0x40f003fc, }; +static unsigned int oqo9200_pin_configs[8 ] = { +0x40c000f0 ,0x404000f1 ,0x0221121f ,0x02211210 , +0x90170111 ,0x90a70120 ,0x400000f2 ,0x400000f3 , +}; +static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS ] = { [STAC_REF ] = ref9200_pin_configs, + [STAC_9200_OQO ] = oqo9200_pin_configs, [STAC_9200_DELL_D21 ] = dell9200_d21_pin_configs, [STAC_9200_DELL_D22 ] = dell9200_d22_pin_configs, [STAC_9200_DELL_D23 ] = dell9200_d23_pin_configs,
@@ -1069,6 +1077,7 @@ static unsigned int *stac9200_brd_tbl[STstatic const char *stac9200_models[STAC_9200_MODELS ] = { [STAC_REF ] ="ref" , + [STAC_9200_OQO ] ="oqo" , [STAC_9200_DELL_D21 ] ="dell-d21" , [STAC_9200_DELL_D22 ] ="dell-d22" , [STAC_9200_DELL_D23 ] ="dell-d23" ,
@@ -1153,6 +1162,8 @@ static struct snd_pci_quirk stac9200_cfg STAC_9200_GATEWAY),SND_PCI_QUIRK (0x107b ,0x0318 ,"Gateway ML3019, MT3707" ,STAC_9200_GATEWAY ), +/* OQO Mobile */ + SND_PCI_QUIRK(0x1106, 0x3288, "OQO Model 2", STAC_9200_OQO), {} /* terminator */ };
@@ -3147,7 +3166,8 @@ static int patch_stac9200(struct hda_cod spec->num_adcs =1 ; spec->num_pwrs =0 ; -if (spec->board_config ==STAC_9200_GATEWAY ) +if ((spec->board_config ==STAC_9200_GATEWAY )|| + (spec->board_config ==STAC_9200_OQO )) spec->init = stac9200_eapd_init;else spec->init = stac9200_core_init;
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Thu, 31 Jan 2008 15:33:14 -0800,
Quoted 5 lines · Tobin Davis
This patch adds support for the OQO Model 2 Ultra Mobile PC.
Signed off by Tobin Davis <[email protected]>
Thanks. I'll apply it after 1.0.16 release.
Takashi
Quoted 9 lines · Takashi Iwai
At Thu, 31 Jan 2008 15:33:14 -0800,
Quoted 5 lines · Tobin Davis
This patch adds support for the OQO Model 2 Ultra Mobile PC.
Signed off by Tobin Davis <[email protected]>
Thanks. I'll apply it after 1.0.16 release.
When's the next release window? My contact at IDT (Sigmatel) was hoping to get it in this release, he just didn't get back to me with the test results until yesterday.
Also, I had some very strange audio garbage with the tip on an HD Audio platform that normally works ok. I'm going to be tracking it down this morning, once I get to work (1 hour). I'm not sure if it is related to the AD1986a or the SCH (gcap patch). I do know that GCAP returns 2200 on this system, whereas a normal ICH returns 4401. The last bit may be significant (64bit vs 32bit stream). I need to reverify the SCH value, but this may be causing the issue. This is critical for a launch coming up.
Signature · 6 lines
Tobin Davis Photographing a volcano is just about the most miserable thing you can do. -- Robert B. Goodman [Who has clearly never tried to use a PDP-10. Ed.]
At Fri, 01 Feb 2008 07:01:44 -0800,
Quoted 9 lines · Tobin Davis
On Fri, 2008-02-01 at 13:14 +0100, Takashi Iwai wrote:
At Thu, 31 Jan 2008 15:33:14 -0800,
Tobin Davis wrote:
>
> This patch adds support for the OQO Model 2 Ultra Mobile PC. >
>
Quoted 7 lines
> Signed off by Tobin Davis <[email protected]>
Thanks. I'll apply it after 1.0.16 release.
When's the next release window? My contact at IDT (Sigmatel) was hoping to get it in this release, he just didn't get back to me with the test results until yesterday.
1.0.16 will be released in the next week.
As Jaroslav already announced, we want to avoid patches except for bug fixes until the release.
Quoted 4 lines
Also, I had some very strange audio garbage with the tip on an HD Audio platform that normally works ok. I'm going to be tracking it down this morning, once I get to work (1 hour). I'm not sure if it is related to the AD1986a or the SCH (gcap patch).
AD1986A has a known problem when you assign the single stream to multiple DACs. But, we should have fixed this already in 1.0.16rc2.
Quoted 4 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bit stream). I need to reverify the SCH value, but this may be causing the issue. This is critical for a launch coming up.
Hm, this bit hasn't been tested. OK, we need a fix for that. (But I think OQO has no more than 4GB RAM, no?)
thanks,
Takashi
Quoted 10 lines · Takashi Iwai
Also, I had some very strange audio garbage with the tip on an HD Audio platform
Quoted 1 line
that normally works ok. I'm going to be tracking it down this
morning, once I
Quoted 1 line
get to work (1 hour). I'm not sure if it is related to the AD1986a
or the SCH
Quoted 1 line
(gcap patch).
AD1986A has a known problem when you assign the single stream to multiple DACs. But, we should have fixed this already in 1.0.16rc2.
If that's the case, then it isn't fixed as of yesterday's snapshot. I have brought in an ALC268 test board to replace the AD1986a. I will know real soon if this is the issue.
Quoted 11 lines
Quoted 3 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bitstream). I
Quoted 1 line
need to reverify the SCH value, but this may be causing the issue.
This is
Quoted 1 line
critical for a launch coming up.
Hm, this bit hasn't been tested. OK, we need a fix for that. (But I think OQO has no more than 4GB RAM, no?)
This isn't for the OQO, this is for a new Intel platform. And it will market with 256M-1G memory. If that bit is only for 64bit memory addressing, then I'm not worried about it. Sorry my earlier mail was confusing. I was getting ready for work and wanted to toss a quick head's up.
Signature · 4 lines
Tobin Davis Most people feel that everyone is entitled to their opinion.
HDA - AD1986a issues.
In reply to Takashi IwaiQuoted 10 lines · Takashi Iwai
Quoted 1 line
Also, I had some very strange audio garbage with the tip on an HD
Audio platform
Quoted 1 line
that normally works ok. I'm going to be tracking it down this
morning, once I
Quoted 1 line
get to work (1 hour). I'm not sure if it is related to the AD1986a
or the SCH
Quoted 1 line
(gcap patch).
AD1986A has a known problem when you assign the single stream to multiple DACs. But, we should have fixed this already in 1.0.16rc2.
Ok, I can confirm on my test system that the HDA-GCAP and HDA-SCH patches are ok. I tested them on 1.0.15 with an AD1986a and they work fine. Same system with HG20080130 is aweful. I'm trying to revert the patch_analog patches one at a time to see which one is the problem.
Quoted 9 lines
Quoted 3 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bitstream). I
Quoted 1 line
need to reverify the SCH value, but this may be causing the issue.
This is
Quoted 1 line
critical for a launch coming up.
Hm, this bit hasn't been tested. OK, we need a fix for that.
No need to worry about this bit I guess. It may only be relevant on a system that runs 64bit OSes, and I'd assume that bit doesn't exist for systems that can't.
Signature · 6 lines
Tobin Davis "What do you do when your real life exceeds your wildest fantasies?" "You keep it to yourself." -- Broadcast News
Re: HDA - AD1986a issues.
At Fri, 01 Feb 2008 14:57:35 -0800,
Quoted 11 lines · Tobin Davis
Quoted 1 line · Takashi Iwai
Also, I had some very strange audio garbage with the tip on an HD Audio
platform
> that normally works ok. I'm going to be tracking it down this morning, once I
> get to work (1 hour). I'm not sure if it is related to the AD1986a or the SCH
> (gcap patch).
Quoted 7 lines
AD1986A has a known problem when you assign the single stream to multiple DACs. But, we should have fixed this already in 1.0.16rc2.
Ok, I can confirm on my test system that the HDA-GCAP and HDA-SCH patches are ok. I tested them on 1.0.15 with an AD1986a and they work fine. Same system with HG20080130 is aweful. I'm trying to revert the
patch_analogpatches one at a time to see which one is the problem.
Did you find out the problem? I vaguely remember that EAPD may play a bad role for headphones. This should be disabled except for the speaker output.
Quoted 7 lines
Quoted 2 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bitstream). I
> need to reverify the SCH value, but this may be causing the issue. This is
> critical for a launch coming up.
Quoted 5 lines
Hm, this bit hasn't been tested. OK, we need a fix for that.
No need to worry about this bit I guess. It may only be relevant on a system that runs 64bit OSes, and I'd assume that bit doesn't exist for systems that can't.
The fix itself would be pretty easy. Check this bit and reset the dma consistent mask to 32bit if it's 32bit only.
Hm, this reminds me that we should call set_mask with 64bit as default. Needs more investigation...
Takashi
Re: HDA - AD1986a issues.
Quoted 16 lines · Takashi Iwai
At Fri, 01 Feb 2008 14:57:35 -0800,
Quoted 14 lines · Tobin Davis
Quoted 1 line · Takashi Iwai
Also, I had some very strange audio garbage with the tip on an HD Audio
platform
> that normally works ok. I'm going to be tracking it down this morning, once I
> get to work (1 hour). I'm not sure if it is related to the AD1986a or the SCH
> (gcap patch).AD1986A has a known problem when you assign the single stream to multiple DACs. But, we should have fixed this already in 1.0.16rc2.
Quoted 8 lines
Quoted 4 lines
Ok, I can confirm on my test system that the HDA-GCAP and HDA-SCH patches are ok. I tested them on 1.0.15 with an AD1986a and they work fine. Same system with HG20080130 is aweful. I'm trying to revert the
patch_analogpatches one at a time to see which one is the problem.Did you find out the problem? I vaguely remember that EAPD may play a bad role for headphones. This should be disabled except for the speaker output.
The problem I noticed only occurred on my SCH based system. It was solved with the snoop bit check/set. I'll double check to see if I have any issues on my laptop (Asus Z62F w/ ad1986a - model=laptop-eapd).
Oddly enough, the system worked fine with 1.0.15 and the two earlier patches (GCAP and SCH PCI IDS). Not sure what to make of that. I'll do more testing today.
Quoted 14 lines
Quoted 8 lines
Quoted 3 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bitstream). I
> need to reverify the SCH value, but this may be causing the issue. This is
> critical for a launch coming up.Quoted 5 lines
Hm, this bit hasn't been tested. OK, we need a fix for that.
No need to worry about this bit I guess. It may only be relevant on a system that runs 64bit OSes, and I'd assume that bit doesn't exist for systems that can't.
Quoted 5 lines
The fix itself would be pretty easy. Check this bit and reset the dma consistent mask to 32bit if it's 32bit only.
Hm, this reminds me that we should call
set_maskwith 64bit as default. Needs more investigation...
Is this dependent on system/OS? My thought was it was for supporting x86-64 architecture. That being the case, it should be added to the TODO list, but not critical for 1.0.16 release.
Actually, there are other potential issues that I noticed with regards to GCAP and our current usage. For example, bi-directional stream support and number of serial data out signals. Both are hardwired in the ICH family of chipsets, but for how long?
Signature · 4 lines
Tobin Davis Better dead than mellow.
Re: HDA - AD1986a issues.
At Mon, 04 Feb 2008 08:38:10 -0800,
Quoted 28 lines · Tobin Davis
On Mon, 2008-02-04 at 16:19 +0100, Takashi Iwai wrote:
At Fri, 01 Feb 2008 14:57:35 -0800,
Tobin Davis wrote:
>
> On Fri, 2008-02-01 at 16:13 +0100, Takashi Iwai wrote:
>
> > Also, I had some very strange audio garbage with the tip on an HD Audio
> platform
> > that normally works ok. I'm going to be tracking it down this morning,
> once I
> > get to work (1 hour). I'm not sure if it is related to the AD1986a or the
> SCH
> > (gcap patch).
>
> AD1986A has a known problem when you assign the single stream to
> multiple DACs. But, we should have fixed this already in 1.0.16rc2.
>
> Ok, I can confirm on my test system that the HDA-GCAP and HDA-SCH patches are > ok. I tested them on 1.0.15 with an AD1986a and they work fine. Same system > with HG20080130 is aweful. I'm trying to revert thepatch_analogpatches one at > a time to see which one is the problem.Did you find out the problem? I vaguely remember that EAPD may play a bad role for headphones. This should be disabled except for the speaker output.
Quoted 7 lines
The problem I noticed only occurred on my SCH based system. It was solved with the snoop bit check/set. I'll double check to see if I have any issues on my laptop (Asus Z62F w/ ad1986a - model=laptop-eapd).
Oddly enough, the system worked fine with 1.0.15 and the two earlier patches (GCAP and SCH PCI IDS). Not sure what to make of that. I'll do more testing today.
OK, then let me know if you find out something.
Quoted 16 lines
Quoted 7 lines
Quoted 2 lines
I do know that GCAP returns 2200 on this system, whereas a normal
ICH returns 4401. The last bit may be significant (64bit vs 32bitstream). I
> need to reverify the SCH value, but this may be causing the issue. This is
> critical for a launch coming up.Quoted 5 lines
Hm, this bit hasn't been tested. OK, we need a fix for that.
No need to worry about this bit I guess. It may only be relevant on a system that runs 64bit OSes, and I'd assume that bit doesn't exist for systems that can't.
The fix itself would be pretty easy. Check this bit and reset the dma consistent mask to 32bit if it's 32bit only.
Quoted 6 lines
Hm, this reminds me that we should call
set_maskwith 64bit as default. Needs more investigation...Is this dependent on system/OS? My thought was it was for supporting x86-64 architecture. That being the case, it should be added to the TODO list, but not critical for 1.0.16 release.
Well, what I mentioned above is about the DMA memory allocation. Currently, Linux kernel allocates PCI DMA memory in 32bit space unless you set the 64bit DMA mask properly. So, we don't use over 4GB address even if RAM is available.
Of course, we already support x86-64 :)
Quoted 4 lines
Actually, there are other potential issues that I noticed with regards to GCAP and our current usage. For example, bi-directional stream support and number of serial data out signals. Both are hardwired in the ICH family of chipsets, but for how long?
I don't care about these so seriously right now.
The driver coding depends really on the hardware. And, the hardware implementation often ends up differently from what the spec says, especially in the first version. Let's see what comes up in future at first.
Takashi
At Fri, 01 Feb 2008 16:13:47 +0100,
Quoted 16 lines · I wrote:
At Fri, 01 Feb 2008 07:01:44 -0800,
Quoted 13 lines · Tobin Davis
On Fri, 2008-02-01 at 13:14 +0100, Takashi Iwai wrote:
At Thu, 31 Jan 2008 15:33:14 -0800,
Tobin Davis wrote:
>
> This patch adds support for the OQO Model 2 Ultra Mobile PC. >
>
> Signed off by Tobin Davis <[email protected]>Thanks. I'll apply it after 1.0.16 release.
Quoted 7 lines
Quoted 3 lines
When's the next release window? My contact at IDT (Sigmatel) was hoping to get it in this release, he just didn't get back to me with the test results until yesterday.
1.0.16 will be released in the next week.
As Jaroslav already announced, we want to avoid patches except for bug fixes until the release.
On the second thought, it's easier to integrate this patch right now because it's very local and cannot break others. So, I applied OQO patch to HG tree to be merged to 1.0.16.
thanks,
Takashi
Thanks, boss.
Quoted 34 lines · Takashi Iwai
At Fri, 01 Feb 2008 16:13:47 +0100,
Quoted 16 lines · I wrote:
At Fri, 01 Feb 2008 07:01:44 -0800,
Quoted 13 lines · Tobin Davis
On Fri, 2008-02-01 at 13:14 +0100, Takashi Iwai wrote:
At Thu, 31 Jan 2008 15:33:14 -0800,
Tobin Davis wrote:
>
> This patch adds support for the OQO Model 2 Ultra Mobile PC. >
>
> Signed off by Tobin Davis <[email protected]>Thanks. I'll apply it after 1.0.16 release.
Quoted 7 lines
Quoted 3 lines
When's the next release window? My contact at IDT (Sigmatel) was hoping to get it in this release, he just didn't get back to me with the test results until yesterday.
1.0.16 will be released in the next week.
As Jaroslav already announced, we want to avoid patches except for bug fixes until the release.On the second thought, it's easier to integrate this patch right now because it's very local and cannot break others. So, I applied OQO patch to HG tree to be merged to 1.0.16.
thanks,
Takashi
Thanks Takashi, appreciate it!
IDT PC Audio Demo/Linux/Test
(512) 330-3127
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Takashi Iwai
Sent: Sunday, February 03, 2008 1:32 PM
To: Tobin Davis
Cc: ALSA Developers
Subject: Re: [alsa-devel] HDA - Add support for the OQO Model 2
At Fri, 01 Feb 2008 16:13:47 +0100,
Quoted 17 lines · I wrote:
At Fri, 01 Feb 2008 07:01:44 -0800,
Quoted 14 lines · Tobin Davis
On Fri, 2008-02-01 at 13:14 +0100, Takashi Iwai wrote:
At Thu, 31 Jan 2008 15:33:14 -0800,
Tobin Davis wrote:
>
> This patch adds support for the OQO Model 2 Ultra Mobile PC. >
>
> Signed off by Tobin Davis <[email protected]>Thanks. I'll apply it after 1.0.16 release.
When's the next release window? My contact at IDT (Sigmatel) was
hoping to get
Quoted 1 line
Quoted 1 line
it in this release, he just didn't get back to me with the test
results until
Quoted 5 lines
Quoted 1 line
yesterday.
1.0.16 will be released in the next week.
As Jaroslav already announced, we want to avoid patches except for bug fixes until the release.
On the second thought, it's easier to integrate this patch right now because it's very local and cannot break others. So, I applied OQO patch to HG tree to be merged to 1.0.16.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel