Skip to content

Commit

Permalink
I2S provide singal_type to driver
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jan 8, 2025
1 parent 451392a commit bd7f244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AudioTools/AudioLibs/I2SCodecStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ class I2SCodecStream : public AudioStream, public VolumeSupport {
codec_cfg.i2s.bits = toCodecBits(info.bits_per_sample);
codec_cfg.i2s.rate = toRate(info.sample_rate);
codec_cfg.i2s.fmt = toFormat(info.i2s_format);
codec_cfg.i2s.singal_type = (singal_t) info.signal_type;
// use reverse logic for codec setting
codec_cfg.i2s.mode = info.is_master ? MODE_SLAVE : MODE_MASTER;
if (p_board == nullptr) return false;
Expand Down

0 comments on commit bd7f244

Please sign in to comment.