[G3 Android Development] Orcam:
One other thing guys, does anyone have an extremely noisy headphone jack on this rom? Everything is working pretty well, I would almost call it a daily driver. It's just all my headphones are getting a lot of noise from the on board DAC. It only happens when music starts or stops and it lingers for about 3 seconds after a sound has been played. I think it is present throughout audio being played too, it just becomes noticeable after the sound has stopped. It's really quite loud white/pink noise.

Anyone know where the DAC settings are located in the file system?

Okay guys I have taken a logcat and I think I know the problem if it is one for anyone else. [MENTION=4557482]Drgravy[/MENTION]

This first part is of me playing a song in AIMP and then pausing it with headphones plugged in. The bold parts are the things I believe to be relevant, the underlined parts are the bits which seem to be causing the problem however I could be wrong

12-09 02:07:22.599 24567 24567 W CL--1400383200: type=1400 audit(0.0:243): avc: denied { read } for name="address" dev="sysfs" ino=27104 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u: object_r:sysfs:s0 tclass=file permissive=0

12-09 02:07:24.438 290 531 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=8

12-09 02:07:24.439 290 531 D audio_hw_primary: start_output_stream: enter: stream(0xb623cfc0)usecase(1: low-latency-playback) devices(0x8)

12-09 02:07:24.439 290 531 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x8)

12-09 02:07:24.439 290 531 D audio_hw_primary: select_devices: out_snd_device(4: headphones) in_snd_device(0: )

12-09 02:07:24.439 290 531 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000

12-09 02:07:24.439 290 531 D hardware_info: hw_info_append_hw_type : device_name = headphones

12-09 02:07:24.439 290 531 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(4) acdb_id(10)

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 10, path = 0

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> send_adm_topology

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> send_asm_topology

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> send_audtable

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

12-09 02:07:24.439 290 531 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL

12-09 02:07:24.440 290 531 D ACDB-LOADER: ACDB -> send_audvoltable

12-09 02:07:24.440 290 531 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE

12-09 02:07:24.440 290 531 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL

12-09 02:07:24.440 290 531 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL

12-09 02:07:24.456 290 531 D audio_hw_primary: select_devices: done

12-09 02:07:26.889 24567 24567 W CL--1400383200: type=1400 audit(0.0:244): avc: denied { read } for name="address" dev="sysfs" ino=27104 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u: object_r:sysfs:s0 tclass=file permissive=0

12-09 02:07:28.567 290 531 D audio_hw_primary: out_standby: enter: stream (0xb623cfc0) usecase(1: low-latency-playback)

12-09 02:07:28.644 290 531 D hardware_info: hw_info_append_hw_type : device_name = headphones

This second part was me changing the notification sound with one press and one sound. There was no white noise in this one, however there was a light click when the standby turned off. It was not really noticeable though. This one played over the headphones and the external speaker however I don't think that this is the reason it didn't have white noise.

12-09 02:17:51.699 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found

12-09 02:17:51.699 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found

12-09 02:17:52.573 24567 24567 W CL--1400383200: type=1400 audit(0.0:266): avc: denied { read } for name="address" dev="sysfs" ino=27104 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u: object_r:sysfs:s0 tclass=file permissive=0

12-09 02:17:53.880 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found

12-09 02:17:53.880 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found

12-09 02:17:57.795 2371 2642 D sensors_hal_Time: tsOffsetIs: Apps: 17733410041990; DSPS: 581270684; Offset : -5566922192

12-09 02:18:04.008 298 298 D NuPlayerDriver: reset(0xb5e2b200) at state 6

12-09 02:18:04.009 298 298 D NuPlayerDriver: notifyListener_l(0xb5e2b200), (8, 0, 0), loop setting(0, 0)

12-09 02:18:04.016 298 32073 W AMessage: failed to post message as target looper for handler 0 is gone.

12-09 02:18:04.018 298 32073 D NuPlayerDriver: notifyResetComplete(0xb5e2b200)

12-09 02:18:04.018 298 3068 D NuPlayerDriver: reset(0xb5e2b200) at state 0

12-09 02:18:04.028 16588 16588 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0

12-09 02:18:04.028 16588 16588 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0

12-09 02:18:04.066 298 32132 D NuPlayerDriver: notifyListener_l(0xaf78c300), (1, 0, 0), loop setting(0, 0)

12-09 02:18:04.066 16588 16588 D MediaPlayer: setSubtitleAnchor in MediaPlayer

12-09 02:18:04.069 298 3068 D NuPlayerDriver: reset(0xaf78c300) at state 4

12-09 02:18:04.069 298 3068 D NuPlayerDriver: notifyListener_l(0xaf78c300), (8, 0, 0), loop setting(0, 0)

12-09 02:18:04.069 298 32132 W AMessage: failed to post message as target looper for handler 0 is gone.

12-09 02:18:04.070 298 32132 D NuPlayerDriver: notifyResetComplete(0xaf78c300)

12-09 02:18:04.072 298 2989 D NuPlayerDriver: reset(0xaf78c300) at state 0

