summaryrefslogtreecommitdiff
path: root/Documentation/devices.txt
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-06-05 16:47:26 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:38:30 +0800
commitc9349b7951f81f1c20307505a37c1d7c8c57986f (patch)
treefa47e4872d3cf016aab14e732999b88c965e9f04 /Documentation/devices.txt
parent5a54dff795e9aa0327ff9ff1fb0ba669d466f3df (diff)
ENGR00180390 ESAI: add amixer ASRC p2p API(ALSALIB)
If we want to use ESAI call ASRC, we need to know the input sample rate as well as the output sample rate. however, cause of ALSA-LIB, the input sample rate pass down to ALSA-DRIVER is not accurate. For example, if the ALSA-DRIVER only support 48KHz playback and we want to play an 16KHz audio file, the sample rate params the ALSA DRIVER see is 48KHz but not 16KHz. So, the ALSA-DRIVER do not know the original sample rate, and thus unable to config ASRC properly. In this patch, we add an amixer control interface for alsa lib plugin to config the input sample rate before playback. If no plugin, user can call the amixer control interface to manually use ASRC for rate convert. For example, if we need to playback an 24bit_24K audio wav file without call the plug. The sound card is 0. 1 Get the ASRC capability: amixer sget "ASRC" 1 Set the input samplerate: amixer sset "ASRC" "24KHz" 2 Play; aplay -Dhw:0 audio_24k24S-S24_LE.wav Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'Documentation/devices.txt')
0 files changed, 0 insertions, 0 deletions