openvortex-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openvortex-dev] Re: au88x0 modem


From: Sasha Khapyorsky
Subject: [Openvortex-dev] Re: au88x0 modem
Date: Wed, 14 Sep 2005 23:56:08 +0300
User-agent: Mutt/1.5.10i

On 16:06 Wed 14 Sep     , Raymond wrote:
> 
> #define VORTEX_CODEC_WRITE    0x00800000
> #define VORTEX_CODEC_ADDSHIFT         16
> 
> (0x80* 1) << VORTEX_CODEC_ADDSHIFT)  is equal to  VORTEX_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.

> 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).

> au8810.h
> 
> #define VORTEX_MODEM_CTRL     0x291ac

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).

> Make sure you have a BACKUP of all your data before you peform testing
> on the modem.

Dear testers, it is good idea.

Sasha.

Attachment: 2codec_read-2.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]