ok.. seems I mixed up NS device id and AMD vendor id.
Both devices are now checked for. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28979 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9d2810262f
commit
65641d7f8d
@ -27,8 +27,10 @@ init_hardware(void)
|
||||
return ENODEV;
|
||||
|
||||
for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK; i++) {
|
||||
if (info.vendor_id == AMD_VENDOR_ID
|
||||
&& info.device_id == AMD_CS5536_AUDIO_DEVICE_ID) {
|
||||
if ((info.vendor_id == AMD_VENDOR_ID
|
||||
&& info.device_id == AMD_CS5536_AUDIO_DEVICE_ID)
|
||||
|| (info.vendor_id == NS_VENDOR_ID
|
||||
&& info.device_id == NS_CS5535_AUDIO_DEVICE_ID)) {
|
||||
put_module(B_PCI_MODULE_NAME);
|
||||
return B_OK;
|
||||
}
|
||||
|
@ -29,8 +29,11 @@
|
||||
#define DEFAULT_FRAMES_PER_BUFFER 2048
|
||||
|
||||
|
||||
#define AMD_VENDOR_ID 0x1022
|
||||
#define AMD_CS5536_AUDIO_DEVICE_ID 0x002e
|
||||
#define AMD_VENDOR_ID 0x1022
|
||||
#define AMD_CS5536_AUDIO_DEVICE_ID 0x2093
|
||||
|
||||
#define NS_VENDOR_ID 0x100b
|
||||
#define NS_CS5535_AUDIO_DEVICE_ID 0x002e
|
||||
|
||||
enum {
|
||||
STREAM_PLAYBACK,
|
||||
|
Loading…
Reference in New Issue
Block a user