avstream driver registering in Audio Capture Sources category?

Hi All,
I want AVStream driver to be registered in the Audio Capture
Sources category. I made changes in .inf file and added one more catagory
KSCATAGORY_AUDIO/RENDER. But still it does not work. Is there something more
that I need to mention ??


…Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||

On Mon, Dec 22, 2008 at 04:51:49PM +0530, swapnil kamble wrote:

I want AVStream driver to be registered in the Audio Capture
Sources category. I made changes in .inf file and added one more catagory
KSCATAGORY_AUDIO/RENDER. But still it does not work. Is there something more
that I need to mention ??

Did you change the data structures in the device? The KSFILTER_DESCRIPTOR
contains a category list that gets copied to the registry when the
filter factory is created.

Tim Roberts, xxxxx@probo.com
Providenza & Boeklheide, Inc.

Hi Tim,
I have done any changes in KSFILTER_DESCRIPTOR but I have added
one more GUID in CaptureFilterCatagories array like,

const
GUID
CaptureFilterCategories [CAPTURE_FILTER_CATEGORIES_COUNT] = {
STATICGUIDOF (KSCATEGORY_VIDEO),
STATICGUIDOF (KSCATEGORY_AUDIO),
STATICGUIDOF (KSCATEGORY_RENDER),
STATICGUIDOF (KSCATEGORY_CAPTURE)
};

and it is added in KSFILTER_DESCRIPTOR in this way ,
const
KSFILTER_DESCRIPTOR
CaptureFilterDescriptor = {
&CaptureFilterDispatch,
NULL,
KSFILTER_DESCRIPTOR_VERSION,
KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING,
&KSNAME_Filter,
DEFINE_KSFILTER_PIN_DESCRIPTORS (CaptureFilterPinDescriptors),

DEFINE_KSFILTER_CATEGORIES
(CaptureFilterCategories),//*******************************

DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL,
DEFINE_KSFILTER_DEFAULT_CONNECTIONS,

NULL
};

I have also modified inf file, but that too does not work. My inf file looks
like this
[avssamp.RunOnce.AddReg]
HKLM,%RunOnce%,“avssamp.Reader.Capture”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_CAPTURE%,%17%\avssamp.inf,avssamp.Reader.Install”
HKLM,%RunOnce%,“avssamp.Reader.Video”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_VIDEO%,%17%\avssamp.inf,avssamp.Reader.Install”
HKLM,%RunOnce%,“avssamp.Reader.Audio”,“rundll32.exe
streamci,StreamingDeviceSetup
%avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_AUDIO%,%17%\avssamp.inf,avssamp.Reader.Install”

[Strings]
KSCATEGORY_AUDIO=“{6994AD04-93EF-11D0-A3CC-00A0C9223196}”
KSCATEGORY_RENDER=“{65E8773E-8F56-11D0-A3B9-00A0C9223196}”
KSCATEGORY_CAPTURE=“{65E8773D-8F56-11D0-A3B9-00A0C9223196}”

Is it the correct way to do it ? What else do we need to mention ?

On Tue, Dec 23, 2008 at 12:24 AM, wrote:

> On Mon, Dec 22, 2008 at 04:51:49PM +0530, swapnil kamble wrote:
> >
> > I want AVStream driver to be registered in the Audio Capture
> > Sources category. I made changes in .inf file and added one more catagory
> > KSCATAGORY_AUDIO/RENDER. But still it does not work. Is there something
> more
> > that I need to mention ??
>
> Did you change the data structures in the device? The KSFILTER_DESCRIPTOR
> contains a category list that gets copied to the registry when the
> filter factory is created.
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boeklheide, Inc.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


…Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||

Now device is visible in listing of device manager under Sound, Video, and
Game Controller lists. But still not getting enumerated under capturer and
renderer catagory.

On Tue, Dec 23, 2008 at 10:36 AM, swapnil kamble wrote:

