All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Single process freeze when opening capture device
@ 2003-05-29 11:53 Jaroslav Kysela
  2003-05-29 12:38 ` hdsp9652+alsamixer -> kernel panic d
  0 siblings, 1 reply; 18+ messages in thread
From: Jaroslav Kysela @ 2003-05-29 11:53 UTC (permalink / raw)
  To: Abramo Bagnara; +Cc: Alsa dev List

On Thu, 29 May 2003, Abramo Bagnara wrote:

> What about a "dir" field in common section of pcm configuration?
> 
>    dir STR	# PCM allowed directions "playback", "capture", "both" (default)

I'd like to solve the problem with same names, but different 
configurations for streams.

I have an idea like:

pcm.name {
	... global configuration ...
	playback {
		... playback configuration ...
	}
	capture {
		... capture configuration ...
	}
}

Also, we have copy of configuration for each open which is used for 
run-time evaluation. I think that we may pass from the open code some more 
information and use some {} region as data caching:

private {	# reserved for internal data only, warn and ignore if user defines it
	direction playback
	ctl_cache_handle 0x%p		# cache ctl handle for runtime evaluation
	... etc, etc ...
}

We may add condition (if - else) evaluation functions to runtime parsing 
which can test the contents of private variables. Now, we have same driver 
with different chip revisions which add/remove some features (mainly 
controls) and we need to test them to behave correctly.

Also, the first proposal requires to change all plugins, the later will 
rewrite the configuration at run-time, so no changes are required for 
plugins.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

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

end of thread, other threads:[~2003-06-02 11:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200305291709.h4TH9WqU004638@klingt.org>
2003-05-29 17:22 ` hdsp9652+alsamixer -> kernel panic d
2003-05-29 17:34   ` Paul Davis
2003-05-30 14:10     ` hdsp9652 (kind of) working d
2003-05-30 14:30       ` Paul Davis
2003-05-29 11:53 Single process freeze when opening capture device Jaroslav Kysela
2003-05-29 12:38 ` hdsp9652+alsamixer -> kernel panic d
2003-05-29 12:59   ` Paul Davis
2003-05-29 14:14     ` d
2003-05-29 15:32       ` Paul Davis
2003-05-29 15:57         ` Kai Vehmanen
2003-05-29 16:27           ` Paul Davis
2003-05-29 16:46             ` d
2003-05-29 17:14               ` Paul Davis
2003-05-31 11:15             ` Kai Vehmanen
2003-05-31 11:30               ` Jaroslav Kysela
2003-06-02 11:02               ` Takashi Iwai
2003-06-02 11:19                 ` Kai Vehmanen
2003-05-29 17:27         ` Jaroslav Kysela
2003-05-29 17:44           ` Paul Davis

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.