How to support several cards using the same driver?

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

 



Spam detection software, running on the system "alsa0.alsa-project.org", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
postmaster@xxxxxxxxxxxxxxxx for details.

Content preview:  Hi all, I have a sound card which has 8 DAC/ADC pairs,and
  each DAC/ADC pair can be seen as an independent sub-card. An 8-slot buffer
   struct is introduced to feed/get data to/from the 8 sub-cards.For example,
   if an application wants to play music using No.x(x,from 0 to 7) sub-card,the
   driver only need to copy the data from pcm layer to NO.x slot in the buffer
   struct and fill the other 7 slots with zero. The driver has been implemented
   now. The problem is how to expose the 8 sub-cards to application,So the application
   developer can see 8 independant device nodes under /dev.Those are /dev/dsp0,/dev/dsp1,...dev/dsp7(for
   oss emulation) or card0,card1...card7(for alsa).When one sub-card is opened
   the driver need to get the index of the sub-card,so it can feed/get data
  to/from the relevant slot.For example ,if an application opens /dev/dsp7,
  then the index "7" can be seen by the driver,and the driver know that No.7
   slot will be used. Have I made myself clear?Any suggestion is appreciated!
   [...] 

Content analysis details:   (12.8 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.8 MIME_BASE64_TEXT       RAW: Message text disguised using base64 encoding
  10 PRX_GB2312_CHARSET     GB2312 charset in Content-Type or Subject


--- Begin Message ---
Hi all,
   I have a sound card which has 8 DAC/ADC pairs,and each DAC/ADC pair can be seen as an independent sub-card.
An 8-slot buffer struct is introduced to feed/get data to/from the 8 sub-cards.For example, if an application wants to play music using
No.x(x,from 0 to 7) sub-card,the driver only need to copy the data from pcm layer to NO.x slot in the buffer struct and fill the other 7 slots with zero.
The driver has been implemented now.
   The problem is how to expose the 8 sub-cards to application,So the application developer can see 8 independant device nodes
under /dev.Those are /dev/dsp0,/dev/dsp1,...dev/dsp7(for oss emulation) or card0,card1...card7(for alsa).When one sub-card is opened 
the driver need to get the index of the sub-card,so it can feed/get data to/from the relevant slot.For example ,if an application opens /dev/dsp7,
then the index "7" can be seen by the driver,and the driver know that No.7 slot will be used.
   Have I made myself clear?Any suggestion is appreciated!
 
Best Regards
 
Cliff
 
.
 
 
_________________________________________________________________
多个邮箱同步管理,live mail客户端万人抢用中
http://get.live.cn/product/mail.html
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

--- End Message ---

[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