How to do about set the sample rate to 48KHz on imx6 platform?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to do about set the sample rate to 48KHz on imx6 platform?

1,124 Views
charleshuang
Senior Contributor II

Hi NXP team

We need to change the audio sample rate to 48KHz on imx6q platform.
OS is android 6.0.1.
We use the sgtl5000 codec.
How to do about set the sample rate to 48KHz?


Thanks

Labels (3)
0 Kudos
2 Replies

637 Views
igorpadykov
NXP Employee
NXP Employee

Hi charles

one can try to use asrc please refer to Chapter 29
Asynchronous Sample Rate Converter (ASRC) Driver,

sect.28.5.2 7.1 Audio Codec Unit Test

attached Linux Manual and use dts sabresd examples.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

637 Views
charleshuang
Senior Contributor II

Hi NXP

Thanks your feedback.

My imx6q platform OS is android 6.0.1. We need the android 6.0.1 solution.

My customer need to change "sample rate" for play and record.

So do you have any solution about change the sample rate in Android 6.0.1.

I try get some log message and when I  open Audio APK.

logcat -v time | grep audio

06-23 10:21:43.842 W/audio_hw_primary(  212): do_out_standby... -1242503424
06-23 10:21:49.552 W/audio_hw_primary(  212): out_set_parameters routing=2, ret 0, out -1242503424
06-23 10:21:49.561 I/audio_hw_primary(  212): start_output_stream_primary... -1242503424, device 2
06-23 10:21:49.563 W/audio_hw_primary(  212): card 0, port 0 device 0x2
06-23 10:21:49.563 W/audio_hw_primary(  212): rate 44100, channel 2 period_size 0xc0

The some message form hardware/imx/alsa/tinyalsa_hal.c . (not linux kernel.)

Do you have any advice?

Best regards.

0 Kudos