Mo' better modem support
Hi,
I've played a bit the ac97 modem yesterday, and found out the following problems:
1. Off-Hook switch needs manually turned on
Shall we add a hook in pcm.modem definition for this control?
2. All controls have index 1, thus the appearance on alsamixer looks strange
3. There is no way to detect the modem driver from sysfs or so.
Espeically, hda-intel driver supports both audio and modem by a single driver, and the modem support doesn't appear even on proc file explicitly.
Well, 2 is a minor problem, and we can live with that. But others should be improved...
Any ideas?
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 2 lines · Takashi Iwai
I've played a bit the ac97 modem yesterday,
Great!
Quoted 4 lines
and found out the
following problems:1. Off-Hook switch needs manually turned on
Yes. I think that it is ok, this should be controlled separately from PCM. For instance for Caller ID polling we will need to run capturing with CID switch 'on' and Off-Hook switch 'off'. Other example is typical dialer (auto-dialer or so), this will turn 'Off-hook' switch 'on', start playback (to send DTMFs), stop playback and leave line with 'Off-hook' is 'on'.
Quoted 1 line
Shall we add a hook in pcm.modem definition for this control?
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
( But really, who will use it? Specialized phone oriented application (like dialer, voice machine or softmodem) will control DAA specific switches explicitly anyway. And for simple scripting amixer + aplay should be good enough. )
Quoted 2 lines
2. All controls have index 1, thus the appearance on alsamixer looks strange
Will see it (no modems near me).
Quoted 1 line
3. There is no way to detect the modem driver from sysfs or so.
There is no some "standard" way to define softmodem in Linuxi - remember this "winmodem is not modem", and this is correct. What we actually have in hardware (and in ALSA) is not modem, it is simplified sound codec + Data Access Arrangement (DAA) (aka Telephone Line Interface Circuit). And the "real" modem (which performs modulation/demodulation) is user-space application (like proprietary 'slmodem') that uses the standard ALSA api to communicate with this sound device.
( don't mention here binary-only kernel modem drivers provided by some vendors. )
Quoted 3 lines
Espeically, hda-intel driver supports both audio and modem by a single driver, and the modem support doesn't appear even on proc file explicitly.
Agree, 'proc' files will be helpful with MFG too. Actually I've planned to do it, but don't have HDA hardware now. Testers?
(BTW one more reason why it will be helpful: existed HDA modem driver has just one (known) vendor ID, but I guess there will be more same chip based modems with different vendor IDs. If we will show this info somewhere in proc files it will simplify IDs addition)
Quoted 5 lines
Well, 2 is a minor problem, and we can live with that. But others should be improved...
Any ideas?
Some more things for your list:
4. Unsupported Conexant modem codecs (AC97 and HDA).
5. Lack of incoming call notifications.
6. Lack of free softmodem software.
'5' may be related to '3', but I think this is more generic problem:
is there "standard" telephony interface (or just used by nobody 'include/linux/telephony.h')?
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
At Tue, 06 Sep 2005 02:29:51 +0300,
Quoted 13 lines · Sasha Khapyorsky
Quoted 5 lines
and found out the
following problems:1. Off-Hook switch needs manually turned on
Yes. I think that it is ok, this should be controlled separately from PCM. For instance for Caller ID polling we will need to run capturing with CID switch 'on' and Off-Hook switch 'off'. Other example is typical dialer (auto-dialer or so), this will turn 'Off-hook' switch 'on', start playback (to send DTMFs), stop playback and leave line with 'Off-hook' is 'on'.
Quoted 5 lines
Quoted 1 line
Shall we add a hook in pcm.modem definition for this control?
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
Sounds reasonable.
Quoted 4 lines
( But really, who will use it? Specialized phone oriented application (like dialer, voice machine or softmodem) will control DAA specific switches explicitly anyway. And for simple scripting amixer + aplay should be good enough. )
I don't know how many its demand is. But, I guess 99% is only the modem, and adding this hook to pcm.modem would suffice, right? All what I want among these is just an easy-to-use set up.
Quoted 4 lines
Quoted 2 lines
2. All controls have index 1, thus the appearance on alsamixer looks strange
Will see it (no modems near me).
This is because ac97.num=1. It's correct from the driver's POV, but a bit nasty from user's POV.
Quoted 10 lines
Quoted 1 line
3. There is no way to detect the modem driver from sysfs or so.
There is no some "standard" way to define softmodem in Linuxi - remember this "winmodem is not modem", and this is correct. What we actually have in hardware (and in ALSA) is not modem, it is simplified sound codec + Data Access Arrangement (DAA) (aka Telephone Line Interface Circuit). And the "real" modem (which performs modulation/demodulation) is user-space application (like proprietary 'slmodem') that uses the standard ALSA api to communicate with this sound device.
Quoted 2 lines
( don't mention here binary-only kernel modem drivers provided by some vendors. )
Yes, I agree. Let's reword it as "softmodem codec", then. The purpose of these devices are different from "audio", so definitely we need some distinction, which is visible from outside.
Quoted 11 lines
Quoted 3 lines
Espeically, hda-intel driver supports both audio and modem by a single driver, and the modem support doesn't appear even on proc file explicitly.
Agree, 'proc' files will be helpful with MFG too. Actually I've planned to do it, but don't have HDA hardware now. Testers?
(BTW one more reason why it will be helpful: existed HDA modem driver has just one (known) vendor ID, but I guess there will be more same chip based modems with different vendor IDs. If we will show this info somewhere in proc files it will simplify IDs addition)
I think it's another variable of hda_proc.c for MFG. Currently it shows only the AFG trees.
What I thought is a universal proc or sysfs interface indicating modem codecs. Main purpose is the auto-detection of available devices by the installer. In the case of PCI, it can be detected by the PCI class id. But HDA-modem, currently it's not possible to know before the driver is loaded...
Quoted 9 lines
Quoted 5 lines
Well, 2 is a minor problem, and we can live with that. But others should be improved...
Any ideas?
Some more things for your list:
4. Unsupported Conexant modem codecs (AC97 and HDA).
Yep. That'll be really nice to have (iff conexant gives us the h/w detail... :)
Quoted 2 lines
5. Lack of incoming call notifications.
6. Lack of free softmodem software.
Yeah :) This would be a legally tough negotiation...
Quoted 3 lines
'5' may be related to '3', but I think this is more generic problem:
is there "standard" telephony interface (or just used by nobody 'include/linux/telephony.h')?
AFAIK, only ixj (and ixj-pcmcia) driver uses this interface.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
[ I CC: to linmodems people ]
Quoted 15 lines · Takashi Iwai
At Tue, 06 Sep 2005 02:29:51 +0300,
Quoted 13 lines · Sasha Khapyorsky
Quoted 5 lines
and found out the
following problems:1. Off-Hook switch needs manually turned on
Yes. I think that it is ok, this should be controlled separately from PCM. For instance for Caller ID polling we will need to run capturing with CID switch 'on' and Off-Hook switch 'off'. Other example is typical dialer (auto-dialer or so), this will turn 'Off-hook' switch 'on', start playback (to send DTMFs), stop playback and leave line with 'Off-hook' is 'on'.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Shall we add a hook in pcm.modem definition for this control?
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
Sounds reasonable.
I will prepare patch this weekend or so (want to test it first).
Quoted 7 lines
Quoted 4 lines
( But really, who will use it? Specialized phone oriented application (like dialer, voice machine or softmodem) will control DAA specific switches explicitly anyway. And for simple scripting amixer + aplay should be good enough. )
I don't know how many its demand is. But, I guess 99% is only the modem, and adding this hook to pcm.modem would suffice, right?
No, the modem application needs explicit "Hook-Off" control, just as was in my example it may poll the line for Caller ID detection with "Hook-Off" turned off (and few more usage cases).
But OTOH it is not big deal to handle this control explicitly even with auto-"Hook-Off"ed device or to use alternative "raw" device - can live with it.
Quoted 20 lines
All what I want among these is just an easy-to-use set up.
Quoted 4 lines
Quoted 2 lines
2. All controls have index 1, thus the appearance on alsamixer looks strange
Will see it (no modems near me).
This is because ac97.num=1. It's correct from the driver's POV, but a bit nasty from user's POV.
Quoted 10 lines
Quoted 1 line
3. There is no way to detect the modem driver from sysfs or so.
There is no some "standard" way to define softmodem in Linuxi - remember this "winmodem is not modem", and this is correct. What we actually have in hardware (and in ALSA) is not modem, it is simplified sound codec + Data Access Arrangement (DAA) (aka Telephone Line Interface Circuit). And the "real" modem (which performs modulation/demodulation) is user-space application (like proprietary 'slmodem') that uses the standard ALSA api to communicate with this sound device.
Quoted 5 lines
Quoted 2 lines
( don't mention here binary-only kernel modem drivers provided by some vendors. )
Yes, I agree. Let's reword it as "softmodem codec", then. The purpose of these devices are different from "audio",
Not fully agree. The purpose is different on level of "what we are going to do with it" - user-decision. We may just play sounds with softmodem codec (voice machine is example) and probably to use sound card for data modulations (as done by 'soundmodem' iirc). Technically there is same purpose - to play and record sounds.
Quoted 2 lines
so definitely
we need some distinction, which is visible from outside.
Agree that we need some distinction (probably cosmetic) to simplify usage, just because "typical" application will use audio and modem devices for different purposes, but "raw" level I would prefer to save as is.
BTW how about SND_PCM_CLASS_? It is not used today, but it may serve our purpose.
Quoted 13 lines
Quoted 5 lines
Quoted 4 lines
Espeically, hda-intel driver supports both audio and modem by a single driver, and the modem support doesn't appear even on proc file explicitly.
Quoted 7 lines
Agree, 'proc' files will be helpful with MFG too. Actually I've planned to do it, but don't have HDA hardware now. Testers?
(BTW one more reason why it will be helpful: existed HDA modem driver has just one (known) vendor ID, but I guess there will be more same chip based modems with different vendor IDs. If we will show this info somewhere in proc files it will simplify IDs addition)
Quoted 5 lines
I think it's another variable of
hda_proc.cfor MFG. Currently it shows only the AFG trees.What I thought is a universal proc or sysfs interface indicating modem codecs.
Good idea.
Quoted 3 lines
Main purpose is the auto-detection of available devices by the installer. In the case of PCI, it can be detected by the PCI class id.
Generally it is not very good method. Even if PCI class ID is defined correctly it is hard to know kind of modem: hardware/"real", winmodem/"controless" or softmodem.
(BTW what "correctly" should be there? PCI_CLASS_COMMUNICATION_MODEM? - then serial driver will try to initialize it as serial port, but there is no serial port.)
Quoted 2 lines
But HDA-modem, currently it's not possible to know before the driver is loaded...
Yes, and same problem exists with come AC97 devices (ALi M5451 for example) - modem detection is not user-friendly procedure (linmodems people know this very well).
What we may do is to load the driver according to PCI IDs and then check appropriate info with "universal modem indicating" interface above. Agree with it. Will see as well.
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
Well, 2 is a minor problem, and we can live with that. But others should be improved...
Any ideas?
Some more things for your list:
4. Unsupported Conexant modem codecs (AC97 and HDA).
Quoted 7 lines
Yep. That'll be really nice to have (iff conexant gives us the h/w detail... :)
Quoted 2 lines
5. Lack of incoming call notifications.
6. Lack of free softmodem software.Yeah :) This would be a legally tough negotiation...
Sure :) . But I don't think about negotiations (too hard imho), probably we could to develop one (or at least to try).
Sasha.
Quoted 10 lines
Quoted 4 lines
'5' may be related to '3', but I think this is more generic problem:
is there "standard" telephony interface (or just used by nobody 'include/linux/telephony.h')?AFAIK, only ixj (and ixj-pcmcia) driver uses this interface.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 src/pcm/pcm_hooks.c : fix segfault then hooks list is empty
This fix prevents segfaulting then hooks list is empty.
Index: alsa-lib/src/pcm/pcm_hooks.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_hooks.c,v retrieving revision 1.38
src/pcm/pcm_hooks.c +2 -1
@@ -469,7 +469,7 @@ int _snd_pcm_hooks_open(snd_pcm_t **pcmpreturn err; }if (!hooks) -return 0 ; + goto _done;snd_config_for_each (i, next, hooks) {snd_config_t *n =snd_config_iterator_entry (i);const char *str;
@@ -488,6 +488,7 @@ int _snd_pcm_hooks_open(snd_pcm_t **pcmpreturn err; } } + _done: *pcmp = rpcm;return 0 ; }
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Takashi Iwai
AppliedRe: [alsa-lib patch] src/pcm/pcm_hooks.c : fix segfault then hooks list is empty
At Sun, 11 Sep 2005 19:36:45 +0300,
Quoted 5 lines · Sasha Khapyorsky
This fix prevents segfaulting then hooks list is empty.
Signed-off-by Sasha Khapyorsky <[email protected]>
Applied to CVS. Thanks.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 modem's pcm "two device" config [was: Re: Mo' better modem support]
In reply to Sasha KhapyorskyQuoted 8 lines · Sasha Khapyorsky
Quoted 6 lines
Quoted 4 lines
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
Sounds reasonable.
I will prepare patch this weekend or so (want to test it first).
There is the patch (actually beginning). This defines two PCMs:
"phoneline" is renamed old-style modem and "modem" is pcm with auto-"Hook-Off".
Sasha.
This defines two modem related pcm devices: "phoneline" is driver's pcm reference, with "modem" the line will be "Hook-Off"ed automatically.
Index: alsa-lib/src/conf/alsa.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/alsa.conf,v retrieving revision 1.19
src/conf/alsa.conf +1 -0
@@ -251,6 +251,7 @@ pcm.surround71 cards.pcm.surround71 pcm.iec958 cards.pcm.iec958 pcm.spdif cards.pcm.iec958 pcm.modem cards.pcm.modem +pcm.phoneline cards.pcm.phoneline pcm.default cards.pcm.default pcm.dmix cards.pcm.dmix
Index: alsa-lib/src/conf/pcm/modem.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/pcm/modem.conf,v retrieving revision 1.1
src/conf/pcm/modem.conf +59 -2
70 lines not on this page · raw message
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Takashi Iwai
AppliedRe: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
At Mon, 12 Sep 2005 03:27:46 +0300,
Quoted 15 lines · Sasha Khapyorsky
Quoted 8 lines · Sasha Khapyorsky
Quoted 6 lines
Quoted 4 lines
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
Sounds reasonable.
I will prepare patch this weekend or so (want to test it first).
There is the patch (actually beginning). This defines two PCMs:
"phoneline" is renamed old-style modem and "modem" is pcm with auto-"Hook-Off".
Quoted 7 lines
Sasha.
This defines two modem related pcm devices: "phoneline" is driver's pcm reference, with "modem" the line will be "Hook-Off"ed automatically.
Signed-off-by Sasha Khapyorsky <[email protected]>
Applied. Thanks.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
At Mon, 12 Sep 2005 12:38:13 +0200,
Quoted 21 lines · I wrote:
At Mon, 12 Sep 2005 03:27:46 +0300,
Quoted 18 lines · Sasha Khapyorsky
Quoted 8 lines · Sasha Khapyorsky
Quoted 6 lines
Quoted 4 lines
If we really need to auto-"Hoof-Off" we may separate it to logically different pcm devices (like pcm.modem, pcm.phoneline or so) and then add hook to one of them.
Sounds reasonable.
I will prepare patch this weekend or so (want to test it first).
There is the patch (actually beginning). This defines two PCMs:
"phoneline" is renamed old-style modem and "modem" is pcm with auto-"Hook-Off".Sasha.
Quoted 6 lines
Quoted 4 lines
This defines two modem related pcm devices: "phoneline" is driver's pcm reference, with "modem" the line will be "Hook-Off"ed automatically.
Signed-off-by Sasha Khapyorsky <[email protected]>Applied. Thanks.
Well, I found that this might not work (still not tested, though) since the controls are usually defined with index 1, as noted in my earlier post. (It's because the modem codec is in ac97.num=1)
But I think we should fix the driver side rather than this configuration. The index should be zero because it's the only one.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
Quoted 6 lines · Takashi Iwai
Quoted 2 lines
Applied. Thanks.
Well, I found that this might not work (still not tested, though) since the controls are usually defined with index 1, as noted in my earlier post. (It's because the modem codec is in ac97.num=1)
And card index is usually 1 as well (first card is excluded in drivers).
Sasha.
Quoted 7 lines
But I think we should fix the driver side rather than this configuration. The index should be zero because it's the only one.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
At Tue, 13 Sep 2005 01:10:18 +0300,
Quoted 10 lines · Sasha Khapyorsky
Quoted 6 lines · Takashi Iwai
Quoted 2 lines
Applied. Thanks.
Well, I found that this might not work (still not tested, though) since the controls are usually defined with index 1, as noted in my earlier post. (It's because the modem codec is in ac97.num=1)
And card index is usually 1 as well (first card is excluded in drivers).
It's irrelevant. The hook PCM opens the corresponding control device. The card number is obtained from snd_pcm_info_get_card(). i.e. it assumes that the slave PCM is a hw.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
Quoted 11 lines · Takashi Iwai
At Tue, 13 Sep 2005 01:10:18 +0300,
Quoted 9 lines · Sasha Khapyorsky
Quoted 6 lines · Takashi Iwai
Quoted 2 lines
Applied. Thanks.
Well, I found that this might not work (still not tested, though) since the controls are usually defined with index 1, as noted in my earlier post. (It's because the modem codec is in ac97.num=1)
Quoted 5 lines
Quoted 1 line
And card index is usually 1 as well (first card is excluded in drivers).
It's irrelevant. The hook PCM opens the corresponding control device. The card number is obtained from
snd_pcm_info_get_card(). i.e. it assumes that the slave PCM is a hw.
Hmm, why does it work then (tested) in both old and new variants?
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
At Tue, 13 Sep 2005 17:35:21 +0300,
Quoted 13 lines · Sasha Khapyorsky
Quoted 11 lines · Takashi Iwai
At Tue, 13 Sep 2005 01:10:18 +0300,
Quoted 9 lines · Sasha Khapyorsky
Quoted 6 lines · Takashi Iwai
Quoted 2 lines
Applied. Thanks.
Well, I found that this might not work (still not tested, though) since the controls are usually defined with index 1, as noted in my earlier post. (It's because the modem codec is in ac97.num=1)
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
And card index is usually 1 as well (first card is excluded in drivers).
It's irrelevant. The hook PCM opens the corresponding control device. The card number is obtained from
snd_pcm_info_get_card(). i.e. it assumes that the slave PCM is a hw.Hmm, why does it work then (tested) in both old and new variants?
Do you mean that the modem with hooks works even without your changes
of ac97_* in the driver? It would be ridiculous. Possibly, the
modem codec was found in ac97.num=0?
What I mentioned above is that pcm hook finds the correct control handle regardless of the card index. But each control element is not. A non-zero index of each hooked control element must be defined explicitly in hook configuration. Ditto for device and subdevice.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
Quoted 3 lines · Takashi Iwai
Do you mean that the modem with hooks works even without your changes of ac97_* in the driver?
Yes and with new changes as well.
Quoted 2 lines
It would be ridiculous. Possibly, the
modem codec was found in ac97.num=0?
No, ac97.num = 1 (it is "standard" ICH3 with dual audio+modem ac97):
# ls /proc/asound/Modem/codec97#0/ mc97#1-1 mc97#1-1+regs
(opposite ac97_read/write would not work, primary/secondary codec access is addressed by ac97.num)
Quoted 5 lines
What I mentioned above is that pcm hook finds the correct control handle regardless of the card index. But each control element is not. A non-zero index of each hooked control element must be defined explicitly in hook configuration. Ditto for device and subdevice.
I understand your arguments, and this part seems ok.
What I think happens here is that non-zero index is lost somewhere:
# amixer -c 1 controls numid=1,iface=MIXER,name='Off-hook Switch'
No 'index' is shown there. I'll dig a little.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support]
Quoted 7 lines · Sasha Khapyorsky
What I think happens here is that non-zero index is lost somewhere:
# amixer -c 1 controls numid=1,iface=MIXER,name='Off-hook Switch'No 'index' is shown there. I'll dig a little.
I've used outdated version for comparing where 'Off-hook' control was done in intel8x0m.c with index '0'. With recent version all is as expected. Sorry about noise.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 no templated index for mc97 controls
In reply to Takashi IwaiQuoted 3 lines · Takashi Iwai
But I think we should fix the driver side rather than this configuration. The index should be zero because it's the only one.
Like in the patch below? (please don't say that you fixed it already :) ).
Sasha.
No index is templated for mdoem controls.
Index: alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.197
pci/ac97/ac97_codec.c +1 -1
@@ -1557,7 +1557,7 @@ static int snd_ac97_modem_build(snd_card/* build modem switches */ for (idx =0 ; idx <ARRAY_SIZE (snd_ac97_controls_modem_switches); idx++) -if ((err =snd_ctl_add (card,snd_ac97_cnew (&snd_ac97_controls_modem_switches[idx], ac97))) <0 ) +if ((err =snd_ctl_add (card,snd_ctl_new1 (&snd_ac97_controls_modem_switches[idx], ac97))) <0 )return err;/* build chip specific controls */
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 no templated index for si3036 modem controls
Quoted 2 lines · Sasha Khapyorsky
No index is templated for mdoem controls.
And same for si3036 specific controls.
Sasha.
No index is templated for si3036 modem controls.
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.96
pci/ac97/ac97_patch.c +5 -1
@@ -2752,7 +2752,11 @@ AC97_DOUBLE("Modem Speaker Volume", 0x5cstatic int patch_si3036_specific (ac97_t * ac97) { -return patch_build_controls (ac97, snd_ac97_controls_si3036,ARRAY_SIZE (snd_ac97_controls_si3036)); +int idx, err; +for (idx =0 ; idx <ARRAY_SIZE (snd_ac97_controls_si3036); idx++) +if ((err =snd_ctl_add (ac97->bus->card,snd_ctl_new1 (&snd_ac97_controls_si3036[idx], ac97))) <0 ) +return err; +return 0 ; }static struct snd_ac97_build_ops patch_si3036_ops = {
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [patch] no templated index for mc97 controls
In reply to Sasha KhapyorskyAt Tue, 13 Sep 2005 03:45:59 +0300,
Quoted 7 lines · Sasha Khapyorsky
Quoted 3 lines · Takashi Iwai
But I think we should fix the driver side rather than this configuration. The index should be zero because it's the only one.
Like in the patch below?
Exactly.
Quoted 1 line
(please don't say that you fixed it already :) ).
You are faster ;)
Thanks!
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 modem config for HDA-Intel
In reply to Sasha KhapyorskyTakashi,
This is modem related configuration for HDA-Intel (device 6).
Not tested.
Sasha.
"modem" pcm device for HDA-Intel card.
Index: alsa-lib/src/conf/cards/HDA-Intel.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/cards/HDA-Intel.conf,v retrieving revision 1.4
src/conf/cards/HDA-Intel.conf +12 -0
@@ -126,3 +126,15 @@ HDA-Intel.pcm.iec958.0 { } } } + +<confdir:pcm/modem.conf> + +HDA-Intel.pcm.modem.0 { + @args [ CARD ] + @args.CARD { + type string + } + type hw + card $CARD + device 6 +}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [conf patch] modem config for HDA-Intel
At Mon, 12 Sep 2005 20:05:28 +0300,
Quoted 8 lines · Sasha Khapyorsky
Takashi,
This is modem related configuration for HDA-Intel (device 6).
Not tested.
Sasha.
Hehe, I already fixed on CVS ;)
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
PATCH 1/1 "empty" generic mfg-only codec
In reply to Sasha KhapyorskyTakashi,
This patch allows generic creation for mfg-only codecs, so some basic codec info (like vendor_id) will be shown from proc file.
Not tested.
Sasha.
This creates "empty" hda generic for unknown MFG-only codecs.
Index: alsa-kernel/pci/hda/hda_generic.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/hda_generic.c,v retrieving revision 1.8
pci/hda/hda_generic.c +2 -4
@@ -881,10 +881,8 @@ int snd_hda_parse_generic_codec(struct hstruct hda_gspec *spec;int err; -if (!codec->afg) { -snd_printdd ("hda_generic: no generic modem yet\n" ); -return -ENODEV ; - } +if (!codec->afg) +return 0 ; spec =kzalloc (sizeof (*spec),GFP_KERNEL );if (spec ==NULL ) {
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: [patch] "empty" generic mfg-only codec
At Tue, 13 Sep 2005 03:18:47 +0300,
Quoted 6 lines · Sasha Khapyorsky
Takashi,
This patch allows generic creation for mfg-only codecs, so some basic codec info (like
vendor_id) will be shown from proc file.
Quoted 8 lines
Not tested.
Sasha.
This creates "empty" hda generic for unknown MFG-only codecs.
Signed-off-by Sasha Khapyorsky <[email protected]>
It's on CVS now. Thanks.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
ASUS L8400B notebook equipped with au8810 chip and there is a Win9x Aureal audio/modem driver for the notebook
http://usa.asus.com/download/notebook/nb-l8400b.htm
Is this kind of softmodem supported by ALSA ?
http://www.tomshardware.com/mobile/20010202/l8400b-09.html
Quoted 18 lines · Takashi Iwai
Hi,
I've played a bit the ac97 modem yesterday, and found out the following problems:
1. Off-Hook switch needs manually turned on
Shall we add a hook in pcm.modem definition for this control?
2. All controls have index 1, thus the appearance on alsamixer looks strange
3. There is no way to detect the modem driver from sysfs or so.
Espeically, hda-intel driver supports both audio and modem by a single driver, and the modem support doesn't appear even on proc file explicitly.
Quoted 8 lines
Well, 2 is a minor problem, and we can live with that. But others should be improved...
Any ideas?
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 3 lines · Raymond
ASUS L8400B notebook equipped with au8810 chip and there is a Win9x Aureal audio/modem driver for the notebook
Not sure, but seems there is not softmodem, but old controlless modem (aka winmodem). Not supported and it is not like sound device.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 8 lines · Sasha Khapyorsky
Quoted 1 line · Raymond
ASUS L8400B notebook equipped with au8810 chip and there is a Win9x Aureal audio/modem driver for the notebook
Not sure, but seems there is not softmodem, but old controlless modem (aka winmodem). Not supported and it is not like sound device.
http://www.3dsoundsurge.com/press/pr127.html
Telephony Support:
A hardware accelerated soft modem approach reduces total
system cost as well as provides high reliability in the most demanding of applications. PC99 compliant telephony including D3cold wake is provided via the AC'97 interface. Both integrated AMC'97 as well as separate MC'97 CODECs
are supported.
Notebook Features:
The AU8810 readily supports notebook applications by
providing necessary features such as PCI CLKRUN# support, dual AC'97 CODEC operation, hardware volume control, low static power consumption, and aggressive power management techniques.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 11 lines · Raymond
http://www.3dsoundsurge.com/press/pr127.html
Telephony Support:
A hardware accelerated soft modem approach reduces total system cost as well as provides high reliability in the most demanding of applications. PC99 compliant telephony including D3cold wake is
provided via the AC'97 interface. Both integrated AMC'97 as well as
separate MC'97 CODECs
are supported.
Yes, looks like pure AC97 softmodem. What is your 'lspci -nv'. Is there data sheet?
Sasha.
Quoted 13 lines
Notebook Features:
The AU8810 readily supports notebook applications by providing necessary features such as PCI CLKRUN# support, dual AC'97 CODEC operation, hardware volume control, low static power consumption, and aggressive power management techniques.
Quoted 9 lines
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 9 lines
Quoted 4 lines · Sasha Khapyorsky
Raymond wrote:
ASUS L8400B notebook equipped with au8810 chip and there is a Win9x Aureal audio/modem driver for the notebook
Not sure, but seems there is not softmodem, but old controlless modem (aka winmodem). Not supported and it is not like sound device.
Audio Chip Aureal Vortex 8810
Modem 56k, Aureal Softmodem
http://www.tomshardware.com/mobile/20010202/l8400b-15.html
It seem to me that it use Motorola SM56
Quoted 5 lines
Quoted 5 lines
http://www.3dsoundsurge.com/press/pr127.html
Telephony Support:
Quoted 7 lines
Quoted 5 lines
A hardware accelerated soft modem approach reduces total system cost as well as provides high reliability in the most demanding of applications. PC99 compliant telephony including
D3cold wake is provided via the AC'97 interface. Both integrated
AMC'97 as well as separate MC'97 CODECs are supported.Yes, looks like pure AC97 softmodem. What is your 'lspci -nv'. Is there data sheet?
I don't have any l8400b or Aureal modem.
May be Philipp Matthias Hahn and Raffaele Brancaleoni can answer your question.
In FCC equipment list, there are two Aureal PCI modems
Soundcom V90 PCI Audio/Modem Combo Card
VCOM V90 PCI modem card.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hello!
Quoted 7 lines · Raymond
Quoted 1 line
Yes, looks like pure AC97 softmodem. What is your 'lspci -nv'. Is
there data sheet?
I don't have any l8400b or Aureal modem.
May be Philipp Matthias Hahn and Raffaele Brancaleoni can answer your question.
Yes, I still have it and use it:
$ lspci -s 0:6.0
0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
walker:~# lspci -nv -s 0:6.0
0000:00:06.0 0401: 12eb:0003 (rev 03)
Subsystem: 1043:1043
Flags: bus master, medium devsel, latency 32, IRQ 255
Memory at fedc0000 (32-bit, non-prefetchable) [size=256K]
I/O ports at fce0 [size=8]
I/O ports at fce8 [size=8]
Capabilities: [dc] Power Management version 2If you need something else (data, testing, etc), just ask.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 26 lines · Philipp Matthias Hahn
Hello!
Quoted 7 lines · Raymond
Quoted 1 line
Yes, looks like pure AC97 softmodem. What is your 'lspci -nv'. Is
there data sheet?
I don't have any l8400b or Aureal modem.
May be Philipp Matthias Hahn and Raffaele Brancaleoni can answer your question.
Yes, I still have it and use it:
$ lspci -s 0:6.0 0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03) walker:~# lspci -nv -s 0:6.0 0000:00:06.0 0401: 12eb:0003 (rev 03) Subsystem: 1043:1043 Flags: bus master, medium devsel, latency 32, IRQ 255 Memory at fedc0000 (32-bit, non-prefetchable) [size=256K] I/O ports at fce0 [size=8] I/O ports at fce8 [size=8] Capabilities: [dc] Power Management version 2
Quoted 4 lines
If you need something else (data, testing, etc), just ask.
BYtE
Philipp
It seem to me that it's not AC97 modem.
Do ALSA support softmodem with Silicon DAA ?
Aureal Vortex 8810.
- Aureal Enhanced Motorola Softmodem with Silicon DAA support.
http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=117
You need to identify the chips on your modem daugther card. (Most likely a Silicon DAA Si30xx )
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hello!
Quoted 4 lines · Raymond
Quoted 3 lines · Philipp Matthias Hahn
$ lspci -s 0:6.0 0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
...
Quoted 6 lines
It seem to me that it's not AC97 modem.
Do ALSA support softmodem with Silicon DAA ?
Aureal Vortex 8810.
- Aureal Enhanced Motorola Softmodem with Silicon DAA support.
...
Quoted 2 lines
You need to identify the chips on your modem daugther card. (Most likely a Silicon DAA Si30xx )
I just disassembled my Laptop and found 2 chips on the MDC. The labeling is very hard to read, so I'm not 100% sure. Mine looks very similar to
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html but the labeling of the left chip ist different:
ST3014-[KX]S
[59S][59S]27BAAA23
The right one reads:
MOT6269353
[59S][59S]50BAAA10
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 3 lines · Philipp Matthias Hahn
I just disassembled my Laptop and found 2 chips on the MDC. The labeling is very hard to read, so I'm not 100% sure.
The modems are manufactured by different vendors, so labeling may be very different (and in many cases useless :)).
Quoted 5 lines
Mine looks very similar to
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html but the labeling of the left chip ist different:ST3014-[KX]S
Probably "SI3014", if I remember correctly such DAA was with modems (supported).
Quoted 6 lines
[59S][59S]27BAAA23
The right one reads:
MOT6269353
[59S][59S]50BAAA10
And this is Motorola... something.. I think there is good chances.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 14 lines · Sasha Khapyorsky
Quoted 2 lines · Philipp Matthias Hahn
I just disassembled my Laptop and found 2 chips on the MDC. The labeling is very hard to read, so I'm not 100% sure.
The modems are manufactured by different vendors, so labeling may be very different (and in many cases useless :)).
Quoted 4 lines
Mine looks very similar to
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html but the labeling of the left chip ist different:
Quoted 6 lines
Quoted 1 line
ST3014-[KX]S
Probably "SI3014", if I remember correctly such DAA was with modems (supported).
How many pins on this chip and is it square/rectangle ?
http://www.silabs.com/tgwWebApp/public/web_content/products/Wireline/en/Si3036-8.htm
It seem that MOT6269353 is link with au8810 ?
Quoted 11 lines
Quoted 7 lines
[59S][59S]27BAAA23
The right one reads:
MOT6269353
[59S][59S]50BAAA10And this is Motorola... something.. I think there is good chances.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 4 lines · Raymond
It seem to me that it's not AC97 modem.
Do ALSA support softmodem with Silicon DAA ?
Yes, Si30xx codecs with Silicon DAA.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 9 lines · Sasha Khapyorsky
Quoted 3 lines · Raymond
It seem to me that it's not AC97 modem.
Do ALSA support softmodem with Silicon DAA ?
Yes, Si30xx codecs with Silicon DAA.
Do ALSA support Motorola SM56 MOT6269353 with Silicon DAA Si3014 ?
It seem that au8810 is connected to MOT6269353 on MDC of ASUS L8400B notebook.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 2 lines · Raymond
Do ALSA support Motorola SM56 MOT6269353 with Silicon DAA Si3014 ?
I guess that SM56 MOT6269353 is customized edition of Si3036, if so it is supported.
Quoted 2 lines
It seem that au8810 is connected to MOT6269353 on MDC of ASUS L8400B notebook.
Yes, very possible and it looks like AC97 link. And if au8810 data sheet is available we may to add support for this modem.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 14 lines · Philipp Matthias Hahn
Yes, I still have it and use it:
$ lspci -s 0:6.0 0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03) walker:~# lspci -nv -s 0:6.0 0000:00:06.0 0401: 12eb:0003 (rev 03) Subsystem: 1043:1043 Flags: bus master, medium devsel, latency 32, IRQ 255 Memory at fedc0000 (32-bit, non-prefetchable) [size=256K] I/O ports at fce0 [size=8] I/O ports at fce8 [size=8] Capabilities: [dc] Power Management version 2
Quoted 1 line
If you need something else (data, testing, etc), just ask.
Do you know is there data sheet available?
The driver in pci/au88x0 looks like AC97 for all supported ships.
Sasha.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 16 lines · Philipp Matthias Hahn
Hello!
Yes, I still have it and use it:
$ lspci -s 0:6.0 0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03) walker:~# lspci -nv -s 0:6.0 0000:00:06.0 0401: 12eb:0003 (rev 03) Subsystem: 1043:1043 Flags: bus master, medium devsel, latency 32, IRQ 255 Memory at fedc0000 (32-bit, non-prefetchable) [size=256K] I/O ports at fce0 [size=8] I/O ports at fce8 [size=8] Capabilities: [dc] Power Management version 2
Quoted 4 lines
If you need something else (data, testing, etc), just ask.
BYtE
Philipp
Would you post result of
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
Are you able to use the modem in Win9x/NT4/W2K/DOS ?
What is the feature available ?
1) Data/Fax only
2) Data/Fax/TAM (Telephone answering machine)
3) Data/Fax/TAM/Speakerphone
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hello!
Quoted 2 lines · Raymond
Would you post result of
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
0:00 = 6940
0:02 = 0303
0:04 = 8000
0:06 = 801f
0:08 = ffff
0:0a = 9f1f
0:0c = 801f
0:0e = 881f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 9f1f
0:16 = 9f1f
0:18 = 0707
0:1a = 9818
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0808
0:24 = 0000
0:26 = 000f
0:28 = ffff
0:2a = ffff
0:2c = ffff
0:2e = ffff
0:30 = ffff
0:32 = ffff
0:34 = ffff
0:36 = ffff
0:38 = ffff
0:3a = ffff
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 8384
0:7e = 7605
Quoted 1 line
Are you able to use the modem in Win9x/NT4/W2K/DOS ?
Yes, I once used the modem with Windows98. But it's a long time ago, since I now use Linux all the time.
Quoted 4 lines
What is the feature available ?
1) Data/Fax only
2) Data/Fax/TAM (Telephone answering machine)
3) Data/Fax/TAM/Speakerphon
Don't know. Never used Windows much. But if you have an easy-to-install and easy-to-use test application for Windows, I'm willing to test it.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 64 lines · Philipp Matthias Hahn
Hello!
Quoted 2 lines · Raymond
Would you post result of
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs0:00 = 6940
0:02 = 0303
0:04 = 8000
0:06 = 801f
0:08 = ffff
0:0a = 9f1f
0:0c = 801f
0:0e = 881f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 9f1f
0:16 = 9f1f
0:18 = 0707
0:1a = 9818
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0808
0:24 = 0000
0:26 = 000f
0:28 = ffff
0:2a = ffff
0:2c = ffff
0:2e = ffff
0:30 = ffff
0:32 = ffff
0:34 = ffff
0:36 = ffff
0:38 = ffff
0:3a = ffff
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
Quoted 9 lines
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 8384
0:7e = 7605
http://cvs.sourceforge.net/viewcvs.py/*checkout*/alsa/alsa-kernel/pci/ac97/ac97_id.h?rev=1.11
#define AC97_ID_STAC9705 0x83847605
http://cvs.sourceforge.net/viewcvs.py/*checkout*/alsa/alsa-kernel/pci/ac97/ac97_codec.c?rev=1.197
{ 0x83847604, 0xffffffff, "STAC9701,3,4,5", NULL, NULL },
{ 0x83847605, 0xffffffff, "STAC9704", NULL, NULL },
Is it STAC9705 ?
18-bit full-duplex audio codec with intergrated modem analog front end.
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html
What is the usage of MOT6269353 if it already connected to STAC9705 ?
Quoted 7 lines
Quoted 2 lines
Are you able to use the modem in Win9x/NT4/W2K/DOS ?
Yes, I once used the modem with Windows98. But it's a long time ago, since I now use Linux all the time.
Just make sure your modem are still working
The cable at the top of the MiniPCI card is connected to the RJ11 Combo jack. Combo because the MDC modem card is sharing this port with the LAN. You cannot use LAN and Modem simultaneously.
How to select which one use the RJ11 Combo jack ? (BIOS setup)
Quoted 10 lines
Quoted 5 lines
What is the feature available ?
1) Data/Fax only
2) Data/Fax/TAM (Telephone answering machine)
3) Data/Fax/TAM/SpeakerphonDon't know. Never used Windows much. But if you have an easy-to-install and easy-to-use test application for Windows, I'm willing to test it.
It seem to support voice, any user manual mention that it can be used for data/fax/tam/speakerphone ?
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
au88x0 modem [was: Re: Mo' better modem support]
Quoted 11 lines · Raymond
Quoted 3 lines
Quoted 1 line
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
0:7c = 8384
0:7e = 7605Is it STAC9705 ?
18-bit full-duplex audio codec with intergrated modem analog front end.
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html
What is the usage of MOT6269353 if it already connected to STAC9705 ?
It is likely secondary modem-only codec (Motorola/SiLabs).
Philipp,
Could you try the patch below? And then look again at '/proc/asond/au8810'?
This is against CVS, untested and may be dangerous because I know nothing about au8810 (somebody knows, please comment).
Sasha.
Index: alsa-kernel/pci/au88x0/au8810.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8810.h,v retrieving revision 1.3
pci/au88x0/au8810.h +2 -2
@@ -171,9 +171,9 @@#define VORTEX_CODEC_CTRL 0x29184#define VORTEX_CODEC_EN 0x29190#define EN_CODEC0 0x00000300 -#define EN_AC98 0x00000c00/* Modem AC98 slots. */ +#define EN_MODEM 0x00000c00/* Modem AC98 slots. */ #define EN_CODEC1 0x00003000 -#define EN_CODEC (EN_CODEC0 | EN_CODEC1) +#define EN_CODEC (EN_CODEC0 | EN_MODEM | EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000
Index: alsa-kernel/pci/au88x0/au8820.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8820.h,v retrieving revision 1.3
pci/au88x0/au8820.h +4 -1
@@ -158,7 +158,10 @@/* CODEC */ #define VORTEX_CODEC_CTRL 0x11984#define VORTEX_CODEC_EN 0x11990 -#define EN_CODEC 0x00000300 +#define EN_CODEC0 0x00000300 +#define EN_MODEM 0x00000c00 +#define EN_CODEC1 0x00003000 +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880
Index: alsa-kernel/pci/au88x0/au8830.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8830.h,v retrieving revision 1.3
pci/au88x0/au8830.h +3 -3
@@ -203,12 +203,12 @@#define VORTEX_CODEC_SPORTCTRL 0x2918c#define VORTEX_CODEC_EN 0x29190 -#define EN_AUDIO0 0x00000300 +#define EN_CODEC0 0x00000300#define EN_MODEM 0x00000c00 -#define EN_AUDIO1 0x00003000 +#define EN_CODEC1 0x00003000#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000 -#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0) +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define VORTEX_SPDIF_SMPRATE 0x29194
Index: alsa-kernel/pci/au88x0/au88x0.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0.h,v retrieving revision 1.11
pci/au88x0/au88x0.h +2 -1
@@ -135,7 +135,8 @@ struct snd_vortex {snd_pcm_t *pcm[VORTEX_PCM_LAST ];snd_rawmidi_t *rmidi;/* Legacy Midi interface. */ -ac97_t *codec; +unsigned int num_of_codecs; +ac97_t *codecs[2 ];/* Stream structs. */ stream_t dma_adb[NR_ADB ];
Index: alsa-kernel/pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v retrieving revision 1.11
pci/au88x0/au88x0_core.c +5 -0
@@ -2511,6 +2511,11 @@ static void vortex_codec_init(vortex_t */* Enable codec channels 0 and 1. */ hwwrite (vortex->mmio,VORTEX_CODEC_EN ,hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_CODEC ); + vortex->num_of_codecs =1 ; +/* nothing know about that */ +msleep (2 ); +if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) + vortex->num_of_codecs =2 ; } static void
Index: alsa-kernel/pci/au88x0/au88x0_mixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_mixer.c,v retrieving revision 1.5
pci/au88x0/au88x0_mixer.c +6 -3
@@ -15,7 +15,7 @@ static int __devinit snd_vortex_mixer(vo {ac97_bus_t *pbus;ac97_template_t ac97; -int err; +int i, err;static ac97_bus_ops_t ops = { .write = vortex_codec_write, .read = vortex_codec_read,
@@ -27,7 +27,10 @@ static int __devinit snd_vortex_mixer(vo// Intialize AC97 codec stuff. ac97.private_data = vortex; ac97.scaps =AC97_SCAP_NO_SPDIF ; - err =snd_ac97_mixer (pbus, &ac97, &vortex->codec); - vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id&0x80 )); +for (i =0 ; i < vortex->num_of_codecs ; i++) { + ac97.num = i; + err =snd_ac97_mixer (pbus, &ac97, &vortex->codecs[i]); + } + vortex->isquad = ((vortex->codecs[0 ] ==NULL ) ?0 : (vortex->codecs[0 ]->ext_id&0x80 ));return err; }
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: au88x0 modem [was: Re: Mo' better modem support]
Hello!
Quoted 1 line · Sasha Khapyorsky
Could you try the patch below? And then look again at '
/proc/asond/au8810'?
See attached tar-file for a full copy of everything under /proc/asound/au8810 after applying the attached patch against ASLA from linux-2.6.13.1.
BYtE
Philipp
Signature · 3 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected]
Re: Re: au88x0 modem
Quoted 4 lines · Philipp Matthias Hahn
See attached tar-file for a full copy of everything under
/proc/asound/au8810after applying the attached patch against ASLA from linux-2.6.13.1.
ac97#0-N entries are identical there for both codecs, this is because ac97_codec_read/write always accesses primary codec. Try next patch please.
Sasha.
au88x0_core.c renamed from au88x0_core.c_orig +3 -1
@@ -2535,7 +2535,8 @@ vortex_codec_write(ac97_t * codec, unsig }/* write register */ hwwrite (card->mmio,VORTEX_CODEC_IO , - ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + (((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + ((0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT )) | ((data <<VORTEX_CODEC_DATSHIFT ) &VORTEX_CODEC_DATMASK ) |VORTEX_CODEC_WRITE );
@@ -2560,6 +2561,7 @@ static unsigned short vortex_codec_read( }/* set up read address */ read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ); + read_addr |= (0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT ;hwwrite (card->mmio,VORTEX_CODEC_IO , read_addr);/* wait for address */
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: Re: au88x0 modem
Hello!
Quoted 22 lines · Sasha Khapyorsky
Quoted 3 lines · Philipp Matthias Hahn
See attached tar-file for a full copy of everything under
/proc/asound/au8810after applying the attached patch against ASLA from linux-2.6.13.1.ac97#0-N entries are identical there for both codecs, this is because ac97_codec_read/write always accesses primary codec. Try next patch please.
au88x0_core.c renamed from au88x0_core.c_orig +2
-1@@ -2535,7 +2535,8 @@ vortex_codec_write(ac97_t * codec, unsig }/* write register */ hwwrite (card->mmio,VORTEX_CODEC_IO , - ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + (((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + ((0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT )) | ((data <<VORTEX_CODEC_DATSHIFT ) &VORTEX_CODEC_DATMASK ) |VORTEX_CODEC_WRITE );
au88x0_core.c static unsigned short vortex_codec_read( · line 2565
Quoted 5 lines
au88x0_core.c renamed from au88x0_core.c_orig +1
-0@@ -2560,6 +2561,7 @@ static unsigned short vortex_codec_read( }/* set up read address */ read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ); + read_addr |= (0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT ;hwwrite (card->mmio,VORTEX_CODEC_IO , read_addr);
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <6>done.
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
AC'97 1 does not respond - RESET
vortex: ac97 address never arrived
vortex: ac97 address never arrived
AC'97 1 access is not valid [0xffffffff], removing mixer.
Vortex: shutdown...vortex: FATAL: ResManager: resource type 3 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.vortex_adb_delroutes: route not found! 0x24a0
src alarmvortex_adb_delroutes: route not found! 0x24a1
src alarmvortex_adb_delroutes: route not found! 0x7e88vortex_adb_delroutes: route not found! 0x7f89
vortex: FATAL: ResManager: resource type 2 exhausted.
vortex: FATAL: ResManager: resource type 2 exhausted.vortex_adb_delroutes: route not found! 0x7044vortex_adb_delroutes: route not found! 0x7144
vortex: FATAL: ResManager: resource type 3 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.vortex_adb_delroutes: route not found! 0x2492
src alarmvortex_adb_delroutes: route not found! 0x2493
src alarm
done.
ACPI: PCI interrupt for device 0000:00:06.0 disabled
au8810: probe of 0000:00:06.0 failed with error -5
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: Re: au88x0 modem
Quoted 11 lines · Philipp Matthias Hahn
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <6>done.
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
Quoted 8 lines
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived AC'97 1 does not respond - RESET
Understood. Could you send full 'lspci -vv' please.
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Hello!
Quoted 7 lines · Sasha Khapyorsky
Quoted 4 lines · Philipp Matthias Hahn
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <6>done.
vortex: ac97 address never arrived
AC'97 1 does not respond - RESETUnderstood. Could you send full 'lspci -vv' please.
0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
Subsystem: ASUSTeK Computer Inc.: Unknown device 1043
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory at fedc0000 (32-bit, non-prefetchable) [size=256K]
Region 1: I/O ports at fce0 [size=8]
Region 2: I/O ports at fce8 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
BYtE
Philipp <icq://33677863>
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: [Openvortex-dev] Re: Re: au88x0 modem
Quoted 12 lines
Hello!
Quoted 8 lines · Sasha Khapyorsky
Quoted 1 line · Philipp Matthias Hahn
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level,
low) -> IRQ 10
Quoted 3 lines
Vortex: init.... <6>done.
vortex: ac97 address never arrived
AC'97 1 does not respond - RESETUnderstood. Could you send full 'lspci -vv' please.
Quoted 16 lines
0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
Subsystem: ASUSTeK Computer Inc.: Unknown device 1043
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory atfedc0000(32-bit, non-prefetchable) [size=256K] Region 1: I/O ports at fce0 [size=8]
Region 2: I/O ports at fce8 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mAPME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
if it helps: mine is:
00:0c.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 02)
Subsystem: Aureal Semiconductor AU8810 Vortex Digital Audio Processor
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 20750ns max), cache line size 40
Interrupt: pin A routed to IRQ 169
Region 0: Memory at 00000000fdc00000 (32-bit, non-prefetchable)[size=256K]
Region 1: I/O ports at dc00 [size=8] Region 2: I/O ports at cc00 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mAPME(D0-,D1-,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: [Openvortex-dev] Re: Re: au88x0 modem
Quoted 15 lines · Maarten Vanraes
Quoted 2 lines
Hello!
if it helps: mine is:
00:0c.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 02)
Subsystem: Aureal Semiconductor AU8810 Vortex Digital Audio Processor
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-Latency: 64 (500ns min, 20750ns max), cache line size 40 Interrupt: pin A routed to IRQ 169 Region 0: Memory at 00000000fdc00000 (32-bit, non-prefetchable)
Quoted 10 lines
[size=256K]
Region 1: I/O ports at dc00 [size=8] Region 2: I/O ports at cc00 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mAPME(D0-,D1-,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
http://pci-ids.ucw.cz/iii/?i=12eb0003
It would help if you can tell us the exact model of your au8810
lspci -vvn
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
and send the subsystem vendor id, subsystem device id and the model name of your au88x0 to the pci ids database maintainer to update
/usr/src/linux/drivers/pci/pci.ids
Your au8810 with Subsystem: 12eb:xxxx may be one of the following
1) Aureal SQ1500
2) Aureal Advantage
3) Aureal SoundCom Audio/Modem Combo
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: [Openvortex-dev] Re: Re: au88x0 modem
In reply to Maarten VanraesQuoted 30 lines · Maarten Vanraes
Quoted 17 lines
0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
Subsystem: ASUSTeK Computer Inc.: Unknown device 1043
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory atfedc0000(32-bit, non-prefetchable) [size=256K] Region 1: I/O ports at fce0 [size=8]
Region 2: I/O ports at fce8 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mAPME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-if it helps: mine is:
00:0c.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 02)
Subsystem: Aureal Semiconductor AU8810 Vortex Digital Audio Processor
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-Latency: 64 (500ns min, 20750ns max), cache line size 40 Interrupt: pin A routed to IRQ 169 Region 0: Memory at 00000000fdc00000 (32-bit, non-prefetchable)
Quoted 9 lines
[size=256K]
Region 1: I/O ports at dc00 [size=8] Region 2: I/O ports at cc00 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mAPME(D0-,D1-,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Thank you guys.
Could you send us full lspci output - there is approach that modem uses separate from audio PCI entry. In such way it is done with most AC97 audio/modem controllers and possibly with some au8810 too.
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: [Openvortex-dev] Re: Re: au88x0 modem
Hello!
Quoted 4 lines · Sasha Khapyorsky
Quoted 3 lines · Maarten Vanraes
Quoted 3 lines
0000:00:06.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 03)
Subsystem: ASUSTeK Computer Inc.: Unknown device 1043
...
Quoted 2 lines
Quoted 2 lines
00:0c.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 02)
Subsystem: Aureal Semiconductor AU8810 Vortex Digital Audio Processor
...
Quoted 3 lines
Could you send us full lspci output - there is approach that modem uses separate from audio PCI entry. In such way it is done with most AC97 audio/modem controllers and possibly with some au8810 too.
Sorry, just a single PCI device:
0000:00:06.0 0401: 12eb:0003 (rev 03)
Subsystem: 1043:1043
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 20750ns max), Cache Line Size: 0x08 (32 bytes)
Interrupt: pin A routed to IRQ 255
Region 0: Memory at fedc0000 (32-bit, non-prefetchable) [size=256K]
Region 1: I/O ports at fce0 [size=8]
Region 2: I/O ports at fce8 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: eb 12 03 00 07 00 90 02 03 00 01 04 08 20 00 00
10: 00 00 dc fe e1 fc 00 00 e9 fc 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 43 10
30: 00 00 00 00 dc 00 00 00 00 00 00 00 ff 01 02 53
40: 80 00 00 00 43 10 43 10 01 fc 3f 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 62 e4
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
In reply to Philipp Matthias HahnQuoted 26 lines · Philipp Matthias Hahn
Hello!
Quoted 22 lines · Sasha Khapyorsky
Quoted 3 lines · Philipp Matthias Hahn
See attached tar-file for a full copy of everything under
/proc/asound/au8810after applying the attached patch against ASLA from linux-2.6.13.1.ac97#0-N entries are identical there for both codecs, this is because ac97_codec_read/write always accesses primary codec. Try next patch please.
au88x0_core.c renamed from au88x0_core.c_orig +2
-1@@ -2535,7 +2535,8 @@ vortex_codec_write(ac97_t * codec, unsig }/* write register */ hwwrite (card->mmio,VORTEX_CODEC_IO , - ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + (((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + ((0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT )) | ((data <<VORTEX_CODEC_DATSHIFT ) &VORTEX_CODEC_DATMASK ) |VORTEX_CODEC_WRITE );
Quoted 7 lines
au88x0_core.c static unsigned short vortex_codec_read( · line 2565
Quoted 6 lines
au88x0_core.c renamed from au88x0_core.c_orig +1
-0@@ -2560,6 +2561,7 @@ static unsigned short vortex_codec_read( }/* set up read address */ read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ); + read_addr |= (0x80 *codec->num) <<VORTEX_CODEC_ADDSHIFT ;hwwrite (card->mmio,VORTEX_CODEC_IO , read_addr);
#define VORTEX_CODEC_WRITE 0x00800000
#define VORTEX_CODEC_ADDSHIFT 16
(0x80* 1) << VORTEX_CODEC_ADDSHIFT) is equal to VORTEX_CODEC_WRITE
May be au8810 use different set of MMIO to read/write and report status of the audio codec and modem codec ?
au8810.h
#define VORTEX_MODEM_CTRL 0x291ac
Make sure you have a BACKUP of all your data before you peform testing on the modem.
It's not easy to hack the modem since we don't have any datasheet of au8810 and MOT6269353. (AC-link between them)
Quoted 44 lines
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <6>done.
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
vortex: ac97 address never arrived
AC'97 1 does not respond - RESET
vortex: ac97 address never arrived
vortex: ac97 address never arrived
AC'97 1 access is not valid [0xffffffff], removing mixer.
Vortex: shutdown...vortex: FATAL: ResManager: resource type 3 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.vortex_adb_delroutes: route not found!0x24a0
src alarmvortex_adb_delroutes: route not found!0x24a1
src alarmvortex_adb_delroutes: route not found!0x7e88vortex_adb_delroutes: route not found!0x7f89
vortex: FATAL: ResManager: resource type 2 exhausted.
vortex: FATAL: ResManager: resource type 2 exhausted.vortex_adb_delroutes: route not found!0x7044vortex_adb_delroutes: route not found!0x7144
vortex: FATAL: ResManager: resource type 3 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.vortex_adb_delroutes: route not found!0x2492
src alarmvortex_adb_delroutes: route not found!0x2493
src alarm
done.
ACPI: PCI interrupt for device 0000:00:06.0 disabled
au8810: probe of 0000:00:06.0 failed with error -5
Quoted 2 lines
BYtE
Philipp
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 5 lines · Raymond
#define
VORTEX_CODEC_WRITE0x00800000
#defineVORTEX_CODEC_ADDSHIFT16(0x80* 1) <<
VORTEX_CODEC_ADDSHIFT) is equal toVORTEX_CODEC_WRITE
Oh, yes. It was bad approach. Let's look similar scheme with vi82xx (via82xx.c, via82xx_modem.c):
/* AC'97 */ #define VIA_REG_AC97 0x80 /* dword */ #define VIA_REG_AC97_CODEC_ID_MASK (3<<30) #define VIA_REG_AC97_CODEC_ID_SHIFT 30 #define VIA_REG_AC97_CODEC_ID_PRIMARY 0x00 #define VIA_REG_AC97_CODEC_ID_SECONDARY 0x01 #define VIA_REG_AC97_SECONDARY_VALID (1<<27) #define VIA_REG_AC97_PRIMARY_VALID (1<<25) #define VIA_REG_AC97_BUSY (1<<24) #define VIA_REG_AC97_READ (1<<23) #define VIA_REG_AC97_CMD_SHIFT 16 #define VIA_REG_AC97_CMD_MASK 0x7e #define VIA_REG_AC97_DATA_SHIFT 0 #define VIA_REG_AC97_DATA_MASK 0xffff
Codec id is addressed by bits 30,31. Of course this should not be same with au8810, but let's check. The patch is attached.
Philipp, you could play with VORTEX_CODEC_ID_SHIFT value (au88x0,h) in range 24-31.
Quoted 2 lines
May be au8810 use different set of MMIO to read/write and report status of the audio codec and modem codec ?
It is possible of course but we cannot know which one in easy way (without reverse engineering of win drivers).
Quoted 3 lines
au8810.h#define
VORTEX_MODEM_CTRL0x291ac
I don't understand meaning of this, but there is set of similar ones (CODEC_CTRL) and it is used for initializations.
BTW it is very possible that we should change initialization procedure (and probably use MODEM_CTRL somehow), but again, it is hard to know (without reverse engineering).
Quoted 2 lines
Make sure you have a BACKUP of all your data before you peform testing on the modem.
Dear testers, it is good idea.
Sasha.
au88x0.h +3 -0
@@ -79,6 +79,9 @@#define VORTEX_RESOURCE_A3D 0x00000004#define VORTEX_RESOURCE_LAST 0x00000005 +/* codec io related */ +#define VORTEX_CODEC_ID_SHIFT 30/* unknown: may be 24-31 (or irrelevat) */ +/* Check for SDAC bit in "Extended audio ID" AC97 register */ //#define VORTEX_IS_QUAD(x) (((x)->codec == NULL) ? 0 : ((x)->codec->ext_id&0x80)) #define VORTEX_IS_QUAD (x) ((x)->isquad)
au88x0_core.c +4 -2
@@ -2537,7 +2537,8 @@ vortex_codec_write(ac97_t * codec, unsighwwrite (card->mmio,VORTEX_CODEC_IO , ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | ((data <<VORTEX_CODEC_DATSHIFT ) &VORTEX_CODEC_DATMASK ) | -VORTEX_CODEC_WRITE ); +VORTEX_CODEC_WRITE | + (codec->num <<VORTEX_CODEC_ID_SHIFT ) );/* Flush Caches. */ hwread (card->mmio,VORTEX_CODEC_IO );
@@ -2559,7 +2560,8 @@ static unsigned short vortex_codec_read( } }/* set up read address */ - read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ); + read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + (codec->num <<VORTEX_CODEC_ID_SHIFT ) ;hwwrite (card->mmio,VORTEX_CODEC_IO , read_addr);/* wait for address */
Re: au88x0 modem
Hello!
Quoted 2 lines · Sasha Khapyorsky
Philipp, you could play with
VORTEX_CODEC_ID_SHIFTvalue (au88x0,h) in range 24-31.
...
Quoted 1 line
diff -rpu
au88x0_orig/au88x0.hau88x0/au88x0.h
...
Quoted 1 line
+#define
VORTEX_CODEC_ID_SHIFT30 /* unknown: may be 24-31 (or irrelevat) */
Sorry, no luck with any value in the range 24-31.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 9 lines · Philipp Matthias Hahn
Quoted 2 lines · Sasha Khapyorsky
Philipp, you could play with
VORTEX_CODEC_ID_SHIFTvalue (au88x0,h) in range 24-31....
Quoted 1 line
diff -rpu
au88x0_orig/au88x0.hau88x0/au88x0.h...
Quoted 1 line
+#define
VORTEX_CODEC_ID_SHIFT30 /* unknown: may be 24-31 (or irrelevat) */Sorry, no luck with any value in the range 24-31.
Sorry, I wronly patched the driver.
24-31/25 works. tar-file with copies of /proc/asound/au8810 attached.
BYtE
Philipp
Signature · 3 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected]
Re: au88x0 modem
Quoted 17 lines · Philipp Matthias Hahn
Hello!
Quoted 13 lines · Philipp Matthias Hahn
Quoted 2 lines · Sasha Khapyorsky
Philipp, you could play with
VORTEX_CODEC_ID_SHIFTvalue (au88x0,h) in range 24-31....
Quoted 1 line
diff -rpu
au88x0_orig/au88x0.hau88x0/au88x0.h...
Quoted 1 line
+#define
VORTEX_CODEC_ID_SHIFT30 /* unknown: may be 24-31 (or irrelevat) */
Quoted 8 lines
Quoted 1 line
Sorry, no luck with any value in the range 24-31.
Sorry, I wronly patched the driver.
24-31/25 works. tar-file with copies of/proc/asound/au8810attached.BYtE
Philipp
You found the modem codec :)
#define VORTEX_CODEC_ID_SHIFT 24
/proc/asound/au8810/codec97#0/mc97#1-1
1-1/0: Silicon Laboratory Si3036,8 rev 6
Extended modem ID: codec=1 LIN1
Modem status : GPIO MREF ADC1 DAC1 PRE(ADC2) PRF(DAC2) PRG(HADC) PRH(HDAC)
Line1 rate : 8000Hz
/proc/asound/au8810/codec97#0/mc97#1-1+regs
0:00 = 0000
0:02 = 0000
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 0000
0:0c = 0000
0:0e = 0000
0:10 = 0000
0:12 = 0000
0:14 = 0000
0:16 = 0000
0:18 = 0000
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 0000
0:28 = 0000
0:2a = 0000
0:2c = 0000
0:2e = 0000
0:30 = 0000
0:32 = 0000
0:34 = 0000
0:36 = 0000
0:38 = 0000
0:3a = 0000
0:3c = 4001
0:3e = f00f
0:40 = 1f40
0:42 = 0000
0:44 = 0000
0:46 = 8080
0:48 = 0000
0:4a = 0000
0:4c = 003e
0:4e = fffe
0:50 = 003f
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0122
0:5c = f210
0:5e = 0040
0:60 = 0000
0:62 = 6000
0:64 = 0002
0:66 = 0a08
0:68 = 0000
0:6a = 0000
0:6c = 0000
0:6e = 0000
0:70 = 0000
0:72 = 0000
0:74 = 0000
0:76 = 0000
0:78 = 0000
0:7a = 0000
0:7c = 5349
0:7e = 4c26
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
In reply to Philipp Matthias HahnQuoted 7 lines · Philipp Matthias Hahn
Hello!
Quoted 4 lines · Philipp Matthias Hahn
Quoted 2 lines · Sasha Khapyorsky
Philipp, you could play with
VORTEX_CODEC_ID_SHIFTvalue (au88x0,h) in range 24-31....
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
diff -rpu
au88x0_orig/au88x0.hau88x0/au88x0.h...
Quoted 1 line
+#define
VORTEX_CODEC_ID_SHIFT30 /* unknown: may be 24-31 (or irrelevat) */Sorry, no luck with any value in the range 24-31.
Sorry, I wronly patched the driver.
24-31/25 works. tar-file with copies of/proc/asound/au8810attached.
Great, the secondary modem codec is there. The valid codec id bits are 24:25 (AC97 interface supports up to four codecs):
#define VORTEX_CODEC_ID_SHIFT 24
I will send cleaned codec access patch separately and will look what is next.
BTW, thanks for info alternative drivers (I had question about windows .inf file syntax, but now with your results it is irrelevant anymore :)).
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 9 lines · Sasha Khapyorsky
Great, the secondary modem codec is there. The valid codec id bits are 24:25 (AC97 interface supports up to four codecs):
#define
VORTEX_CODEC_ID_SHIFT24I will send cleaned codec access patch separately and will look what is next.
It would be more easy to debug/maintain the driver if using different read/write routines for audio and modem codec.
Audio codec is always primary in sound card and audio/modem combo
The existing vortex_codec_read() and vortex_codec_write() can remain unchanged.
Just add new routine vortex_modem_codec_read() vortex_modem_code_write() to handle secondary/primary modem codec for audio/modem combo and PCI modem card.
http://www.nix.ru/autocatalog/modems/AurVcomPCIV90RTL_5817.html
Make sure your patch is 32bits/64bits compatible
AMD64 user may use the PCI audio/modem combo card and PCI modem card.
Quoted 9 lines
mainly I'm not about cleanups now. The goal is to hack modem. It looks for me that right sequence is:
1. Find and initialize modem codec (secondary).
2. Find and hack appropriate DMA channels, initialize modem PCM.
3. Find valid way to access GPIO (for DAA controls like Hook-Off)
4. Chipset detailed cleanups.Currently we are in (1).
I guess (1) and (3) already completed at least for Si3036 in L8400B
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Op donderdag 15 september 2005 17:34, schreef Raymond:
Quoted 21 lines
Quoted 7 lines · Sasha Khapyorsky
Great, the secondary modem codec is there. The valid codec id bits are 24:25 (AC97 interface supports up to four codecs):
#define
VORTEX_CODEC_ID_SHIFT24I will send cleaned codec access patch separately and will look what is next.
It would be more easy to debug/maintain the driver if using different read/write routines for audio and modem codec.
Audio codec is always primary in sound card and audio/modem combo
The existing
vortex_codec_read()andvortex_codec_write()can remain unchanged.Just add new routine
vortex_modem_codec_read()vortex_modem_code_write()to handle secondary/primary modem codec for audio/modem combo and PCI modem card.
Quoted 5 lines
http://www.nix.ru/autocatalog/modems/AurVcomPCIV90RTL_5817.html
Make sure your patch is 32bits/64bits compatible
AMD64 user may use the PCI audio/modem combo card and PCI modem card.
does that mean that PCI sound card is broken on AMD64 ?
cause, maybe that's why my snd-au8810 card gives problems...
Re: au88x0 modem
Quoted 26 lines · Alien
Op donderdag 15 september 2005 17:34, schreef Raymond:
Quoted 24 lines
Quoted 7 lines · Sasha Khapyorsky
Great, the secondary modem codec is there. The valid codec id bits are 24:25 (AC97 interface supports up to four codecs):
#define
VORTEX_CODEC_ID_SHIFT24I will send cleaned codec access patch separately and will look what is next.
It would be more easy to debug/maintain the driver if using different read/write routines for audio and modem codec.
Audio codec is always primary in sound card and audio/modem combo
The existing
vortex_codec_read()andvortex_codec_write()can remain unchanged.Just add new routine
vortex_modem_codec_read()vortex_modem_code_write()to handle secondary/primary modem codec for audio/modem combo and PCI modem card.http://www.nix.ru/autocatalog/modems/AurVcomPCIV90RTL_5817.html
Quoted 8 lines
Quoted 3 lines
Make sure your patch is 32bits/64bits compatible
AMD64 user may use the PCI audio/modem combo card and PCI modem card.
does that mean that PCI sound card is broken on AMD64 ?
cause, maybe that's why my snd-au8810 card gives problems...
Yes, the au88x0 driver in ALSA CVS is still broken on AMD64 until someone submit au88x0_amd64.patch
http://lists.nongnu.org/archive/html/openvortex-dev/2005-05/msg00000.html
I suspect your au8810 problem is caused by ACPI.
Erik has some volume problem on his au8830.
Igor Kovalenko (Diamond Sonic Impact S90) and penguinparty report the patch work on their 64-bits machines.
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1138
You still need feedback from
1) au8810 user on 32bits/64bits machines
2) au8820 user on 32bits machines
3) au8830 user on 32bits/64bits machines
4) mpu401 test
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1025
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1047
I only test the core part of the patch using my au8830 on 32bits machine.
pci/au88x0/au88x0.c renamed from tmp/yy/linux-2.6.11/sound/pci/au88x0/au88x0.c +8 -3
@@ -144,15 +144,18 @@// check PCI availability (DMA). if ((err =pci_enable_device (pci)) <0 )return err; -if (!pci_dma_supported (pci,VORTEX_DMA_MASK )) { +if (pci_set_dma_mask (pci,VORTEX_DMA_MASK ) <0 || +pci_set_consistent_dma_mask (pci,VORTEX_DMA_MASK ) <0 ) {printk (KERN_ERR "error to set DMA mask\n" ); +pci_disable_device (pci);return -ENXIO ; } -pci_set_dma_mask (pci,VORTEX_DMA_MASK ); chip =kcalloc (1 ,sizeof (*chip),GFP_KERNEL ); -if (chip ==NULL ) +if (chip ==NULL ) { +pci_disable_device (pci);return -ENOMEM ; + } chip->card = card;
@@ -202,6 +205,8 @@ goto alloc_out; } +snd_card_set_dev (card, &pci->dev); + *rchip = chip;return 0 ;
pci/au88x0/au88x0.h renamed from tmp/yy/linux-2.6.11/sound/pci/au88x0/au88x0.h +3 -3
@@ -41,8 +41,8 @@#define VORTEX_DMA_MASK 0xffffffff -#define hwread (x,y) readl((x)+((y)>>2)) -#define hwwrite (x,y,z) writel((z),(x)+((y)>>2)) +#define hwread (x,y) readl((x)+(y)) +#define hwwrite (x,y,z) writel((z),(x)+(y))/* Vortex MPU401 defines. */ #define MIDI_CLOCK_DIV 0x61
@@ -172,7 +172,7 @@/* PCI hardware resources */ unsigned long io; -unsigned long __iomem *mmio; +void __iomem *mmio;unsigned int irq;spinlock_t lock;
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
pci/au88x0/au88x0.c
Quoted 10 lines · Raymond
pci/au88x0/au88x0.c renamed from tmp/yy/linux-2.6.11/sound/pci/au88x0/au88x0.c +3
-1+if (pci_set_dma_mask (pci,VORTEX_DMA_MASK ) <0 || +pci_set_consistent_dma_mask (pci,VORTEX_DMA_MASK ) <0 ) {printk (KERN_ERR "error to set DMA mask\n" ); +pci_disable_device (pci);return -ENXIO ; } -pci_set_dma_mask (pci,VORTEX_DMA_MASK );#define VORTEX_DMA_MASK 0xffffffff
You should be using DMA_32BIT_MASK for this (seeinclude/linux/dma-mapping.h).
Lee
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
In reply to RaymondQuoted 12 lines · Raymond
Quoted 9 lines · Sasha Khapyorsky
Great, the secondary modem codec is there. The valid codec id bits are 24:25 (AC97 interface supports up to four codecs):
#define
VORTEX_CODEC_ID_SHIFT24I will send cleaned codec access patch separately and will look what is next.
Quoted 7 lines
It would be more easy to debug/maintain the driver if using different read/write routines for audio and modem codec.
Audio codec is always primary in sound card and audio/modem combo
The existing
vortex_codec_read()andvortex_codec_write()can remain unchanged.
Don't think so. It is about chip support (ac97 controller) and not about cards, current codec_read/write are not correct since ignore ac97.num value. And it is not about modem, but about secondary codec(s).
Request secondary codec initialization or not is different story, this may be card specific.
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
In reply to Sasha KhapyorskyQuoted 3 lines · Sasha Khapyorsky
I will send cleaned codec access patch separately and will look what is next.
Pilipp, no real patches yet, let's investigate few things:
1. Actual "secondary codec" bit in CODEC_EN register - just silly print (apply with -p1):
au88x0_core.c +2 -0
@@ -2516,6 +2516,8 @@ static void vortex_codec_init(vortex_t *msleep (2 );if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) vortex->num_of_codecs =2 ; +printk ("vortex_codec_init: VORTEX_CODEC_EN = %08x\n" , +hwread (vortex->mmio,VORTEX_CODEC_EN )); } static void
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
('alsa-kernelDocumentation/Procfile.txt' is reference too)
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs
, look if value of 0x42 register was changes (0x42 is line level control
- works in all known cases (up to know :) ), basically value should '0'
- unmuted, 0dB), then:
# echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs
, and if ok, try to touch 0x54 - gpio status rtegister:
# echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regs
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when 0x54 is switched between 0 and 1) with parallel phone.
3. DMA
After some looking in au88x0 driver I think that it is possible that modem could use one ADB channels (predefined or programmable) for pcm data transfers (just like regular audio), similar scheme may be found with some other devices like ali5451.
If so we could try to find channel numbers (should be two - for playback and capture). It is very possible that channels should be configured somehow first.
Philipp, How looks your 'aplay -l' output?
ANYBODY knows something about modem DMA/PCM with au88x0, please advise.
BTW, I found fine au88x0 datasheet there:
http://galadriel.mat.utfsm.cl/~mjander/aureal/techdoc/techpaper.html
Thanks,
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 17 lines · Sasha Khapyorsky
Quoted 2 lines · Sasha Khapyorsky
I will send cleaned codec access patch separately and will look what is next.
Pilipp, no real patches yet, let's investigate few things:
1. Actual "secondary codec" bit in
CODEC_ENregister - just silly print (apply with -p1):
au88x0_core.c static void vortex_codec_init(vortex_t * · line 2523
Quoted 8 lines
au88x0_core.c +2
-0@@ -2516,6 +2516,8 @@ static void vortex_codec_init(vortex_t *msleep (2 );if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) vortex->num_of_codecs =2 ; +printk ("vortex_codec_init: VORTEX_CODEC_EN = %08x\n" , +hwread (vortex->mmio,VORTEX_CODEC_EN )); } static void
VORTEX_CODEC_EN = 00000000 on au8830 (STAC9708) after cold reset of AC-Link.
static int vortex_core_init(vortex_t * vortex)
{
printk(KERN_INFO "Vortex: init.... "); /* Hardware Init. */ hwwrite(vortex->mmio, VORTEX_CTRL, 0xffffffff); msleep(5);
+ printk(KERN_INFO "VORTEX_CTRL : %.8x\n",hwread(vortex->mmio, VORTEX_CTRL));
VORTEX_CTRL : 00303260 after cold reset on au8830 Optical SPDIF ( Subsystem: 12eb:0088 )
There is a TAD connector on the au8820/au8830 sound cards. I guess it is used for the ISA Modem Interface.
Does TAD work with external modem ?
There are P4 motherboards which has ISA slots and PCI slots.
http://www.prnewswire.co.uk/cgi/news/release?id=50053
Modem and Telephony Support on PCI Bus:
Besides sound controllers, modems are the only other PC component that are still ISA-based. The AU8820 includes an interface to existing, standard ISA modem chip sets, such as the latest 56k modems from US Robotics and Rockwell. This unique feature offers two key advantages to OEMs: the ability to build PCI based audio-telephony combo cards, and the design of a PC without an ISA bus.
alsa-driver/alsa-kernel/pci/au88x0/au8810.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au8810.c +1 -0
@@ -6,6 +6,7 @@ {0,} }; +#include "au88x0_modem.c" #include "au88x0_core.c" #include "au88x0_pcm.c" #include "au88x0_mixer.c"
alsa-driver/alsa-kernel/pci/au88x0/au8820.h renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au8820.h +1 -1
@@ -158,7 +158,7 @@/* CODEC */ #define VORTEX_CODEC_CTRL 0x11984#define VORTEX_CODEC_EN 0x11990 -#define EN_CODEC 0x00000300 +#define EN_AUDIO0 0x00000300#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880
alsa-driver/alsa-kernel/pci/au88x0/au8830.h renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au8830.h +0 -1
@@ -208,7 +208,6 @@#define EN_AUDIO1 0x00003000#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000 -#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0)#define VORTEX_SPDIF_SMPRATE 0x29194
alsa-driver/alsa-kernel/pci/au88x0/au88x0.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0.c +3 -0
@@ -27,6 +27,9 @@static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;static int enable[SNDRV_CARDS ] =SNDRV_DEFAULT_ENABLE_PNP ;static int pcifix[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =255 }; +#ifdef CHIP_AU8810 +static int pcimodem[SNDRV_CARDS ] = {[0 ... (SNDRV_CARDS -1 )] =0 }; +#endif module_param_array (index, int,NULL ,0444 );MODULE_PARM_DESC (index,"Index value for " CARD_NAME " soundcard." );
@@ -36,6 +39,10 @@MODULE_PARM_DESC (enable,"Enable " CARD_NAME " soundcard." );module_param_array (pcifix, int,NULL ,0444 ); MODULE_PARM_DESC(pcifix, "Enable VIA-workaround for " CARD_NAME "
soundcard.");
+#ifdef CHIP_AU8810
+module_param_array(pcimodem, int, NULL, 0444); +MODULE_PARM_DESC(pcimodem, "Enable PCI Modem " CARD_NAME " soundcard."); +#endif
MODULE_DESCRIPTION("Aureal vortex");
MODULE_LICENSE("GPL");
@@ -256,6 +263,11 @@
}
snd_vortex_workaround(pci, pcifix[dev]);
// (4) Alloc components.
+ // snd_ac97_mixer
+ if ((err = snd_vortex_mixer(chip)) < 0) {
+ snd_card_free(card);
+ return err;
+ }
// ADB pcm.
if ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_ADB, NR_ADB)) < 0) {
snd_card_free(card);
@@ -287,11 +299,25 @@
return err;
}
#endif
- // snd_ac97_mixer and Vortex mixer.
- if ((err = snd_vortex_mixer(chip)) < 0) {
- snd_card_free(card);
- return err;
- }
+#ifdef CHIP_AU8810
+ // MODEM
+ if ( pcimodem[dev] ) {
+ if ((err = pci_read_config_word(pci, PCI_DEVICE_ID,
+ &(chip->device))) < 0) {
+ snd_card_free(card);
+ return err;
+ };
+ if ((err = snd_vortex_modem_mixer(chip,
+ (( chip->device == PCI_DEVICE_ID_AUREAL_ADVANTAGE) ? 1 : 0 ))) < 0) {
+ snd_card_free(card);
+ return err;
+ };
+ if ((err = snd_vortex_new_pcm(chip, VORTEX_PCM_MODEM, 1)) < 0) {
+ snd_card_free(card);
+ return err;
+ };
+ };
+#endif
if ((err = snd_vortex_midi(chip)) < 0) {
snd_card_free(card);
return err;
alsa-driver/alsa-kernel/pci/au88x0/au88x0_core.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0_core.c 2005-09-15 19:34:02.000000000 +0800 +1 -1
@@ -2510,7 +2505,7 @@msleep (1 );/* Enable codec channels 0 and 1. */ hwwrite (vortex->mmio,VORTEX_CODEC_EN , -hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_CODEC ); +hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_AUDIO0 ); }
alsa-driver/alsa-kernel/pci/au88x0/au88x0.h renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0.h +6 -2
@@ -93,8 +93,9 @@#define VORTEX_PCM_SPDIF 1#define VORTEX_PCM_A3D 2#define VORTEX_PCM_WT 3 -#define VORTEX_PCM_I2S 4 -#define VORTEX_PCM_LAST 5 +#define VORTEX_PCM_MODEM 4 +#define VORTEX_PCM_I2S 5 +#define VORTEX_PCM_LAST 6#define MIX_CAPT (x) (vortex->mixcapt[x])#define MIX_PLAYB (x) (vortex->mixplayb[x])
@@ -136,6 +137,9 @@snd_rawmidi_t *rmidi;/* Legacy Midi interface. */ ac97_t *codec; +#ifdef CHIP_AU8810 +ac97_t *mc97; +#endif /* Stream structs. */ stream_t dma_adb[NR_ADB ];
alsa-driver/alsa-kernel/pci/au88x0/au88x0_mixer.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0_mixer.c 2005-09-15 19:34:02.000000000 +0800 +7 -1
@@ -28,6 +28,12 @@ ac97.private_data = vortex; ac97.scaps =AC97_SCAP_NO_SPDIF ; err =snd_ac97_mixer (pbus, &ac97, &vortex->codec); - vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id&0x80 )); + vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id &AC97_EI_SDAC )); +#ifndef CHIP_AU8820 +/* Enable rear channels of audio codec. */ +if ( vortex->isquad ) +hwwrite (vortex->mmio,VORTEX_CODEC_EN , +hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_AUDIO1 ); +#endif return err; }
alsa-driver/alsa-kernel/pci/au88x0/au88x0_modem.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0_modem.c 1970-01-01 08:00:00.000000000 +0800 +96 -0
96 lines not on this page · raw message
+ };
+ return err;
+}
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 9 lines · Raymond
Quoted 9 lines
Pilipp, no real patches yet, let's investigate few things:
1. Actual "secondary codec" bit in
CODEC_ENregister - just silly print (apply with -p1):au88x0_core.c +0
-0@@ -2516,6 +2516,8 @@ static void vortex_codec_init(vortex_t *
...
Quoted 4 lines
au88x0_core.c
Quoted 2 lines
au88x0_core.c +2
-0+printk ("vortex_codec_init: VORTEX_CODEC_EN = %08x\n" , +hwread (vortex->mmio,VORTEX_CODEC_EN ));
VORTEX_CODEC_EN= 00000000 on au8830 (STAC9708) after cold reset of AC-Link.
VORTEX_CODEC_EN = 00003f00
Quoted 1 line
static int
vortex_core_init(vortex_t * vortex)
...
Review
Quoted 1 line
(quoted diff) +1
-0+ printk(KERN_INFO "VORTEX_CTRL : %.8x\n",hwread(vortex->mmio, VORTEX_CTRL));
VORTEX_CTRL : 00303260
Quoted 2 lines
diff -Naur
modem/alsa-driver/alsa-kernel/pci/au88x0_orig/au8810.cmodem/alsa-driver/alsa-kernel/pci/au88x0/au8810.c
The patch is line wrapped, will take me a moment to apply by hand. Will send another email.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 16 lines · Philipp Matthias Hahn
Hello!
Quoted 9 lines · Raymond
Quoted 9 lines
Pilipp, no real patches yet, let's investigate few things:
1. Actual "secondary codec" bit in
CODEC_ENregister - just silly print (apply with -p1):au88x0_core.c +0
-0@@ -2516,6 +2516,8 @@ static void vortex_codec_init(vortex_t *....
Quoted 8 lines
Quoted 4 lines
au88x0_core.c
Quoted 2 lines
au88x0_core.c +2
-0+printk ("vortex_codec_init: VORTEX_CODEC_EN = %08x\n" , +hwread (vortex->mmio,VORTEX_CODEC_EN ));
VORTEX_CODEC_EN= 00000000 on au8830 (STAC9708) after cold reset of AC-Link.
VORTEX_CODEC_EN=00003f00
This does not imply the code can detect the presence of secondary modem codec
if (hwread(vortex->mmio, VORTEX_CODEC_EN)&(EN_CODEC1|EN_MODEM))
vortex->num_of_codecs = 2;
Quoted 11 lines
Quoted 2 lines
static int
vortex_core_init(vortex_t * vortex)....
Review
Quoted 1 line
(quoted diff) +1
-0+ printk(KERN_INFO "VORTEX_CTRL : %.8x\n",hwread(vortex->mmio, VORTEX_CTRL));
VORTEX_CTRL: 00303260
Quoted 8 lines
Quoted 1 line
diff -Naur
modem/alsa-driver/alsa-kernel/pci/au88x0_orig/au8810.cmodem/alsa-driver/alsa-kernel/pci/au88x0/au8810.cThe patch is line wrapped, will take me a moment to apply by hand. Will send another email.
BYtE
Philipp
Since I only has single codec sound card, I am not sure snd_ac97_bus() can be called twice by audio and modem codec.
May be we cannot split the code into snd_vortex_mixer() and snd_vortex_modem_mixer
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
In reply to Sasha KhapyorskyQuoted 7 lines · Sasha Khapyorsky
On 17:35 Thu 15 Sep , Sasha Khapyorsky wrote:
1. Actual "secondary codec" bit in
CODEC_ENregister - just silly print (apply with -p1):
Although au8830 may support mulitple codecs and there is a unconnected 20-pins connectors on my au8830 (Subsystem 12eb:0088)
There is only one STAC9708 (4-channels) audio codec on my au8830
It look like a control register rather than a status register.
Vortex: init.... <6>CODEC_EN : 00000000CODEC_EN : 00000300CODEC_EN : 00003300CODEC_EN : 00003f00
done.
/* Enable codec channels 0 and 1. */ printk(KERN_INFO "CODEC_EN : %.8x\n",hwread(vortex->mmio, VORTEX_CODEC_EN)); hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO0 ); printk(KERN_INFO "CODEC_EN : %.8x\n",hwread(vortex->mmio, VORTEX_CODEC_EN)); #ifndef CHIP_AU8820 hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO1 ); printk(KERN_INFO "CODEC_EN : %.8x\n",hwread(vortex->mmio, VORTEX_CODEC_EN)); hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_MODEM ); printk(KERN_INFO "CODEC_EN : %.8x\n",hwread(vortex->mmio,
VORTEX_CODEC_EN));
#endif
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 6 lines · Raymond
Although au8830 may support mulitple codecs and there is a unconnected 20-pins connectors on my au8830 (Subsystem 12eb:0088)
There is only one STAC9708 (4-channels) audio codec on my au8830
Quoted 7 lines
It look like a control register rather than a status register.
Vortex: init.... <6>CODEC_EN : 00000000
CODEC_EN: 00000300CODEC_EN: 00003300CODEC_EN:00003f00
done.
Hmm, CODEC_EN is useless for secondary codec autodetection. Could you try to investigate it, probably compare 8810/8830 registers values - there should be some bits indicating secondary AC97 codec presents.
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
In reply to Sasha KhapyorskyHello!
Quoted 2 lines · Sasha Khapyorsky
1. Actual "secondary codec" bit in
CODEC_ENregister - just silly print (apply with -p1):
...
As in previous email: 00003f00
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regs
Sorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.
I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
Quoted 1 line
3. DMA
...
Quoted 1 line
Philipp, How looks your 'aplay -l' output?
**** List of PLAYBACK Hardware Devices **** card 0: au8810 [au8810], device 0: AU88x0 ADB [adb]
Subdevices: 16/16
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
card 0: au8810 [au8810], device 1: AU88x0 SPDIF [spdif]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: au8810 [au8810], device 2: AU88x0 A3D [a3d]
Subdevices: 16/16
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
Subdevice #8: subdevice #8
Subdevice #9: subdevice #9
Subdevice #10: subdevice #10
Subdevice #11: subdevice #11
Subdevice #12: subdevice #12
Subdevice #13: subdevice #13
Subdevice #14: subdevice #14
Subdevice #15: subdevice #15
Quoted 2 lines
BTW, I found fine au88x0 datasheet there:
http://galadriel.mat.utfsm.cl/~mjander/aureal/techdoc/techpaper.html
He's the guy how has done the reverse engineering.
BYtE
philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 19 lines · Philipp Matthias Hahn
Hello!
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regsSorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Quoted 8 lines
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
This may mean the patched vortex_codec_read() works but vortex_codec_write() is still not working as expected.
Do system log show any timeout error of the codec ?
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 9 lines · Raymond
Quoted 9 lines
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regs
Quoted 7 lines
Quoted 2 lines
Sorry, I did echo those values and read mc97#1-1+regs, but no values changed.
This may mean the patched
vortex_codec_read()works butvortex_codec_write()is still not working as expected.Do system log show any timeout error of the codec ?
No messages.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 18 lines · Philipp Matthias Hahn
Hello!
Quoted 14 lines · Raymond
Quoted 11 lines
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regsSorry, I did echo those values and read mc97#1-1+regs, but no values changed.
This may mean the patched
vortex_codec_read()works butvortex_codec_write()is still not working as expected.
Quoted 7 lines
Quoted 1 line
Do system log show any timeout error of the codec ?
No messages.
BYtE
Philipp
Add printk to dump the ac97 read/write to system log
VORTEX_CODEC_WRITE);
/* Flush Caches. */
hwread(card->mmio, VORTEX_CODEC_IO);
+ printk(KERN_INFO "vortex_codec_write %d %.2x : %.4x\n",codec->num,addr,data);
}
static unsigned short vortex_codec_read(ac97_t * codec, unsigned short
addr)
@@ -2567,7 +2556,7 @@
}
} while ((data & VORTEX_CODEC_ADDMASK) !=
(addr << VORTEX_CODEC_ADDSHIFT));
-
+ printk(KERN_INFO "vortex_codec_read %d %.2x : %.4x\n",codec->num,addr,data & VORTEX_CODEC_DATMASK);
/* return data. */
return (u16) (data & VORTEX_CODEC_DATMASK);
}
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 1 line · Raymond
Add printk to dump the ac97 read/write to system log
I had to hand-play with the previosu patches, so for reference, this is ALSA from linux-2.6.13.1 with
http://corellon.svs.informatik.uni-oldenburg.de/~pmhahn/au8810-modem.patch
applied. Looks like I lost the normal ac97#1-1* files in /proc/asound/card0/codec97#0:
$ ls /proc/asound/card0/codec97#0/ mc97#1-1 mc97#1-1+regs
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <6>VORTEX_CTRL : 00303260
ALSA sound/core/control.c:324: control 3:0:0:Playback PCM advanced processing:0 is already present done.vortex_codec_read 0 7c :8384vortex_codec_read 0 7e :7605vortex_codec_write 0 00 :0000
vortex_codec_read 0 00 :6940 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a05 vortex_codec_read 0 1c :8a05 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a06 vortex_codec_read 0 1c :8a06 vortex_codec_read 0 00 :6940 vortex_codec_read 0 28 :0000
vortex_codec_write 0 26 :0000vortex_codec_write 0 00 :0000vortex_codec_write 0 26 :0000vortex_codec_write 0 20 :0000
vortex_codec_read 0 26 :000f vortex_codec_read 0 02 :8000 vortex_codec_read 0 02 :8000
vortex_codec_write 0 02 :0000vortex_codec_read 0 02 :0000vortex_codec_write 0 02 :8000vortex_codec_read 0 02 :8000vortex_codec_write 0 02 :8000vortex_codec_write 0 02 :a0a0vortex_codec_read 0 02 :9f9fvortex_codec_read 0 02 :9f1fvortex_codec_write 0 02 :9090
vortex_codec_read 0 02 :9090 vortex_codec_read 0 02 :9010 vortex_codec_read 0 02 :9010
vortex_codec_write 0 02 :9f1fvortex_codec_read 0 06 :9f00vortex_codec_read 0 06 :8000vortex_codec_write 0 06 :0000vortex_codec_read 0 06 :0000vortex_codec_write 0 06 :8000vortex_codec_read 0 06 :8000vortex_codec_write 0 06 :8000vortex_codec_write 0 06 :a0a0vortex_codec_read 0 06 :a09fvortex_codec_read 0 06 :801fvortex_codec_write 0 06 :9090vortex_codec_read 0 06 :9090vortex_codec_read 0 06 :8010vortex_codec_write 0 06 :8181
vortex_codec_read 0 06 :8181 vortex_codec_read 0 06 :8001 vortex_codec_read 0 06 :8001
vortex_codec_write 0 06 :801fvortex_codec_read 0 0a :0000vortex_codec_write 0 0a :8000vortex_codec_read 0 0a :8000vortex_codec_read 0 0a :8000vortex_codec_write 0 0a :801evortex_codec_read 0 0c :8008vortex_codec_read 0 0c :8008vortex_codec_write 0 0c :0008vortex_codec_read 0 0c :0008vortex_codec_write 0 0c :8008vortex_codec_read 0 0c :8008vortex_codec_write 0 0c :8008vortex_codec_write 0 0c :a0a0vortex_codec_read 0 0c :8000vortex_codec_read 0 0c :8000vortex_codec_write 0 0c :9090vortex_codec_read 0 0c :8010vortex_codec_read 0 0c :8010vortex_codec_write 0 0c :8181
vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001
vortex_codec_write 0 0c :801fvortex_codec_read 0 0e :8008vortex_codec_read 0 0e :8008vortex_codec_write 0 0e :0008vortex_codec_read 0 0e :0008vortex_codec_write 0 0e :8008vortex_codec_read 0 0e :8008vortex_codec_write 0 0e :8008vortex_codec_write 0 0e :a0a0vortex_codec_read 0 0e :a0a0vortex_codec_read 0 0e :8000vortex_codec_write 0 0e :9090vortex_codec_read 0 0e :9090vortex_codec_read 0 0e :8010vortex_codec_write 0 0e :8181
vortex_codec_read 0 0e :8181 vortex_codec_read 0 0e :8001 vortex_codec_read 0 0e :8001
vortex_codec_write 0 0e :801fvortex_codec_read 0 10 :8808vortex_codec_read 0 10 :8808vortex_codec_write 0 10 :0808vortex_codec_read 0 10 :0808vortex_codec_write 0 10 :8808vortex_codec_read 0 10 :8808vortex_codec_write 0 10 :8808vortex_codec_write 0 10 :a0a0vortex_codec_read 0 10 :a0a0vortex_codec_read 0 10 :8000vortex_codec_write 0 10 :9090
vortex_codec_read 0 10 :9090 vortex_codec_read 0 10 :9010 vortex_codec_read 0 10 :9010
vortex_codec_write 0 10 :9f1fvortex_codec_read 0 12 :8808vortex_codec_read 0 12 :8808vortex_codec_write 0 12 :0808vortex_codec_read 0 12 :0808vortex_codec_write 0 12 :8808vortex_codec_read 0 12 :8808vortex_codec_write 0 12 :8808vortex_codec_write 0 12 :a0a0vortex_codec_read 0 12 :a0a0vortex_codec_read 0 12 :8000vortex_codec_write 0 12 :9090
vortex_codec_read 0 12 :9090 vortex_codec_read 0 12 :9010 vortex_codec_read 0 12 :9010
vortex_codec_write 0 12 :9f1fvortex_codec_read 0 14 :8808vortex_codec_read 0 14 :8808vortex_codec_write 0 14 :0808vortex_codec_read 0 14 :0808vortex_codec_write 0 14 :8808vortex_codec_read 0 14 :8808vortex_codec_write 0 14 :8808vortex_codec_write 0 14 :a0a0vortex_codec_read 0 14 :a0a0vortex_codec_read 0 14 :8000vortex_codec_write 0 14 :9090
vortex_codec_read 0 14 :9090 vortex_codec_read 0 14 :9010 vortex_codec_read 0 14 :9010
vortex_codec_write 0 14 :9f1fvortex_codec_read 0 16 :8808vortex_codec_read 0 16 :8808vortex_codec_write 0 16 :0808vortex_codec_read 0 16 :0808vortex_codec_write 0 16 :8808vortex_codec_read 0 16 :8808vortex_codec_write 0 16 :8808vortex_codec_write 0 16 :a0a0vortex_codec_read 0 16 :a0a0vortex_codec_read 0 16 :8000vortex_codec_write 0 16 :9090
vortex_codec_read 0 16 :9090 vortex_codec_read 0 16 :9010 vortex_codec_read 0 16 :9010
vortex_codec_write 0 16 :9f1fvortex_codec_read 0 18 :8808vortex_codec_write 0 18 :0808vortex_codec_read 0 18 :0808vortex_codec_write 0 18 :8808vortex_codec_read 0 18 :8808vortex_codec_write 0 18 :8808vortex_codec_write 0 18 :a0a0vortex_codec_read 0 18 :a0a0vortex_codec_read 0 18 :8000vortex_codec_write 0 18 :9090
vortex_codec_read 0 18 :9090 vortex_codec_read 0 18 :9010 vortex_codec_read 0 18 :9010
vortex_codec_write 0 18 :9f1fvortex_codec_read 0 1c :9010vortex_codec_write 0 1c :1010vortex_codec_read 0 1c :1010vortex_codec_write 0 1c :9010vortex_codec_read 0 1c :9010vortex_codec_write 0 1c :9010vortex_codec_write 0 1a :0000vortex_codec_write 0 1c :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :8000vortex_codec_read 0 20 :8000vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :2000vortex_codec_read 0 20 :2000vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :0200vortex_codec_read 0 20 :0200vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :0100vortex_codec_read 0 20 :0100vortex_codec_write 0 20 :0000vortex_codec_read 0 22 :0000vortex_codec_write 0 22 :0707vortex_codec_read 0 22 :0707vortex_codec_write 0 22 :0000vortex_codec_read 0 26 :000fvortex_codec_write 0 26 :800fvortex_codec_read 0 26 :800fvortex_codec_write 0 26 :000fvortex_codec_read 0 2a :ffffvortex_codec_write 0 2a :ffff
vortex: IRQ reg errorvortex_codec_write 0 02 :1f1fvortex_codec_write 0 02 :0303vortex_codec_write 0 18 :1f1fvortex_codec_write 0 18 :0707vortex_codec_write 0 22 :0800vortex_codec_write 0 22 :0808
vortex: IRQ reg error
vortex: IRQ reg error
One "IRQ reg error" appears always on load, the sound-card still works.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 4 lines · Philipp Matthias Hahn
Looks like I lost the normal ac97#1-1* files in
/proc/asound/card0/codec97#0:$ ls /proc/asound/card0/codec97#0/ mc97#1-1 mc97#1-1+regs
Worse, two times the directories "codec97#0" with the same name:
$ ls -l /proc/asound/card0 total 0 dr-xr-xr-x 2 root root 0 2005-09-16 16:48 codec97#0 dr-xr-xr-x 2 root root 0 2005-09-16 16:48 codec97#0 -r--r--r-- 1 root root 0 2005-09-16 16:48 id -r--r--r-- 1 root root 0 2005-09-16 16:48 midi0 -rw-r--r-- 1 root root 0 2005-09-16 16:48 oss_mixer dr-xr-xr-x 18 root root 0 2005-09-16 16:48 pcm0c dr-xr-xr-x 18 root root 0 2005-09-16 16:48 pcm0p dr-xr-xr-x 3 root root 0 2005-09-16 16:48 pcm1p dr-xr-xr-x 18 root root 0 2005-09-16 16:48 pcm2p dr-xr-xr-x 3 root root 0 2005-09-16 16:48 pcm4p
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Quoted 9 lines · Philipp Matthias Hahn
Hello!
Quoted 4 lines · Philipp Matthias Hahn
Looks like I lost the normal ac97#1-1* files in
/proc/asound/card0/codec97#0:$ ls /proc/asound/card0/codec97#0/ mc97#1-1 mc97#1-1+regsWorse, two times the directories "codec97#0" with the same name:
The patch is wrong, audio is removed, ac97bus is initialized twice.
I would suggest (after reboot) to use cleaned ALSA CVS version + two attached patches. Remember to build with '--with-debug=detect'.
Sasha.
This patch extends au88x0 AC97 codec access procedures to handle multiple codecs properly.
Index: alsa-kernel/pci/au88x0/au8810.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8810.h,v retrieving revision 1.3
pci/au88x0/au8810.h +0 -5
@@ -178,11 +178,6 @@#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x29080 -#define VORTEX_CODEC_WRITE 0x00800000 -#define VORTEX_CODEC_ADDSHIFT 16 -#define VORTEX_CODEC_ADDMASK 0x7f0000/* 0x000f0000 */ -#define VORTEX_CODEC_DATSHIFT 0 -#define VORTEX_CODEC_DATMASK 0xffff#define VORTEX_CODEC_IO 0x29188/* SPDIF */
Index: alsa-kernel/pci/au88x0/au8820.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8820.h,v retrieving revision 1.3
pci/au88x0/au8820.h +0 -5
@@ -162,11 +162,6 @@#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880 -#define VORTEX_CODEC_WRITE 0x00800000 -#define VORTEX_CODEC_ADDSHIFT 16 -#define VORTEX_CODEC_ADDMASK 0x7f0000/* 0x000f0000 */ -#define VORTEX_CODEC_DATSHIFT 0 -#define VORTEX_CODEC_DATMASK 0xffff#define VORTEX_CODEC_IO 0x11988#define VORTEX_SPDIF_FLAGS 0x1005c/* FIXME */
Index: alsa-kernel/pci/au88x0/au8830.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8830.h,v retrieving revision 1.3
pci/au88x0/au8830.h +0 -5
@@ -194,11 +194,6 @@#define VORTEX_CODEC_CTRL 0x29184#define VORTEX_CODEC_IO 0x29188 -#define VORTEX_CODEC_WRITE 0x00800000 -#define VORTEX_CODEC_ADDSHIFT 16 -#define VORTEX_CODEC_ADDMASK 0x7f0000/* 0x000f0000 */ -#define VORTEX_CODEC_DATSHIFT 0 -#define VORTEX_CODEC_DATMASK 0xffff#define VORTEX_CODEC_SPORTCTRL 0x2918c
Index: alsa-kernel/pci/au88x0/au88x0.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0.h,v retrieving revision 1.11
pci/au88x0/au88x0.h +8 -0
@@ -79,6 +79,14 @@#define VORTEX_RESOURCE_A3D 0x00000004#define VORTEX_RESOURCE_LAST 0x00000005 +/* codec io: VORTEX_CODEC_IO bits */ +#define VORTEX_CODEC_ID_SHIFT 24 +#define VORTEX_CODEC_WRITE 0x00800000 +#define VORTEX_CODEC_ADDSHIFT 16 +#define VORTEX_CODEC_ADDMASK 0x7f0000 +#define VORTEX_CODEC_DATSHIFT 0 +#define VORTEX_CODEC_DATMASK 0xffff +/* Check for SDAC bit in "Extended audio ID" AC97 register */ //#define VORTEX_IS_QUAD(x) (((x)->codec == NULL) ? 0 : ((x)->codec->ext_id&0x80)) #define VORTEX_IS_QUAD (x) ((x)->isquad)
Index: alsa-kernel/pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v retrieving revision 1.11
pci/au88x0/au88x0_core.c +4 -2
@@ -2532,7 +2532,8 @@ vortex_codec_write(ac97_t * codec, unsighwwrite (card->mmio,VORTEX_CODEC_IO , ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | ((data <<VORTEX_CODEC_DATSHIFT ) &VORTEX_CODEC_DATMASK ) | -VORTEX_CODEC_WRITE ); +VORTEX_CODEC_WRITE | + (codec->num <<VORTEX_CODEC_ID_SHIFT ) );/* Flush Caches. */ hwread (card->mmio,VORTEX_CODEC_IO );
@@ -2554,7 +2555,8 @@ static unsigned short vortex_codec_read( } }/* set up read address */ - read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ); + read_addr = ((addr <<VORTEX_CODEC_ADDSHIFT ) &VORTEX_CODEC_ADDMASK ) | + (codec->num <<VORTEX_CODEC_ID_SHIFT ) ;hwwrite (card->mmio,VORTEX_CODEC_IO , read_addr);/* wait for address */
Index: alsa-kernel/pci/au88x0/au8810.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8810.h,v retrieving revision 1.3
pci/au88x0/au8810.h +2 -2
@@ -171,9 +171,9 @@#define VORTEX_CODEC_CTRL 0x29184#define VORTEX_CODEC_EN 0x29190#define EN_CODEC0 0x00000300 -#define EN_AC98 0x00000c00/* Modem AC98 slots. */ +#define EN_MODEM 0x00000c00/* Modem AC98 slots. */ #define EN_CODEC1 0x00003000 -#define EN_CODEC (EN_CODEC0 | EN_CODEC1) +#define EN_CODEC (EN_CODEC0 | EN_MODEM | EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000
Index: alsa-kernel/pci/au88x0/au8820.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8820.h,v retrieving revision 1.3
pci/au88x0/au8820.h +4 -1
@@ -158,7 +158,10 @@/* CODEC */ #define VORTEX_CODEC_CTRL 0x11984#define VORTEX_CODEC_EN 0x11990 -#define EN_CODEC 0x00000300 +#define EN_CODEC0 0x00000300 +#define EN_MODEM 0x00000c00 +#define EN_CODEC1 0x00003000 +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880
Index: alsa-kernel/pci/au88x0/au8830.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8830.h,v retrieving revision 1.3
pci/au88x0/au8830.h +3 -3
@@ -203,12 +203,12 @@#define VORTEX_CODEC_SPORTCTRL 0x2918c#define VORTEX_CODEC_EN 0x29190 -#define EN_AUDIO0 0x00000300 +#define EN_CODEC0 0x00000300#define EN_MODEM 0x00000c00 -#define EN_AUDIO1 0x00003000 +#define EN_CODEC1 0x00003000#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000 -#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0) +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define VORTEX_SPDIF_SMPRATE 0x29194
Index: alsa-kernel/pci/au88x0/au88x0.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0.h,v retrieving revision 1.11
pci/au88x0/au88x0.h +2 -1
@@ -135,7 +135,8 @@ struct snd_vortex {snd_pcm_t *pcm[VORTEX_PCM_LAST ];snd_rawmidi_t *rmidi;/* Legacy Midi interface. */ -ac97_t *codec; +unsigned int num_of_codecs; +ac97_t *codecs[2 ];/* Stream structs. */ stream_t dma_adb[NR_ADB ];
Index: alsa-kernel/pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v retrieving revision 1.11
pci/au88x0/au88x0_core.c +5 -0
@@ -2511,6 +2511,11 @@ static void vortex_codec_init(vortex_t */* Enable codec channels 0 and 1. */ hwwrite (vortex->mmio,VORTEX_CODEC_EN ,hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_CODEC ); + vortex->num_of_codecs =1 ; +/* nothing know about that */ +msleep (2 ); +if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) + vortex->num_of_codecs =2 ; } static void
Index: alsa-kernel/pci/au88x0/au88x0_mixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_mixer.c,v retrieving revision 1.5
pci/au88x0/au88x0_mixer.c +6 -3
@@ -15,7 +15,7 @@ static int __devinit snd_vortex_mixer(vo {ac97_bus_t *pbus;ac97_template_t ac97; -int err; +int i, err;static ac97_bus_ops_t ops = { .write = vortex_codec_write, .read = vortex_codec_read,
@@ -27,7 +27,10 @@ static int __devinit snd_vortex_mixer(vo// Intialize AC97 codec stuff. ac97.private_data = vortex; ac97.scaps =AC97_SCAP_NO_SPDIF ; - err =snd_ac97_mixer (pbus, &ac97, &vortex->codec); - vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id&0x80 )); +for (i =0 ; i < vortex->num_of_codecs ; i++) { + ac97.num = i; + err =snd_ac97_mixer (pbus, &ac97, &vortex->codecs[i]); + } + vortex->isquad = ((vortex->codecs[0 ] ==NULL ) ?0 : (vortex->codecs[0 ]->ext_id&0x80 ));return err; }
Re: Re: au88x0 modem
In reply to Philipp Matthias HahnQuoted 10 lines · Philipp Matthias Hahn
Quoted 9 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regs
Quoted 2 lines
Sorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Even 0x42 register? Are you with debug version of drivers ( ./configure --with-debug=detect )?
Quoted 6 lines
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
If values are not changed there will nothing, don't try.
BTW, stupid question, if you don't have analog telephone line why you need modem?
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Hello!
Quoted 10 lines · Sasha Khapyorsky
Quoted 9 lines · Philipp Matthias Hahn
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regs
Quoted 5 lines
Quoted 2 lines
Sorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Even
0x42register? Are you with debug version of drivers ( ./configure --with-debug=detect )?
Sorry, yes. The is ALSA from linux-2.6.13.2 with CONFIG_SND_DEBUG=y, which is equivalent to --with-debug=detect.
I attached a new dmesg with an additional patch, which prints out every vortex_{read,write}.
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <3>ALSA sound/core/control.c:324: control 3:0:0:Playback PCM advanced processing:0 is already present done.vortex_codec_read 0 7c :8384vortex_codec_read 0 7e :7605vortex_codec_write 0 00 :0000
vortex_codec_read 0 00 :6940 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a05 vortex_codec_read 0 1c :8a05 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a06 vortex_codec_read 0 1c :8a06 vortex_codec_read 0 00 :6940 vortex_codec_read 0 28 :0000
vortex_codec_write 0 26 :0000vortex_codec_write 0 00 :0000vortex_codec_write 0 26 :0000vortex_codec_write 0 20 :0000
vortex_codec_read 0 26 :000f vortex_codec_read 0 02 :8000 vortex_codec_read 0 02 :8000
vortex_codec_write 0 02 :0000vortex_codec_read 0 02 :0000vortex_codec_write 0 02 :8000vortex_codec_read 0 02 :8000vortex_codec_write 0 02 :8000vortex_codec_write 0 02 :a0a0vortex_codec_read 0 02 :9f9fvortex_codec_read 0 02 :9f1fvortex_codec_write 0 02 :9090
vortex_codec_read 0 02 :9090 vortex_codec_read 0 02 :9010 vortex_codec_read 0 02 :9010
vortex_codec_write 0 02 :9f1fvortex_codec_read 0 06 :9f00vortex_codec_read 0 06 :8000vortex_codec_write 0 06 :0000vortex_codec_read 0 06 :0000vortex_codec_write 0 06 :8000vortex_codec_read 0 06 :8000vortex_codec_write 0 06 :8000vortex_codec_write 0 06 :a0a0vortex_codec_read 0 06 :a09fvortex_codec_read 0 06 :801fvortex_codec_write 0 06 :9090vortex_codec_read 0 06 :9090vortex_codec_read 0 06 :8010vortex_codec_write 0 06 :8181
vortex_codec_read 0 06 :8181 vortex_codec_read 0 06 :8001 vortex_codec_read 0 06 :8001
vortex_codec_write 0 06 :801fvortex_codec_read 0 0a :0000vortex_codec_write 0 0a :8000vortex_codec_read 0 0a :8000vortex_codec_read 0 0a :8000vortex_codec_write 0 0a :801evortex_codec_read 0 0c :8008vortex_codec_read 0 0c :8008vortex_codec_write 0 0c :0008vortex_codec_read 0 0c :0008vortex_codec_write 0 0c :8008vortex_codec_read 0 0c :8008vortex_codec_write 0 0c :8008vortex_codec_write 0 0c :a0a0vortex_codec_read 0 0c :8000vortex_codec_read 0 0c :8000vortex_codec_write 0 0c :9090vortex_codec_read 0 0c :8010vortex_codec_read 0 0c :8010vortex_codec_write 0 0c :8181
vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001
vortex_codec_write 0 0c :801fvortex_codec_read 0 0e :8008vortex_codec_read 0 0e :8008vortex_codec_write 0 0e :0008vortex_codec_read 0 0e :0008vortex_codec_write 0 0e :8008vortex_codec_read 0 0e :8008vortex_codec_write 0 0e :8008vortex_codec_write 0 0e :a0a0vortex_codec_read 0 0e :a0a0vortex_codec_read 0 0e :8000vortex_codec_write 0 0e :9090vortex_codec_read 0 0e :9090vortex_codec_read 0 0e :8010vortex_codec_write 0 0e :8181
vortex_codec_read 0 0e :8181 vortex_codec_read 0 0e :8001 vortex_codec_read 0 0e :8001
vortex_codec_write 0 0e :801fvortex_codec_read 0 10 :8808vortex_codec_read 0 10 :8808vortex_codec_write 0 10 :0808vortex_codec_read 0 10 :0808vortex_codec_write 0 10 :8808vortex_codec_read 0 10 :8808vortex_codec_write 0 10 :8808vortex_codec_write 0 10 :a0a0vortex_codec_read 0 10 :a0a0vortex_codec_read 0 10 :8000vortex_codec_write 0 10 :9090
vortex_codec_read 0 10 :9090 vortex_codec_read 0 10 :9010 vortex_codec_read 0 10 :9010
vortex_codec_write 0 10 :9f1fvortex_codec_read 0 12 :8808vortex_codec_read 0 12 :8808vortex_codec_write 0 12 :0808vortex_codec_read 0 12 :0808vortex_codec_write 0 12 :8808vortex_codec_read 0 12 :8808vortex_codec_write 0 12 :8808vortex_codec_write 0 12 :a0a0vortex_codec_read 0 12 :a0a0vortex_codec_read 0 12 :8000vortex_codec_write 0 12 :9090
vortex_codec_read 0 12 :9090 vortex_codec_read 0 12 :9010 vortex_codec_read 0 12 :9010
vortex_codec_write 0 12 :9f1fvortex_codec_read 0 14 :8808vortex_codec_read 0 14 :8808vortex_codec_write 0 14 :0808vortex_codec_read 0 14 :0808vortex_codec_write 0 14 :8808vortex_codec_read 0 14 :8808vortex_codec_write 0 14 :8808vortex_codec_write 0 14 :a0a0vortex_codec_read 0 14 :a0a0vortex_codec_read 0 14 :8000vortex_codec_write 0 14 :9090
vortex_codec_read 0 14 :9090 vortex_codec_read 0 14 :9010 vortex_codec_read 0 14 :9010
vortex_codec_write 0 14 :9f1fvortex_codec_read 0 16 :8808vortex_codec_read 0 16 :8808vortex_codec_write 0 16 :0808vortex_codec_read 0 16 :0808vortex_codec_write 0 16 :8808vortex_codec_read 0 16 :8808vortex_codec_write 0 16 :8808vortex_codec_write 0 16 :a0a0vortex_codec_read 0 16 :a0a0vortex_codec_read 0 16 :8000vortex_codec_write 0 16 :9090
vortex_codec_read 0 16 :9090 vortex_codec_read 0 16 :9010 vortex_codec_read 0 16 :9010
vortex_codec_write 0 16 :9f1fvortex_codec_read 0 18 :8808vortex_codec_write 0 18 :0808vortex_codec_read 0 18 :0808vortex_codec_write 0 18 :8808vortex_codec_read 0 18 :8808vortex_codec_write 0 18 :8808vortex_codec_write 0 18 :a0a0vortex_codec_read 0 18 :a0a0vortex_codec_read 0 18 :8000vortex_codec_write 0 18 :9090
vortex_codec_read 0 18 :9090 vortex_codec_read 0 18 :9010 vortex_codec_read 0 18 :9010
vortex_codec_write 0 18 :9f1fvortex_codec_read 0 1c :9010vortex_codec_write 0 1c :1010vortex_codec_read 0 1c :1010vortex_codec_write 0 1c :9010vortex_codec_read 0 1c :9010vortex_codec_write 0 1c :9010vortex_codec_write 0 1a :0000vortex_codec_write 0 1c :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :8000vortex_codec_read 0 20 :8000vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :2000vortex_codec_read 0 20 :2000vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :0200vortex_codec_read 0 20 :0200vortex_codec_write 0 20 :0000vortex_codec_read 0 20 :0000vortex_codec_write 0 20 :0100vortex_codec_read 0 20 :0100vortex_codec_write 0 20 :0000vortex_codec_read 0 22 :0000vortex_codec_write 0 22 :0707vortex_codec_read 0 22 :0707vortex_codec_write 0 22 :0000vortex_codec_read 0 26 :000fvortex_codec_write 0 26 :800fvortex_codec_read 0 26 :800fvortex_codec_write 0 26 :000fvortex_codec_read 0 2a :ffffvortex_codec_write 0 2a :ffffvortex_codec_read 1 7c :5349vortex_codec_read 1 7e :4c26vortex_codec_write 1 00 :0000vortex_codec_write 1 3c :0000
vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_read 1 3c :4001 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26
vortex_codec_write 1 1c :8a06vortex_codec_read 1 1c :0000vortex_codec_read 1 3c :4001vortex_codec_write 1 40 :1f40vortex_codec_write 1 3e :0000vortex_codec_write 1 3e :0000vortex_codec_read 1 3e :f000vortex_codec_read 1 3e :f00fvortex_codec_write 1 5c :f210vortex_codec_write 1 68 :0000vortex_codec_write 1 4c :fffevortex_codec_write 1 4e :fffevortex_codec_write 1 50 :ffffvortex_codec_write 1 52 :0000vortex_codec_write 1 56 :0000vortex_codec_read 1 2a :0000vortex_codec_write 1 2a :0000
vortex: IRQ reg error
vortex: IRQ reg error
vortex: IRQ reg errorvortex_codec_write 0 02 :1f1fvortex_codec_write 0 02 :0303vortex_codec_write 0 06 :8000vortex_codec_write 0 0e :8000vortex_codec_write 0 18 :1f1fvortex_codec_write 0 18 :0707vortex_codec_write 0 22 :0800vortex_codec_write 0 22 :0808vortex_codec_read 1 54 :0000vortex_codec_write 1 54 :0001
Doing an "echo 44 ff > ...mc97$1-1+regs" prints out the expected
vortex_codec_write 1 44 :ffff
but the following read returns "0000"
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
If values are not changed there will nothing, don't try.
BTW, stupid question, if you don't have analog telephone line why you need modem?
I asked for modem support a long time ago. The recent request for modem support was from another person. I only entered this thread, after I was cc-ed to help with adding modem support on Aurel by a developer.
I don't need the modem for daily work, but it would still be very nice to have modem support under linux, especially when I travel.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 237 lines · Philipp Matthias Hahn
Hello!
Quoted 11 lines · Sasha Khapyorsky
Quoted 9 lines · Philipp Matthias Hahn
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regsQuoted 5 lines
Quoted 2 lines
Sorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Even
0x42register? Are you with debug version of drivers ( ./configure --with-debug=detect )?Sorry, yes. The is ALSA from linux-2.6.13.2 with
CONFIG_SND_DEBUG=y, which is equivalent to --with-debug=detect.
I attached a new dmesg with an additional patch, which prints out every vortex_{read,write}.ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <3>ALSAsound/core/control.c:324: control 3:0:0:Playback PCM advanced processing:0 is already present done.vortex_codec_read0 7c :8384vortex_codec_read0 7e :7605vortex_codec_write0 00 :0000vortex_codec_read 0 00 :6940 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a05 vortex_codec_read 0 1c :8a05 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a06 vortex_codec_read 0 1c :8a06 vortex_codec_read 0 00 :6940 vortex_codec_read 0 28 :0000
vortex_codec_write0 26 :0000vortex_codec_write0 00 :0000vortex_codec_write0 26 :0000vortex_codec_write0 20 :0000vortex_codec_read 0 26 :000f vortex_codec_read 0 02 :8000 vortex_codec_read 0 02 :8000
vortex_codec_write0 02 :0000vortex_codec_read0 02 :0000vortex_codec_write0 02 :8000vortex_codec_read0 02 :8000vortex_codec_write0 02 :8000vortex_codec_write0 02 :a0a0vortex_codec_read0 02 :9f9fvortex_codec_read0 02 :9f1fvortex_codec_write0 02 :9090vortex_codec_read 0 02 :9090 vortex_codec_read 0 02 :9010 vortex_codec_read 0 02 :9010
vortex_codec_write0 02 :9f1fvortex_codec_read0 06 :9f00vortex_codec_read0 06 :8000vortex_codec_write0 06 :0000vortex_codec_read0 06 :0000vortex_codec_write0 06 :8000vortex_codec_read0 06 :8000vortex_codec_write0 06 :8000vortex_codec_write0 06 :a0a0vortex_codec_read0 06 :a09fvortex_codec_read0 06 :801fvortex_codec_write0 06 :9090vortex_codec_read0 06 :9090vortex_codec_read0 06 :8010vortex_codec_write0 06 :8181vortex_codec_read 0 06 :8181 vortex_codec_read 0 06 :8001 vortex_codec_read 0 06 :8001
vortex_codec_write0 06 :801fvortex_codec_read0 0a :0000vortex_codec_write0 0a :8000vortex_codec_read0 0a :8000vortex_codec_read0 0a :8000vortex_codec_write0 0a :801evortex_codec_read0 0c :8008vortex_codec_read0 0c :8008vortex_codec_write0 0c :0008vortex_codec_read0 0c :0008vortex_codec_write0 0c :8008vortex_codec_read0 0c :8008vortex_codec_write0 0c :8008vortex_codec_write0 0c :a0a0vortex_codec_read0 0c :8000vortex_codec_read0 0c :8000vortex_codec_write0 0c :9090vortex_codec_read0 0c :8010vortex_codec_read0 0c :8010vortex_codec_write0 0c :8181vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001
vortex_codec_write0 0c :801fvortex_codec_read0 0e :8008vortex_codec_read0 0e :8008vortex_codec_write0 0e :0008vortex_codec_read0 0e :0008vortex_codec_write0 0e :8008vortex_codec_read0 0e :8008vortex_codec_write0 0e :8008vortex_codec_write0 0e :a0a0vortex_codec_read0 0e :a0a0vortex_codec_read0 0e :8000vortex_codec_write0 0e :9090vortex_codec_read0 0e :9090vortex_codec_read0 0e :8010vortex_codec_write0 0e :8181vortex_codec_read 0 0e :8181 vortex_codec_read 0 0e :8001 vortex_codec_read 0 0e :8001
vortex_codec_write0 0e :801fvortex_codec_read0 10 :8808vortex_codec_read0 10 :8808vortex_codec_write0 10 :0808vortex_codec_read0 10 :0808vortex_codec_write0 10 :8808vortex_codec_read0 10 :8808vortex_codec_write0 10 :8808vortex_codec_write0 10 :a0a0vortex_codec_read0 10 :a0a0vortex_codec_read0 10 :8000vortex_codec_write0 10 :9090vortex_codec_read 0 10 :9090 vortex_codec_read 0 10 :9010 vortex_codec_read 0 10 :9010
vortex_codec_write0 10 :9f1fvortex_codec_read0 12 :8808vortex_codec_read0 12 :8808vortex_codec_write0 12 :0808vortex_codec_read0 12 :0808vortex_codec_write0 12 :8808vortex_codec_read0 12 :8808vortex_codec_write0 12 :8808vortex_codec_write0 12 :a0a0vortex_codec_read0 12 :a0a0vortex_codec_read0 12 :8000vortex_codec_write0 12 :9090vortex_codec_read 0 12 :9090 vortex_codec_read 0 12 :9010 vortex_codec_read 0 12 :9010
vortex_codec_write0 12 :9f1fvortex_codec_read0 14 :8808vortex_codec_read0 14 :8808vortex_codec_write0 14 :0808vortex_codec_read0 14 :0808vortex_codec_write0 14 :8808vortex_codec_read0 14 :8808vortex_codec_write0 14 :8808vortex_codec_write0 14 :a0a0vortex_codec_read0 14 :a0a0vortex_codec_read0 14 :8000vortex_codec_write0 14 :9090vortex_codec_read 0 14 :9090 vortex_codec_read 0 14 :9010 vortex_codec_read 0 14 :9010
vortex_codec_write0 14 :9f1fvortex_codec_read0 16 :8808vortex_codec_read0 16 :8808vortex_codec_write0 16 :0808vortex_codec_read0 16 :0808vortex_codec_write0 16 :8808vortex_codec_read0 16 :8808vortex_codec_write0 16 :8808vortex_codec_write0 16 :a0a0vortex_codec_read0 16 :a0a0vortex_codec_read0 16 :8000vortex_codec_write0 16 :9090vortex_codec_read 0 16 :9090 vortex_codec_read 0 16 :9010 vortex_codec_read 0 16 :9010
vortex_codec_write0 16 :9f1fvortex_codec_read0 18 :8808vortex_codec_write0 18 :0808vortex_codec_read0 18 :0808vortex_codec_write0 18 :8808vortex_codec_read0 18 :8808vortex_codec_write0 18 :8808vortex_codec_write0 18 :a0a0vortex_codec_read0 18 :a0a0vortex_codec_read0 18 :8000vortex_codec_write0 18 :9090vortex_codec_read 0 18 :9090 vortex_codec_read 0 18 :9010 vortex_codec_read 0 18 :9010
vortex_codec_write0 18 :9f1fvortex_codec_read0 1c :9010vortex_codec_write0 1c :1010vortex_codec_read0 1c :1010vortex_codec_write0 1c :9010vortex_codec_read0 1c :9010vortex_codec_write0 1c :9010vortex_codec_write0 1a :0000vortex_codec_write0 1c :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :8000vortex_codec_read0 20 :8000vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :2000vortex_codec_read0 20 :2000vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :0200vortex_codec_read0 20 :0200vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :0100vortex_codec_read0 20 :0100vortex_codec_write0 20 :0000vortex_codec_read0 22 :0000vortex_codec_write0 22 :0707vortex_codec_read0 22 :0707vortex_codec_write0 22 :0000vortex_codec_read0 26 :000fvortex_codec_write0 26 :800fvortex_codec_read0 26 :800fvortex_codec_write0 26 :000fvortex_codec_read0 2a :ffffvortex_codec_write0 2a :ffffvortex_codec_read1 7c :5349vortex_codec_read1 7e :4c26vortex_codec_write1 00 :0000vortex_codec_write1 3c :0000
Quoted 6 lines
vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26
vortex_codec_write1 1c :8a05vortex_codec_read1 1c :0000vortex_codec_read1 00 :0000
for audio codec
ac97.scaps = AC97_SCAP_NO_SPDIF;
for modem codec
ac97.scaps = AC97_SCAP_SKIP_AUDIO;
static int __devinit snd_vortex_mixer(vortex_t * vortex)
{
ac97_bus_t *pbus;
ac97_template_t ac97;
int err;
static ac97_bus_ops_t ops = {
.write = vortex_codec_write,
.read = vortex_codec_read,
};
if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0)
return err;
memset(&ac97, 0, sizeof(ac97));
// Intialize AC97 codec stuff.
ac97.private_data = vortex;
ac97.scaps = AC97_SCAP_NO_SPDIF;
err = snd_ac97_mixer(pbus, &ac97, &vortex->codec[0]);
vortex->isquad = ((vortex->codec[0] == NULL) ? 0 :
(vortex->codec[0]->ext_id & AC97_EI_SDAC));
#ifndef CHIP_AU8820
/* Enable rear channels of audio codec. */
if ( vortex->isquad )
hwwrite(vortex->mmio, VORTEX_CODEC_EN,
hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO1);
#endif
#ifdef CHIP_AU8810
switch ( hwread(vortex->mmio,0x2A804)) {
case 0x10431043: // ASUS L8400B
memset(&ac97, 0, sizeof(ac97));
// Intialize MC97 codec stuff.
ac97.private_data = vortex;
ac97.scaps = AC97_SCAP_SKIP_AUDIO;
ac97.num = 1;
err = snd_ac97_mixer(pbus, &ac97, &vortex->codec[ac97.num]);
hwwrite(vortex->mmio, VORTEX_CODEC_EN,
hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_MODEM);
};
#endif
return err;
}Quoted 15 lines
Doing an "echo 44 ff > ...mc97$1-1+regs" prints out the expected
vortex_codec_write1 44 :ffff
but the following read returns "0000"Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
If values are not changed there will nothing, don't try.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Hello!
Quoted 4 lines · Raymond
for audio codec
ac97.scaps = AC97_SCAP_NO_SPDIF; for modem codec ac97.scaps = AC97_SCAP_SKIP_AUDIO;
...
Quoted 3 lines
static int
__devinitsnd_vortex_mixer(vortex_t * vortex){ err = snd_ac97_mixer(pbus, &ac97, &vortex->codec[0]);
^s
...
Quoted 2 lines
switch ( hwread(vortex->mmio,0x2A804)) {
case 0x10431043: // ASUS L8400Bdidn't match, lines deleted.
...
Quoted 1 line
err = snd_ac97_mixer(pbus, &ac97, &vortex->codec[ac97.num]);
^s
Here's the next trace with the above modifications applied. Only lines matching codec 1 are provided:
vortex_codec_read 1 7c :5349vortex_codec_read 1 7e :4c26vortex_codec_write 1 3c :0000
vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_read 1 3c :4001 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_read 1 3c :4001
vortex_codec_write 1 40 :1f40vortex_codec_write 1 3e :0000vortex_codec_write 1 3e :0000vortex_codec_read 1 3e :f000vortex_codec_read 1 3e :f00fvortex_codec_write 1 5c :f210vortex_codec_write 1 68 :0000vortex_codec_write 1 4c :fffevortex_codec_write 1 4e :fffevortex_codec_write 1 50 :ffffvortex_codec_write 1 52 :0000vortex_codec_write 1 56 :0000vortex_codec_read 1 2a :0000vortex_codec_write 1 2a :0000
vortex: IRQ reg error
...vortex_codec_read 1 54 :0000vortex_codec_write 1 54 :0001
Writing to mc97#1-1+regs still doesn't seem to change anything.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 5 lines · Philipp Matthias Hahn
...
vortex_codec_read1 54 :0000vortex_codec_write1 54 :0001Writing to mc97#1-1+regs still doesn't seem to change anything.
And 0x46 register, or any register?
Sasha.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
In reply to Philipp Matthias HahnQuoted 17 lines · Philipp Matthias Hahn
Hello!
Quoted 14 lines · Sasha Khapyorsky
Quoted 11 lines · Philipp Matthias Hahn
Quoted 8 lines
2. GPIO
Probably we are lucky and au88x0 implements it in AC97 way, try to write mc97 registers via /proc (for this you need build drivers in debug mode, '--with-debug=detect' is ok):
# echo 42 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 42 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 54 1 > /proc/asound/card0/codec97#0/mc97#1-1+regsSorry, I did echo those values and read mc97#1-1+regs, but no values changed.
Even
0x42register? Are you with debug version of drivers
Ok, 0x42 and 0x44 are my mistake, sorry (need to look in datasheet from time to time), Line level register is 0x46.
Try manual initialization (whole codec):
# echo 3c 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 40 1f40 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 3e 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 46 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs
, then try to change 0x46 register (look at dmesg):
# echo 46 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 46 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs
if it will not work than we have very strange behaviour there. If it works try to change 0x54 register (this may work or not).
Quoted 4 lines
Quoted 1 line
( ./configure --with-debug=detect )?
Sorry, yes. The is ALSA from linux-2.6.13.2 with
CONFIG_SND_DEBUG=y, which is equivalent to --with-debug=detect.
I think that CONFIG_SND_DEBUG_DETECT=y is equivalent, but registers should writeble via proc with CONFIG_SND_DEBUG=y too.
Sasha.
Quoted 895 lines
I attached a new dmesg with an additional patch, which prints out every vortex_{read,write}.
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Vortex: init.... <3>ALSAsound/core/control.c:324: control 3:0:0:Playback PCM advanced processing:0 is already present done.vortex_codec_read0 7c :8384vortex_codec_read0 7e :7605vortex_codec_write0 00 :0000vortex_codec_read 0 00 :6940 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a05 vortex_codec_read 0 1c :8a05 vortex_codec_read 0 7c :8384 vortex_codec_read 0 7e :7605 vortex_codec_write 0 1c :8a06 vortex_codec_read 0 1c :8a06 vortex_codec_read 0 00 :6940 vortex_codec_read 0 28 :0000
vortex_codec_write0 26 :0000vortex_codec_write0 00 :0000vortex_codec_write0 26 :0000vortex_codec_write0 20 :0000vortex_codec_read 0 26 :000f vortex_codec_read 0 02 :8000 vortex_codec_read 0 02 :8000
vortex_codec_write0 02 :0000vortex_codec_read0 02 :0000vortex_codec_write0 02 :8000vortex_codec_read0 02 :8000vortex_codec_write0 02 :8000vortex_codec_write0 02 :a0a0vortex_codec_read0 02 :9f9fvortex_codec_read0 02 :9f1fvortex_codec_write0 02 :9090vortex_codec_read 0 02 :9090 vortex_codec_read 0 02 :9010 vortex_codec_read 0 02 :9010
vortex_codec_write0 02 :9f1fvortex_codec_read0 06 :9f00vortex_codec_read0 06 :8000vortex_codec_write0 06 :0000vortex_codec_read0 06 :0000vortex_codec_write0 06 :8000vortex_codec_read0 06 :8000vortex_codec_write0 06 :8000vortex_codec_write0 06 :a0a0vortex_codec_read0 06 :a09fvortex_codec_read0 06 :801fvortex_codec_write0 06 :9090vortex_codec_read0 06 :9090vortex_codec_read0 06 :8010vortex_codec_write0 06 :8181vortex_codec_read 0 06 :8181 vortex_codec_read 0 06 :8001 vortex_codec_read 0 06 :8001
vortex_codec_write0 06 :801fvortex_codec_read0 0a :0000vortex_codec_write0 0a :8000vortex_codec_read0 0a :8000vortex_codec_read0 0a :8000vortex_codec_write0 0a :801evortex_codec_read0 0c :8008vortex_codec_read0 0c :8008vortex_codec_write0 0c :0008vortex_codec_read0 0c :0008vortex_codec_write0 0c :8008vortex_codec_read0 0c :8008vortex_codec_write0 0c :8008vortex_codec_write0 0c :a0a0vortex_codec_read0 0c :8000vortex_codec_read0 0c :8000vortex_codec_write0 0c :9090vortex_codec_read0 0c :8010vortex_codec_read0 0c :8010vortex_codec_write0 0c :8181vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001 vortex_codec_read 0 0c :8001
vortex_codec_write0 0c :801fvortex_codec_read0 0e :8008vortex_codec_read0 0e :8008vortex_codec_write0 0e :0008vortex_codec_read0 0e :0008vortex_codec_write0 0e :8008vortex_codec_read0 0e :8008vortex_codec_write0 0e :8008vortex_codec_write0 0e :a0a0vortex_codec_read0 0e :a0a0vortex_codec_read0 0e :8000vortex_codec_write0 0e :9090vortex_codec_read0 0e :9090vortex_codec_read0 0e :8010vortex_codec_write0 0e :8181vortex_codec_read 0 0e :8181 vortex_codec_read 0 0e :8001 vortex_codec_read 0 0e :8001
vortex_codec_write0 0e :801fvortex_codec_read0 10 :8808vortex_codec_read0 10 :8808vortex_codec_write0 10 :0808vortex_codec_read0 10 :0808vortex_codec_write0 10 :8808vortex_codec_read0 10 :8808vortex_codec_write0 10 :8808vortex_codec_write0 10 :a0a0vortex_codec_read0 10 :a0a0vortex_codec_read0 10 :8000vortex_codec_write0 10 :9090vortex_codec_read 0 10 :9090 vortex_codec_read 0 10 :9010 vortex_codec_read 0 10 :9010
vortex_codec_write0 10 :9f1fvortex_codec_read0 12 :8808vortex_codec_read0 12 :8808vortex_codec_write0 12 :0808vortex_codec_read0 12 :0808vortex_codec_write0 12 :8808vortex_codec_read0 12 :8808vortex_codec_write0 12 :8808vortex_codec_write0 12 :a0a0vortex_codec_read0 12 :a0a0vortex_codec_read0 12 :8000vortex_codec_write0 12 :9090vortex_codec_read 0 12 :9090 vortex_codec_read 0 12 :9010 vortex_codec_read 0 12 :9010
vortex_codec_write0 12 :9f1fvortex_codec_read0 14 :8808vortex_codec_read0 14 :8808vortex_codec_write0 14 :0808vortex_codec_read0 14 :0808vortex_codec_write0 14 :8808vortex_codec_read0 14 :8808vortex_codec_write0 14 :8808vortex_codec_write0 14 :a0a0vortex_codec_read0 14 :a0a0vortex_codec_read0 14 :8000vortex_codec_write0 14 :9090vortex_codec_read 0 14 :9090 vortex_codec_read 0 14 :9010 vortex_codec_read 0 14 :9010
vortex_codec_write0 14 :9f1fvortex_codec_read0 16 :8808vortex_codec_read0 16 :8808vortex_codec_write0 16 :0808vortex_codec_read0 16 :0808vortex_codec_write0 16 :8808vortex_codec_read0 16 :8808vortex_codec_write0 16 :8808vortex_codec_write0 16 :a0a0vortex_codec_read0 16 :a0a0vortex_codec_read0 16 :8000vortex_codec_write0 16 :9090vortex_codec_read 0 16 :9090 vortex_codec_read 0 16 :9010 vortex_codec_read 0 16 :9010
vortex_codec_write0 16 :9f1fvortex_codec_read0 18 :8808vortex_codec_write0 18 :0808vortex_codec_read0 18 :0808vortex_codec_write0 18 :8808vortex_codec_read0 18 :8808vortex_codec_write0 18 :8808vortex_codec_write0 18 :a0a0vortex_codec_read0 18 :a0a0vortex_codec_read0 18 :8000vortex_codec_write0 18 :9090vortex_codec_read 0 18 :9090 vortex_codec_read 0 18 :9010 vortex_codec_read 0 18 :9010
vortex_codec_write0 18 :9f1fvortex_codec_read0 1c :9010vortex_codec_write0 1c :1010vortex_codec_read0 1c :1010vortex_codec_write0 1c :9010vortex_codec_read0 1c :9010vortex_codec_write0 1c :9010vortex_codec_write0 1a :0000vortex_codec_write0 1c :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :8000vortex_codec_read0 20 :8000vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :2000vortex_codec_read0 20 :2000vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :0200vortex_codec_read0 20 :0200vortex_codec_write0 20 :0000vortex_codec_read0 20 :0000vortex_codec_write0 20 :0100vortex_codec_read0 20 :0100vortex_codec_write0 20 :0000vortex_codec_read0 22 :0000vortex_codec_write0 22 :0707vortex_codec_read0 22 :0707vortex_codec_write0 22 :0000vortex_codec_read0 26 :000fvortex_codec_write0 26 :800fvortex_codec_read0 26 :800fvortex_codec_write0 26 :000fvortex_codec_read0 2a :ffffvortex_codec_write0 2a :ffffvortex_codec_read1 7c :5349vortex_codec_read1 7e :4c26vortex_codec_write1 00 :0000vortex_codec_write1 3c :0000vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_write 1 1c :8a05 vortex_codec_read 1 1c :0000 vortex_codec_read 1 00 :0000 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26 vortex_codec_read 1 3c :4001 vortex_codec_read 1 7c :5349 vortex_codec_read 1 7e :4c26
vortex_codec_write1 1c :8a06vortex_codec_read1 1c :0000vortex_codec_read1 3c :4001vortex_codec_write1 40 :1f40vortex_codec_write1 3e :0000vortex_codec_write1 3e :0000vortex_codec_read1 3e :f000vortex_codec_read1 3e :f00fvortex_codec_write1 5c :f210vortex_codec_write1 68 :0000vortex_codec_write1 4c :fffevortex_codec_write1 4e :fffevortex_codec_write1 50 :ffffvortex_codec_write1 52 :0000vortex_codec_write1 56 :0000vortex_codec_read1 2a :0000vortex_codec_write1 2a :0000
vortex: IRQ reg error
vortex: IRQ reg error
vortex: IRQ reg errorvortex_codec_write0 02 :1f1fvortex_codec_write0 02 :0303vortex_codec_write0 06 :8000vortex_codec_write0 0e :8000vortex_codec_write0 18 :1f1fvortex_codec_write0 18 :0707vortex_codec_write0 22 :0800vortex_codec_write0 22 :0808vortex_codec_read1 54 :0000vortex_codec_write1 54 :0001Doing an "echo 44 ff > ...mc97$1-1+regs" prints out the expected
vortex_codec_write1 44 :ffff
but the following read returns "0000"Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
, if value is changed (we are lucky then), you may connect line and isten 'Hook-Off' clicks (when
0x54is switched between 0 and 1) with parallel phone.I don't have the line cable with me at the moment and need to find a analog telephone circuit until I can test that
If values are not changed there will nothing, don't try.
BTW, stupid question, if you don't have analog telephone line why you need modem?
I asked for modem support a long time ago. The recent request for modem support was from another person. I only entered this thread, after I was cc-ed to help with adding modem support on Aurel by a developer.
Quoted 10 lines
I don't need the modem for daily work, but it would still be very nice to have modem support under linux, especially when I travel.
BYtE
PhilippSignature · 3 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected]
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Hello!
Quoted 10 lines · Sasha Khapyorsky
Ok,
0x42and0x44are my mistake, sorry (need to look in datasheet from time to time), Line level register is0x46.
Try manual initialization (whole codec):# echo 3c 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 40 1f40 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 3e 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs # echo 46 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs, then try to change
0x46register (look at dmesg):
Bingo:
Quoted 1 line
# echo 46 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs
0:46 = 8e8e
Quoted 1 line
# echo 46 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs
0:46 = 0000
Quoted 2 lines
if it will not work than we have very strange behaviour there. If it works try to change
0x54register (this may work or not).
Sorry, stays always the same. Tried 0,ffff,ff00,00ff,1 0:54 = 0000
Quoted 5 lines
Quoted 2 lines
Sorry, yes. The is ALSA from linux-2.6.13.2 with
CONFIG_SND_DEBUG=y, which is equivalent to --with-debug=detect.I think that
CONFIG_SND_DEBUG_DETECT=yis equivalent, but registers should writeble via proc withCONFIG_SND_DEBUG=ytoo.
Yes, should I recompile with CONFIG_SND_DEBUG_DETECT=y too?
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Quoted 6 lines · Philipp Matthias Hahn
Bingo:
Quoted 1 line
# echo 46 ffff > /proc/asound/card0/codec97#0/mc97#1-1+regs0:46 = 8e8e
Quoted 1 line
# echo 46 0 > /proc/asound/card0/codec97#0/mc97#1-1+regs0:46 = 0000
Fine.
Quoted 5 lines
Quoted 2 lines
if it will not work than we have very strange behaviour there. If it works try to change
0x54register (this may work or not).Sorry, stays always the same. Tried 0,ffff,ff00,00ff,1 0:54 = 0000
We are unlucky. This means that GPIO is controlled not via standard AC97 register, but somehow via MMIO and now we will need to find this "somehow" (GPIO bits manage DAA interface, including 'Hook-Off' switch, unfortunately the modem is completely useless without it).
I've looked at win driver (ftp://ftp.asuscom.de/pub/NOTEBOOK/L8400B/Audio_Modem/8baudw9x.exe) and think (after few 'strings' runs) that 'ASP4_CTL.vxd' is softmodem driver (I am completely unfamiliar with .inf files, so please correct me if I am wrong). Nothing interesting until now and looks that this file was not dissassembled there
http://savannah.nongnu.org/cgi-bin/viewcvs/openvortex/plato/
Do you or anybody have idea how to dissassemble *.vxd file? (I would prefer with linux :)).
Quoted 4 lines
Quoted 2 lines
I think that
CONFIG_SND_DEBUG_DETECT=yis equivalent, but registers should writeble via proc withCONFIG_SND_DEBUG=ytoo.Yes, should I recompile with
CONFIG_SND_DEBUG_DETECT=ytoo?
This will not help anyway.
Sasha.
PS. Please include me to To or Cc list.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
In reply to Sasha KhapyorskyQuoted 11 lines · Sasha Khapyorsky
On 17:35 Thu 15 Sep , Sasha Khapyorsky wrote:
3. DMA
After some looking in au88x0 driver I think that it is possible that modem could use one ADB channels (predefined or programmable) for pcm data transfers (just like regular audio), similar scheme may be found with some other devices like ali5451.
Quoted 10 lines
If so we could try to find channel numbers (should be two - for playback and capture). It is very possible that channels should be configured somehow first.
Philipp, How looks your 'aplay -l' output?
ANYBODY knows something about modem DMA/PCM with au88x0, please advise.
The easy way is to create a PCM device "modem" on au8810
DMA -> FIFO -> SRC -> MIXIN --------> MIXOUT -> MC97(Modem Out)
| +-----------> MIXOUT -> EQ -> AC97(Audio Left)
Modem Speaker On or Off
+-> MIXOUT -> EQ -> AC97(Audio Right)
|DMA <- FIFO <- SRC <- MIXOUT <- MIXIN <-------- MC97(Modem IN)
or
DMA -> FIFO -> SRC -> MC97(modem) (Playback)
DMA <- FIFO <- SRC <- MC97(modem) (Capture)
What is the difference between modem application and audio application ?
Do the modem application open two PCM streams (one for playback and the other for capture )?
Where is the class SND_PCM_CLASS_MODEM specificed in the driver ?
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: Re: au88x0 modem
Hi,
Quoted 14 lines
The easy way is to create a PCM device "modem" on au8810
DMA -> FIFO -> SRC -> MIXIN --------> MIXOUT -> MC97(Modem Out)
| +-----------> MIXOUT -> EQ -> AC97(Audio Left) Modem Speaker On or Off +-> MIXOUT -> EQ -> AC97(Audio Right) |DMA <- FIFO <- SRC <- MIXOUT <- MIXIN <-------- MC97(Modem IN)
Quoted 7 lines
or
DMA -> FIFO -> SRC -> MC97(modem) (Playback)
DMA <- FIFO <- SRC <- MC97(modem) (Capture)
Remove the samplerate converter, it does not make any sense on a modem. You will only loose signal precision with the samplerate converter anyway, and there are very few of them.
A direct route from the fifo to the modem codec will do it and the modem signal device will run at the codec native samplerate without any precision loss.
Quoted 2 lines
What is the difference between modem application and audio application ?
Nothing. The only modem extra functionality is the ability to switch the modem line off/on hook. It just sends and captures QAM modulated signals.
Quoted 2 lines
Do the modem application open two PCM streams (one for playback and the other for capture )?
Yes, it should be full duplex. This will require 2 DMA's.
Quoted 1 line
Where is the class
SND_PCM_CLASS_MODEMspecificed in the driver ?
At least i did not.
Best Regards,
Manuel Jander
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem
Quoted 20 lines · Manuel Jander
Hi,
Quoted 17 lines
The easy way is to create a PCM device "modem" on au8810
DMA -> FIFO -> SRC -> MIXIN --------> MIXOUT -> MC97(Modem Out)
| +-----------> MIXOUT -> EQ -> AC97(Audio Left)Modem Speaker On or Off +-> MIXOUT -> EQ -> AC97(Audio Right) |DMA <- FIFO <- SRC <- MIXOUT <- MIXIN <-------- MC97(Modem IN)
or
Quoted 7 lines
Quoted 4 lines
DMA -> FIFO -> SRC -> MC97(modem) (Playback)
DMA <- FIFO <- SRC <- MC97(modem) (Capture)
Remove the samplerate converter, it does not make any sense on a modem.
AC-link requried 48kHz , is it controlled by the modem application ?
Do we need to implement snd_vortex_modem_hw_params() ?
Quoted 2 lines
You will only loose signal precision with the samplerate converter anyway, and there are very few of them.
When comparing au8810 and au8830, vortex_fifo_init() fail at 17th FIFO.
au8810 seem to has only 16 FIFO and 16 SRC.
http://lists.nongnu.org/archive/html/openvortex-dev/2004-03/msg00039.html
Quoted 4 lines
A direct route from the fifo to the modem codec will do it and the modem signal device will run at the codec native samplerate without any precision loss.
What is the format of the PCM ? (16bits signed/unsigned)
DMA -> FIFO -> MC97(modem) (Playback)
DMA <- FIFO <- MC97(modem) (Capture)
Quoted 8 lines
Quoted 2 lines
What is the difference between modem application and audio application ?
Nothing. The only modem extra functionality is the ability to switch the modem line off/on hook. It just sends and captures QAM modulated signals.
What feature do SI3036 support ? (Data/Fax/speaker phone/Voice Modem)
May be we can add a simple dialer in vortex control panel to make a voice call ?
http://alsa.opensrc.org/au88x0
Quoted 6 lines
Quoted 2 lines
Do the modem application open two PCM streams (one for playback and the other for capture )?
Yes, it should be full duplex. This will require 2 DMA's.
Do we need different playback_ops for the wavetable ?
alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c renamed from alsa-driver/alsa-kernel/pci/au88x0_orig/au88x0_pcm.c 2005-09-15 19:34:02.000000000 +0800 +13 -5
@@ -525,11 +580,19 @@VORTEX_PCM_TYPE (pcm) = idx; pcm->private_data = chip;/* set operators */ -snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_PLAYBACK , - &snd_vortex_playback_ops); -if (idx ==VORTEX_PCM_ADB ) -snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_CAPTURE , - &snd_vortex_playback_ops); +switch (idx) { +#ifdef CHIP_AU8810 +case VORTEX_PCM_MODEM : +snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_PLAYBACK , &snd_vortex_modem_playback_ops); +snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_CAPTURE , &snd_vortex_modem_capture_ops); +break ; +#endif +case VORTEX_PCM_ADB : +snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_CAPTURE , &snd_vortex_playback_ops); +default : +snd_pcm_set_ops (pcm,SNDRV_PCM_STREAM_PLAYBACK , &snd_vortex_playback_ops); +break ; + };/* pre-allocation of Scatter-Gather buffers */
Quoted 6 lines
Quoted 2 lines
Where is the class
SND_PCM_CLASS_MODEMspecificed in the driver ?At least i did not.
How do the modem application know which device of the sound card is a modem ?
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Re: au88x0 modem [was: Re: Mo' better modem support]
In reply to Sasha KhapyorskyQuoted 7 lines · Philipp Matthias Hahn
Hello!
Quoted 1 line · Sasha Khapyorsky
Could you try the patch below? And then look again at '
/proc/asond/au8810'?
Quoted 6 lines
See attached tar-file for a full copy of everything under
/proc/asound/au8810after applying the attached patch against ASLA from linux-2.6.13.1.BYtE
Philipp
Is it an ALSA bug to display STAC9705 as STAC9704 ?
Quoted 12 lines · Sasha Khapyorsky
Quoted 10 lines · Raymond
Quoted 4 lines
Quoted 1 line
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
0:7c = 8384
0:7e = 7605Is it STAC9705 ?
18-bit full-duplex audio codec with intergrated modem analog front end.
Quoted 8 lines
Quoted 3 lines
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html
What is the usage of MOT6269353 if it already connected to STAC9705 ?
It is likely secondary modem-only codec (Motorola/SiLabs).
Philipp,
MOT6269353 and MOT6269352 is an AC-Link SM56 Building block.
http://www.motorola.com/softmodem/driver.htm
Is it normal to have a primary audio/modem codec STAC9705 and a secondary codec (AC-link SM56) ?
I guess DAA Si3014 is similar to MOT6269352
Quoted 8 lines
Could you try the patch below? And then look again at '
/proc/asond/au8810'?This is against CVS, untested and may be dangerous because I know nothing about au8810 (somebody knows, please comment).
Sasha.
At a first glance, it's rather DANGER to try your patch.
The LAN card and MDC share the RJ11 jack on l8400b
Does it need to disable the LAN in BIOS before you make any test on the MDC ?
Please cc your reply to [email protected]
Quoted 12 lines
Index:
alsa-kernel/pci/au88x0/au8830.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8830.h,v retrieving revision 1.3
diff -u -p -r1.3au8830.hpci/au88x0/au8830.h +0
-1@@ -203,12 +203,12 @@#define VORTEX_CODEC_SPORTCTRL 0x2918c#define VORTEX_CODEC_EN 0x29190 -#define EN_AUDIO0 0x00000300
pci/au88x0/au8830.h line 213
Quoted 10 lines
pci/au88x0/au8830.h +3
-2+#define EN_CODEC0 0x00000300#define EN_MODEM 0x00000c00 -#define EN_AUDIO1 0x00003000 +#define EN_CODEC1 0x00003000#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000 -#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0) +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define VORTEX_SPDIF_SMPRATE 0x29194
AFAIK, EN_AUDIO0 is for the front channels and EN_AUDIO1 is the rear channels of the AC97 link
#define EN_AUDIO0 0x00000300
#define EN_AUDIO1 0x00003000
Photo of Aureal sound cards can be found in
http://www.dearhoney.idv.tw/MUSEUM/soundcard-07.php
Turtle Beach Montego II (STAC9721) is supported but the rear speakers of Quadzilla and the rear speakers and SPDIF IN/OUT of Home Studio Daugther card are not yet supported.
JP1 of SQ2500 is connect to the WaveBlaster daugther card.
http://www.dayc.vispa.com/faq/vtximg.htm
JP2 and JP3 of SQ2500 are connected to SQ3500 daugther card with Motorola DSP56362.
The usage of the 20-pins connectors at the top of SuperQuad is unknown.
Quoted 9 lines
Index:
alsa-kernel/pci/au88x0/au8820.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8820.h,v retrieving revision 1.3
diff -u -p -r1.3au8820.hpci/au88x0/au8820.h +0
-0@@ -158,7 +158,10 @@/* CODEC */
pci/au88x0/au8820.h line 167
Quoted 10 lines
pci/au88x0/au8820.h +4
-1#define VORTEX_CODEC_CTRL 0x11984#define VORTEX_CODEC_EN 0x11990 -#define EN_CODEC 0x00000300 +#define EN_CODEC0 0x00000300 +#define EN_MODEM 0x00000c00 +#define EN_CODEC1 0x00003000 +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880
-#define EN_CODEC 0x00000300
+#define EN_AUDIO0 0x00000300
It seem all Vortex cards (e.g. Turtle Beach Montego, Diamond S90,... ) have only one stereo codec and do not support soft modem.
Quoted 10 lines
Index:
alsa-kernel/pci/au88x0/au8810.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8810.h,v retrieving revision 1.3
diff -u -p -r1.3au8810.hpci/au88x0/au8810.h +0
-0@@ -171,9 +171,9 @@#define VORTEX_CODEC_CTRL 0x29184
pci/au88x0/au8810.h line 179
Quoted 10 lines
pci/au88x0/au8810.h +2
-2#define VORTEX_CODEC_EN 0x29190#define EN_CODEC0 0x00000300 -#define EN_AC98 0x00000c00/* Modem AC98 slots. */ +#define EN_MODEM 0x00000c00/* Modem AC98 slots. */ #define EN_CODEC1 0x00003000 -#define EN_CODEC (EN_CODEC0 | EN_CODEC1) +#define EN_CODEC (EN_CODEC0 | EN_MODEM | EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000
+#define VORTEX_PCI_SUBSYSTEM_ID 0x2A804
-#define EN_CODEC0 0x00000300
+#define EN_AUDIO0 0x00000300
-#define EN_AC98 0x00000c00 /* Modem AC98 slots. */
+#define EN_MODEM 0x00000c00 /* Modem AC98 slots. */
-#define EN_CODEC1 0x00003000
+#define EN_AUDIO1 0x00003000
SQ1500, Aureal Advantage and most of the au8810 sound cards do not has any seconday modem codec.
SoundCom PCI Audio/Modem Combo card and some motherboard with onboard au8810 (e.g. ASUS l8400b, MS-6178E) have aureal soft modem
http://pci-ids.ucw.cz/iii/?i=12eb8803
I suspect Aureal VCOM PCI Modem Card has different PCI vendor/device id 12eb:8803
I suspect SQ1500 is the only au8810 has a quad codec (need confirmation from SQ1500 user).
Quoted 27 lines
Index:
alsa-kernel/pci/au88x0/au88x0.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0.h,v retrieving revision 1.11
diff -u -p -r1.11au88x0.hpci/au88x0/au88x0.h +2
-1@@ -135,7 +135,8 @@ struct snd_vortex {snd_pcm_t *pcm[VORTEX_PCM_LAST ];snd_rawmidi_t *rmidi;/* Legacy Midi interface. */ -ac97_t *codec; +unsigned int num_of_codecs; +ac97_t *codecs[2 ];/* Stream structs. */ stream_t dma_adb[NR_ADB ];Index:
alsa-kernel/pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v retrieving revision 1.11
diff -u -p -r1.11au88x0_core.cpci/au88x0/au88x0_core.c +0
-0@@ -2511,6 +2511,11 @@ static void vortex_codec_init(vortex_t */* Enable codec channels 0 and 1. */
pci/au88x0/au88x0_core.c static void vortex_codec_init(vortex_t * · line 2521
Quoted 10 lines
pci/au88x0/au88x0_core.c +5
-0hwwrite (vortex->mmio,VORTEX_CODEC_EN ,hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_CODEC ); + vortex->num_of_codecs =1 ; +/* nothing know about that */ +msleep (2 ); +if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) + vortex->num_of_codecs =2 ; } static void
au88x0.h
ac97_t *codec;
+#ifdef AU8810_CHIP
+ ac97_t *modem_codec;
+#endif
+ u32 pci_subsystem_id;
au88x0_core.c
/* Enable codec channels 0 and 1. */
hwwrite(vortex->mmio, VORTEX_CODEC_EN,
- hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC); + hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO0);
au88x0_mixer.c
- vortex->isquad = ((vortex->codec == NULL) ? 0 :
(vortex->codec->ext_id&0x80));
+ vortex->isquad = ((vortex->codec == NULL) ? 0 :
(vortex->codec->ext_id & AC97_EI_SDAC));
+ if ( VORTEX_IS_QUAD(vortex) ) {
+ /* Enable codec rear channels . */
+ hwwrite(vortex->mmio, VORTEX_CODEC_EN,
+ hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO1 );
+
+ };
+#ifdef AU8810_CHIP
+ /* Enable modem codec for ASUS L8400B
+ switch ( vortex->pci_subsystem_id ) {
+ case 0x10431043:
+ hwwrite(vortex->mmio, VORTEX_CODEC_EN,
+ hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_MODEM);
+ break;
+ };
+#endif
+
Quoted 21 lines
Index:
alsa-kernel/pci/au88x0/au88x0_mixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_mixer.c,v retrieving revision 1.5
diff -u -p -r1.5au88x0_mixer.cpci/au88x0/au88x0_mixer.c +1
-1@@ -15,7 +15,7 @@ static int __devinit snd_vortex_mixer(vo {ac97_bus_t *pbus;ac97_template_t ac97; -int err; +int i, err;static ac97_bus_ops_t ops = { .write = vortex_codec_write, .read = vortex_codec_read,@@ -27,7 +27,10 @@ static int __devinit snd_vortex_mixer(vo// Intialize AC97 codec stuff. ac97.private_data = vortex;
pci/au88x0/au88x0_mixer.c static int __devinit snd_vortex_mixer(vo · line 36
Quoted 10 lines
pci/au88x0/au88x0_mixer.c +5
-2ac97.scaps =AC97_SCAP_NO_SPDIF ; - err =snd_ac97_mixer (pbus, &ac97, &vortex->codec); - vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id&0x80 )); +for (i =0 ; i < vortex->num_of_codecs ; i++) { + ac97.num = i; + err =snd_ac97_mixer (pbus, &ac97, &vortex->codecs[i]); + } + vortex->isquad = ((vortex->codecs[0 ] ==NULL ) ?0 : (vortex->codecs[0 ]->ext_id&0x80 ));return err; }
au88x0.c
+ chip->pci_subsystem_id = pci_read_config_byte(pci,0x2c);
// snd_ac97_mixer and Vortex mixer.
if ((err = snd_vortex_mixer(chip)) < 0) {
snd_card_free(card);
return err;
}+#ifdef AU8810_CHIP
+ /* ASUS l8400b , MS-6178E, SoundCom */
+ switch ( chip->pci_subsystem_id ) {
+ case 0x10431043:
+ err = snd_vortex_modem_mixer(chip);
+ break;
+ };
+#endif
/* for VCOM PCI Modem card */
au8810_modem.c
#define PCI_DEVICE_ID_AUREAL_MODEM 0x8803
#include "au8810.h"
#include "au88x0.h"
static struct pci_device_id snd_vortex_ids[] = {
{PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_MODEM,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,},
{0,}
};#include "au88x0_modem.c"
#include "au88x0_core.c"
#include "au88x0_pcm.c"
#include "au88x0.c"
au88x0_modem.c
/* modem routine for audio/modem combo or modem card */
static int __devinit snd_vortex_modem_mixer(vortex_t *vortex) {
ac97_bus_t *pbus;
ac97_template_t ac97;
int err;
static ac97_bus_ops_t ops = {
.write = vortex_modem_codec_write,
.read = vortex_modem_codec_read,
};
if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0)
return err;
memset(&ac97, 0, sizeof(ac97));
// Intialize AC97 codec stuff.
ac97.private_data = vortex;
ac97.scaps = AC97_SCAP_NO_SPDIF;
if ( vortex->device == PCI_DEVICE_ID_AUREAL_MODEM )
ac97.num = 0 ;
else
ac97.num = 1 ;
err = snd_ac97_mixer(pbus, &ac97, &vortex->modem_codec);return err;
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: au88x0 modem
Quoted 19 lines · Raymond
Quoted 19 lines · Raymond
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
cat /proc/asound/au8810/codec97#0/ac97#0-0+regs
0:7c = 8384
0:7e = 7605Quoted 7 lines
Is it STAC9705 ?
18-bit full-duplex audio codec with intergrated modem analog front end.
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html
What is the usage of MOT6269353 if it already connected to STAC9705 ?
It is likely secondary modem-only codec (Motorola/SiLabs).
Quoted 8 lines
Quoted 1 line
Philipp,
MOT6269353 and MOT6269352 is an AC-Link SM56 Building block.
http://www.motorola.com/softmodem/driver.htm
Is it normal to have a primary audio/modem codec STAC9705 and a secondary codec (AC-link SM56) ?
This codec (don't know STAC9705, STAC9704 or whatever) is audio only codec, all modem related registers are zeroed. So yes, it is normal.
Quoted 1 line
I guess DAA Si3014 is similar to MOT6269352
Just same I guess.
Quoted 10 lines
Quoted 9 lines
Could you try the patch below? And then look again at '
/proc/asond/au8810'?This is against CVS, untested and may be dangerous because I know nothing about au8810 (somebody knows, please comment).
Sasha.
Quoted 6 lines
At a first glance, it's rather DANGER to try your patch.
The LAN card and MDC share the RJ11 jack on l8400b
Does it need to disable the LAN in BIOS before you make any test on the MDC ?
No.
Quoted 24 lines
Please cc your reply to [email protected]
Quoted 21 lines
Index:
alsa-kernel/pci/au88x0/au8830.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8830.h,v retrieving revision 1.3
diff -u -p -r1.3au8830.hpci/au88x0/au8830.h +3
-3@@ -203,12 +203,12 @@#define VORTEX_CODEC_SPORTCTRL 0x2918c#define VORTEX_CODEC_EN 0x29190 -#define EN_AUDIO0 0x00000300 +#define EN_CODEC0 0x00000300#define EN_MODEM 0x00000c00 -#define EN_AUDIO1 0x00003000 +#define EN_CODEC1 0x00003000#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000 -#define EN_CODEC (EN_AUDIO1 | EN_AUDIO0) +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)
Quoted 7 lines
pci/au88x0/au8830.h line 213
Quoted 1 line
pci/au88x0/au8830.h +0
-0#define VORTEX_SPDIF_SMPRATE 0x29194AFAIK,
EN_AUDIO0is for the front channels andEN_AUDIO1is the rear channels of the AC97 link#define
EN_AUDIO00x00000300
#defineEN_AUDIO10x00003000
Yes, this CODEC_STRL/CODEC_EN stuff is very unclear for me, so I used "full set" (CODEC0|CODEC1|MODEM) for begging. Should be clarified in experimental way.
mainly I'm not about cleanups now. The goal is to hack modem. It looks for me that right sequence is:
1. Find and initialize modem codec (secondary).
2. Find and hack appropriate DMA channels, initialize modem PCM.
3. Find valid way to access GPIO (for DAA controls like Hook-Off)
4. Chipset detailed cleanups.
Currently we are in (1).
Sasha.
Quoted 280 lines
Photo of Aureal sound cards can be found in
http://www.dearhoney.idv.tw/MUSEUM/soundcard-07.php
Turtle Beach Montego II (STAC9721) is supported but the rear speakers of Quadzilla and the rear speakers and SPDIF IN/OUT of Home Studio Daugther card are not yet supported.
JP1 of SQ2500 is connect to the WaveBlaster daugther card.
http://www.dayc.vispa.com/faq/vtximg.htm
JP2 and JP3 of SQ2500 are connected to SQ3500 daugther card with Motorola DSP56362.
The usage of the 20-pins connectors at the top of SuperQuad is unknown.
Quoted 19 lines
Index:
alsa-kernel/pci/au88x0/au8820.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8820.h,v retrieving revision 1.3
diff -u -p -r1.3au8820.hpci/au88x0/au8820.h +4
-1@@ -158,7 +158,10 @@/* CODEC */ #define VORTEX_CODEC_CTRL 0x11984#define VORTEX_CODEC_EN 0x11990 -#define EN_CODEC 0x00000300 +#define EN_CODEC0 0x00000300 +#define EN_MODEM 0x00000c00 +#define EN_CODEC1 0x00003000 +#define EN_CODEC (EN_CODEC0|EN_MODEM|EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000#define VORTEX_CODEC_CHN 0x11880(quoted diff) +1
-1-#define EN_CODEC 0x00000300 +#define EN_AUDIO0 0x00000300It seem all Vortex cards (e.g. Turtle Beach Montego, Diamond S90,... ) have only one stereo codec and do not support soft modem.
Quoted 20 lines
Index:
alsa-kernel/pci/au88x0/au8810.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au8810.h,v retrieving revision 1.3
diff -u -p -r1.3au8810.hpci/au88x0/au8810.h +2
-2@@ -171,9 +171,9 @@#define VORTEX_CODEC_CTRL 0x29184#define VORTEX_CODEC_EN 0x29190#define EN_CODEC0 0x00000300 -#define EN_AC98 0x00000c00/* Modem AC98 slots. */ +#define EN_MODEM 0x00000c00/* Modem AC98 slots. */ #define EN_CODEC1 0x00003000 -#define EN_CODEC (EN_CODEC0 | EN_CODEC1) +#define EN_CODEC (EN_CODEC0 | EN_MODEM | EN_CODEC1)#define EN_SPORT 0x00030000#define EN_SPDIF 0x000c0000(quoted diff) +4
-3+#define VORTEX_PCI_SUBSYSTEM_ID 0x2A804 -#define EN_CODEC0 0x00000300 +#define EN_AUDIO0 0x00000300 -#define EN_AC98 0x00000c00 /* Modem AC98 slots. */ +#define EN_MODEM 0x00000c00 /* Modem AC98 slots. */ -#define EN_CODEC1 0x00003000 +#define EN_AUDIO1 0x00003000SQ1500, Aureal Advantage and most of the au8810 sound cards do not has any seconday modem codec.
SoundCom PCI Audio/Modem Combo card and some motherboard with onboard au8810 (e.g. ASUS l8400b, MS-6178E) have aureal soft modem
http://pci-ids.ucw.cz/iii/?i=12eb8803
I suspect Aureal VCOM PCI Modem Card has different PCI vendor/device id 12eb:8803
I suspect SQ1500 is the only au8810 has a quad codec (need confirmation from SQ1500 user).
Quoted 37 lines
Index:
alsa-kernel/pci/au88x0/au88x0.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0.h,v retrieving revision 1.11
diff -u -p -r1.11au88x0.hpci/au88x0/au88x0.h +2
-1@@ -135,7 +135,8 @@ struct snd_vortex {snd_pcm_t *pcm[VORTEX_PCM_LAST ];snd_rawmidi_t *rmidi;/* Legacy Midi interface. */ -ac97_t *codec; +unsigned int num_of_codecs; +ac97_t *codecs[2 ];/* Stream structs. */ stream_t dma_adb[NR_ADB ];Index:
alsa-kernel/pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v retrieving revision 1.11
diff -u -p -r1.11au88x0_core.c
---alsa-kernel/pci/au88x0/au88x0_core.c23 Feb 2005 11:00:31 -0000
1.11
+++alsa-kernel/pci/au88x0/au88x0_core.c12 Sep 2005 23:35:33 -0000pci/au88x0/au88x0.h +5
-0@@ -2511,6 +2511,11 @@ static void vortex_codec_init(vortex_t */* Enable codec channels 0 and 1. */ hwwrite (vortex->mmio,VORTEX_CODEC_EN ,hwread (vortex->mmio,VORTEX_CODEC_EN ) |EN_CODEC ); + vortex->num_of_codecs =1 ; +/* nothing know about that */ +msleep (2 ); +if (hwread (vortex->mmio,VORTEX_CODEC_EN )&(EN_CODEC1 |EN_MODEM )) + vortex->num_of_codecs =2 ; }Quoted 1 line
static void
au88x0.hac97_t *codec;(quoted diff) +4
-0+#ifdef AU8810_CHIP + ac97_t *modem_codec; +#endif + u32 pci_subsystem_id;
au88x0_core.c/* Enable codec channels 0 and 1. */
hwwrite(vortex->mmio,VORTEX_CODEC_EN,(quoted diff) +1
-1- hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC); + hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO0);
au88x0_mixer.c(quoted diff) +0
-1- vortex->isquad = ((vortex->codec == NULL) ? 0 :(vortex->codec->ext_id&0x80));
(quoted diff) +1
-0+ vortex->isquad = ((vortex->codec == NULL) ? 0 :(
vortex->codec->ext_id&AC97_EI_SDAC));(quoted diff) +16
-0+ if ( VORTEX_IS_QUAD(vortex) ) { + /* Enable codec rear channels . */ + hwwrite(vortex->mmio, VORTEX_CODEC_EN, + hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_AUDIO1 ); + + }; +#ifdef AU8810_CHIP + /* Enable modem codec for ASUS L8400B + switch ( vortex->pci_subsystem_id ) { + case 0x10431043: + hwwrite(vortex->mmio, VORTEX_CODEC_EN, + hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_MODEM); + break; + }; +#endif +Quoted 33 lines
Index:
alsa-kernel/pci/au88x0/au88x0_mixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_mixer.c,v retrieving revision 1.5
diff -u -p -r1.5au88x0_mixer.c
---alsa-kernel/pci/au88x0/au88x0_mixer.c23 Mar 2005 17:04:16 -0000
1.5
+++alsa-kernel/pci/au88x0/au88x0_mixer.c12 Sep 2005 23:35:33 -0000pci/au88x0/au88x0.h +6
-3@@ -15,7 +15,7 @@ static int __devinit snd_vortex_mixer(vo {ac97_bus_t *pbus;ac97_template_t ac97; -int err; +int i, err;static ac97_bus_ops_t ops = { .write = vortex_codec_write, .read = vortex_codec_read,@@ -27,7 +27,10 @@ static int __devinit snd_vortex_mixer(vo// Intialize AC97 codec stuff. ac97.private_data = vortex; ac97.scaps =AC97_SCAP_NO_SPDIF ; - err =snd_ac97_mixer (pbus, &ac97, &vortex->codec); - vortex->isquad = ((vortex->codec ==NULL ) ?0 : (vortex->codec->ext_id&0x80)); +for (i =0 ; i < vortex->num_of_codecs ; i++) { + ac97.num = i; + err =snd_ac97_mixer (pbus, &ac97, &vortex->codecs[i]); + } + vortex->isquad = ((vortex->codecs[0 ] ==NULL ) ?0 : (vortex->codecs[0 ]->ext_id&0x80 ));Quoted 4 lines
return err; }
au88x0.c
+chip->pci_subsystem_id=pci_read_config_byte(pci,0x2c);// snd_ac97_mixer and Vortex mixer. if ((err = snd_vortex_mixer(chip)) < 0) { snd_card_free(card); return err; }(quoted diff) +8
-0+#ifdef AU8810_CHIP + /* ASUS l8400b , MS-6178E, SoundCom */ + switch ( chip->pci_subsystem_id ) { + case 0x10431043: + err = snd_vortex_modem_mixer(chip); + break; + }; +#endif/* for VCOM PCI Modem card */
au8810_modem.c#define
PCI_DEVICE_ID_AUREAL_MODEM0x8803
#include "au8810.h"
#include "au88x0.h"static struct pci_device_id snd_vortex_ids[] = { {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_MODEM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,}, {0,} };#include "
au88x0_modem.c"
#include "au88x0_core.c"
#include "au88x0_pcm.c"
#include "au88x0.c"
au88x0_modem.c/* modem routine for audio/modem combo or modem card */
static int
__devinitsnd_vortex_modem_mixer(vortex_t *vortex){
ac97_bus_t*pbus;ac97_template_t ac97; int err; static ac97_bus_ops_t ops = { .write = vortex_modem_codec_write, .read = vortex_modem_codec_read, }; if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) return err; memset(&ac97, 0, sizeof(ac97)); // Intialize AC97 codec stuff. ac97.private_data = vortex; ac97.scaps = AC97_SCAP_NO_SPDIF; if ( vortex->device == PCI_DEVICE_ID_AUREAL_MODEM ) ac97.num = 0 ; else ac97.num = 1 ; err = snd_ac97_mixer(pbus, &ac97, &vortex->modem_codec);
Quoted 15 lines
return err;
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Re: au88x0 modem [was: Re: Mo' better modem support]
In reply to RaymondHello!
Quoted 4 lines · Raymond
Quoted 4 lines
Quoted 3 lines
http://www6.tomshardware.com/mobile/20010126/notebooks-06.html
What is the usage of MOT6269353 if it already connected to STAC9705 ?
Quoted 8 lines
Quoted 1 line
It is likely secondary modem-only codec (Motorola/SiLabs).
MOT6269353 and MOT6269352 is an AC-Link SM56 Building block.
http://www.motorola.com/softmodem/driver.htm
Is it normal to have a primary audio/modem codec STAC9705 and a secondary codec (AC-link SM56) ?
You can get the Windows9x driver from ftp://ftp.asuscom.de/pub/NOTEBOOK/L8400B/Audio_Modem/8baudw9x.exe and unzip the file. The interesting files are located in the ./Driver/ subdirectory:
Sm56.reg MOTVCD.VXD
So it's the motorola.
The alsa driver was written by decompiling the Windows driver.
http://savannah.nongnu.org/projects/openvortex/
You still find those decompiled assembler files at
http://savannah.nongnu.org/cgi-bin/viewcvs/openvortex/plato/
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Hello!
Quoted 7 lines · Raymond
Just make sure your modem are still working
The cable at the top of the MiniPCI card is connected to the RJ11 Combo jack. Combo because the MDC modem card is sharing this port with the LAN. You cannot use LAN and Modem simultaneously.
How to select which one use the RJ11 Combo jack ? (BIOS setup)
It's a dual RJ11/RJ45 jack: If you plug in a RJ45 network cable, you use the pins for network. When you plug in the RJ11 telephone cable, you use the other pins of the modem. Both just use plain different pins.
Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
What is the feature available ?
1) Data/Fax only
2) Data/Fax/TAM (Telephone answering machine)
3) Data/Fax/TAM/SpeakerphonDon't know. Never used Windows much. But if you have an easy-to-install and easy-to-use test application for Windows, I'm willing to test it.
It seem to support voice, any user manual mention that it can be used for data/fax/tam/speakerphone ?
I just looked at the manual, but found nothing about TAM/Speakerphone:
http://notebook.asus.it/documenti/manuali/L8400%20B%20C%20Ce%20K.pdf
The C-Model has an ESS soundcard instead of the AU8810 by B-Model has:
http://usa.asus.com/notebook/l8400c/faq.htm#9
So doesn't apply and doesn't help.
BYtE
Philipp
Signature · 10 lines
/ / (_)__ __ ____ __ Philipp Hahn / /__/ / _ \/ // /\ \/ / /____/_/_//_/\_,_/ /_/\_\ [email protected] ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf