Glad that worked for you.  I’m fairly certain Apple doesn’t document this 
anywhere.  

 

Thank you,

David A. Hoatson



 

From: Gagan Sidhu via Coreaudio-api <[email protected]> 
Sent: Thursday, February 2, 2023 2:19 PM
To: Gagan Sidhu via Coreaudio-api <[email protected]>
Subject: Re: updating PCI device name after loading driver

 

you sir, mr hoatson, are the fucking MAN.

 

THANK YOU. this was driving me NUTS!

 

 

Thanks,

Gagan

 

"I am telling you if there is a God, when I get to heaven I’m not stopping to 
be interviewed. I am heading straight in. I have earned my place in heaven. 
It’s not even close” - Michael Bloomberg



On Feb 2, 2023, at 3:14 PM, David A. Hoatson <[email protected] 
<mailto:[email protected]> > wrote:

 

A KEXT for a PCI device sets the name with:

 

IORegistryEntry *pRegEntry = getParentEntry(gIOServicePlane);

pRegEntry->setProperty( "model", OSData::withBytes( pszModel, 
strlen(pszModel)+1 ) );

 

Hopefully this helps.

 

Thank you,

David A. Hoatson




 

From: Gagan Sidhu via Coreaudio-api <[email protected] 
<mailto:[email protected]> > 
Sent: Thursday, February 2, 2023 2:05 PM
To: Gagan Sidhu via Coreaudio-api <[email protected] 
<mailto:[email protected]> >
Subject: updating PCI device name after loading driver

 

hello again all,

 

not sure if i reported that i got IOAudioSelector working and so now i have 
this baby firin’ on all cylinders.

 

gotta use HALLab if i want to adjust the headphone jack impedance settings, but 
that’s really not a big deal.

 

among the last bits i’d like to deal with is renaming the PCI device.

 

i’ve tried:

 

setName

setShortName

setDeviceName

setDeviceShortName

 

in the IOAudioDevice object and none of these will update the device name in 
system report.

 

 

anyone got tips on how to fix this? 

 

 

Thanks,
Gagan

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to