Hello,
I am using the xCore-200 Multichannel Audio Platform eval board and the reference design firmware to do USB 2.0 Audio to TDM8 conversion.
Overall the functionality is good, but I'm noticing that the input channel volume is too low for my application. I do not need dynamic volume control, I would prefer to just hard code a default level that is louder than it is now.
I have tried modifying the max_volume and min_volume values from their defaults in devicedefines.h, but when I do so the volume control sliders in Windows Sound Panel get stuck at one value and won't let me adjust, so i think Windows is not happy.
Couple of questions:
1.) The default value of MAX_VOLUME is 0x0000 (0db), per the source code comment. Is that also the maximum value, or can it go higher than 0dB? If so, what is the max value?
2.) Is there any other means to increase the volume of the input channels in the code?
For what it's worth, I currently have the mixer disabled. Not sure if enabling it will help in this situation.
Thanks!
-Greg
Getting Max Volume out of xCore-200 Audio Platform Topic is solved
-
- New User
- Posts: 3
- Joined: Tue Dec 13, 2016 11:13 pm
-
Verified
- XCore Legend
- Posts: 1154
- Joined: Thu May 27, 2010 10:08 am
The design transports PCM from one interface to another. With gain = 0dB it will pass the sample unmodified (gain = 1).1.) The default value of MAX_VOLUME is 0x0000 (0db), per the source code comment. Is that also the maximum value, or can it go higher than 0dB? If so, what is the max value?
2.) Is there any other means to increase the volume of the input channels in the code?
There is a volume control which is presented as a feature unit using USB Audio Class. The gain block is really an attenuator:
Code: Select all
asm volatile("ldw %0, %1[%2]":"=r"(mult):"r"(p_multOut),"r"(i));
{h, l} = macs(mult, sample, 0, 0);
h <<= 3;
Engineer at XMOS
-
- New User
- Posts: 3
- Joined: Tue Dec 13, 2016 11:13 pm
Thanks for confirming 0dB is gain = 1. We will investigate whether adding gain block makes sense in our application. Thank you.