From: Mark Knecht <markknecht@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Maintaining sound card at a specific frequency
Date: Tue, 18 Jan 2005 09:12:44 -0800 [thread overview]
Message-ID: <5bdc1c8b050118091257553af5@mail.gmail.com> (raw)
In-Reply-To: <s5h651uwtp9.wl@alsa2.suse.de>
On Tue, 18 Jan 2005 18:08:50 +0100, Takashi Iwai <tiwai@suse.de> wrote:
> At Tue, 18 Jan 2005 09:01:21 -0800,
> Mark Knecht wrote:
> >
> > On Tue, 18 Jan 2005 17:48:30 +0100, Takashi Iwai <tiwai@suse.de> wrote:
> > > At Tue, 18 Jan 2005 16:50:36 +0100 (CET),
> > > Giuliano Pochini wrote:
> > > >
> > > >
> > > > On 17-Jan-2005 Patrick Shirkey wrote:
> > > >
> > > > >> I guess I'm wondering if there isn't some .asoundrc magic that could
> > > > >> be done in my Linux account on this machine that would tell all
> > > > >> applications (other than Jack for now) to use some virtual device that
> > > > >> handles all frequencies. If that virtual device was the default and
> > > > >> the resampling (for Mozilla/games/whatever) was done in software and
> > > > >> the sound cards frequency was never changed then I think things would
> > > > >> work much better.
> > > > >>
> > > > >
> > > > > I think you can use default as the device name in .asoundrc and it
> > > > > will be used as the default device for all apps.
> > > >
> > > > IMHO we should think on a good solution for this problem. Some
> > > > cards have many channels/voices but the sample rate is common
> > > > for all of them. Currently the only clean way to manage it is
> > > > a control that locks the sample rate at a given frequency, but
> > > > it isn't a nice solution because it requires explicit user
> > > > intervention. In the echoaudio driver I implemented a kludge
> > > > that automatically locks the sample frequency in order to avoid
> > > > unwanted rate changes.
> > >
> > > You can add a control to lock the sample rate (e.g. ICE1712).
> > >
> > >
> > > Takashi
> > >
> >
> > That could be a good solution if it would also set the initial
> > frequency of the card.
>
> The system clock of HDSP can be set via control API. So, it works
> like:
> amixer cset iface=PCM,name="Sample Clock Source" "Internal 48.0 kHz"
>
> If this works like you want, only the locking is missing...
>
Unfortunately it set it to Autosync, not 48K. I tried 44.1K also but
it jsut stays at Autosync. Here's what I see in the terminal:
[mark@Godzilla mark]$ amixer cset iface=PCM,name="Sample Clock Source"
"Internal 48.0 kHz"
numid=11,iface=PCM,name='Sample Clock Source'
; type=ENUMERATED,access=rw---,values=1,items=7
; Item #0 'AutoSync'
; Item #1 'Internal 32.0 kHz'
; Item #2 'Internal 44.1 kHz'
; Item #3 'Internal 48.0 kHz'
; Item #4 'Internal 64.0 kHz'
; Item #5 'Internal 88.2 kHz'
; Item #6 'Internal 96.0 kHz'
: values=0
[mark@Godzilla mark]$
Maybe a different form of the command somehow?
- Mark
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next prev parent reply other threads:[~2005-01-18 17:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 21:05 Maintaining sound card at a specific frequency Mark Knecht
2005-01-17 5:14 ` Patrick Shirkey
2005-01-18 15:50 ` Giuliano Pochini
2005-01-18 16:48 ` Takashi Iwai
2005-01-18 17:01 ` Mark Knecht
2005-01-18 17:08 ` Takashi Iwai
2005-01-18 17:12 ` Mark Knecht [this message]
2005-01-18 17:15 ` Takashi Iwai
2005-01-18 17:43 ` Mark Knecht
2005-01-18 17:48 ` Takashi Iwai
2005-01-18 18:04 ` Mark Knecht
2005-01-18 17:31 ` Giuliano Pochini
2005-01-18 17:40 ` Takashi Iwai
2005-01-19 10:07 ` Giuliano Pochini
2005-01-18 17:45 ` Mark Knecht
2005-01-18 19:51 ` Takashi Iwai
2005-01-18 21:22 ` Mark Knecht
2005-01-18 21:30 ` Lee Revell
2005-01-18 23:16 ` Mark Knecht
2005-01-19 19:59 ` Mark Knecht
2005-01-19 9:07 ` Clemens Ladisch
2005-01-19 10:14 ` Takashi Iwai
2005-01-19 19:49 ` Mark Knecht
2005-01-19 21:09 ` Russ Pridemore
2005-01-19 23:08 ` Mark Knecht
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=5bdc1c8b050118091257553af5@mail.gmail.com \
--to=markknecht@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.