]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_rt5640: Use cfg-lineout:2 in the components string
authorHans de Goede <hdegoede@redhat.com>
Mon, 16 Aug 2021 11:47:22 +0000 (13:47 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 17 Aug 2021 12:35:02 +0000 (13:35 +0100)
commit6df7e9ce4539e0335ac87d6c69e54c32523282ef
tree9753856eb79993e63a190845373dc2b56b2df886
parenta5d1923503edcface6ac887d6a598926f58b9951
ASoC: Intel: bytcr_rt5640: Use cfg-lineout:2 in the components string

Use "cfg-lineout:2" in the components string on boards with a lineout
instead of "cfg-lineout:1", this better mirrors the speaker part of
the components string where we use "cfg-spk:1" for devices with a single
speaker and "cfg-spk:2" for stereo speakers.

The lineout is stereo by default, so using ":2" makes more sense, this
way we keep ":1" reserved in case we ever encounter a device with
a mono lineout.

We can make this change without breaking userspace because no kernel
has shipped with "cfg-lineout:1" in the component-string yet; and there
also are no userspace bits (UCM profiles) checking for this yet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210816114722.107363-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c