use the codec GPIO count for quirks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34700 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
cc83a8213b
commit
6a60618fc8
@ -989,7 +989,8 @@ TRACE("build tree!\n");
|
||||
|
||||
// GPIO
|
||||
uint32 gpio = 0;
|
||||
for (int32 i = 0; i < HDA_QUIRK_GPIO_COUNT; i++) {
|
||||
for (int32 i = 0; i < GPIO_COUNT_NUM_GPIO(audioGroup->gpio)
|
||||
&& i < HDA_QUIRK_GPIO_COUNT; i++) {
|
||||
if (audioGroup->codec->quirks & (1 << i)) {
|
||||
gpio |= (1 << i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user