Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Thinker: Fix volume levels #68

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

alexyao2015
Copy link

Follow up to #67 . I found the entire bottom half of the range is completely inaudible. This adjusts the range to only the top 50% of what it used to be.

The changes to DACCONTROL24-27 appear to not be important to change.

@@ -346,6 +346,10 @@ es8388_init (audio_hal_codec_config_t *cfg)
0x80); // set internal ADC and DAC use the same LRCK
// clock, ADC LRCK as internal LRCK
res |= es_write_reg (ES8388_ADDR, ES8388_DACCONTROL23, 0x00); // vroi=0
res |= es_write_reg (ES8388_ADDR, ES8388_DACCONTROL24, 0x1E); // Set L1 R1 L2 R2 volume. 0x00: -30dB, 0x1E: 0dB, 0x21: 3dB
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this impact other boards using the same codec (lyrat v4.3, etc.)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They probably should be fine with this but I'm not sure since I don't have one.

Copy link
Owner

@CarlosDerSeher CarlosDerSeher Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I'll test this and compare as I've got 2

@CarlosDerSeher CarlosDerSeher merged commit fd701a1 into CarlosDerSeher:master Mar 10, 2024
@unknown0816
Copy link

fyi: With this settings my Board is way to loud. I had to adapt this like written in this PR #67 (comment)

@CarlosDerSeher
Copy link
Owner

Ok thank you, I will consider this in #69

@jonzobot
Copy link

jonzobot commented Aug 10, 2024

Just some more feedback: I am using a LyraT 4.3 and this commit really dropped the volume on mine (I have speakers wired directly to the board which has a small on-board amplifier). Very quiet. I wound up reverting to the pre-commit code for this reason.

(Edit for clarity: I do/did not have the bottom half range problem that op did, for this board)

@CarlosDerSeher
Copy link
Owner

So we should differentiate between boards in the driver in your opinion? Could you please open an issue on this so I don't forget about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants