Skip to content

Commit 7256f10

Browse files
committed
CodecConfig default 2 channels
1 parent 5202bec commit 7256f10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Driver.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class CodecConfig : public codec_config_t {
4040
output_device = DAC_OUTPUT_ALL;
4141
i2s.bits = BIT_LENGTH_16BITS;
4242
i2s.rate = RATE_44K;
43-
i2s.fmt = I2S_NORMAL;
43+
i2s.channels = CHANNELS2;
44+
i2s.fmt = I2S_NORMAL;
4445
// codec is slave - microcontroller is master
4546
i2s.mode = MODE_SLAVE;
4647
}

0 commit comments

Comments
 (0)