soundwire: intel_ace2x: cleanup DOAIS/DODS settings
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 29 Apr 2024 00:43:18 +0000 (00:43 +0000)
committerVinod Koul <vkoul@kernel.org>
Sat, 4 May 2024 12:56:49 +0000 (18:26 +0530)
commit80962485f62c3c33730407a8059c6292194cb887
tree486ff4d6506ba32d6e7cc140706e3727bbb9c507
parenta36ec5f7625d923212f7b869f7870616b15f20a2
soundwire: intel_ace2x: cleanup DOAIS/DODS settings

Use two variables to save the settings, in preparation of a follow-up
change to read values from _DSD properties.

Starting with this patch, the bitfields will be reordered and listed
MSB-first, as shown in the hardware documentation.

Also note that the default for DOAIS is changed from 0x1 (copy-pasted
value?) to 0x3 (hardware default).

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240429004321.2399754-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel_ace2x.c