mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix i2s media player on devices with no internal DAC (#4768)
This commit is contained in:
parent
f60b2b754d
commit
52352ac27a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ void I2SAudioMediaPlayer::start_() {
|
|||
this->audio_ = make_unique<Audio>(true, this->internal_dac_mode_, this->parent_->get_port());
|
||||
} else {
|
||||
#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();
|
||||
pin_config.data_out_num = this->dout_pin_;
|
||||
|
|
Loading…
Reference in a new issue