提交 3a720996 编写于 作者: wuyangyong's avatar wuyangyong

Fixed sample rate not set correctly under slave I2S mode.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@530 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 acd0943f
......@@ -481,7 +481,9 @@ static rt_err_t codec_control(rt_device_t dev, rt_uint8_t cmd, void *args)
break;
case CODEC_CMD_SAMPLERATE:
dev->close(dev);
sample_rate(*((int*) args));
dev->open(dev,0);
break;
case CODEC_CMD_EQ:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册