From c65ec96e8ce164617b1ff5b67ad0470eecf147e9 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 4 Mar 2018 12:05:00 +0800 Subject: [PATCH] [BSP] fix CRLF issue in gkipc bsp --- bsp/gkipc/libraries/drv/7102C/gd/src/audio/gd_audio.c | 8 ++++---- bsp/gkipc/libraries/drv/7102C/gd/src/i2s/gd_i2s.c | 8 ++++---- bsp/gkipc/libraries/drv/710X/gd/src/audio/gd_audio.c | 8 ++++---- bsp/gkipc/libraries/drv/710X/gd/src/i2s/gd_i2s.c | 8 ++++---- bsp/gkipc/libraries/drv/710XS/gd/src/audio/gd_audio.c | 8 ++++---- bsp/gkipc/libraries/drv/710XS/gd/src/i2s/gd_i2s.c | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/bsp/gkipc/libraries/drv/7102C/gd/src/audio/gd_audio.c b/bsp/gkipc/libraries/drv/7102C/gd/src/audio/gd_audio.c index 360c8e1d94..d22be36609 100644 --- a/bsp/gkipc/libraries/drv/7102C/gd/src/audio/gd_audio.c +++ b/bsp/gkipc/libraries/drv/7102C/gd/src/audio/gd_audio.c @@ -182,7 +182,7 @@ static void ai_int_handler(void) pFrameQue->frameSequence++; if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } @@ -261,7 +261,7 @@ static void ao_int_handler(void) { if(++pFrameQue->frameRead >= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -970,7 +970,7 @@ GERR GD_AUDIO_AI_Read_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameRead, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameRead>= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -1172,7 +1172,7 @@ GERR GD_AUDIO_AO_Write_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameWrite, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } diff --git a/bsp/gkipc/libraries/drv/7102C/gd/src/i2s/gd_i2s.c b/bsp/gkipc/libraries/drv/7102C/gd/src/i2s/gd_i2s.c index 3c453b606f..fa02c37241 100644 --- a/bsp/gkipc/libraries/drv/7102C/gd/src/i2s/gd_i2s.c +++ b/bsp/gkipc/libraries/drv/7102C/gd/src/i2s/gd_i2s.c @@ -108,7 +108,7 @@ static void rx_int_handler(void) { pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; } @@ -181,7 +181,7 @@ static void tx_int_handler(void) { pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -465,7 +465,7 @@ GERR GD_I2S_RX_Read_Frame(U8 *data, U32 *length) pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -635,7 +635,7 @@ GERR GD_I2S_TX_Write_Frame(U8 *data, U32 length) pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; } diff --git a/bsp/gkipc/libraries/drv/710X/gd/src/audio/gd_audio.c b/bsp/gkipc/libraries/drv/710X/gd/src/audio/gd_audio.c index 7a5ce3cbdd..26438e3c97 100644 --- a/bsp/gkipc/libraries/drv/710X/gd/src/audio/gd_audio.c +++ b/bsp/gkipc/libraries/drv/710X/gd/src/audio/gd_audio.c @@ -181,7 +181,7 @@ static void ai_int_handler(void) pFrameQue->frameSequence++; if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } @@ -261,7 +261,7 @@ static void ao_int_handler(void) { if(++pFrameQue->frameRead >= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -970,7 +970,7 @@ GERR GD_AUDIO_AI_Read_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameRead, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameRead>= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -1172,7 +1172,7 @@ GERR GD_AUDIO_AO_Write_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameWrite, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } diff --git a/bsp/gkipc/libraries/drv/710X/gd/src/i2s/gd_i2s.c b/bsp/gkipc/libraries/drv/710X/gd/src/i2s/gd_i2s.c index 789f8d5e63..4108bb0264 100644 --- a/bsp/gkipc/libraries/drv/710X/gd/src/i2s/gd_i2s.c +++ b/bsp/gkipc/libraries/drv/710X/gd/src/i2s/gd_i2s.c @@ -107,7 +107,7 @@ static void rx_int_handler(void) { pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; } @@ -180,7 +180,7 @@ static void tx_int_handler(void) { pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -466,7 +466,7 @@ GERR GD_I2S_RX_Read_Frame(U8 *data, U32 *length) pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -636,7 +636,7 @@ GERR GD_I2S_TX_Write_Frame(U8 *data, U32 length) pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; } diff --git a/bsp/gkipc/libraries/drv/710XS/gd/src/audio/gd_audio.c b/bsp/gkipc/libraries/drv/710XS/gd/src/audio/gd_audio.c index 11520a1874..524eb2b01e 100644 --- a/bsp/gkipc/libraries/drv/710XS/gd/src/audio/gd_audio.c +++ b/bsp/gkipc/libraries/drv/710XS/gd/src/audio/gd_audio.c @@ -181,7 +181,7 @@ static void ai_int_handler(void) pFrameQue->frameSequence++; if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } @@ -260,7 +260,7 @@ static void ao_int_handler(void) { if(++pFrameQue->frameRead >= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -969,7 +969,7 @@ GERR GD_AUDIO_AI_Read_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameRead, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameRead>= pFrameQue->frameQueRear) - { + { pFrameQue->frameRead = pFrameQue->frameQueHead; } @@ -1171,7 +1171,7 @@ GERR GD_AUDIO_AO_Write_Frame(GD_AUDIO_FRAME_S *frame) memcpy(frame, pFrameQue->frameWrite, sizeof(GD_AUDIO_FRAME_S)); if(++pFrameQue->frameWrite >= pFrameQue->frameQueRear) - { + { pFrameQue->frameWrite = pFrameQue->frameQueHead; } diff --git a/bsp/gkipc/libraries/drv/710XS/gd/src/i2s/gd_i2s.c b/bsp/gkipc/libraries/drv/710XS/gd/src/i2s/gd_i2s.c index bda71f8b57..5847a51b5e 100644 --- a/bsp/gkipc/libraries/drv/710XS/gd/src/i2s/gd_i2s.c +++ b/bsp/gkipc/libraries/drv/710XS/gd/src/i2s/gd_i2s.c @@ -107,7 +107,7 @@ static void rx_int_handler(void) { pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; } @@ -180,7 +180,7 @@ static void tx_int_handler(void) { pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -464,7 +464,7 @@ GERR GD_I2S_RX_Read_Frame(U8 *data, U32 *length) pDev->rdPointer += pDev->frameSize; if(pDev->rdPointer >= pDev->rearPointer) - { + { pDev->rdPointer = pDev->dmaFrameBuffer; } @@ -634,7 +634,7 @@ GERR GD_I2S_TX_Write_Frame(U8 *data, U32 length) pDev->wrPointer += pDev->frameSize; if(pDev->wrPointer >= pDev->rearPointer) - { + { pDev->wrPointer = pDev->dmaFrameBuffer; }