From: Raymond <rayau@netvigator.com>
To: pmhahn@titan.lahn.de
Cc: openvortex-dev@nongnu.org, alsa-devel@lists.sourceforge.net
Subject: Re: au88x0 modem
Date: Mon, 19 Sep 2005 23:32:50 +0800 [thread overview]
Message-ID: <432EDA22.3060707@netvigator.com> (raw)
In-Reply-To: <20050919150025.GA3058@titan.lahn.de>
Philipp Matthias Hahn wrote:
> Hello!
>
> On Fri, Sep 16, 2005 at 09:25:24PM +0300, Sasha Khapyorsky wrote:
>
>>On 10:46 Fri 16 Sep , Philipp Matthias Hahn wrote:
>>
>>>>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.
>>
>>Even 0x42 register? 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 :8384
> vortex_codec_read 0 7e :7605
> vortex_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 :0000
> vortex_codec_write 0 00 :0000
> vortex_codec_write 0 26 :0000
> vortex_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 :0000
> vortex_codec_read 0 02 :0000
> vortex_codec_write 0 02 :8000
> vortex_codec_read 0 02 :8000
> vortex_codec_write 0 02 :8000
> vortex_codec_write 0 02 :a0a0
> vortex_codec_read 0 02 :9f9f
> vortex_codec_read 0 02 :9f1f
> vortex_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 :9f1f
> vortex_codec_read 0 06 :9f00
> vortex_codec_read 0 06 :8000
> vortex_codec_write 0 06 :0000
> vortex_codec_read 0 06 :0000
> vortex_codec_write 0 06 :8000
> vortex_codec_read 0 06 :8000
> vortex_codec_write 0 06 :8000
> vortex_codec_write 0 06 :a0a0
> vortex_codec_read 0 06 :a09f
> vortex_codec_read 0 06 :801f
> vortex_codec_write 0 06 :9090
> vortex_codec_read 0 06 :9090
> vortex_codec_read 0 06 :8010
> vortex_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 :801f
> vortex_codec_read 0 0a :0000
> vortex_codec_write 0 0a :8000
> vortex_codec_read 0 0a :8000
> vortex_codec_read 0 0a :8000
> vortex_codec_write 0 0a :801e
> vortex_codec_read 0 0c :8008
> vortex_codec_read 0 0c :8008
> vortex_codec_write 0 0c :0008
> vortex_codec_read 0 0c :0008
> vortex_codec_write 0 0c :8008
> vortex_codec_read 0 0c :8008
> vortex_codec_write 0 0c :8008
> vortex_codec_write 0 0c :a0a0
> vortex_codec_read 0 0c :8000
> vortex_codec_read 0 0c :8000
> vortex_codec_write 0 0c :9090
> vortex_codec_read 0 0c :8010
> vortex_codec_read 0 0c :8010
> vortex_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 :801f
> vortex_codec_read 0 0e :8008
> vortex_codec_read 0 0e :8008
> vortex_codec_write 0 0e :0008
> vortex_codec_read 0 0e :0008
> vortex_codec_write 0 0e :8008
> vortex_codec_read 0 0e :8008
> vortex_codec_write 0 0e :8008
> vortex_codec_write 0 0e :a0a0
> vortex_codec_read 0 0e :a0a0
> vortex_codec_read 0 0e :8000
> vortex_codec_write 0 0e :9090
> vortex_codec_read 0 0e :9090
> vortex_codec_read 0 0e :8010
> vortex_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 :801f
> vortex_codec_read 0 10 :8808
> vortex_codec_read 0 10 :8808
> vortex_codec_write 0 10 :0808
> vortex_codec_read 0 10 :0808
> vortex_codec_write 0 10 :8808
> vortex_codec_read 0 10 :8808
> vortex_codec_write 0 10 :8808
> vortex_codec_write 0 10 :a0a0
> vortex_codec_read 0 10 :a0a0
> vortex_codec_read 0 10 :8000
> vortex_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 :9f1f
> vortex_codec_read 0 12 :8808
> vortex_codec_read 0 12 :8808
> vortex_codec_write 0 12 :0808
> vortex_codec_read 0 12 :0808
> vortex_codec_write 0 12 :8808
> vortex_codec_read 0 12 :8808
> vortex_codec_write 0 12 :8808
> vortex_codec_write 0 12 :a0a0
> vortex_codec_read 0 12 :a0a0
> vortex_codec_read 0 12 :8000
> vortex_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 :9f1f
> vortex_codec_read 0 14 :8808
> vortex_codec_read 0 14 :8808
> vortex_codec_write 0 14 :0808
> vortex_codec_read 0 14 :0808
> vortex_codec_write 0 14 :8808
> vortex_codec_read 0 14 :8808
> vortex_codec_write 0 14 :8808
> vortex_codec_write 0 14 :a0a0
> vortex_codec_read 0 14 :a0a0
> vortex_codec_read 0 14 :8000
> vortex_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 :9f1f
> vortex_codec_read 0 16 :8808
> vortex_codec_read 0 16 :8808
> vortex_codec_write 0 16 :0808
> vortex_codec_read 0 16 :0808
> vortex_codec_write 0 16 :8808
> vortex_codec_read 0 16 :8808
> vortex_codec_write 0 16 :8808
> vortex_codec_write 0 16 :a0a0
> vortex_codec_read 0 16 :a0a0
> vortex_codec_read 0 16 :8000
> vortex_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 :9f1f
> vortex_codec_read 0 18 :8808
> vortex_codec_write 0 18 :0808
> vortex_codec_read 0 18 :0808
> vortex_codec_write 0 18 :8808
> vortex_codec_read 0 18 :8808
> vortex_codec_write 0 18 :8808
> vortex_codec_write 0 18 :a0a0
> vortex_codec_read 0 18 :a0a0
> vortex_codec_read 0 18 :8000
> vortex_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 :9f1f
> vortex_codec_read 0 1c :9010
> vortex_codec_write 0 1c :1010
> vortex_codec_read 0 1c :1010
> vortex_codec_write 0 1c :9010
> vortex_codec_read 0 1c :9010
> vortex_codec_write 0 1c :9010
> vortex_codec_write 0 1a :0000
> vortex_codec_write 0 1c :0000
> vortex_codec_read 0 20 :0000
> vortex_codec_write 0 20 :8000
> vortex_codec_read 0 20 :8000
> vortex_codec_write 0 20 :0000
> vortex_codec_read 0 20 :0000
> vortex_codec_write 0 20 :2000
> vortex_codec_read 0 20 :2000
> vortex_codec_write 0 20 :0000
> vortex_codec_read 0 20 :0000
> vortex_codec_write 0 20 :0200
> vortex_codec_read 0 20 :0200
> vortex_codec_write 0 20 :0000
> vortex_codec_read 0 20 :0000
> vortex_codec_write 0 20 :0100
> vortex_codec_read 0 20 :0100
> vortex_codec_write 0 20 :0000
> vortex_codec_read 0 22 :0000
> vortex_codec_write 0 22 :0707
> vortex_codec_read 0 22 :0707
> vortex_codec_write 0 22 :0000
> vortex_codec_read 0 26 :000f
> vortex_codec_write 0 26 :800f
> vortex_codec_read 0 26 :800f
> vortex_codec_write 0 26 :000f
> vortex_codec_read 0 2a :ffff
> vortex_codec_write 0 2a :ffff
> vortex_codec_read 1 7c :5349
> vortex_codec_read 1 7e :4c26
> vortex_codec_write 1 00 :0000
> vortex_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
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;
}
>
> 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"
>
>
>>>>, 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.
>>>
>>>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
next prev parent reply other threads:[~2005-09-19 15:32 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 17:48 Mo' better modem support Takashi Iwai
2005-09-05 23:29 ` Sasha Khapyorsky
2005-09-06 13:29 ` Takashi Iwai
2005-09-07 16:03 ` Sasha Khapyorsky
2005-09-11 16:36 ` [alsa-lib patch] src/pcm/pcm_hooks.c : fix segfault then hooks list is empty Sasha Khapyorsky
2005-09-12 10:37 ` Takashi Iwai
2005-09-12 0:27 ` [conf patch] modem's pcm "two device" config [was: Re: Mo' better modem support] Sasha Khapyorsky
2005-09-12 10:38 ` Takashi Iwai
2005-09-12 17:49 ` Takashi Iwai
2005-09-12 22:10 ` Sasha Khapyorsky
2005-09-13 9:34 ` Takashi Iwai
2005-09-13 14:35 ` Sasha Khapyorsky
2005-09-13 12:43 ` Takashi Iwai
2005-09-13 15:36 ` Sasha Khapyorsky
2005-09-13 17:27 ` Sasha Khapyorsky
2005-09-13 0:45 ` [patch] no templated index for mc97 controls Sasha Khapyorsky
2005-09-13 1:06 ` [patch] no templated index for si3036 modem controls Sasha Khapyorsky
2005-09-13 10:24 ` [patch] no templated index for mc97 controls Takashi Iwai
2005-09-12 17:05 ` [conf patch] modem config for HDA-Intel Sasha Khapyorsky
2005-09-12 15:08 ` Takashi Iwai
2005-09-13 0:18 ` [patch] "empty" generic mfg-only codec Sasha Khapyorsky
2005-09-13 10:26 ` Takashi Iwai
2005-09-06 8:37 ` Mo' better modem support Raymond
2005-09-06 14:29 ` Sasha Khapyorsky
2005-09-06 13:19 ` Raymond
2005-09-06 20:43 ` Sasha Khapyorsky
2005-09-07 0:42 ` Raymond
2005-09-07 6:44 ` Philipp Matthias Hahn
2005-09-07 10:05 ` Raymond
2005-09-07 13:15 ` Philipp Matthias Hahn
2005-09-07 17:16 ` Sasha Khapyorsky
2005-09-08 16:10 ` Raymond
2005-09-07 16:10 ` Sasha Khapyorsky
2005-09-09 15:36 ` Raymond
2005-09-10 14:49 ` Sasha Khapyorsky
2005-09-07 16:33 ` Sasha Khapyorsky
2005-09-09 16:17 ` Raymond
2005-09-11 12:45 ` Philipp Matthias Hahn
2005-09-12 16:36 ` Raymond
2005-09-13 0:09 ` au88x0 modem [was: Re: Mo' better modem support] Sasha Khapyorsky
2005-09-13 8:55 ` Philipp Matthias Hahn
2005-09-13 17:35 ` Re: au88x0 modem Sasha Khapyorsky
2005-09-13 17:49 ` Philipp Matthias Hahn
2005-09-13 21:44 ` Sasha Khapyorsky
2005-09-14 7:02 ` Philipp Matthias Hahn
2005-09-14 9:47 ` [Openvortex-dev] " Maarten Vanraes
2005-09-14 12:47 ` Raymond
2005-09-14 21:03 ` Sasha Khapyorsky
2005-09-15 7:25 ` Philipp Matthias Hahn
2005-09-14 8:06 ` Raymond
2005-09-14 20:56 ` Sasha Khapyorsky
2005-09-15 9:11 ` Philipp Matthias Hahn
2005-09-15 9:21 ` Philipp Matthias Hahn
2005-09-15 11:10 ` Raymond
2005-09-15 14:35 ` Sasha Khapyorsky
2005-09-15 15:34 ` Raymond
2005-09-15 21:25 ` Alien
2005-09-16 2:17 ` Raymond
2005-09-16 2:26 ` Lee Revell
2005-09-16 18:05 ` Sasha Khapyorsky
2005-09-15 20:43 ` Sasha Khapyorsky
2005-09-16 4:33 ` Raymond
2005-09-16 7:53 ` Philipp Matthias Hahn
2005-09-16 9:24 ` Raymond
2005-09-16 8:21 ` Raymond
2005-09-16 18:20 ` Sasha Khapyorsky
2005-09-16 8:46 ` Philipp Matthias Hahn
2005-09-16 8:55 ` Raymond
2005-09-16 10:36 ` Philipp Matthias Hahn
2005-09-16 12:04 ` Raymond
2005-09-16 14:42 ` Philipp Matthias Hahn
2005-09-16 14:49 ` Philipp Matthias Hahn
2005-09-16 18:47 ` Sasha Khapyorsky
2005-09-16 18:25 ` Sasha Khapyorsky
2005-09-19 15:00 ` Philipp Matthias Hahn
2005-09-19 15:32 ` Raymond [this message]
2005-09-20 13:21 ` Philipp Matthias Hahn
2005-09-21 22:12 ` Sasha Khapyorsky
2005-09-21 22:03 ` Sasha Khapyorsky
2005-09-22 6:24 ` Philipp Matthias Hahn
2005-09-22 20:19 ` Sasha Khapyorsky
2005-09-16 14:09 ` Raymond
2005-09-16 21:34 ` Manuel Jander
2005-09-17 3:52 ` Raymond
2005-09-13 9:12 ` au88x0 modem [was: Re: Mo' better modem support] Raymond
2005-09-13 18:40 ` au88x0 modem Sasha Khapyorsky
2005-09-14 18:07 ` au88x0 modem [was: Re: Mo' better modem support] Philipp Matthias Hahn
2005-09-13 9:22 ` Mo' better modem support Philipp Matthias Hahn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=432EDA22.3060707@netvigator.com \
--to=rayau@netvigator.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=openvortex-dev@nongnu.org \
--cc=pmhahn@titan.lahn.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.