Skip to content

Commit bd7f244

Browse files
committed
I2S provide singal_type to driver
1 parent 451392a commit bd7f244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AudioTools/AudioLibs/I2SCodecStream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ class I2SCodecStream : public AudioStream, public VolumeSupport {
303303
codec_cfg.i2s.bits = toCodecBits(info.bits_per_sample);
304304
codec_cfg.i2s.rate = toRate(info.sample_rate);
305305
codec_cfg.i2s.fmt = toFormat(info.i2s_format);
306+
codec_cfg.i2s.singal_type = (singal_t) info.signal_type;
306307
// use reverse logic for codec setting
307308
codec_cfg.i2s.mode = info.is_master ? MODE_SLAVE : MODE_MASTER;
308309
if (p_board == nullptr) return false;

0 commit comments

Comments
 (0)