Fix default DMIC gain on AMD PDM drivers
authorMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 15:36:47 +0000 (15:36 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 2 Feb 2023 15:36:47 +0000 (15:36 +0000)
commit1d78f19d90d1932c83d8c96c6f86fbb06c05e29a
tree4c65305756f478be98409c3b564ef72d3b9e1880
parent2a096315be7d8ccad883203876c4b53e7b024f12
parent5579a966229c3365d0e2c91e9a96fc40e293dffa
Fix default DMIC gain on AMD PDM drivers

Merge series from Mario Limonciello <mario.limonciello@amd.com>:

It's been reported that a number of laptops have a low volume
level from the digital microphone compared to Windows.

AMD offers a register that can adjust the gain for PDM which is not
configured at maximum gain by default.

To fix this change the default for all 3 drivers to raise the gain
but also offer a module parameter. The module parameter can be used
for debugging if the gain is too high on a given laptop.

This is intentionally split into multiple patches for default and
parameter so that if the default really does behave better universally
we can bring it back to stable too later.