
GS1582 Data Sheet
40117 - 1 November 2007
58 of 114
the GP1_WCLK_SRC[1:0] and GP2_WCLK_SRC[1:0] register.
Table 4-20: Audio
Clock Selection Host Interface Settings
shows the audio clock source for each
setting of the registers.
Each audio group consists of 4 channels, which share the same word clock.
Therefore, the audio data applied to each channel within the group must be the
same format and have identical word clock requirements.
NOTE: In AES mode, by default, word clock is extracted from channels 1/2 for
Audio group 1 and channels 5/6 for Audio group 2. If audio is applied only to 3/4 or
7/8 only, then no audio is embedded until the word clock source is changed from
channels 1/2 or 5/6, to channels 3/4 or 7/8.
4.7.21 GS1582 SD Audio FIFO Block
The GS1582 SD audio FIFO block contains the audio sample buffers. There is a
buffer per audio channel, which are 52 audio samples deep. At power up or reset,
the read pointer is held at the zero position until 26 samples have been written into
the FIFO. Once audio is being multiplexed, the offset between the audio sample
buffer read and write pointers is maintained at an average of 26 samples.
The position of the write pointer with respect to the read pointer is checked
constantly. If the write pointer is less than 6 samples ahead of the read pointer, a
sample is repeated from the read-side of the buffer. If the write pointer is less than
6 samples behind the read pointer, a sample is dropped. This scheme avoids buffer
underflow/overflow conditions.
The repeat or drop sample operation is performed up to a maximum of 28
consecutive times. After 28 repeat/drops, the GS1582 will mute (null audio packets
are embedded).
The audio buffer pointer offset can be reduced from 26 samples to 12 or 6 samples
using the OS_SEL[1:0] host interface register. The default setting is 26 samples
(see
Table 4-21
). When the OS_SEL[1:0] bits are set for 6-sample pointer offset,
no boundary checking is performed.
Table 4-20: Audio Clock Selection Host Interface Settings
GP_WCLK_SRC[1:0]
Word Clock Extraction
Source (AES Mode)
WCLK Source
(Serial Audio Mode)
00b
Channels 1/2
WCLK_1
01b
Channels 3/4
WCLK_1
10b
Channels 5/6
WCLK_2
11b
Channels 7/8
WCLK_2