International Technology Centre Leuven PLR-10247 Pg. 1/7 Addendum Change Request 12 UDA 1325 USB_CODEC Version: Editor: Herman D'HAESELEER P:\20249.1325\SW\TechnicalSpecifications\PLR101247.doc PVCS $Revision:: 1.22 $ Config map 3 UDA 1325 SIGNATURES FOR AGREEMENT Function 4AE400 Name Date FRS: UDA 1335 USB_CODEC Signature .... ... ..... n.a. n.a. n.a. 7 Name : Herman D'HAESELEER PL Or. date : 29-07-97 193 - 1 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC Pg. 2/7 PLR-10241 4.6.2 General descriptors The general USB (CODEC) descriptors describe in general terms the capabilities of the device, like; `how many configurations it supports', `how many interfaces' etc. A detailed description of these descriptors can be found in the USB specification [USBSpec]. It layouts a framework to which the additional class specific descriptors can be integrated. (See paragraph `Descriptors' of the [USBSpec]). This USB_CODEC supports 4 `different' interfaces. The control, the AudioStreaming out, the AudioStreaming in and the human interface (HID) are declared in the Configuration Descriptor. The audio interfaces support different audio topologies see paragraph 4.6.3.1 Audio function topology. It is possible to switch the HID interface ON or OFF. Each internal and the external hardware selectable configuration-map has its own Descriptor Map, depending of the selected Audio topology and the supported HID interface. At start-up time only one Descriptor map can be implicit selected with a predefined combination of selection diodes. This selection will be discussed in paragraph 4.10. For each descriptor a column is added to indicate if it is allowed to change the value in the external configuration-map. The described descriptors are these of configuration-map 1 Fixed Device Descriptor Value hex X bLength 12 X bDescriptorType 01 DEVICE descriptor Type 0100 Version USB 1.00 in BCD bcdUSB X cDeviceClass 00 each interface specifies its own class information X cDeviceSubClass 00 0 because cDeviceClass is 0 X cDeviceProtocol 00 no class specific protocols on a device basis X bMaxPacketSize0 08 The amount of bytes/packet on the control endpoint is limited by the PSIE MMU hardware to 8 bytes/packet. X idVendor 1E04 Creative = 041E idProduct 0101 Product 1 version 04 USB CODEC [USBPROD] bcdDevice 0100 Device Release Number Mode 1.0 or Actual Software version Nb iManufactor 01 Index to stringdescriptor manufacturer iProduct 02 Index to stringdescriptor product iSerialNumber 00 Index to stringdescriptor serial number bNumConfigurations 01 Number of possible configurations at a time Table 4-3 Standard Device Descriptor 4AE400 FRS: UDA 1335 USB_CODEC .... ... ..... n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 2 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC Pg. 3/7 PLR-10241 4.6.4.1 ReportDescriptor's Main Item: Input and Output Fixed X Name ReportDescriptor line Main Item: Input hex Usage Page(Consumer Devices) 050C Header Collection Usage (Consumer Control) 0901 Consumer Controls Collection(Application) A101 X Logical Minimum(0) 1500 global remain true until defined otherwise X Logical Maximum(1) 2501 X Report Count (6) 9506 Create 6 one bits reports x Report Size (1) 7501 Usage (VolumeUp) 09E9 HID In 1 Device Volume Up Usage (VolumeDown) 09EA HID In 2 Device Volume Down Usage (Bass boost) 09E5 HID In 3 Bass Boost Usage (incr sound) 0900 HID In 4 incr sound Usage (Unassigned) 0900 HID In 5 not assigned Usage (Unassigned) 0900 HID In 6 not assigned x Input (Data,Var,Abs,Null) 8142 . x Report Count (1) 9501 Padding with one two bit report x Report Size (2) 7502 x Input (Constant) 8101 Constants. x Report Count (3) 9503 Create 3 one bit report fields global items x Report Size (1) 7501 Usage (Unassigned) 0900 HID Device output 1 not implemented Usage (Unassigned) 0900 HID device output 2 not implemented Usage (Unassigned) 0900 HID device output 3 not implemented x Output (Data, Variable, Relative) 9106 Add fields to the Output reporter; 1 out bits. x Report Count (1) 9501 Create 1 five bit report fields x Report Size (5) 7505 x Output (Constant) 9103 x End Collection Padding constants C0 Table 4-601 USBCODECIC Reportdescriptor with 6 inputs and 3 outputs. 4AE400 FRS: UDA 1335 USB_CODEC .... ... ..... n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 3 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC Pg. 4/7 PLR-10241 4.10.2 Configuration Map 3 Main Features: * Audio Playback configuration with DBB and Clipping prevention on (no distortion) * Audio Input configuration Analog Input * With HID, external port expander * Mute function on codec * Volume Up and Down and mute and incr sound * Self powered * Powerup time for amp = 300mSec (x time = 0F) * Time between play and mute = 5Sec (y time = 5) * go into standby after 2 min(z time = 18) * Default volume = -32dB * Vendor ID = Creative * Manufactor = Creative Technology Ltd * Product = Creative USB Speaker * Gain setting for mike = 0dB Value Affects Comment Hex 00 Clockshop control Register 1000 00 Rstgen and PLL control Register 1001 00 Power Control Register 1003 8B ASR _UDAO Reg. Register 2000 09 PGA control Anal. Input Terminal 1 Register 800 09 PGA control Anal. Input Terminal 2 Only for Interface 2 Analog configuration 5C ADIF Control Register 801 60 ADAC feature setting (Reg0) via L3 90 ADAC lock mode (Reg1) via L3 D0 I/O-Selection register 1 = Clipping prevention on bit 7 : Clipping prevention 1 = external I2C expander used bit 6 : Expander bit 5 : Selector output 0 = normal logic for outputs bit 4 : Mute/Standby (Expander) 1 = Standby bit 3 : Mute/Standby (Codec) 0 = Mute bit 2 : output pin 3 0 = non Inverted logic for outputpin 3 bit 1 : output pin 2 0 = non Inverted logic for outputpin 2 bit 0 : output pin 1 0 = non Inverted logic for outputpin 1 00 Output pin function 1 Functions are available if declared in ADC 0 = Mute LED according Mute function in ADC 1 = DBB LED according BB function in ADC 01 Output pin function 2 Functions are available if declared in ADC 0 = Mute LED according Mute function in ADC 1 = DBB LED according BB function in ADC 00 Output pin function 3 Functions are available if declared in ADC 0 = Mute LED according Mute function in ADC 1 = DBB LED according BB function in ADC 21 IIS selector 0 = analog, no I2S and bit 6 not used bit 7 : Output I2S 2 bit 6 : Output I S 4 or 6 pins 1 = HID included bit 5 : HID bit 4 : 1 = input configuration 1 bit 3 : Input I2S 4AE400 FRS: UDA 1335 USB_CODEC .... ... ..... n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 4 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC Value Hex Affects Comment 0F 05 18 00 09 bit 2 : bit 1 : bit 0 : X rise Time power Amp Y Time between Mute and Play Z Time between Mute an Standby Selector preferred state DBB value (dB) 20 Volume 04 80BB 00 Maximum distortion Sample frequency : LSB Mid MSB pointer to the Device Descriptor pointer to the Configuration Descriptor pointer to the length of HID Report Descriptor Number of String pointers Pointer to 0 String Pointer to first String Pointer to Second String Device Descriptor 0x12 bLength 0x 01 bDescriptorType 0x 0100 bcdUSB 0030 0045 0210 0003 025E 0260 0290 12 01 00 01 00 etc. 09 02 etc. 3500 0C 05 01 09 etc 04 03 09 04 Pg. 5/7 PLR-10241 0x 00 cDeviceClass etc. Configuration Descriptor Including ADC and HID Steps of 20 msec : 300 msec steps of 1 sec: 5 sec steps of 5 sec: 2 min 0 = Anal. Input Terminal 1 Mike must be pair Will be used in according with Feature Unit descriptor Default init Attenuation Volume in 1 dB steps -32 dB in dB 48 kHz 0x0012 bytes long 0x035A bytes long 0x0035 bytes long N strings as mentioned in the descriptors < 33 According the 0 string According first string in descriptor According second string in descriptor Descriptors are in Little Endian Table 4-3 Standard Device Descriptor Configuration descriptor according topology 2 HID Descriptors Table 4 - 57 Standard Interface descriptor + Table 4 - 59 HID Endpoint Descriptor + Table 4 - 58 HID Descriptor Length of HID Report Descriptor LSB MSB HID Report Descriptor 0x 050C Usage page (Consumer Dev) HID Report Descriptor according the new descriptor in this document (Table 4 - 60) 0x0901 Usage(Consumer Control) Zero string 0x04 String 0 length 0x03 Descriptor Type String 1 4AE400 FRS: UDA 1335 Supported Language 0409 English String Manufacturer : Creative Technology Ltd .... ... ..... USB_CODEC n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 5 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC Value Hex 26 03 30 00 68 00 etc. 36 03 55 00 53 00 etc. Affects Comment 0x30 0x03 48 String 1 length Descriptor Type P 104 h etc. String 2 0x2A String 1 length 0x03 Descriptor Type 85 U 83 Pg. 6/7 PLR-10241 String Product String : Creative USB Speaker S etc. Table 4-119 USB_CODEC Configuration map 0 4AE400 FRS: UDA 1335 USB_CODEC .... ... ..... n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 6 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND Version: FRS: UDA 1335 USB_CODEC 4AE400 FRS: UDA 1335 USB_CODEC Pg. 7/7 PLR-10241 .... ... ..... n.a. n.a. n.a. 7 Name: Herman D'HAESELEER PL Or. date : 29-07-97 193 - 7 10 A4 Property of PHILIPS GLOEILAMPENFABRIEKEN EINDHOVEN NEDERLAND