English
Language : 

W681307DG Datasheet, PDF (149/160 Pages) Winbond – USB1.1 CODEC Microprocessor Control Unit with 32KB Mask ROM and 4KB RAM.
W681307
Play Mute On/Off means SET_CUR for Mute Control and Feature Unit ID 6 then received data = 1/0
Record Mute On/Off means SET_CUR for Mute Control and Feature Unit ID 3 then received data = 1/0
18.2.4.4
Volume Control
The host can issue SET_CUR commands with wValue equals to 0x0200 to change the Volumes of the USB device. If the host selects
Feature Unit number 1 (ID is 3), the Volume of audio stream from Mic to USB (means Record Volume) is changed; if the host selects
Feature Unit number 2 (ID is 6), the Volume of audio stream from USB to speaker (means Play Volume) is updated. The host also can
issue GET_CUR command to read back current volume gain value.
Data Settings & Gain Mapping
Play Data to BASEBAND
Record Data to Host
0x7FFF
…
0x18xx
0x17xx
+24 dB
+24 dB
+24 dB
+23 dB
If host sends SET_CUR for volume control If host sends SET_CUR for volume
in Play path, device will adjust gain of control in Record path, device will adjust
pcm_tx[15:0] via the command then enter gain of pcm_rx[15:0] via the command
BASEBAND after leave ISO out FIFO then enter ISO IN FIFO
…
…
0x01xx
+1 dB
0x00xx
0 dB
0xFFxx
-1 dB
0xFExx
-2 dB
…
…
0xE2xx
-29 dB
0xE1xx
-30 dB
…
-30 dB
0x8000
-30 dB
The default value of GET_CUR for Volume Control is 0x0000 (0 dB)
GET_MIN is 0xE100 (-30dB), GET_MAX is 0x1800 (+24 dB) and GET_RES is 0x0100 (+1 dB)
18.2.4.5
Synchronization for Data Transfer
To better synchronization, an endpoint (endpoint 6) is dedicated to provide rate adjustment information to host. The descriptor can set a
time interval, so the host will request the rate information (3 bytes) from that endpoint by using that frequency.
18.2.4.6
Audio Data Format
The data format is 16 bits linear PCM in Audio path and the sample frequency is 8 KHz.
18.2.5
HID Class
Interface 3 is a HID Class interface and it has one Interrupt In endpoint. The device can receive commands from host via SET REPORT
and report hardware’s status to host via Interrupt In transfer in Skype application.
18.2.5.1
Set (Feature) Report
In default descriptors, define 8 bytes feature report descriptors in Report Descriptor. Host can send Set Report command to device then
the device can do the action after receive and analyze these 8 bytes data. We use the way to deliver Skype or Winbond commands from
host to device.
18.2.5.2
Interrupt In
We use the interrupt in transfer to report the device status to host. The maximum packet size is 8 bytes and the time of polling interval is
about 64 ms.
- 149 -
Publication Release Date: May, 2007
Revision 1.3