Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* pcm hw parameters?
@ 2006-03-24 13:19 Johannes Berg
  2006-03-27 15:37 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2006-03-24 13:19 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Hi,

Quick question: When are the pcm hardware parameters surfaced to
userspace? Are those the ones I register in snd_pcm_new?

Thing is -- I have the problem that in theory, my codec can support
anything from 8KHz to 96KHz but when turning on digital output, it needs
to be restricted to the ones the digital output is ok with.

Of course I can trivially forbid turning on the digital out when a wrong
stream is open, but what about the other way around? When digital out is
turned on, and I forbid opening the stream when say 8KHz is selected,
does it screw over userspace and fail, or can I tell it what else to
use?

Similar things happen when you have digital input and it clocks both out
and in -- then you have to output the same bitrate as the input is
coming in at...

Thanks,
johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-28 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-24 13:19 pcm hw parameters? Johannes Berg
2006-03-27 15:37 ` Takashi Iwai
2006-03-28 12:11   ` Johannes Berg

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