[Xperia Z1 Compact Android Development] munjeni:
Its original sony headset, or you have something out of stock z1c pack? For me I have using original headset and things working almost all, only fm stereo is missing, but if I enable verb switch in audiofx I'm getting stereo. Well, I'm checked whole media.*****.xml files, its very good. All media profiles including ffmpeg integration plays flac files and other realy good. Things which I'm believing cause problems is audio_policy.conf (looks good, but in comparation to stock audio_policy it missing some things, fm in/out is diferent), anyway looks good, I'm believing in most case mixer_patxs.xml is a bit wrong. Don't know why fm audio routing is routed to fm_audio_record, audio_record and fm_capture instead of the play_fm or play-fm usb-headphones which is curently unused, it might be something wrong in mixer_paths. Fm recording is broken, seems because of the that wrong route. Do you have idea? Where we can get original audio-caf mixer_paths.xml file for msm8974 platform that match our lineageOS 14.1 source code?

10-08 18:40:38.430 352 637 D audio_hw_primary: adev_open_output_stream: enter: sample_rate(48000) channel_mask(0x3)
devices(0x4) flags(0x8) stream_handle(0xb6045c40)
10-08 18:40:38.430 352 637 E audio_hw_primary: adev_open_output_stream: Primary output is already opened
10-08 18:40:38.430 352 637 D audio_hw_primary: adev_open_output_stream: exit: ret -17
10-08 18:40:38.430 352 637 D audio_hw_primary: adev_open_output_stream: enter: sample_rate(8000) channel_mask(0x1) d
evices(0x4) flags(0x31) stream_handle(0xb6045c40)
10-08 18:40:38.430 352 637 D audio_hw_primary: adev_open_output_stream: copl(b6045c40): sample_rate(8000) channel_ma
sk(0x1) devices(0x4) flags(0x31)
10-08 18:40:38.431 352 637 D audio_hw_primary: adev_open_output_stream: Stream (0xb6045c40) picks up usecase (compre
ss-offload-playback)
10-08 18:40:38.431 352 489 D audio_hw_primary: adev_set_parameters: enter: connect=4
10-08 18:40:38.434 352 3415 D audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpa
irs: closing=true
10-08 18:40:38.435 352 637 D audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpa
irs: exiting=1
10-08 18:40:38.438 352 637 D audio_hw_primary: adev_close_output_stream: enter:stream_handle(0xb6045c40)
10-08 18:40:38.438 352 637 D audio_hw_primary: out_standby: enter: stream (0xb6045c40) usecase(3: compress-offload-p
layback)
10-08 18:40:38.440 352 3413 E audio_hw_primary: offload_thread_loop: Compress handle is NULL
10-08 18:40:38.443 352 629 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs:
routing=0
10-08 18:40:38.445 352 631 D audio_hw_primary: out_set_parameters: enter: usecase(4: audio-ull-playback) kvpairs: ro
uting=0
10-08 18:40:38.446 352 633 D audio_hw_primary: out_set_parameters: enter: usecase(29: afe-proxy-playback) kvpairs: r
outing=0
10-08 18:40:38.453 352 637 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0xc) d
evices(0x80000010) stream_handle(0xb6058ec0) io_handle(38) source(1)
10-08 18:40:38.453 352 489 D audio_hw_primary: adev_set_parameters: enter: connect=-2147483632
10-08 18:40:38.468 352 637 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xb6058ec0)
10-08 18:40:38.468 352 637 D audio_hw_primary: in_standby: enter: stream (0xb6058ec0) usecase(9: audio-record)
10-08 18:40:42.949 352 629 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs:
routing=4
10-08 18:40:43.079 352 629 D audio_hw_primary: start_output_stream: enter: stream(0xb60454c0)usecase(1: low-latency-
playback) devices(0x4)
10-08 18:40:43.079 352 629 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(
0x4)
10-08 18:40:43.079 352 629 D audio_hw_primary: select_devices: out_snd_device(4: headphones) in_snd_device(0: )
10-08 18:40:43.079 352 629 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_de
vice(4) acdb_id(10)
10-08 18:40:43.079 352 629 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 10, path = 0
10-08 18:40:43.095 352 629 D audio_hw_primary: select_devices: done
10-08 18:40:46.323 352 637 D audio_hw_extn: audio_extn_get_parameters: returns
10-08 18:40:46.599 352 352 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(44100) channel_mask(0xc) d
evices(0x80002000) stream_handle(0xb6058740) io_handle(46) source(1998)
10-08 18:40:46.600 352 3548 D audio_hw_primary: in_standby: enter: stream (0xb6058740) usecase(9: audio-record)
10-08 18:40:46.600 352 3548 D audio_hw_primary: in_standby: enter: stream (0xb6058740) usecase(9: audio-record)
10-08 18:40:46.608 352 3548 D audio_hw_primary: in_set_parameters: enter: kvpairs=input_source=1998;routing=-21474754
56
10-08 18:40:46.609 352 3548 D audio_hw_primary: start_input_stream: enter: stream(0xb6058740)usecase(12: fm-virtual-r
ecord)
10-08 18:40:46.609 352 3548 D audio_hw_primary: select_devices: out_snd_device(0: ) in_snd_device(71: capture-fm)
10-08 18:40:46.609 352 3548 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_de
vice(71) acdb_id(0)
10-08 18:40:46.609 352 3548 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 0, path = 1
10-08 18:40:46.610 352 3548 D audio_hw_primary: select_devices: done