sound: use DEFINE_PCI_DEVICE_TABLE
Use DEFINE_PCI_DEVICE_TABLE() to make PCI device ids go to .devinit.rodata section, so they can be discarded in some cases, and make them const. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
这个提交包含在:
@@ -63,7 +63,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "darla20_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0010, 0, 0, 0}, /* DSP 56301 Darla20 rev.0 */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -67,7 +67,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "darla24_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0040, 0, 0, 0}, /* DSP 56301 Darla24 rev.0 */
|
||||
{0x1057, 0x1801, 0xECC0, 0x0041, 0, 0, 0}, /* DSP 56301 Darla24 rev.1 */
|
||||
{0,}
|
||||
|
@@ -81,7 +81,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "3g_asic.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x0100, 0, 0, 0}, /* Echo 3G */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -67,7 +67,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "gina20_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0}, /* DSP 56301 Gina20 rev.0 */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -85,7 +85,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "gina24_361_asic.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0050, 0, 0, 0}, /* DSP 56301 Gina24 rev.0 */
|
||||
{0x1057, 0x1801, 0xECC0, 0x0051, 0, 0, 0}, /* DSP 56301 Gina24 rev.1 */
|
||||
{0x1057, 0x3410, 0xECC0, 0x0050, 0, 0, 0}, /* DSP 56361 Gina24 rev.0 */
|
||||
|
@@ -68,7 +68,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "indigo_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x0090, 0, 0, 0}, /* Indigo */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -68,7 +68,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "indigo_dj_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x00B0, 0, 0, 0}, /* Indigo DJ*/
|
||||
{0,}
|
||||
};
|
||||
|
@@ -68,7 +68,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "indigo_djx_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x00E0, 0, 0, 0}, /* Indigo DJx*/
|
||||
{0,}
|
||||
};
|
||||
|
@@ -69,7 +69,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "indigo_io_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x00A0, 0, 0, 0}, /* Indigo IO*/
|
||||
{0,}
|
||||
};
|
||||
|
@@ -69,7 +69,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "indigo_iox_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x00D0, 0, 0, 0}, /* Indigo IOx */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -76,7 +76,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "layla20_asic.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0030, 0, 0, 0}, /* DSP 56301 Layla20 rev.0 */
|
||||
{0x1057, 0x1801, 0xECC0, 0x0031, 0, 0, 0}, /* DSP 56301 Layla20 rev.1 */
|
||||
{0,}
|
||||
|
@@ -87,7 +87,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "layla24_2S_asic.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x0060, 0, 0, 0}, /* DSP 56361 Layla24 rev.0 */
|
||||
{0,}
|
||||
};
|
||||
|
@@ -77,7 +77,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "mia_dsp.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x3410, 0xECC0, 0x0080, 0, 0, 0}, /* DSP 56361 Mia rev.0 */
|
||||
{0x1057, 0x3410, 0xECC0, 0x0081, 0, 0, 0}, /* DSP 56361 Mia rev.1 */
|
||||
{0,}
|
||||
|
@@ -92,7 +92,7 @@ static const struct firmware card_fw[] = {
|
||||
{0, "mona_2_asic.fw"}
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_echo_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_echo_ids) = {
|
||||
{0x1057, 0x1801, 0xECC0, 0x0070, 0, 0, 0}, /* DSP 56301 Mona rev.0 */
|
||||
{0x1057, 0x1801, 0xECC0, 0x0071, 0, 0, 0}, /* DSP 56301 Mona rev.1 */
|
||||
{0x1057, 0x1801, 0xECC0, 0x0072, 0, 0, 0}, /* DSP 56301 Mona rev.2 */
|
||||
|
在新工单中引用
屏蔽一个用户