mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
ASoC: sdw_util/intel: move soundwire endpoint and dai link structures
Move Soundwire endpoint and dai link structures from Intel generic machine driver code to common place holder(soc_sdw_utils.h). These structures will be used in other platform SoundWire machine driver code. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20240913090631.1834543-4-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
23f020bd60
commit
7860df5b29
@ -93,6 +93,27 @@ struct asoc_sdw_mc_private {
|
||||
int codec_info_list_count;
|
||||
};
|
||||
|
||||
struct asoc_sdw_endpoint {
|
||||
struct list_head list;
|
||||
|
||||
u32 link_mask;
|
||||
const char *codec_name;
|
||||
const char *name_prefix;
|
||||
bool include_sidecar;
|
||||
|
||||
struct asoc_sdw_codec_info *codec_info;
|
||||
const struct asoc_sdw_dai_info *dai_info;
|
||||
};
|
||||
|
||||
struct asoc_sdw_dailink {
|
||||
bool initialised;
|
||||
|
||||
u8 group_id;
|
||||
u32 link_mask[SNDRV_PCM_STREAM_LAST + 1];
|
||||
int num_devs[SNDRV_PCM_STREAM_LAST + 1];
|
||||
struct list_head endpoints;
|
||||
};
|
||||
|
||||
extern struct asoc_sdw_codec_info codec_info_list[];
|
||||
int asoc_sdw_get_codec_info_list_count(void);
|
||||
|
||||
|
@ -617,27 +617,6 @@ static const struct snd_soc_ops sdw_ops = {
|
||||
.shutdown = asoc_sdw_shutdown,
|
||||
};
|
||||
|
||||
struct asoc_sdw_endpoint {
|
||||
struct list_head list;
|
||||
|
||||
u32 link_mask;
|
||||
const char *codec_name;
|
||||
const char *name_prefix;
|
||||
bool include_sidecar;
|
||||
|
||||
struct asoc_sdw_codec_info *codec_info;
|
||||
const struct asoc_sdw_dai_info *dai_info;
|
||||
};
|
||||
|
||||
struct asoc_sdw_dailink {
|
||||
bool initialised;
|
||||
|
||||
u8 group_id;
|
||||
u32 link_mask[SNDRV_PCM_STREAM_LAST + 1];
|
||||
int num_devs[SNDRV_PCM_STREAM_LAST + 1];
|
||||
struct list_head endpoints;
|
||||
};
|
||||
|
||||
static const char * const type_strings[] = {"SimpleJack", "SmartAmp", "SmartMic"};
|
||||
|
||||
static int asoc_sdw_count_sdw_endpoints(struct snd_soc_card *card, int *num_devs, int *num_ends)
|
||||
|
Loading…
Reference in New Issue
Block a user