Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Giuliano Pochini <pochini@shiny.it>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: Interrupt handler
Date: 19 Mar 2003 01:15:34 +0000	[thread overview]
Message-ID: <1048036537.7424.17.camel@Jay> (raw)
In-Reply-To: <s5hisugu7es.wl@alsa2.suse.de>

On mar, 2003-03-18 at 13:32, Takashi Iwai wrote:
> also, don't forget to unlock the spinlock during calling
> snd_pcm_period_elapsed() if a single lock is used for callbacks.

Yes, I'm following the tutorial and it's clear about that.

Now I have another weird problem. This is a peice of my hw_param
function:

static int pcm_hw_params(){
  printk("pcm_hw_params bytes=%d\n",params_buffer_bytes(hw_params));
  for (per=0; per<params_periods(hw_params); per++) {
    printk("pcm_hw_params Add%d (%x - %d)\n",
            per,
            sgbuf->table[per].addr,
            params_period_bytes(hw_params));
  }
}

Mar 19 00:48:33 localhost kernel: pcm_hw_params bytes=44100
Mar 19 00:48:33 localhost kernel: pcm_hw_params Add0 (3a1d000 - 11026)
Mar 19 00:48:33 localhost kernel: pcm_hw_params Add1 (3a1c000 - 11026)
Mar 19 00:48:33 localhost kernel: pcm_hw_params Add2 (3a1b000 - 11026)
Mar 19 00:48:33 localhost kernel: pcm_hw_params OK

Look at the physical addresses. They're spaced by 4KB, but the periods
are 11KB long and 11026*3<44100 !! You can imagine how beatiful sound I
get... What am I missing ?


Bye.




-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en

  reply	other threads:[~2003-03-19  1:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-17  4:47 Sound-card question: HELP William W. Austin
2003-03-17  9:17 ` Interrupt handler Giuliano Pochini
2003-03-17 12:49   ` Takashi Iwai
2003-03-17 14:22     ` Giuliano Pochini
2003-03-18 13:32       ` Takashi Iwai
2003-03-19  1:15         ` Giuliano Pochini [this message]
2003-03-19  9:38           ` Giuliano Pochini
2003-03-17 16:28 ` Sound-card question: HELP Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2003-03-15 21:38 Interrupt handler Giuliano Pochini

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=1048036537.7424.17.camel@Jay \
    --to=pochini@shiny.it \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox