Fix i2s media player on devices with no internal DAC (#4768)

This commit is contained in:
Jesse Hills 2023-05-02 16:57:40 +12:00
parent f60b2b754d
commit 52352ac27a
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -141,7 +141,7 @@ void I2SAudioMediaPlayer::start_() {
this->audio_ = make_unique<Audio>(true, this->internal_dac_mode_, this->parent_->get_port()); this->audio_ = make_unique<Audio>(true, this->internal_dac_mode_, this->parent_->get_port());
} else { } else {
#endif #endif
this->audio_ = make_unique<Audio>(false, I2S_DAC_CHANNEL_BOTH_EN, this->parent_->get_port()); this->audio_ = make_unique<Audio>(false, 3, this->parent_->get_port());
i2s_pin_config_t pin_config = this->parent_->get_pin_config(); i2s_pin_config_t pin_config = this->parent_->get_pin_config();
pin_config.data_out_num = this->dout_pin_; pin_config.data_out_num = this->dout_pin_;