Re: AppleUSBAudioDevice device name
Re: AppleUSBAudioDevice device name
- Subject: Re: AppleUSBAudioDevice device name
- From: Jeff Moore <email@hidden>
- Date: Mon, 18 Mar 2002 12:48:11 -0800
on 3/18/02 8:06 AM, Dave Koziol <email@hidden> wrote:
>
I have a device which report a device name of "Unknown USB Audio
>
Device". I'd like to write some code to report a more accurate
>
description to the user.
The most appropriate place to put the name of the device is in the firmware
of the device so that the standard driver just works. But, presumably that
isn't possible, or you wouldn't be asking the question...
>
I can see in AppleUSBAudioDevice.cpp where this string gets set into the
>
IORegistry. I looked at creating a simple KEXT which subclassed
>
AppleUSBAudioDevice, but AppleUSBAudioDevice doesn't have a
>
OSBundleCompatibleVersion property so I could make my KEXT depend on
>
it. I know Apple frowns on subclasses any KEXT which starts with Apple
>
anyways, but except for this name, the device works fine.
I can't really help you with this. This is more of a "how does IOKit work"
sort of question. You'd probably get a better answer on the Darwin
developers' list.
>
In AudioHardware.h, I see AudioDeviceSetProperty, and the
>
kAudioDevicePropertyDeviceName property, but I'm not sure how I would
>
know which device was the device who's name I'm trying to set.
This property isn't a settable property in the HAL. All it does is vend out
the string the driver sticks in the IORegistry.
>
Besides changing the hardware which can't be done at this point, what is
>
the recommended method of dealing with this?
It sounds to me like you're going to have to ship a customized version of
the standard Apple USB Audio driver, which is really unfortunate. Perhaps
the IOKit folks over on the Darwin list can offer a better, simpler
solution.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.