Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* How to set idle S/PDIF sample rate?
@ 2008-02-23  3:34 Matt Whitlock
  2008-02-25 11:16 ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Matt Whitlock @ 2008-02-23  3:34 UTC (permalink / raw)
  To: alsa-devel

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.

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <mailman.2237.1204248430.2095.alsa-devel@alsa-project.org>]

end of thread, other threads:[~2008-02-29  8:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox