TI E2E Community
I would like to ask if it is possible to resample, i.e. downsample or upsample in rx and tx direction.What is the system call which does this resampling. I am using RDK linux, ALSA driver with DM8168,
Neither the hardware nor the kernel driver are capable of resampling.
If your userspace accesses the device through alsa-lib, you can use its software resampler.
I see that the application uses API which are probably alsa-lib. I understand that I can now downsample or upsample using the library, though I did not yet find the API for that.
Resampling is automatically enabled if you use a device name like "default" or "plughw". "hw" would bypass all alsa-lib enhancements.
Thank you very much for the answers.In my case device nsame is "plughw" so I see that resampling is automatically enabled, but is there an API for changing the input rate or changing the playback sampling rate ?Can it be change to any value ?
The "plughw" device behaves like a device that supports all sample rates.
To change the input rate, just use another rate.
The playback sample rate is the nearest rate actually supported by the hardware.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.