patch from Michael Weirauch: cast before shifting vendor id. thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
127da0271b
commit
8eadf4d51f
@ -204,7 +204,7 @@ ac97_attach(ac97_dev **_dev, codec_reg_read reg_read, codec_reg_write reg_write,
|
||||
dev->cookie = cookie;
|
||||
dev->reg_read = reg_read;
|
||||
dev->reg_write = reg_write;
|
||||
dev->codec_id = (reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
|
||||
dev->codec_id = ((uint32)reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
|
||||
codec = find_codec_table(dev->codec_id);
|
||||
dev->codec_info = codec->info;
|
||||
dev->init = codec->init;
|
||||
|
@ -199,7 +199,7 @@ ac97_attach(ac97_dev **_dev, codec_reg_read reg_read, codec_reg_write reg_write,
|
||||
dev->cookie = cookie;
|
||||
dev->reg_read = reg_read;
|
||||
dev->reg_write = reg_write;
|
||||
dev->codec_id = (reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
|
||||
dev->codec_id = ((uint32)reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
|
||||
codec = find_codec_table(dev->codec_id);
|
||||
dev->codec_info = codec->info;
|
||||
dev->init = codec->init;
|
||||
|
Loading…
Reference in New Issue
Block a user