* Echoaudio driver, hint request @ 2004-11-08 21:46 Giuliano Pochini 2004-11-12 10:21 ` Takashi Iwai 0 siblings, 1 reply; 3+ messages in thread From: Giuliano Pochini @ 2004-11-08 21:46 UTC (permalink / raw) To: Alsa-devel My driver currently registers two pcm devices: pmc#0 for analog channels and pcm#1 for digital channels. Though the DSP interface does not make that distinction: for example the Gina24 has 2 analog and 8 digital input channels and they are numbered 16..25. It's also possible to use a substream made of all 10 channels at the same time. The question is: what's better, the current approach of keeping analog and digital channels on different pcm devices (quite messy at driver level), or should I put them toghether and write a proper .alsarc file, so the user can choose digital channels by name instead of by index ? -- Giuliano. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Echoaudio driver, hint request 2004-11-08 21:46 Echoaudio driver, hint request Giuliano Pochini @ 2004-11-12 10:21 ` Takashi Iwai 2004-11-16 18:25 ` Giuliano Pochini 0 siblings, 1 reply; 3+ messages in thread From: Takashi Iwai @ 2004-11-12 10:21 UTC (permalink / raw) To: Giuliano Pochini; +Cc: Alsa-devel At Mon, 8 Nov 2004 22:46:37 +0100, Giuliano Pochini wrote: > > My driver currently registers two pcm devices: pmc#0 for analog channels and > pcm#1 for digital channels. Though the DSP interface does not make that > distinction: for example the Gina24 has 2 analog and 8 digital input > channels and they are numbered 16..25. It's also possible to use a substream > made of all 10 channels at the same time. > > The question is: what's better, the current approach of keeping analog and > digital channels on different pcm devices (quite messy at driver level), or > should I put them toghether and write a proper .alsarc file, so the user can > choose digital channels by name instead of by index ? It's diffituly to tell which is definitely better. When someone wants to use OSS emulation for digital, it'd be nicer to have a distinct device, so that it may work with the kernel OSS emulation route. OTOH, from the ALSA perspective, it's no problem to have one stream with all channels. So, the question is the difficulty of coding. If the code wouldn't be too complicated, the separate devices are easier and more understandable for users. If the code matters, choose the one stream type like ice1712. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Echoaudio driver, hint request 2004-11-12 10:21 ` Takashi Iwai @ 2004-11-16 18:25 ` Giuliano Pochini 0 siblings, 0 replies; 3+ messages in thread From: Giuliano Pochini @ 2004-11-16 18:25 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel On Fri, 12 Nov 2004 11:21:37 +0100 Takashi Iwai <tiwai@suse.de> wrote: > > My driver currently registers two pcm devices: pmc#0 for analog channels and > > pcm#1 for digital channels. Though the DSP interface does not make that > > distinction: for example the Gina24 has 2 analog and 8 digital input > > channels and they are numbered 16..25. It's also possible to use a substream > > made of all 10 channels at the same time. > > > > The question is: what's better, the current approach of keeping analog and > > digital channels on different pcm devices (quite messy at driver level), or > > should I put them toghether and write a proper .alsarc file, so the user can > > choose digital channels by name instead of by index ? > > It's diffituly to tell which is definitely better. > > When someone wants to use OSS emulation for digital, it'd be nicer to > have a distinct device, so that it may work with the kernel OSS > emulation route. OTOH, from the ALSA perspective, it's no problem to > have one stream with all channels. > > So, the question is the difficulty of coding. If the code wouldn't be > too complicated, the separate devices are easier and more > understandable for users. If the code matters, choose the one stream > type like ice1712. No, it's not difficult. The driver uses separated devices since the first release. It's a bit ugly, though. There are two couples of almost identical pcm_open() functions and a couple of nested ifdef's. Btw, I'll keep the current solution because it appears cleaner at user level. -- Giuliano. ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-16 18:25 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-11-08 21:46 Echoaudio driver, hint request Giuliano Pochini 2004-11-12 10:21 ` Takashi Iwai 2004-11-16 18:25 ` Giuliano Pochini
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.