acp-pci.c (2b1333b80885b896807ffb6ccf4bc21d29aa65e0) acp-pci.c (e8a33a94078560df73761f6d6147a25bda07605c)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2022 Advanced Micro Devices, Inc. All rights reserved.
7//
8// Authors: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>

--- 68 unchanged lines hidden (view full) ---

77
78 switch (pci->revision) {
79 case 0x01:
80 res_acp = acp3x_res;
81 num_res = ARRAY_SIZE(acp3x_res);
82 chip->name = "acp_asoc_renoir";
83 chip->acp_rev = ACP3X_DEV;
84 break;
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2022 Advanced Micro Devices, Inc. All rights reserved.
7//
8// Authors: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>

--- 68 unchanged lines hidden (view full) ---

77
78 switch (pci->revision) {
79 case 0x01:
80 res_acp = acp3x_res;
81 num_res = ARRAY_SIZE(acp3x_res);
82 chip->name = "acp_asoc_renoir";
83 chip->acp_rev = ACP3X_DEV;
84 break;
85 case 0x6f:
86 res_acp = acp3x_res;
87 num_res = ARRAY_SIZE(acp3x_res);
88 chip->name = "acp_asoc_rembrandt";
89 chip->acp_rev = ACP6X_DEV;
90 break;
85 default:
86 dev_err(dev, "Unsupported device revision:0x%x\n", pci->revision);
87 return -EINVAL;
88 }
89
90 dmic_dev = platform_device_register_data(dev, "dmic-codec", PLATFORM_DEVID_NONE, NULL, 0);
91 if (IS_ERR(dmic_dev)) {
92 dev_err(dev, "failed to create DMIC device\n");

--- 69 unchanged lines hidden ---
91 default:
92 dev_err(dev, "Unsupported device revision:0x%x\n", pci->revision);
93 return -EINVAL;
94 }
95
96 dmic_dev = platform_device_register_data(dev, "dmic-codec", PLATFORM_DEVID_NONE, NULL, 0);
97 if (IS_ERR(dmic_dev)) {
98 dev_err(dev, "failed to create DMIC device\n");

--- 69 unchanged lines hidden ---