> Hi Tim,
> I have done any changes in KSFILTER_DESCRIPTOR but I have added
> one more GUID in CaptureFilterCatagories array like,
>
> const
> GUID
> CaptureFilterCategories [CAPTURE_FILTER_CATEGORIES_COUNT] = {
> STATICGUIDOF (KSCATEGORY_VIDEO),
> STATICGUIDOF (KSCATEGORY_AUDIO),
> STATICGUIDOF (KSCATEGORY_RENDER),
> STATICGUIDOF (KSCATEGORY_CAPTURE)
> };
>
> and it is added in KSFILTER_DESCRIPTOR in this way ,
> const
> KSFILTER_DESCRIPTOR
> CaptureFilterDescriptor = {
> &CaptureFilterDispatch,
> NULL,
> KSFILTER_DESCRIPTOR_VERSION,
> KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING,
> &KSNAME_Filter,
> DEFINE_KSFILTER_PIN_DESCRIPTORS (CaptureFilterPinDescriptors),
>
> DEFINE_KSFILTER_CATEGORIES
> (CaptureFilterCategories),// *******************************
>
> DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL,
> DEFINE_KSFILTER_DEFAULT_CONNECTIONS,
>
> NULL
> };
>
> I have also modified inf file, but that too does not work. My inf file
> looks like this
> [avssamp.RunOnce.AddReg]
> HKLM,%RunOnce%,“avssamp.Reader.Capture”,“rundll32.exe
> streamci,StreamingDeviceSetup
>
> %avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_CAPTURE%,%17%\avssamp.inf,avssamp.Reader.Install”
> HKLM,%RunOnce%,“avssamp.Reader.Video”,“rundll32.exe
> streamci,StreamingDeviceSetup
>
> %avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_VIDEO%,%17%\avssamp.inf,avssamp.Reader.Install”
> HKLM,%RunOnce%,“avssamp.Reader.Audio”,“rundll32.exe
> streamci,StreamingDeviceSetup
>
> %avssamp.DeviceId%,%KSNAME_Filter%,%KSCATEGORY_AUDIO%,%17%\avssamp.inf,avssamp.Reader.Install”
>
> [Strings]
> KSCATEGORY_AUDIO=“{6994AD04-93EF-11D0-A3CC-00A0C9223196}”
> KSCATEGORY_RENDER=“{65E8773E-8F56-11D0-A3B9-00A0C9223196}”
> KSCATEGORY_CAPTURE=“{65E8773D-8F56-11D0-A3B9-00A0C9223196}”
>
> Is it the correct way to do it ? What else do we need to mention ?
>
>
> On Tue, Dec 23, 2008 at 12:24 AM, wrote:
>
>> On Mon, Dec 22, 2008 at 04:51:49PM +0530, swapnil kamble wrote:
>> >
>> > I want AVStream driver to be registered in the Audio Capture
>> > Sources category. I made changes in .inf file and added one more
>> catagory
>> > KSCATAGORY_AUDIO/RENDER. But still it does not work. Is there something
>> more
>> > that I need to mention ??
>>
>> Did you change the data structures in the device? The KSFILTER_DESCRIPTOR
>> contains a category list that gets copied to the registry when the
>> filter factory is created.
>> –
>> Tim Roberts, xxxxx@probo.com
>> Providenza & Boeklheide, Inc.
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
>
> –
> …Swapnil
>
> || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
> || Hare Rama Hare Rama Rama Rama Hare Hare ||
>


…Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||

swapnil kamble wrote:

Now device is visible in listing of device manager under Sound, Video,
and Game Controller lists. But still not getting enumerated under
capturer and renderer catagory.

Well, you cannot have one single filter that is both a capture source
and a renderer. That doesn’t make sense. Do you actually have two
separate filters here?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

>

Do you actually have two separate filters here?

Well, I tried all combinations, 2 separate filters / single capture / single
renderer but still my device is not included Audio Capture Sources. I also
tried with defining my own connections and nodes in KSFILTER_DESCRIPTOR
rather than using default ones, but still the same problem. :-(( . I simply
want my device to be included in Audio Capture sources list by using
AVStream.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


…Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||

On Wed, Dec 24, 2008 at 09:57:11AM +0530, swapnil kamble wrote:

>
> Do you actually have two separate filters here?

Well, I tried all combinations, 2 separate filters / single capture / single
renderer but still my device is not included Audio Capture Sources. I also
tried with defining my own connections and nodes in KSFILTER_DESCRIPTOR
rather than using default ones, but still the same problem. :-(( . I simply
want my device to be included in Audio Capture sources list by using
AVStream.

Well, I’ve seen KSCATEGORY_AUDIO work for capture filters, although I’ve
not tried it for render filters.

Tim Roberts, xxxxx@probo.com
Providenza & Boeklheide, Inc.

Hi,
Thanks for reply.
Even though its for capture filters its fine for me. But doing what
exact modification you got it under Audio Capture Sources ?

On Wed, Dec 24, 2008 at 1:36 PM, wrote:

> On Wed, Dec 24, 2008 at 09:57:11AM +0530, swapnil kamble wrote:
> > >
> > > Do you actually have two separate filters here?
> >
> > Well, I tried all combinations, 2 separate filters / single capture /
> single
> > renderer but still my device is not included Audio Capture Sources. I
> also
> > tried with defining my own connections and nodes in KSFILTER_DESCRIPTOR
> > rather than using default ones, but still the same problem. :-(( . I
> simply
> > want my device to be included in Audio Capture sources list by using
> > AVStream.
>
> Well, I’ve seen KSCATEGORY_AUDIO work for capture filters, although I’ve
> not tried it for render filters.
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boeklheide, Inc.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


…Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama Hare Rama Rama Rama Hare Hare ||

swapnil kamble wrote:

Hi,
Thanks for reply.
Even though its for capture filters its fine for me. But doing
what exact modification you got it under Audio Capture Sources ?

A number of the WDK samples in the src\audio directory do this. The
fmsynth sample is an audio render device; it uses KSCATEGORY_AUDIO and
KSCATEGORY_RENDER. The dmusuart sample does audio render and capture.
In your DDK src\audio folder, search for “OF(KSCATEGORY”.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.