summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt700.h
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2023-03-24 09:44:02 +0800
committerMark Brown <broonie@kernel.org>2023-03-29 15:03:04 +0100
commit3bcced019eb266e91b7eecc1f8fd3da5f55ca4cd (patch)
tree82f20901217482d1f37c5214cb8136c80886ce6c /sound/soc/codecs/rt700.h
parentbe8e5a850eb1780bae360b9b48b6d2ab70e5fb03 (diff)
downloadlinux-next-3bcced019eb266e91b7eecc1f8fd3da5f55ca4cd.tar.gz
linux-next-3bcced019eb266e91b7eecc1f8fd3da5f55ca4cd.zip
ASoC: codecs: rt700-sdw: simplify set_stream
Using a dynamic allocation to store a single pointer is not very efficient/useful. Worse, the memory is released in the SoundWire stream.c file, but still accessed in the DAI shutdown, leading to kmemleak reports. And last the API requires the previous stream information to be cleared when the argument is NULL. Simplify the code to address all 3 problems. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230324014408.1677505-8-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt700.h')
-rw-r--r--sound/soc/codecs/rt700.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt700.h b/sound/soc/codecs/rt700.h
index bed9d1de6d5b..93c44005d38c 100644
--- a/sound/soc/codecs/rt700.h
+++ b/sound/soc/codecs/rt700.h
@@ -27,10 +27,6 @@ struct rt700_priv {
bool disable_irq;
};
-struct sdw_stream_data {
- struct sdw_stream_runtime *sdw_stream;
-};
-
/* NID */
#define RT700_AUDIO_FUNCTION_GROUP 0x01
#define RT700_DAC_OUT1 0x02