Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
To: alsa-devel@alsa-project.org
Subject: Plugin default and sw_params
Date: Wed, 26 Mar 2008 09:38:49 -0400	[thread overview]
Message-ID: <47EA51E9.6070007@savoirfairelinux.com> (raw)

Hi all,

I have some questions about the /default/ plugin. I am developping a 
softphone based on ALSA on Ubuntu 7.10.
I use read/write IO. When I open a device with the /plughw /plugin, 
quite everything works fine, the quality sound is good. But with the 
/default/ plugin or the /dmix/ plugin ( the user can choose one of them 
), I can't set my own hw parameters or sw parameters. Actually  I set my 
own value of period size, buffer size, start threshold, stop threshold, 
but when I check in /proc/asound/cardx/pcm0p/sub0/sw_params or 
/proc/asound/cardx/pcm0p/sub0/hw_params, the values are totally 
different. For instance, the start threshold is set to 1 even if I set 
it to period_size. As a result, I get crackling sound. I suspect this is 
due to buffer underrun. Maybe if I could change the start threshold or 
the period size, the sound would be better. So my question: is it 
possible to modify this values for /default/ plugin without changing the 
alsa config file ( asoundrc ) ?

Thank you very much

Manu

                 reply	other threads:[~2008-03-26 13:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=47EA51E9.6070007@savoirfairelinux.com \
    --to=emmanuel.milou@savoirfairelinux.com \
    --cc=alsa-devel@alsa-project.org \
    /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