Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5


Discussion Groups

Discussion Groups | TMS320C55x | line input and mic input simulataniously???

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

line input and mic input simulataniously??? - sunil - Mar 28 8:15:48 2006



hai...
   
   how can we use both LINE INPUT and MIC INPUT simulataniously in one programme?????
   
  i know the usage of these two inputs differently....
   
  means line input have one type of controling regesters and micinput have another type of
controling regesters
   
  this is the way for LINE INPUT
   
  DSK5510_AIC23_Config config = { \
    0x0017,  /* 0 DSK5510_AIC23_LEFTINVOL  Left line input channel volume */ \
    0x0017,  /* 1 DSK5510_AIC23_RIGHTINVOL Right line input channel volume */\
    0x01f9,  /* 2 DSK5510_AIC23_LEFTHPVOL  Left channel headphone volume */  \
    0x01f9,  /* 3 DSK5510_AIC23_RIGHTHPVOL Right channel headphone volume */ \
    0x0011,  /* 4 DSK5510_AIC23_ANAPATH    Analog audio path control */      \
    0x0000,  /* 5 DSK5510_AIC23_DIGPATH    Digital audio path control */     \
    0x0000,  /* 6 DSK5510_AIC23_POWERDOWN  Power down control */             \
    0x0043,  /* 7 DSK5510_AIC23_DIGIF      Digital audio interface format */ \
    0x0081,  /* 8 DSK5510_AIC23_SAMPLERATE Sample rate control */            \
    0x0001   /* 9 DSK5510_AIC23_DIGACT     Digital interface activation */   \
};
   
  and instrustions are
   
   hCodec = DSK5510_AIC23_openCodec(0, &config);  
  while (!DSK5510_AIC23_read16(hCodec, &sample1));
                
                input = sample1;

             while (!DSK5510_AIC23_write16(hCodec, input));

  this is the way for MIC INPUT
  DSK5510_AIC23_Config config1 = { \
    0x0097,  /* 0 DSK5510_AIC23_LEFTINVOL  Left line input channel volume */ \
    0x0097,  /* 1 DSK5510_AIC23_RIGHTINVOL Right line input channel volume */\
    0x01f9,  /* 2 DSK5510_AIC23_LEFTHPVOL  Left channel headphone volume */  \
    0x01f9,  /* 3 DSK5510_AIC23_RIGHTHPVOL Right channel headphone volume */ \
    0x0014,  /* 4 DSK5510_AIC23_ANAPATH    Analog audio path control */      \
    0x0000,  /* 5 DSK5510_AIC23_DIGPATH    Digital audio path control */     \
    0x0001,  /* 6 DSK5510_AIC23_POWERDOWN  Power down control */             \
    0x0043,  /* 7 DSK5510_AIC23_DIGIF      Digital audio interface format */ \
    0x0081,  /* 8 DSK5510_AIC23_SAMPLERATE Sample rate control */            \
    0x0001   /* 9 DSK5510_AIC23_DIGACT     Digital interface activation */   \
};
   
  instructions are same as above...
   
  hCodec1 = DSK5510_AIC23_openCodec(0, &config1); 
   
  this is ok..we can use these two like this in differnet programmes...but i want to use these
two inputs in one programme....
   
  while implementing........
   
   hCodec1 = DSK5510_AIC23_openCodec(0, &config1); 
     hCodec = DSK5510_AIC23_openCodec(0, &config);  
   
  hcodec1 is for mic...hcodec is for line.....which ever is last instruction..then processor
takes only that input...
   
  inthis case if we give inputs from two signal generators to both line and mic then it will
take only line input....
   
  plz...solve this problem...i want to use both inputs simulataniously...
   
  sorry for big mail....i want to show u the clear picture
   
  regards
   
  sunil

______________________________
New Year Gift for Members of DSPRelated.com.  Details here.


(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )