All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cruise X Overide <cruiseoveride@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: GPIO on envy24ht M-Audio 192
Date: Wed, 02 Aug 2006 13:29:39 -0400	[thread overview]
Message-ID: <1154539779.7149.7.camel@server> (raw)
In-Reply-To: <s5hslkfhypo.wl%tiwai@suse.de>

On Wed, 2006-08-02 at 18:46 +0200, Takashi Iwai wrote:
> At Wed, 02 Aug 2006 12:33:40 -0400,
> Cruise X Overide wrote:
> > 
> > On Wed, 2006-08-02 at 18:30 +0200, Takashi Iwai wrote:
> > > At Tue, 01 Aug 2006 13:45:36 -0400,
> > > Cruise X Overide wrote:
> > > > 
> > > > On Tue, 2006-08-01 at 18:08 +0200, Takashi Iwai wrote:
> > > > > At Mon, 31 Jul 2006 20:06:13 -0400,
> > > > > Cruise X Overide wrote:
> > > > > > 
> > > > > > Ok, i got the wiring between between the vt1724 and the 3 dacs (AKMs)
> > > > > > how do i code this into the driver, 
> > > > > > is there any example, i looked at juli.c and i couldnt understand the 
> > > > > > 
> > > > > > /* GPIO Pins */
> > > > > > 
> > > > > > i was told that i only need to implement add_controls and init for this
> > > > > > card?
> > > > > 
> > > > > There are different implementations with vt1724.
> > > > > revo.c, aureon.c, pontis.c, prodigy192.c and phase.c are vt1724-based
> > > > > boards using I2S transfer.  vt1720_mobo.c is for vt1724 with
> > > > > ac97-codec.
> > > > > 
> > > > > The GPIO is usually controlled via snd_ice1712_gpio_write_bits() and
> > > > > snd_ice1712_gpio_read().  See ice1712.h.
> > > > > 
> > > > > For AK codecs, there are some helper functions.  See
> > > > > snd_ak4xxx_private in ice1712.h, too.
> > > > > 
> > > > > 
> > > > > Takashi
> > > > 
> > > > after looking at the juli.c, raymond has explained to me the meaning of
> > > > the values under the /* GPIO Pins */
> > > > 
> > > > 
> > > > #define GPIO_ANAIN_MONITOR      (1<<13) 
> > > > 
> > > > i wanted to know wat the 13 means, and ray said it was the gpio pin.
> > > > where do i find a table of gpio description (eg. AMAIN_MONITOR) and
> > > > available definitions on the vt1724.
> > > 
> > > The GPIO pin assignment is the board specific implementation, so it's
> > > nowhere described in VT1724 database, of course.  (If you have a
> > > board, you can even trace the connection with loupe :)
> > > 
> > > 
> > > Takashi
> > 
> > im completely new to driver development.
> > how do i tell my (/linux/sound/pci/ice1712/ap192k.c) driver which gpio
> > pins connect to wat? i have all the wiring from ak4385 and ak4114 to the
> > envy24ht, as well as the data sheets, can someone point me in the
> > direction i have to take to get this driver working? and please for god
> > sake dont tell me to go and read, if u know the answer, dont be shy,
> 
> One of the following ways:
> 
> 1. Get a datasheet of your board (not vt1724) from the hardware
>    vendor.  There must be a diagram or a table of pin connection
>    there.
> 
> 2. Look close the board design and trace the pin connections between
>    vt1724 and codec chips.  The pin numbers are found in datasheet of
>    vt1724 and each codec chip.
> 
> 3. Trial-and-error the different pin numbers, assuming that the board
>    is almost compatible with other models.
> 
> But, before going there, you have to know what kind of data transfer
> is used - whether the normal i2c connection (via snd_vt1724_write_i2c)
> or over own transfer protocol with GPIO.  In the latter case, then
> you'd need to know which transfer mode, SPI or I2C, and whether
> CIF-mode is not, etc.
> 
> So, it's basically not how well you are skilled about driver
> programming but how well you know about the board implementation.
> 
> 
> Takashi

1,2,3 done, 
we're using i2c.


i have 
envy24ht->ak4358
envy24ht->ak4114

all gpio stuff on the envy have been mapped onto the aks

now wat



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  reply	other threads:[~2006-08-02 17:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  0:06 GPIO on envy24ht M-Audio 192 Cruise X Overide
2006-08-01 16:08 ` Takashi Iwai
2006-08-01 17:45   ` Cruise X Overide
2006-08-02 16:30     ` Takashi Iwai
2006-08-02 16:33       ` Cruise X Overide
2006-08-02 16:46         ` Takashi Iwai
2006-08-02 17:29           ` Cruise X Overide [this message]
2006-08-02 17:39             ` Takashi Iwai
2006-08-02 17:45               ` Lee Revell
2006-08-02 18:32                 ` Takashi Iwai
2006-08-02 19:37               ` Cruise X Overide
2006-08-02 19:50                 ` Liam Girdwood
2006-08-03 10:26                 ` Takashi Iwai
2006-08-03 17:03                   ` Cruise X Overide
2006-08-03 17:14                     ` Takashi Iwai
2006-08-03 17:43                       ` Takashi Iwai
2006-08-05 21:16                         ` Cruise X Overide
2006-08-07 18:23                           ` Takashi Iwai

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=1154539779.7149.7.camel@server \
    --to=cruiseoveride@gmail.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.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.