Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Whitlock <matt@whitlock.name>
To: alsa-devel@alsa-project.org
Subject: How to set idle S/PDIF sample rate?
Date: Fri, 22 Feb 2008 22:34:22 -0500	[thread overview]
Message-ID: <200802222234.22975.matt@whitlock.name> (raw)

When no programs have the sound hardware open, ALSA drives my Intel HDA's S/PDIF output with silence at 48000 Hz.  How would I change this default so that the idle sample rate is 44100 Hz?  The reason I ask is that my stereo receiver misses the first second or so of each song that I play as it switches from 48000 Hz to 44100 Hz.  I understand that by switching the idle sample rate to 44100 Hz, I would have the same problem whenever playing a DVD, but I can much more happily accept the switching delay when starting DVDs than I can when starting music playback.

I've tried everything, including replacing /usr/share/alsa/alsa.conf with a single PCM definition that outputs straight to hardware with "rate 44100", but still, whenever nothing is accessing the sound hardware, ALSA reverts to 48000-Hz silence.  There must be a way to influence that, right?

Alternatively, if ALSA would simply not output anything over S/PDIF when idle, my receiver could just stay at 44100 Hz, albeit unlocked since there would be no data stream at all.  So this is also an acceptable solution to me, but I cannot find any way to make ALSA totally shut up when idle.  It always wants to output silence.  Interestingly, if I mute the IEC958 playback channel and then unmute it, my receiver reports no signal at all until I play a sound, and then after the sound finishes, my receiver reports that it is locked onto PCM at 48000 Hz.  Seems kind of like a bug, doesn't it?

Thanks to anyone who can lend some assistance.

             reply	other threads:[~2008-02-23  3:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23  3:34 Matt Whitlock [this message]
2008-02-25 11:16 ` How to set idle S/PDIF sample rate? 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
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=200802222234.22975.matt@whitlock.name \
    --to=matt@whitlock.name \
    --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