• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/oss/

Lines Matching refs:aport

1625 	vwsnd_port_t *aport = rport ? rport : wport;
1631 ASSERT(aport != NULL);
1632 if (aport->swbuf != NULL)
1634 switch (aport->sw_samplefmt) {
1665 aport->sample_size = sample_size;
1666 aport->zero_word = zero_word;
1667 aport->frame_size = aport->sw_channels * aport->sample_size;
1668 aport->hw_fragshift = aport->sw_fragshift - aport->sw_subdivshift;
1669 aport->hw_fragsize = 1 << aport->hw_fragshift;
1670 aport->hw_fragcount = aport->sw_fragcount << aport->sw_subdivshift;
1671 ASSERT(aport->hw_fragsize >= MIN_FRAGSIZE);
1672 ASSERT(aport->hw_fragsize <= MAX_FRAGSIZE);
1673 ASSERT(aport->hw_fragcount >= MIN_FRAGCOUNT(aport->hw_fragsize));
1674 ASSERT(aport->hw_fragcount <= MAX_FRAGCOUNT(aport->hw_fragsize));
1677 rport->hwbuf_max = aport->hwbuf_size - DMACHUNK_SIZE;
1678 hwfrags = rport->hwbuf_max >> aport->hw_fragshift;
1679 swfrags = aport->hw_fragcount - hwfrags;
1682 rport->swbuf_size = swfrags * aport->hw_fragsize;
1689 int total_bytes = aport->hw_fragcount * aport->hw_fragsize;
1690 wport->hwbuf_max = aport->hwbuf_size - DMACHUNK_SIZE;
1693 hwfrags = wport->hwbuf_max >> aport->hw_fragshift;
1695 swfrags = aport->hw_fragcount - hwfrags;
1698 wport->swbuf_size = swfrags * aport->hw_fragsize;
1704 aport->swb_u_idx = 0;
1705 aport->swb_i_idx = 0;
1706 aport->byte_count = 0;
1717 aport->swbuf = vmalloc(aport->swbuf_size + PAGE_SIZE);
1718 if (!aport->swbuf)
1721 ASSERT(aport == rport);
1724 wport->swbuf = vmalloc(aport->swbuf_size + PAGE_SIZE);
1726 vfree(aport->swbuf);
1727 aport->swbuf = NULL;
1798 vwsnd_port_t *aport,
1805 aport->swstate = SW_INITIAL;
1806 add_wait_queue(&aport->queue, &wait);
1809 spin_lock_irqsave(&aport->lock, flags);
1811 hwstate = aport->hwstate;
1813 spin_unlock_irqrestore(&aport->lock, flags);
1819 remove_wait_queue(&aport->queue, &wait);
1821 if (aport == &devc->rport)
1823 else /* aport == &devc->wport) */
1825 li_shutdown_dma(&aport->chan);
1826 vfree(aport->swbuf);
1827 aport->swbuf = NULL;
1828 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;
2819 aport->swstate != SW_INITIAL)