mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-06 13:09:58 +00:00

Handle the optional mediatek,accdet property. When present, retrieve the sound component from its phandle, so the machine sound driver can use it to register the audio jack and initialize the MT6359 ACCDET for jack detection. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://patch.msgid.link/20250306-mt8188-accdet-v3-2-7828e835ff4b@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
24 lines
502 B
C
24 lines
502 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* mtk-soc-card.h -- MediaTek soc card data definition
|
|
*
|
|
* Copyright (c) 2022 MediaTek Inc.
|
|
* Author: Chunxu Li <chunxu.li@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MTK_SOC_CARD_H_
|
|
#define _MTK_SOC_CARD_H_
|
|
|
|
struct mtk_platform_card_data;
|
|
struct mtk_sof_priv;
|
|
|
|
struct mtk_soc_card_data {
|
|
const struct mtk_sof_priv *sof_priv;
|
|
struct list_head sof_dai_link_list;
|
|
struct mtk_platform_card_data *card_data;
|
|
struct snd_soc_component *accdet;
|
|
void *mach_priv;
|
|
};
|
|
|
|
#endif
|