Revert "ASoC: soc-card: Add storage for PCI SSID"
This reverts commit 98fa52d89a
which is
commit 47f56e38a199bd45514b8e0142399cba4feeaf1a upstream.
It breaks the current Android ABI, and if needed, can be brought back in an
abi-safe way in the future.
Bug: 161946584
Change-Id: Id1365ae92d3fef88cb8e0575b6b258d244092404
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -40,43 +40,6 @@ int snd_soc_card_add_dai_link(struct snd_soc_card *card,
|
|||||||
void snd_soc_card_remove_dai_link(struct snd_soc_card *card,
|
void snd_soc_card_remove_dai_link(struct snd_soc_card *card,
|
||||||
struct snd_soc_dai_link *dai_link);
|
struct snd_soc_dai_link *dai_link);
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
|
||||||
static inline void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
|
|
||||||
unsigned short vendor,
|
|
||||||
unsigned short device)
|
|
||||||
{
|
|
||||||
card->pci_subsystem_vendor = vendor;
|
|
||||||
card->pci_subsystem_device = device;
|
|
||||||
card->pci_subsystem_set = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
|
|
||||||
unsigned short *vendor,
|
|
||||||
unsigned short *device)
|
|
||||||
{
|
|
||||||
if (!card->pci_subsystem_set)
|
|
||||||
return -ENOENT;
|
|
||||||
|
|
||||||
*vendor = card->pci_subsystem_vendor;
|
|
||||||
*device = card->pci_subsystem_device;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#else /* !CONFIG_PCI */
|
|
||||||
static inline void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
|
|
||||||
unsigned short vendor,
|
|
||||||
unsigned short device)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
|
|
||||||
unsigned short *vendor,
|
|
||||||
unsigned short *device)
|
|
||||||
{
|
|
||||||
return -ENOENT;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_PCI */
|
|
||||||
|
|
||||||
/* device driver data */
|
/* device driver data */
|
||||||
static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
|
static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
|
||||||
void *data)
|
void *data)
|
||||||
|
@@ -990,17 +990,6 @@ struct snd_soc_card {
|
|||||||
#ifdef CONFIG_DMI
|
#ifdef CONFIG_DMI
|
||||||
char dmi_longname[80];
|
char dmi_longname[80];
|
||||||
#endif /* CONFIG_DMI */
|
#endif /* CONFIG_DMI */
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
|
||||||
/*
|
|
||||||
* PCI does not define 0 as invalid, so pci_subsystem_set indicates
|
|
||||||
* whether a value has been written to these fields.
|
|
||||||
*/
|
|
||||||
unsigned short pci_subsystem_vendor;
|
|
||||||
unsigned short pci_subsystem_device;
|
|
||||||
bool pci_subsystem_set;
|
|
||||||
#endif /* CONFIG_PCI */
|
|
||||||
|
|
||||||
char topology_shortname[32];
|
char topology_shortname[32];
|
||||||
|
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
Reference in New Issue
Block a user