Lines Matching defs:snd_korg1212

302 struct snd_korg1212 {  struct
303 struct snd_card *card;
304 struct pci_dev *pci;
305 struct snd_pcm *pcm;
306 int irq;
308 spinlock_t lock;
309 struct mutex open_mutex;
311 struct timer_list timer; /* timer callback for checking ack of stop request */
312 int stop_pending_cnt; /* counter for stop pending check */
314 wait_queue_head_t wait;
316 unsigned long iomem;
317 unsigned long ioport;
318 unsigned long iomem2;
319 unsigned long irqcount;
320 unsigned long inIRQ;
321 void __iomem *iobase;
323 struct snd_dma_buffer *dma_dsp;
324 struct snd_dma_buffer *dma_play;
325 struct snd_dma_buffer *dma_rec;
326 struct snd_dma_buffer *dma_shared;
328 u32 DataBufsSize;
330 struct KorgAudioBuffer * playDataBufsPtr;
331 struct KorgAudioBuffer * recordDataBufsPtr;
333 struct KorgSharedBuffer * sharedBufferPtr;
335 u32 RecDataPhy;
336 u32 PlayDataPhy;
337 unsigned long sharedBufferPhy;
338 u32 VolumeTablePhy;
339 u32 RoutingTablePhy;
340 u32 AdatTimeCodePhy;
342 u32 __iomem * statusRegPtr; // address of the interrupt status/control register
343 u32 __iomem * outDoorbellPtr; // address of the host->card doorbell register
344 u32 __iomem * inDoorbellPtr; // address of the card->host doorbell register
345 u32 __iomem * mailbox0Ptr; // address of mailbox 0 on the card
346 u32 __iomem * mailbox1Ptr; // address of mailbox 1 on the card
347 u32 __iomem * mailbox2Ptr; // address of mailbox 2 on the card
348 u32 __iomem * mailbox3Ptr; // address of mailbox 3 on the card
349 u32 __iomem * controlRegPtr; // address of the EEPROM, PCI, I/O, Init ctrl reg
350 u16 __iomem * sensRegPtr; // address of the sensitivity setting register
351 u32 __iomem * idRegPtr; // address of the device and vendor ID registers
353 size_t periodsize;
354 int channels;
355 int currentBuffer;
357 struct snd_pcm_substream *playback_substream;
358 struct snd_pcm_substream *capture_substream;
360 pid_t capture_pid;
361 pid_t playback_pid;
363 enum CardState cardState;
364 int running;
365 int idleMonitorOn; // indicates whether the card is in idle monitor mode.
366 u32 cmdRetryCount; // tracks how many times we have retried sending to the card.
368 enum ClockSourceIndex clkSrcRate; // sample rate and clock source
370 enum ClockSourceType clkSource; // clock source
371 int clkRate; // clock rate
373 int volumePhase[kAudioChannels];
375 u16 leftADCInSens; // ADC left channel input sensitivity
376 u16 rightADCInSens; // ADC right channel input sensitivity
378 int opencnt; // Open/Close count
379 int setcnt; // SetupForPlay count
380 int playcnt; // TriggerPlay count
381 int errorcnt; // Error Count
405 static const struct pci_device_id snd_korg1212_ids[] = { argument