12-09 02:18:04.077 16588 16588 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0

12-09 02:18:04.077 16588 16588 E MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0

12-09 02:18:04.103 298 32139 D NuPlayerDriver: notifyListener_l(0xb5e2aba0), (1, 0, 0), loop setting(0, 0)

12-09 02:18:04.103 16588 16588 D MediaPlayer: setSubtitleAnchor in MediaPlayer

12-09 02:18:04.112 298 2988 D NuPlayerDriver: start(0xb5e2aba0), state is 4, eos is 0

12-09 02:18:04.112 298 32139 I GenericSource: start

12-09 02:18:04.118 298 32139 W Utils : track of type 'audio/vorbis' does not publish channel mask, channel count 2

12-09 02:18:04.120 298 32139 W Utils : track of type 'audio/vorbis' does not publish channel mask, channel count 2

12-09 02:18:04.124 298 32144 I MediaPlayerService: MediaPlayerService::getOMX

12-09 02:18:04.125 298 32144 I OMXClient: MuxOMX ctor

12-09 02:18:04.125 295 421 I OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in mediacodec process

12-09 02:18:04.128 295 3189 E OMXNodeInstance: setConfig(12700a0:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)

12-09 02:18:04.128 298 32144 I ACodec : codec does not support config priority (err -2147483648)

12-09 02:18:04.129 298 32144 I MediaCodec: MediaCodec will operate in async mode

12-09 02:18:04.150 298 32142 D AudioTrack: Client defaulted notificationFrames to 7644 for frameCount 22932

12-09 02:18:04.150 290 529 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: fm_volume=0.0000000000

12-09 02:18:04.151 290 529 D audio_hw_fm: audio_extn_fm_set_parameters: set_fm_volume usecase

12-09 02:18:04.151 290 529 D audio_hw_fm: fm_set_volume: (0.000000)

12-09 02:18:04.152 290 529 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: routing=10

12-09 02:18:04.153 290 529 D audio_hw_primary: start_output_stream: enter: stream(0xb623ce80)usecase(0: deep-buffer-playback) devices(0xa)

12-09 02:18:04.153 290 529 D audio_hw_primary: start_output_stream: enter: usecase(0: deep-buffer-playback) devices(0xa)

12-09 02:18:04.153 290 529 D audio_hw_primary: select_devices: out_snd_device(6: speaker-and-headphones) in_snd_device(0: )

12-09 02:18:04.153 290 529 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000

12-09 02:18:04.153 290 529 D hardware_info: hw_info_append_hw_type : device_name = speaker-and-headphones

12-09 02:18:04.153 290 529 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(6) acdb_id(10)

12-09 02:18:04.153 298 32139 D NuPlayerDriver: notifyListener_l(0xb5e2aba0), (6, 0, 0), loop setting(0, 0)

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 10, path = 0

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> send_adm_topology

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> send_asm_topology

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> send_audtable

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> send_audvoltable

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL

12-09 02:18:04.153 290 529 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL

12-09 02:18:04.171 290 529 D audio_hw_primary: select_devices: done

12-09 02:18:04.428 290 529 D AudioFlinger: mixer(0xb5983740) throttle end: throttle time(84)

12-09 02:18:05.334 298 32143 I NuPlayerDecoder: [audio] saw output EOS

12-09 02:18:05.986 298 32139 D NuPlayerDriver: notifyListener_l(0xb5e2aba0), (2, 0, 0), loop setting(0, 0)

12-09 02:18:06.228 290 529 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: fm_volume=0.1115583479

12-09 02:18:06.228 290 529 D audio_hw_fm: audio_extn_fm_set_parameters: set_fm_volume usecase

12-09 02:18:06.229 290 529 D audio_hw_fm: fm_set_volume: (0.111558)

12-09 02:18:08.042 30077 30094 D QcrilMsgTunnelSocket: readRilMessage: Buffer = [B@6a3bd61 HexData = [010000000404000011000000514f454d484f4f4bef0308000100000003]

12-09 02:18:08.043 30077 30094 D QcrilMsgTunnelSocket: Rcvd UNSOL response with 28 bytes data for SUB0

12-09 02:18:08.043 30077 30094 D QcrilMsgTunnelSocket: Response ID 525295 is not served in this process.

12-09 02:18:08.043 30077 30094 D QcrilMsgTunnelSocket: To broadcast an Intent via the notifier to external apps

12-09 02:18:08.045 30077 30077 D QcrilMsgTunnelIfaceManager: handleMessage what = 0

12-09 02:18:08.045 30077 30077 D QcrilMsgTunnelIfaceManager: Broadcasting intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW

12-09 02:18:08.888 290 529 D audio_hw_primary: out_standby: enter: stream (0xb623ce80) usecase(0: deep-buffer-playback)

12-09 02:18:08.926 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found

12-09 02:18:08.926 299 1300 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found

12-09 02:18:09.127 290 529 D hardware_info: hw_info_append_hw_type : device_name = speaker-and-headphones