mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
ASoC: stm: fix macro definition on STM_SAI_HAS_EXT_SYNC
The macro STM_SAI_HAS_EXT_SYNC accepts a parameter x, but it was not used, rather the variable sai was directly used, which may be a local variable inside a function that calls the macros. Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Link: https://patch.msgid.link/20240821070815.2326534-6-lihongbo22@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2f12d0de77
commit
7a01e17e42
|
|
@ -53,7 +53,7 @@
|
|||
#define STM_SAI_PROTOCOL_IS_SPDIF(ip) ((ip)->spdif)
|
||||
#define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf.has_spdif_pdm)
|
||||
#define STM_SAI_HAS_PDM(x) ((x)->pdata->conf.has_spdif_pdm)
|
||||
#define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata))
|
||||
#define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4((x)->pdata))
|
||||
|
||||
#define SAI_IEC60958_BLOCK_FRAMES 192
|
||||
#define SAI_IEC60958_STATUS_BYTES 24
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user