Merge pull request #4318 from DavidLin1577/patch-4

[bsp]Mini optimized the drv_sound.c
This commit is contained in:
Bernard Xiong 2021-02-12 23:07:50 +08:00 committed by GitHub
commit eda10bb966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -453,7 +453,6 @@ static int rt_hw_sound_init(void)
return -RT_ENOMEM;
}
rt_memset(tx_fifo, 0, TX_FIFO_SIZE);
snd_dev.tx_fifo = tx_fifo;
/* 分配 DMA 搬运 buffer */
@ -463,7 +462,6 @@ static int rt_hw_sound_init(void)
return -RT_ENOMEM;
}
rt_memset(rx_fifo, 0, TX_FIFO_SIZE);
snd_dev.rx_fifo = rx_fifo;
/* init default configuration */