IMX6 board designed with no audio, how to remove audio errors in Android

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

IMX6 board designed with no audio, how to remove audio errors in Android

1,857 Views
mukelarvin
Contributor IV

Hi we've got an IMX6 board running the Kit Kat release with kernel 3.0.35. The board doesn't have the SGTL5000 chip on it and I was wondering how can I tell Android to not bother with the audio?

I'm getting a lot of errors related to audio and I'm just worried it might be contributing to the instability of the device.

01-02 05:25:44.710: W/AudioPolicyManagerBase(4782): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0

01-02 05:25:44.710: W/AudioPolicyManagerBase(4782): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0

01-02 05:25:44.710: W/AudioPolicyManagerBase(4782): getOutput() could not find output for stream 1, samplingRate 48000,format 1, channels 3, flags 4

01-02 05:25:44.710: E/AudioTrack(5072): Could not get audio output for stream type 1

01-02 05:25:44.710: E/SoundPool(5072): Error creating AudioTrack

01-02 05:25:44.870: E/BufferQueue(4773): [activity name] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

Labels (2)
0 Kudos
Reply
3 Replies

1,079 Views
mukelarvin
Contributor IV

I'm not receiving any feedback so I'm going to make a new issue asking how to implement the dummy ALSA driver for use in the Android BSP

0 Kudos
Reply

1,079 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Luke,

     I had tested it on customer's board, there was not audio codec on the board, only HDMI was supported.

     Because there is HDMI codec in i.MX6 processor, during linux booting, HDMI codec will be loaded , if you don't need SGTL5000, you only need not to select SGTL5000 driver when you run "make menuconfig" to configure linux kernel, this will not affect android normal work.

Regards,

Weidong

0 Kudos
Reply

1,079 Views
mukelarvin
Contributor IV

My device uses the parallel LCD interface and doesn't use audio at all.

I'm using the SabreSD code as my starting point.  I've left all of the HDMI code in and removed unneeded audio drivers from my config.

During boot I get the following output:

usbcore: registered new interface driver snd-usb-audio

mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first.

Initialize HDMI-audio failed. Load HDMI-video first!

ALSA device list:

  No soundcards found.

But since I'm using the Parallel LCD the HDMI video isn't loaded, I think.

Then in Logcat I get the following:

01-01 00:00:08.560: I/AudioPolicyManagerBase(2095): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf

01-01 00:00:08.580: E/audio_hw_primary(2095): no supported sound card found, aborting.

01-01 00:00:08.580: E/AudioFlinger(2095): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't open audio hw device in audio.primary (Invalid argument)

01-01 00:00:08.580: I/AudioFlinger(2095): loadHwModule() error -22 loading module primary

01-01 00:00:08.580: W/AudioPolicyManagerBase(2095): could not open HW module primary

01-01 00:00:08.580: I/audio_a2dp_hw(2095): adev_open:  adev_open in A2dp_hw module

01-01 00:00:08.580: I/AudioFlinger(2095): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 1

01-01 00:00:08.600: I/r_submix(2095): adev_open(name=audio_hw_if)

01-01 00:00:08.600: I/r_submix(2095): adev_init_check()

01-01 00:00:08.600: I/AudioFlinger(2095): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 2

01-01 00:00:08.600: I/AudioFlinger(2095): loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 3

01-01 00:00:08.600: E/AudioPolicyManagerBase(2095): Not output found for attached devices 00000002

01-01 00:00:08.600: E/AudioPolicyManagerBase(2095): Failed to open primary output

01-01 00:00:08.600: E/AudioPolicyManagerBase(2095): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

01-01 00:00:08.600: E/AudioPolicyManagerBase(2095): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

01-01 00:00:08.600: E/AudioPolicyService(2095): couldn't init_check the audio policy (No such device)

Is there a simple way to remove all audio?

0 Kudos
Reply