Hi, I am porting sgtl5000 drivers to android 4.4.2, and there is still no sound, and when selecting from Setting->Sound->notification sound menu, some error shows in logcat,
log as below:
---------
11-24 18:06:23.850: W/AudioPolicyManagerBase(2319): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-24 18:06:23.850: W/AudioPolicyManagerBase(2319): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-24 18:06:23.850: W/AudioPolicyManagerBase(2319): getOutput() could not find output for stream 1, samplingRate 48000,format 1, channels 3, flags 4
11-24 18:06:23.850: E/AudioTrack(2700): Could not get audio output for stream type 1
11-24 18:06:23.850: E/SoundPool(2700): Error creating AudioTrack
11-24 18:06:23.900: D/Ringtone(2957): Successfully created local player
11-24 18:06:23.900: E/AudioPolicyManagerBase(2319): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
11-24 18:06:23.900: W/AudioPolicyManagerBase(2319): getOutput() could not find output for stream 5, samplingRate 0,format 0, channels 3, flags 0
11-24 18:06:23.900: E/MediaPlayer(2957): error (-19, 0)
11-24 18:06:23.900: E/MediaPlayer(2957): Should have subtitle controller already set
11-24 18:06:23.900: E/MediaPlayer(2957): Error (-19,0)
Some days ago, I made similar porting steps in android4.3, it works well, but it is not applicable to android4.4.
Where is the problem? Any suggestion is appreciated.
Thanks.
I found config_sgtl5000.h was missing in the dir "hardware/imx/alsa",
and tinyalsa_hal.c should be made some changes.
-------
#include "config_sgtl5000.h"
... ...
struct audio_card *audio_card_list[SUPPORT_CARD_NUM] = {
&sgtl5000_card,
&wm8958_card,
&wm8962_card,
&hdmi_card,
&usbaudio_card,
&spdif_card,
&null_card,
};
Hi Xiyuan
please look at boundarydevices android 4.4.2 (based on FSL release) it includes sgtl5000
support
https://boundarydevices.com/android-kitkat-second-release-mx6-boards/
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------