From: "Joachim Deguara" <joachim.deguara@amd.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: HDA buffer alignment
Date: Fri, 16 Mar 2007 14:21:34 +0100 [thread overview]
Message-ID: <45FA99DE.2060909@amd.com> (raw)
In-Reply-To: <s5hejnpwg86.wl%tiwai@suse.de>
"Takashi Iwai" <tiwai@suse.de> wrote on 13:00 16/03/2007 +0100 :
> At Fri, 16 Mar 2007 12:54:02 +0100,
> Joachim Deguara wrote:
>> >From the HDA spec it appears that the buffers written to the BDL and
>> sent to a codec must be 128 byte aligned (section 4.5.1). The alignment
>> was not happening especially when playing 6 channels. This patch set
>> the alignment of buffers and periods to 128 bytes.
>
> Good catch.
>
> The changes look good to me, but please fold lines to fit within 80
> chars. Also, please give a sign-off for the patch to apply to the
> upstream.
>From the HDA spec it appears that the buffers written to the BDL and
sent to a codec must be 128 byte aligned (section 4.5.1). The alignment
was not happening especially when playing 6 channels. This patch set
the alignment of buffers and periods to 128 bytes.
Signed-off-by: Joachim Deguara <joachim.deguara@amd.com>
diff -r f8284261b2be pci/hda/hda_intel.c
--- a/pci/hda/hda_intel.c Thu Mar 15 15:10:28 2007 +0100
+++ b/pci/hda/hda_intel.c Fri Mar 16 07:04:47 2007 +0100
@@ -1087,6 +1087,10 @@ static int azx_pcm_open(struct snd_pcm_s
runtime->hw.rates = hinfo->rates;
snd_pcm_limit_hw_rates(runtime);
snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
+ snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
+ 128);
+ snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
+ 128);
if ((err = hinfo->ops.open(hinfo, apcm->codec, substream)) < 0) {
azx_release_device(azx_dev);
mutex_unlock(&chip->open_mutex);
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2007-03-16 13:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 11:54 HDA buffer alignment Joachim Deguara
2007-03-16 12:00 ` Takashi Iwai
2007-03-16 13:21 ` Joachim Deguara [this message]
2007-03-16 14:02 ` 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=45FA99DE.2060909@amd.com \
--to=joachim.deguara@amd.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.