Commit 535df653 authored by Bard Liao's avatar Bard Liao Committed by Mark Brown

ASoC: Intel: sof_sdw: rename id as part_id

The "id" field in sof_sdw_codec_info struct is actually the "part
id". Rename to prevent confusions.
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200821195603.215535-10-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2e2d287b
...@@ -212,20 +212,20 @@ static const struct snd_soc_ops sdw_ops = { ...@@ -212,20 +212,20 @@ static const struct snd_soc_ops sdw_ops = {
static struct sof_sdw_codec_info codec_info_list[] = { static struct sof_sdw_codec_info codec_info_list[] = {
{ {
.id = 0x700, .part_id = 0x700,
.direction = {true, true}, .direction = {true, true},
.dai_name = "rt700-aif1", .dai_name = "rt700-aif1",
.init = sof_sdw_rt700_init, .init = sof_sdw_rt700_init,
}, },
{ {
.id = 0x711, .part_id = 0x711,
.direction = {true, true}, .direction = {true, true},
.dai_name = "rt711-aif1", .dai_name = "rt711-aif1",
.init = sof_sdw_rt711_init, .init = sof_sdw_rt711_init,
.exit = sof_sdw_rt711_exit, .exit = sof_sdw_rt711_exit,
}, },
{ {
.id = 0x1308, .part_id = 0x1308,
.acpi_id = "10EC1308", .acpi_id = "10EC1308",
.direction = {true, false}, .direction = {true, false},
.dai_name = "rt1308-aif", .dai_name = "rt1308-aif",
...@@ -233,20 +233,20 @@ static struct sof_sdw_codec_info codec_info_list[] = { ...@@ -233,20 +233,20 @@ static struct sof_sdw_codec_info codec_info_list[] = {
.init = sof_sdw_rt1308_init, .init = sof_sdw_rt1308_init,
}, },
{ {
.id = 0x715, .part_id = 0x715,
.direction = {false, true}, .direction = {false, true},
.dai_name = "rt715-aif2", .dai_name = "rt715-aif2",
.init = sof_sdw_rt715_init, .init = sof_sdw_rt715_init,
}, },
{ {
.id = 0x8373, .part_id = 0x8373,
.direction = {true, true}, .direction = {true, true},
.dai_name = "max98373-aif1", .dai_name = "max98373-aif1",
.init = sof_sdw_mx8373_init, .init = sof_sdw_mx8373_init,
.codec_card_late_probe = sof_sdw_mx8373_late_probe, .codec_card_late_probe = sof_sdw_mx8373_late_probe,
}, },
{ {
.id = 0x5682, .part_id = 0x5682,
.direction = {true, true}, .direction = {true, true},
.dai_name = "rt5682-sdw", .dai_name = "rt5682-sdw",
.init = sof_sdw_rt5682_init, .init = sof_sdw_rt5682_init,
...@@ -265,7 +265,7 @@ static inline int find_codec_info_part(u64 adr) ...@@ -265,7 +265,7 @@ static inline int find_codec_info_part(u64 adr)
* A codec info is for all sdw version with the part id if * A codec info is for all sdw version with the part id if
* version_id is not specified in the codec info. * version_id is not specified in the codec info.
*/ */
if (part_id == codec_info_list[i].id && if (part_id == codec_info_list[i].part_id &&
(!codec_info_list[i].version_id || (!codec_info_list[i].version_id ||
sdw_version == codec_info_list[i].version_id)) sdw_version == codec_info_list[i].version_id))
return i; return i;
......
...@@ -51,7 +51,7 @@ enum { ...@@ -51,7 +51,7 @@ enum {
#define SOF_SDW_NO_AGGREGATION BIT(12) #define SOF_SDW_NO_AGGREGATION BIT(12)
struct sof_sdw_codec_info { struct sof_sdw_codec_info {
const int id; const int part_id;
const int version_id; const int version_id;
int amp_num; int amp_num;
const u8 acpi_id[ACPI_ID_LEN]; const u8 acpi_id[ACPI_ID_LEN];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment