Translation Information

Project website docs.freebsd.org/en
Translation process
  • Translations can be made directly.
  • Translation suggestions can be made.
  • Only chosen users can contribute.
  • The translation uses bilingual files.
Translation license BSD 2-Clause "Simplified" License
Filemask documentation/content/*/books/arch-handbook/sound/chapter.po
Translation file Download documentation/content/zh_CN/books/arch-handbook/sound/chapter.po
`xxxchannel_free()` is called to free up channel resources, for example when the driver is unloaded, and should be implemented if the channel data structures are dynamically allocated or if `sndbuf_alloc()` was not used for buffer allocation.
调用<function>xxxchannel_free()</function>来释放通道资源, 例如当驱动程序卸载时,并且如果通道数据结构是动态分配的,或者 如果不使用<function>sndbuf_alloc()</function>进行缓冲区分配, 则应当实现这个函数。
4 days ago
New contributor 4 days ago
If the driver uses ISA DMA, `sndbuf_isadma()` should be called before performing actions on the device, and will take care of the DMA chip side of things.
如果驱动程序使用ISA DMA,则应当在设备上执行动作前 调用<function>sndbuf_isadma()</function>,并处理DMA芯片一方的 事情。
4 days ago
New contributor 4 days ago
<.> The function returns the possibly adjusted block size. In case the block size is indeed changed, `sndbuf_resize()` should be called to adjust the buffer.
函数返回可能调整过的块大小。如果块大小真的变化了, 这种情况下应当调用<function>sndbuf_resize()</function>调整 缓冲区的大小。
4 days ago
New contributor 4 days ago
static int
xxxchannel_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
{
struct xxx_chinfo *ch = data;
...
return blocksize; <.>
}
static int
xxxchannel_setspeed(kobj_t obj, void *data, u_int32_t speed)
{
struct xxx_chinfo *ch = data;
...
return speed;
}
4 days ago
New contributor 4 days ago
`xxxchannel_setblocksize()` sets the block size, which is the size of unit transactions between [.filename]#pcm# and the sound driver, and between the sound driver and the device. Typically, this would be the number of bytes transferred before an interrupt occurs. During a transfer, the sound driver should call [.filename]#pcm#'s `chn_intr()` every time this size has been transferred.
<function>xxxchannel_setblocksize()</function>设置块大小, 这是<filename>pcm</filename>与声音驱动程序,以及声音驱动 程序与设备之间的传输单位的大小。传输期间,每次传输这样大小的 数据后,声音驱动程序都应当调用<filename>pcm</filename>的 <function>chn_intr()</function>。
4 days ago
New contributor 4 days ago
Browse all translation changes

Statistics

Percent Strings Words Chars
Total 107 1,877 14,123
Translated 30% 33 248 1,689
Needs editing 13% 14 374 2,836
Failing checks 14% 15 59 648

Last activity

Last change April 12, 2021, 2:18 a.m.
Last author Anonymous

Daily activity

Daily activity

Weekly activity

Weekly activity