alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: saeed bishara <saeed.bishara@gmail.com>
To: apatard@mandriva.com
Cc: alsa-devel@alsa-project.org, nico@fluxnic.net,
	broonie@opensource.wolfsonmicro.com, saeed@marvell.com,
	tbm@cyrius.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [patch 5/6] orion/kirkwood: Add i2s support
Date: Mon, 17 May 2010 08:23:31 +0300	[thread overview]
Message-ID: <AANLkTim31zMgvsSdcidDvmD-Q3124w48PVxMnT3nL5O6@mail.gmail.com> (raw)
In-Reply-To: <20100515153130.937921459@mandriva.com>

> +       /* First disable and clear windows */
> +       for (win_num = 0; win_num < ORION_MAX_AUDIO_WIN; win_num++) {
> +               writel(0, base + ORION_AUDIO_WIN_CTRL_REG(win_num));
> +               writel(0, base + ORION_AUDIO_WIN_BASE_REG(win_num));
> +       }
> +
> +       /* Setup windows for DDR */
> +       for (win_num = 0; win_num < ORION_MAX_AUDIO_WIN; win_num++) {
> +               /* We will set the Window to DRAM_CS1 in default */
> +               struct mbus_dram_window *cs = &dram->cs[1];
> +               writel(cs->base & 0xffff0000,
> +                      base + ORION_AUDIO_WIN_BASE_REG(win_num));
> +               writel(((cs->size - 1) & 0xffff0000) |
> +                      (cs->mbus_attr << 8) |
> +                      (dram->mbus_dram_target_id << 4) | 1,
> +                       base + ORION_AUDIO_WIN_CTRL_REG(win_num));
> +       }
> +}
The i2s controller has one window for playback, so that window must be
set according to the current dma address, i.e, if the dma address
falls into csX then the window should be configured to csX. same for
record.
sorry for the late comment.
saeed
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2010-05-17  5:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-15 15:29 [patch 0/6] kirkwood openrd client audio support - v2 apatard
2010-05-15 15:29 ` [patch 1/6] orion/kirkwood: add audio functions apatard
2010-05-16 17:35   ` Mark Brown
2010-05-15 15:30 ` [patch 2/6] openrd-client: initialise audio apatard
2010-05-16 17:36   ` Mark Brown
2010-05-15 15:30 ` [patch 3/6] ASoC: Add SOC_DOUBLE_R_SX_TLV control apatard
2010-05-16 17:09   ` Mark Brown
2010-05-15 15:30 ` [patch 4/6] cs42l51: add asoc driver apatard
2010-05-16 17:27   ` Mark Brown
2010-05-15 15:30 ` [patch 5/6] orion/kirkwood: Add i2s support apatard
2010-05-16 17:31   ` Mark Brown
2010-05-17  5:23   ` saeed bishara [this message]
2010-05-15 15:30 ` [patch 6/6] kirkwood: Add audio support to openrd client platforms apatard
2010-05-15 16:52   ` [patch 6/6] kirkwood: Add audio support to openrd?client platforms Alexander Clouter
2010-05-16 17:32   ` [patch 6/6] kirkwood: Add audio support to openrd client platforms Mark Brown

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=AANLkTim31zMgvsSdcidDvmD-Q3124w48PVxMnT3nL5O6@mail.gmail.com \
    --to=saeed.bishara@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=apatard@mandriva.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=nico@fluxnic.net \
    --cc=saeed@marvell.com \
    --cc=tbm@cyrius.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).