Files
linux/include/linux
Stefan Binding 43f1a7f905 soundwire: stream: Add specific prep/deprep commands to port_prep callback
Currently, port_prep callback only has commands for PRE_PREP, PREP,
and POST_PREP, which doesn't directly say whether this is for a
prepare or deprepare call. Extend the command list enum to say
whether the call is for prepare or deprepare aswell.

Also remove SDW_OPS_PORT_PREP from sdw_port_prep_ops as this is unused,
and update this enum to be simpler and more consistent with enum
sdw_clk_stop_type.

Note: Currently, the only users of SDW_OPS_PORT_POST_PREP are codec
drivers sound/soc/codecs/wsa881x.c and sound/soc/codecs/wsa883x.c, both
of which seem to assume that POST_PREP only occurs after a prepare,
even though it would also have occurred after a deprepare. Since it
doesn't make sense to mark the port prepared after a deprepare, changing
the enum to separate PORT_DEPREP from PORT_PREP should make the check
for PORT_PREP in those drivers be more logical.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20230127165111.3010960-2-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-31 12:10:45 +00:00
..
2022-10-27 13:23:43 +02:00
2022-11-04 12:59:25 +02:00
2022-12-11 21:25:58 +01:00
2022-12-07 09:43:12 -07:00
2022-12-08 18:25:31 -08:00
2022-12-02 18:12:40 +08:00
2022-11-18 09:14:10 +01:00
2022-12-11 18:12:17 -08:00
2022-10-20 10:13:30 +02:00
2022-10-24 12:30:26 +03:00
2022-10-03 14:02:45 -07:00
2022-11-11 18:18:05 -08:00
2022-11-29 09:09:17 +11:00
2022-11-15 00:42:02 -08:00
2022-12-11 19:30:20 -08:00
2022-10-03 14:03:19 -07:00
2022-11-09 19:28:49 -08:00
2022-10-16 17:58:54 -05:00
2022-10-03 17:34:32 -07:00
2022-10-04 20:52:38 +02:00
2022-10-20 10:13:30 +02:00
2022-12-20 03:13:45 +01:00
2022-10-23 18:06:54 -04:00
2022-10-21 10:11:00 -07:00
2022-12-09 19:47:41 -08:00
2022-11-29 15:00:06 -08:00
2022-12-11 18:12:19 -08:00
2022-09-29 15:20:29 +02:00
2022-12-10 13:36:05 -05:00
2022-10-07 09:32:40 -04:00
2022-10-24 12:12:32 -07:00