• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/oss/

Lines Matching refs:aport

1624 	vwsnd_port_t *aport = rport ? rport : wport;
1630 ASSERT(aport != NULL);
1631 if (aport->swbuf != NULL)
1633 switch (aport->sw_samplefmt) {
1664 aport->sample_size = sample_size;
1665 aport->zero_word = zero_word;
1666 aport->frame_size = aport->sw_channels * aport->sample_size;
1667 aport->hw_fragshift = aport->sw_fragshift - aport->sw_subdivshift;
1668 aport->hw_fragsize = 1 << aport->hw_fragshift;
1669 aport->hw_fragcount = aport->sw_fragcount << aport->sw_subdivshift;
1670 ASSERT(aport->hw_fragsize >= MIN_FRAGSIZE);
1671 ASSERT(aport->hw_fragsize <= MAX_FRAGSIZE);
1672 ASSERT(aport->hw_fragcount >= MIN_FRAGCOUNT(aport->hw_fragsize));
1673 ASSERT(aport->hw_fragcount <= MAX_FRAGCOUNT(aport->hw_fragsize));
1676 rport->hwbuf_max = aport->hwbuf_size - DMACHUNK_SIZE;
1677 hwfrags = rport->hwbuf_max >> aport->hw_fragshift;
1678 swfrags = aport->hw_fragcount - hwfrags;
1681 rport->swbuf_size = swfrags * aport->hw_fragsize;
1688 int total_bytes = aport->hw_fragcount * aport->hw_fragsize;
1689 wport->hwbuf_max = aport->hwbuf_size - DMACHUNK_SIZE;
1692 hwfrags = wport->hwbuf_max >> aport->hw_fragshift;
1694 swfrags = aport->hw_fragcount - hwfrags;
1697 wport->swbuf_size = swfrags * aport->hw_fragsize;
1703 aport->swb_u_idx = 0;
1704 aport->swb_i_idx = 0;
1705 aport->byte_count = 0;
1716 aport->swbuf = vmalloc(aport->swbuf_size + PAGE_SIZE);
1717 if (!aport->swbuf)
1720 ASSERT(aport == rport);
1723 wport->swbuf = vmalloc(aport->swbuf_size + PAGE_SIZE);
1725 vfree(aport->swbuf);
1726 aport->swbuf = NULL;
1797 vwsnd_port_t *aport,
1804 aport->swstate = SW_INITIAL;
1805 add_wait_queue(&aport->queue, &wait);
1808 spin_lock_irqsave(&aport->lock, flags);
1810 hwstate = aport->hwstate;
1812 spin_unlock_irqrestore(&aport->lock, flags);
1818 remove_wait_queue(&aport->queue, &wait);
1820 if (aport == &devc->rport)
1822 else /* aport == &devc->wport) */
1824 li_shutdown_dma(&aport->chan);
1825 vfree(aport->swbuf);
1826 aport->swbuf = NULL;
1827 aport->byte_count = 0;
2421 vwsnd_port_t *aport = rport ? rport : wport;
2450 ival = aport->sw_framerate;
2455 ival = aport->sw_channels;
2463 if (aport->swstate != SW_INITIAL) {
2465 aport->swstate);
2477 ival = aport->sw_framerate;
2486 if (aport->swstate != SW_INITIAL)
2500 if (aport->swstate != SW_INITIAL)
2514 ival = 1 << aport->sw_fragshift;
2523 if (aport->swstate != SW_INITIAL)
2527 int sw_subdivshift = aport->sw_subdivshift;
2535 sw_fragshift = hw_fragshift + aport->sw_subdivshift;
2561 if (aport->swstate != SW_INITIAL)
2572 hw_fragshift = aport->sw_fragshift - subdivshift;
2577 hw_fragcount = aport->sw_fragcount >> subdivshift;
2593 if (aport->swstate != SW_INITIAL) {
2595 aport->swstate);
2613 ival = aport->sw_samplefmt;
2817 aport->swstate != SW_INITIAL)