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:
Jérôme Duval 2009-01-21 21:02:15 +00:00
parent 9d2810262f
commit 65641d7f8d
2 changed files with 9 additions and 4 deletions

View File

@ -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;
}

View File

@ -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,