/etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 from Stock ROM

Search This thread

nostupidthing

Senior Member
Nov 1, 2012
1,132
275
Hi, can anyone post the captioned file from stock roms? i want to compare it with cm/fxp's and see what's the problems with 2nd mic and maybe improve the low volume.

thx!
 
  • Like
Reactions: DoO37

nostupidthing

Senior Member
Nov 1, 2012
1,132
275
trying to push this into cm11 build, stopped by sony ric kernel it seems... tired, try again another day.
 

DoO37

Senior Member
Jan 19, 2013
694
811
Cairo
Samsung Galaxy S10
tried, but when i flash it, it says something like "cannot mount /system"... apparently the script needs to adapt...?

here is an example


First You need to edit the META-INF\com\google\android\ "updater-script" file with any text editor (i suggest Notepad++)
and replace the line
Code:
[COLOR="Red"]mount("yaffs2", "MTD", "system", "/system");[/COLOR]
with
Code:
[COLOR="Lime"]mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]

Second you should set the right permissions for the file (as for me i don't know what is the right one for system/etc ,i would use the whole "set permission" script from Sijav flashable zip ,it will work anyway
Code:
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
set_perm(1002, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_did.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_stack.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0755, "/system/etc/init.d/99SuperSUDaemon");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0644, "/system/etc/firmware/wlan");
set_perm(0, 0, 0644, "/system/etc/firmware/wlan/prima/WCNSS_cfg.dat");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/camera");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/libwvdrm_L3.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libwvm.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libWVStreamControlAPI_L3.so");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c2.so");
set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c3.so");
set_perm(0, 0, 0644, "/system/build.prop");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 0755, "/system/bin/ctrlaltdel");

Third your flashable zip only contains "etc" folder in root ,while it should be in system/etc

Anyway i made it for you ,haven't test it but it should work ,you may try flashing it and don't forget to take backup before flashing :)
 

Attachments

  • snd_soc_msm_DoO37.zip
    390.8 KB · Views: 42
  • Like
Reactions: nostupidthing

nostupidthing

Senior Member
Nov 1, 2012
1,132
275
with proper setperm.... : )

edit: handset volume seems better, but 2nd mic (e.g. video record) still work subpar, any idea to improve??
 

Attachments

  • snd_soc_msm_DoO37_v2.zip
    390.3 KB · Views: 21
Last edited:
  • Like
Reactions: DoO37

il2stormo

Member
May 2, 2014
8
5
Downgrading...

with proper setperm.... : )

edit: handset volume seems better, but 2nd mic (e.g. video record) still work subpar, any idea to improve??

I had the same 2nd Mic problem with my ZR. It came with the 10.3.1.a.2.67 firmware out of the box. I went ape trying to find a solution since January. Luckily i found a post from user "nigoc" in Sonymobile forums who said downgrading the phone to 10.1.1.A.1.310 (JellyBean 4.1.2) solves the problem. I did it, and heck he was right. My camera now works as expected. All those "streaming-like" sounds in my video recordings are gone and the sound quality is very good.

I'm attaching the /etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 file from my phone. Hope it works in 4.2.2 :fingers-crossed:
 
Last edited:
  • Like
Reactions: nostupidthing

nostupidthing

Senior Member
Nov 1, 2012
1,132
275
I had the same 2nd Mic problem with my ZR. It came with the 10.3.1.a.2.67 firmware out of the box. I went ape trying to find a solution since January. Luckily i found a post from user "nigoc" in Sonymobile forums who said downgrading the phone to 10.1.1.A.1.310 (JellyBean 4.1.2) solves the problem. I did it, and heck he was right. My camera now works as expected. All those "streaming-like" sounds in my video recordings are gone and the sound quality is very good.

I'm attaching the /etc/system/snd_soc_msm/snd_soc_msm_2x_fusion3 file from my phone. Hope it works in 4.2.2 :fingers-crossed:

am not having "stream" noise in video recording... but low volume... think it's mainly 2nd mic, which in turn affect noise cancellation functionality.

i guess maybe cm/fxp devs used yuga (xperia z) config on zr, and that's causing a problem???

anyway, too tried to try now, later... later...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi, can anyone post the captioned file from stock roms? i want to compare it with cm/fxp's and see what's the problems with 2nd mic and maybe improve the low volume.

    thx!
    1
    Android 4.3 FW (10.4.B.0.569)
    Go Ahead :)
    1
    maybe i can make this a flashable zip? but how..?

    I think you may check This Thread :)
    1

    tried, but when i flash it, it says something like "cannot mount /system"... apparently the script needs to adapt...?

    here is an example
    1
    tried, but when i flash it, it says something like "cannot mount /system"... apparently the script needs to adapt...?

    here is an example


    First You need to edit the META-INF\com\google\android\ "updater-script" file with any text editor (i suggest Notepad++)
    and replace the line
    Code:
    [COLOR="Red"]mount("yaffs2", "MTD", "system", "/system");[/COLOR]
    with
    Code:
    [COLOR="Lime"]mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]

    Second you should set the right permissions for the file (as for me i don't know what is the right one for system/etc ,i would use the whole "set permission" script from Sijav flashable zip ,it will work anyway
    Code:
    set_perm_recursive(0, 0, 0755, 0644, "/system");
    set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
    set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
    set_perm(0, 3003, 06755, "/system/bin/ip");
    set_perm(0, 3003, 02750, "/system/bin/netcfg");
    set_perm(0, 3004, 02755, "/system/bin/ping");
    set_perm(0, 2000, 06750, "/system/bin/run-as");
    set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
    set_perm(0, 0, 0755, "/system/etc/bluetooth");
    set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.conf");
    set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
    set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
    set_perm(1002, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
    set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
    set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_did.conf");
    set_perm(3002, 3002, 0444, "/system/etc/bluetooth/bt_stack.conf");
    set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
    set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
    set_perm(0, 0, 0755, "/system/etc/init.d/99SuperSUDaemon");
    set_perm(0, 0, 0755, "/system/etc/init.d");
    set_perm_recursive(0, 2000, 0755, 0644, "/system/etc/firmware/wlan");
    set_perm(0, 0, 0644, "/system/etc/firmware/wlan/prima/WCNSS_cfg.dat");
    set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
    set_perm(0, 2000, 0755, "/system/vendor");
    set_perm(0, 2000, 0755, "/system/vendor/camera");
    set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
    set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
    set_perm(0, 2000, 0755, "/system/vendor/lib");
    set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
    set_perm(0, 0, 0644, "/system/vendor/lib/libwvdrm_L3.so");
    set_perm(0, 0, 0644, "/system/vendor/lib/libwvm.so");
    set_perm(0, 0, 0644, "/system/vendor/lib/libWVStreamControlAPI_L3.so");
    set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
    set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
    set_perm(0, 2000, 0755, "/system/vendor/firmware");
    set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c2.so");
    set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw_c3.so");
    set_perm(0, 0, 0644, "/system/build.prop");
    set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
    set_perm(0, 0, 06755, "/system/bin/su");
    set_perm(0, 1000, 0755, "/system/xbin/busybox");
    set_perm(0, 0, 0755, "/system/bin/ctrlaltdel");

    Third your flashable zip only contains "etc" folder in root ,while it should be in system/etc

    Anyway i made it for you ,haven't test it but it should work ,you may try flashing it and don't forget to take backup before flashing :)