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]> 
Sent: Thursday, February 2, 2023 2:05 PM
To: Gagan Sidhu via Coreaudio-api <[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