mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
ASoC: soc_sdw_utils: add is_amp flag to all amps
The is_amp flag will be used for the codec name_prefix. We detect it by checking if the codec support endpoints other than amp. However, it is not accurate. Currently, the is_amp flag is only set to the amps that include other types of endpoints. But it can't cover the case that a monolithic codec that only the amp endpoint is present. Add the is_amp flag to all amp type codecs and will set the name_prefix by the flag in the follow up commit. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20260605101805.121428-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e43ffb69e0
commit
db06e7b35c
|
|
@ -76,6 +76,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x0102,
|
||||
.part_id = 0x0000, /* TAS2783A */
|
||||
.name_prefix = "tas2783",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, true},
|
||||
|
|
@ -266,6 +267,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.part_id = 0x1308,
|
||||
.name_prefix = "rt1308",
|
||||
.acpi_id = "10EC1308",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, false},
|
||||
|
|
@ -289,6 +291,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x025d,
|
||||
.part_id = 0x1316,
|
||||
.name_prefix = "rt1316",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, true},
|
||||
|
|
@ -311,6 +314,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x025d,
|
||||
.part_id = 0x1318,
|
||||
.name_prefix = "rt1318",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, true},
|
||||
|
|
@ -561,6 +565,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x019f,
|
||||
.part_id = 0x8373,
|
||||
.name_prefix = "Left",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, true},
|
||||
|
|
@ -582,6 +587,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x019f,
|
||||
.part_id = 0x8363,
|
||||
.name_prefix = "Left",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, false},
|
||||
|
|
@ -622,6 +628,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x01fa,
|
||||
.part_id = 0x3556,
|
||||
.name_prefix = "AMP",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, false},
|
||||
|
|
@ -650,6 +657,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x01fa,
|
||||
.part_id = 0x3557,
|
||||
.name_prefix = "AMP",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, false},
|
||||
|
|
@ -678,6 +686,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x01fa,
|
||||
.part_id = 0x3563,
|
||||
.name_prefix = "AMP",
|
||||
.is_amp = true,
|
||||
.dais = {
|
||||
{
|
||||
.direction = {true, false},
|
||||
|
|
@ -989,6 +998,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
|
|||
.vendor_id = 0x0105,
|
||||
.part_id = 0x55aa, /* amplifier mockup */
|
||||
.name_prefix = "sdw_mockup_amp1",
|
||||
.is_amp = true,
|
||||
.version_id = 0,
|
||||
.dais = {
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user