Lines Matching defs:snd_korg1212

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