Re: [PATCH] control, hw, rawmidi: accept control device node as card identifier when opening

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 May 2009, Lennart Poettering wrote:

> With my original patch there are no superfluous opens.

If application uses more *open() calls from alsa-lib for one card (for 
example to open ctl handle and pcm handle), it's better to obtain card 
index at first, because each conversion requires one or more (card id) 
open/close sequence for control device to get card_info. Providing direct 
card index eliminates this conversion. It's just suggested optimization.

 					Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux