HD2 audio dev.
Good news - Nexus1:
<rapmv78> I got audio partially working on nexus one
<cruonit> @rapmv78 how did you do it... outline
<cruonit> need it for hd2 :|
<rapmv78> The issue seems to be that the audio legacymode driver which we have does not expect multiple threads of audiopolicy services especially when there is request from each thread to set format/channels/sampling rate etc. There is code in openOutputStream in AudioHardware.cpp, which seems to be the issue. I have a hack which just ignores different set requests. Only first one sticks. The following code modification seems to
<rapmv78> if (mOutput) { if (status) { if (0) { *status = INVALID_OPERATION; } else { LOGD("Output stream already exists, using existing channels and format"); *status = NO_ERROR; } } return mOutput; }
<rapmv78> I tried it with the music app and was able to play mp3s. However there is a small issue with the audio switching from speaker to headset randomly. There are still some issues.
<rapmv78> just build audio.primary.qsd8k.so with the hack and drop it in /system/lib/hw and restart android
other discussion references:
http://xdaforums.com/showthread.php?t=1348670&page=6
http://xdaforums.com/showthread.php?t=1348479&page=3
already started topics:
http://xdaforums.com/showthread.php?t=793353
Good news - Nexus1:
<rapmv78> I got audio partially working on nexus one
<cruonit> @rapmv78 how did you do it... outline
<cruonit> need it for hd2 :|
<rapmv78> The issue seems to be that the audio legacymode driver which we have does not expect multiple threads of audiopolicy services especially when there is request from each thread to set format/channels/sampling rate etc. There is code in openOutputStream in AudioHardware.cpp, which seems to be the issue. I have a hack which just ignores different set requests. Only first one sticks. The following code modification seems to
<rapmv78> if (mOutput) { if (status) { if (0) { *status = INVALID_OPERATION; } else { LOGD("Output stream already exists, using existing channels and format"); *status = NO_ERROR; } } return mOutput; }
<rapmv78> I tried it with the music app and was able to play mp3s. However there is a small issue with the audio switching from speaker to headset randomly. There are still some issues.
<rapmv78> just build audio.primary.qsd8k.so with the hack and drop it in /system/lib/hw and restart android
other discussion references:
http://xdaforums.com/showthread.php?t=1348670&page=6
http://xdaforums.com/showthread.php?t=1348479&page=3
already started topics:
http://xdaforums.com/showthread.php?t=793353
Last edited: