[wdmaudiodev] Re: Support for clock source selection for USB2 Audio?

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 11 Jan 2018 12:47:06 +0000

  *   Less strict parsing - and allowing out-of-sequence triplets will make the 
Win10 UAC2 driver compatible with more hardware which is already in the field.

Please create a feature request for this and ideally include an example of 
hardware that would benefit from it

https://blogs.msdn.microsoft.com/matthew_van_eerde/2016/09/26/report-problems-with-logs-and-suggest-features-with-the-feedback-hub/

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Børge Strand-Bergesen <borge.strand@xxxxxxxxx>
Sent: Thursday, January 11, 2018 12:39:09 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Support for clock source selection for USB2 Audio?

How does this tie in with sample rate triplets?

you may remember the struggles I have a few months ago with sample rate triplet 
parsing. At the time I considered splitting it into two virtual clocks. Reading 
this I'm glad I didn't.

The DAC I make has two physical clocks which are chosen by firmware depending 
on which sample rate is requested by the driver. So the firmware only exposes 
one clock to the driver. Let me know if you need code and descriptors, both are 
open source in my case.

Possibly OT: Before the Win10 UAC2 driver came out, all other OSes with UAC2 
allowed for very relaxed sample sample rate triplet parsing. I.e. triplets 
could come in an arbitrary sequence, and available rates came out of some 
sort() which followed some sort of parse(). That was the world in which our 
firmware was tested and found to be solid. Less strict parsing - and allowing 
out-of-sequence triplets will make the Win10 UAC2 driver compatible with more 
hardware which is already in the field.


Best,
Børge


On Thu, Jan 11, 2018 at 9:14 AM, Franz Detro 
<franz.detro@xxxxxxxxxxxxxxxxxxxxx<mailto:franz.detro@xxxxxxxxxxxxxxxxxxxxx>> 
wrote:

KS wrote:

In USB2 Audio, it is possible for device to support multiple clock
source that can be selected through a clock selector.

I don't see that anywhere in the Audio Class specification.  Where is
that described?

Audio20 final.pdf, 3.13.11.2 Clock Selector, 3.16.3 Clock Model, 4.7.2.1 Clock 
Source Descriptor and 4.7.2.2 Clock Selector Descriptor

The Audio Class driver should extract clock information from the UAC 
descriptors and provide a GUI to select a clock (in case of multiple clocks) / 
configure the sample rate.

In case of externally driven clocks the driver should monitor an eventually 
existing interrupt notification endpoint for changes of current clock (clock 
selector) and sample rate.



In Mac OS, there is a droplist in audio MIDI app that allow user to
select the desired clock source.

What choices do you see?

--
Tim Roberts, timr@xxxxxxxxx<mailto:timr@xxxxxxxxx>
Providenza & Boekelheide, Inc.

******************

WDMAUDIODEV addresses:
Post message: 
mailto:wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subscribe:    
mailto:wdmaudiodev-request@xxxxxxxxxxxxx<mailto:wdmaudiodev-request@xxxxxxxxxxxxx>?subject=subscribe
Unsubscribe:  
mailto:wdmaudiodev-request@xxxxxxxxxxxxx<mailto:wdmaudiodev-request@xxxxxxxxxxxxx>?subject=unsubscribe
Moderator:    
mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx<mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx>

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Ca054f1c6c5794e85b89008d558ceea6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636512568123390511&sdata=NpovrEB4pvmAgZYmQWHeTVH8C1eiwt%2FxlT1Optqoaa4%3D&reserved=0>


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subscribe:    
mailto:wdmaudiodev-request@xxxxxxxxxxxxx<mailto:wdmaudiodev-request@xxxxxxxxxxxxx>?subject=subscribe
Unsubscribe:  
mailto:wdmaudiodev-request@xxxxxxxxxxxxx<mailto:wdmaudiodev-request@xxxxxxxxxxxxx>?subject=unsubscribe
Moderator:    
mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx<mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx>

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Ca054f1c6c5794e85b89008d558ceea6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636512568123390511&sdata=NpovrEB4pvmAgZYmQWHeTVH8C1eiwt%2FxlT1Optqoaa4%3D&reserved=0>


Other related posts: