Lines Matching refs:play
199 struct forte_channel play; member
784 if (channel == &chip->play) { in forte_channel_init()
914 rval = forte_channel_format (&chip->play, ival); in forte_dsp_ioctl()
936 rval = forte_channel_stereo (&chip->play, ival); in forte_dsp_ioctl()
957 forte_channel_stop (&chip->play); in forte_dsp_ioctl()
958 rval = forte_channel_stereo (&chip->play, ival-1) + 1; in forte_dsp_ioctl()
979 forte_channel_stop (&chip->play); in forte_dsp_ioctl()
980 rval = forte_channel_rate (&chip->play, ival); in forte_dsp_ioctl()
996 ival = chip->play.frag_sz; in forte_dsp_ioctl()
1011 forte_channel_reset (&chip->play); in forte_dsp_ioctl()
1021 ret = forte_channel_drain (&chip->play); in forte_dsp_ioctl()
1031 if (chip->play.filled_frags) in forte_dsp_ioctl()
1032 forte_channel_start (&chip->play); in forte_dsp_ioctl()
1054 forte_channel_buffer (&chip->play, ival & 0xffff, in forte_dsp_ioctl()
1056 ival = (chip->play.frag_num << 16) +chip->play.frag_sz; in forte_dsp_ioctl()
1114 abi.fragstotal = chip->play.frag_num; in forte_dsp_ioctl()
1115 abi.fragsize = chip->play.frag_sz; in forte_dsp_ioctl()
1117 if (chip->play.mapped) { in forte_dsp_ioctl()
1118 abi.fragments = chip->play.frag_num - 2; in forte_dsp_ioctl()
1119 abi.bytes = chip->play.buf_sz; in forte_dsp_ioctl()
1122 abi.fragments = chip->play.frag_num - in forte_dsp_ioctl()
1123 chip->play.filled_frags; in forte_dsp_ioctl()
1125 if (chip->play.residue) in forte_dsp_ioctl()
1129 chip->play.residue; in forte_dsp_ioctl()
1142 if (chip->play.active) in forte_dsp_ioctl()
1143 cinfo.ptr = chip->play.hwptr; in forte_dsp_ioctl()
1147 cinfo.bytes = chip->play.bytes; in forte_dsp_ioctl()
1148 cinfo.blocks = chip->play.nr_irqs; in forte_dsp_ioctl()
1149 chip->play.nr_irqs = 0; in forte_dsp_ioctl()
1161 if (!chip->play.active) { in forte_dsp_ioctl()
1164 else if (chip->play.mapped) { in forte_dsp_ioctl()
1165 count = inw (chip->play.iobase + FORTE_PLY_COUNT) + 1; in forte_dsp_ioctl()
1166 ival = chip->play.frag_sz - count; in forte_dsp_ioctl()
1169 ival = chip->play.filled_frags * chip->play.frag_sz; in forte_dsp_ioctl()
1171 if (chip->play.residue) in forte_dsp_ioctl()
1172 ival += chip->play.frag_sz - chip->play.residue; in forte_dsp_ioctl()
1200 forte_channel_start (&chip->play); in forte_dsp_ioctl()
1204 if (forte_channel_prep (&chip->play)) { in forte_dsp_ioctl()
1209 forte_channel_stop (&chip->play); in forte_dsp_ioctl()
1237 return put_user (chip->play.rate, (int *) arg); in forte_dsp_ioctl()
1241 return put_user (chip->play.stereo, (int *) arg); in forte_dsp_ioctl()
1245 return put_user (chip->play.format, (int *) arg); in forte_dsp_ioctl()
1288 forte_channel_init (forte, &forte->play); in forte_dsp_open()
1310 forte_channel_drain (&chip->play); in forte_dsp_release()
1314 forte_channel_free (chip, &chip->play); in forte_dsp_release()
1352 channel = &chip->play; in forte_dsp_poll()
1402 if (vma->vm_flags & VM_WRITE && chip->play.active) { in forte_dsp_mmap()
1413 channel = &chip->play; in forte_dsp_mmap()
1481 channel = &chip->play; in forte_dsp_write()
1704 channel = &chip->play; in forte_interrupt()
1863 forte->play.buf_sz, forte->rec.buf_sz, in forte_proc_read()
1864 forte->play.frag_sz, forte->rec.frag_sz, in forte_proc_read()
1865 forte->play.frag_num, forte->rec.frag_num, in forte_proc_read()
1866 forte->play.frag_msecs, forte->rec.frag_msecs, in forte_proc_read()
1867 forte->play.filled_frags, forte->rec.filled_frags, in forte_proc_read()
1868 forte->play.mapped ? "yes" : "no", in forte_proc_read()