How to support several sound cards using 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 one of the 8 sub-cards.For example,if
   an application wants to play muic using No.7 sub-card,the driver only need
   to copy the pcm data from PCM layer to No.7 slot and fill the other 7 slots
   with zero.The driver has been implemented. The problem is how to expose the
   8 sub-cards to application developers,so they can see 8 independent device
   nodesunder /dev?They should be /dev/dsp0,/dev/dsp1,.../dev/dsp7 and card0,card1,...card7.Also
   when a sub-card is opened(i.e. /dev/dsp7),the driver must know the sub-card's
   index ,here is 7,so it can choose a relevant slot to feed/get data. [...]
   

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 one of the 8 sub-cards.For example,if an application wants to play muic using No.7 sub-card,the driver only need to copy the pcm data from PCM layer to No.7 slot and fill the other 7 slots with zero.The driver has been implemented.  The problem is how to expose the 8 sub-cards to application developers,so they can see 8 independent device nodesunder /dev?They should be /dev/dsp0,/dev/dsp1,.../dev/dsp7 and card0,card1,...card7.Also when a sub-card is opened(i.e. /dev/dsp7),the driver must know the sub-card's index ,here is 7,so it can choose a relevant slot to feed/get data.
 
Any suggestion is appreciated!
 
Best Regards
 
Cliff
_________________________________________________________________
新年换新颜,快来妆扮自己的MSN给心仪的TA一个惊喜!
http://im.live.cn/emoticons/?ID=18
_______________________________________________
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