Skip to content

Commit 1e66777

Browse files
committed
AudioDriverCS42448Class setConfig() correction
1 parent a63a412 commit 1e66777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class AudioDriverCS42448Class : public AudioDriver {
547547
bool result = true;
548548
if (codecCfg.equalsExRate(cfg)) {
549549
// just update the rate
550-
if (cfg.i2s.rate != cfg.i2s.rate) {
550+
if (cfg.i2s.rate != codecCfg.getRateNumeric()) {
551551
cs42448.setMute(true);
552552
cs42448.setSampleRate(codecCfg.getRateNumeric());
553553
cs42448.setMute(false);

0 commit comments

Comments
 (0)