Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Whitlock <matt@whitlock.name>
To: Pavel Hofman <pavel.hofman@insite.cz>
Cc: alsa-devel@alsa-project.org
Subject: Re: How to set idle S/PDIF sample rate?
Date: Wed, 27 Feb 2008 15:26:36 -0500	[thread overview]
Message-ID: <200802271526.36370.matt@whitlock.name> (raw)
In-Reply-To: <47C57379.3060807@insite.cz>

I tried forcing the 'rate' parameter of 'pcm.!default' to 44100, and while that does cause all my dmixed audio to be at 44100 Hz, still, when all playback streams have been closed, the hardware reverts back to silence at 48000 Hz.

I suppose I could write a little program that would simply open the default PCM and then go to sleep indefinitely.  That would hold the hardware at 44100 Hz, and any music would simply be dmixed in.  The downside would be that I would be unable to play DVD audio at 48000 Hz, and I would definitely be unable to stream AC3 or DTS out through S/PDIF.


On Wednesday, 27 February 2008 9:28:09 am Pavel Hofman wrote:
> Matt Whitlock wrote:
> > 
> > Can I assume at this point that there is no way to set the idle S/PDIF output sample rate to 44100 Hz?  That is my original question.
> 
> I have no experience with HDA. In ICE1712/24 the spdif-out outputs 
> signal corresponding to the current sampling frequency the chip is 
> running on, containing no data. When playing sound, the chip clock 
> switches to appropriate frequency, and spdif outputs data of this 
> frequency. I.e. if the "parking, idle, default" frequency is 44.1kHz, it 
> continuously outputs 44.1kHz SPDIF signal.
> 
> I guess if you could force HDA to default to 44.1kHz (no idea whether it 
> is feasible), that would be it.
> 
> Pavel.
> 
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

  reply	other threads:[~2008-02-27 20:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23  3:34 How to set idle S/PDIF sample rate? Matt Whitlock
2008-02-25 11:16 ` Takashi Iwai
2008-02-25 19:03   ` Matt Whitlock
2008-02-25 19:51     ` Pavel Hofman
2008-02-25 20:40       ` Matt Whitlock
2008-02-26 14:01     ` Takashi Iwai
2008-02-26 22:25       ` Matt Whitlock
2008-02-27 14:28         ` Pavel Hofman
2008-02-27 20:26           ` Matt Whitlock [this message]
2008-02-28 11:43         ` Takashi Iwai
2008-02-28 21:12           ` Matt Whitlock
     [not found] <mailman.2237.1204248430.2095.alsa-devel@alsa-project.org>
2008-02-29  6:02 ` Demian Martin
2008-02-29  8:33   ` Matt Whitlock

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=200802271526.36370.matt@whitlock.name \
    --to=matt@whitlock.name \
    --cc=alsa-devel@alsa-project.org \
    --cc=pavel.hofman@insite.cz \
    /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