So I bought an ASUS N56VJ to install linux on it, and as expected, not everything worked right out of the box with Linux. This laptop in particular comes with premium audio which includes a small subwoofer, (great for watching movies) and to my disappointment, it was not working with Linux. Had to make some configuration changes to make it work.
To make the subwoofer work, follow the following steps.
Edit or Create /etc/modprobe.d/alsa-base.conf and add
options snd-hda-intel model=asus-mode4
Edit /usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf and add the following
[Mapping analog-surround-21] device-strings = surround40:%f channel-map = front-left,front-right,lfe,lfe paths-output = analog-output analog-output-speaker priority = 7 direction = output
And in this file /etc/pulse/daemon.conf enable remixing
enable-lfe-remixing = yes
Restart your computer and enjoy the subwoofer 🙂
Thank you to ArchLinux wiki for saving the day 🙂