Skip to contentSkip to conversation

virtio sound: add missing definitions for 12 and 24kHz sampling rates

virtio-comment Pape, Andreas (ADITG/ESS3) 3 participants 8 messages Nov 9, 2023 – Jan 24, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to add two more sampling rates to the virtio sound specification.

Regards,
Andreas Pape

From 067de7a6676dad3ecaaf2316661b0f0057a19cd2 Mon Sep 17 00:00:00 2001
From: Andreas Pape <[email protected]>
Date: Thu, 9 Nov 2023 16:14:57 +0100
Subject: [PATCH] sound: add sampling rates 12000Hz and 24000Hz

24kHz is used for 'super wideband' voice transmission 12kHz is added 'for completeness'

---
 device-types/sound/description.tex | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
device-types/sound/description.tex +3 -1
index 54c9c8e..bad4415 100644
@@ -504,7 +504,9 @@ \subsubsection{PCM Control Messages}\label{sec:Device Types / Sound Device / Dev
     VIRTIO_SND_PCM_RATE_96000,
     VIRTIO_SND_PCM_RATE_176400,
     VIRTIO_SND_PCM_RATE_192000,
-    VIRTIO_SND_PCM_RATE_384000
+    VIRTIO_SND_PCM_RATE_384000,
+    VIRTIO_SND_PCM_RATE_12000,
+    VIRTIO_SND_PCM_RATE_24000
 };
 
 struct virtio_snd_pcm_info {
Signature · 1 line
2.7.4

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#1 lore raw

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced) understanding of the following statement is that using such rates with controller hardware that is made for HDA will result in timing issues:

Quoted 1 line

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/high-definition-audio-specification.pdf

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#2 lore raw

Hello Manos,

thanks for reply..

Table 56 in HDA spec indeed lacks of mentioning 12 and 24kHz

But referring to the protocol itself (3.3.41: Stream Descriptor format) 24kHz is mentioned there. Both rates are fitting into the 'submultiple scheme'.

3.3.41: Stream Descriptor format
Sample Base Rate Divisor (DIV):
000 = Divide by 1 (48 kHz, 44.1 kHz)
001 = Divide by 2 (24 kHz, 22.05 kHz)
010 = Divide by 3 (16 kHz, 32 kHz)
011 = Divide by 4 (11.025 kHz)
100 = Divide by 5 (9.6 kHz)
101 = Divide by 6 (8 kHz)
110 = Divide by 7
111 = Divide by 8 (6 kHz

12kHz is not mentioned there, assume just due to being a real uncommon rate.
Looking at the Linux HDA driver, it seems to e.g. allow the 9600Hz from table 3.3.41 even if also not mentioned in the 'defined sample rates'.
https://elixir.bootlin.com/linux/v6.6.1/source/sound/hda/hdac_device.c#L723
I am definitely not deep inside the HDA spec, thus I may be wrong..

My idea is to just add the definitions for these sampling rates to virtio spec - if a virtio sound device does not support these it must not expose these rate-bits. At least for 24kHz I see no incompatibility to HDA spec due at least explicit presence in the stream descriptor spec.

Regards,
Andreas

-----Original Message-----
From: Manos Pitsidianakis <[email protected]>
Sent: Sonntag, 12. November 2023 15:05
To: [email protected]; Pape, Andreas (ADITG/ESS3) <[email protected]>
Subject: Re: [virtio-comment] virtio sound: add missing definitions for 12 and 24kHz sampling rates

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced) understanding of the following statement is that using such rates with controller hardware that is made for HDA will result in timing issues:

Quoted 4 lines

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://urldefense.proofpoint.com/v2/url?u=https-3A__www.intel.com_content_dam_www_public_us_en_documents_product-2Dspecifications_high-2Ddefinition-2Daudio-2Dspecification.pdf&d=DwIDaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=CtBubv-z_ULu6xZVz5SCQLq2Yq5K2BJxDSLfS2WOKFChZmVQvRY9sAce_EtwF4pO&s=71EiX-sTc9LQVBNxiyt6VLb1eJBxf54HWOFP3ihOPtk&e=

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

#3 lore raw
In reply to Manos Pitsidianakis

Hi Manos, Andreas,

Actually, I think it would make sense to add 12kHz, 24kHz and also 352800kHz to the list of supported frame rates.

Kind regards,

Quoted 31 lines · Manos Pitsidianakis

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced) understanding of the following statement is that using such rates with controller hardware that is made for HDA will result in timing issues:

Quoted 1 line

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.intel.com%2fcontent%2fdam%2fwww%2fpublic%2fus%2fen%2fdocuments%2fproduct%2dspecifications%2fhigh%2ddefinition%2daudio%2dspecification.pdf&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-cb72c66b78900b97f31176a2a470cdf7d28d8f94

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2flists.oasis%2dopen.org%2farchives%2fvirtio%2dcomment%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0fef9f465f0a04da9ccd68a483603afa78faeb94
Feedback License: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fwho%2fipr%2ffeedback%5flicense.pdf&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0620b2dca8947547caf1be09cb1b9460071d9c3c
List Guidelines: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fpolicies%2dguidelines%2fmailing%2dlists&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-7f81dc376e1bb26c4ccd422a6585c18e105f677a
Committee: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fcommittees%2fvirtio%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-e64745d0015d08f4923c010538fce9ec55d679ff
Join OASIS: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fjoin%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0474f1d3e724132ee586e990891b08a79f61f539

Signature · 21 lines
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin

This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
#4 lore raw
Quoted 9 lines · Anton Yakovlev

Hi Manos, Andreas,

Actually, I think it would make sense to add 12kHz, 24kHz and also 352800kHz to the list of supported frame rates.

Kind regards,

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

Quoted 49 lines · Manos Pitsidianakis
Quoted 34 lines

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced) understanding of the following statement is that using such rates with controller hardware that is made for HDA will result in timing issues:

Quoted 4 lines

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.intel.com%2fcontent%2fdam%2fwww%2fpublic%2fus%2fen%2fdocuments%2fproduct%2dspecifications%2fhigh%2ddefinition%2daudio%2dspecification.pdf&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-cb72c66b78900b97f31176a2a470cdf7d28d8f94

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Quoted 13 lines

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected] List archive:
https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2flists.oasis%2dopen.org%2farchives%2fvirtio%2dcomment%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0fef9f465f0a04da9ccd68a483603afa78faeb94
Feedback License:
https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fwho%2fipr%2ffeedback%5flicense.pdf&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0620b2dca8947547caf1be09cb1b9460071d9c3c
List Guidelines:
https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fpolicies%2dguidelines%2fmailing%2dlists&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-7f81dc376e1bb26c4ccd422a6585c18e105f677a
Committee:
https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fcommittees%2fvirtio%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-e64745d0015d08f4923c010538fce9ec55d679ff
Join OASIS:
https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.oasis%2dopen.org%2fjoin%2f&umid=d569f403-01a9-4519-8038-4bb35906ff78&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-0474f1d3e724132ee586e990891b08a79f61f539

Quoted 6 lines

--
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/

#5 lore raw

Hi Manos,

Quoted 1 line

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

sorry, have no mbox access on my devel machine, so here at least as 'inline' patch.

From 067de7a6676dad3ecaaf2316661b0f0057a19cd2 Mon Sep 17 00:00:00 2001
From: Andreas Pape <[email protected]>
Date: Thu, 9 Nov 2023 16:14:57 +0100
Subject: [PATCH] sound: add sampling rates 12000Hz and 24000Hz

24kHz is used for 'super wideband' voice transmission 12kHz is added 'for completeness'

---
 device-types/sound/description.tex | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
device-types/sound/description.tex +3 -1
index 54c9c8e..bad4415 100644
@@ -504,7 +504,9 @@ \subsubsection{PCM Control Messages}\label{sec:Device Types / Sound Device / Dev
     VIRTIO_SND_PCM_RATE_96000,
     VIRTIO_SND_PCM_RATE_176400,
     VIRTIO_SND_PCM_RATE_192000,
-    VIRTIO_SND_PCM_RATE_384000
+    VIRTIO_SND_PCM_RATE_384000,
+    VIRTIO_SND_PCM_RATE_12000,
+    VIRTIO_SND_PCM_RATE_24000
 };
 
 struct virtio_snd_pcm_info {
Signature · 6 lines
2.7.4



Regards
Andreas

-----Original Message-----
From: Manos Pitsidianakis <[email protected]>
Sent: Mittwoch, 29. November 2023 11:00
To: Pape, Andreas (ADITG/ESS3) <[email protected]>; Anton Yakovlev <[email protected]>
Cc: [email protected]
Subject: Re: [virtio-comment] virtio sound: add missing definitions for 12 and 24kHz sampling rates

Quoted 9 lines · Anton Yakovlev

Hi Manos, Andreas,

Actually, I think it would make sense to add 12kHz, 24kHz and also 352800kHz to the list of supported frame rates.

Kind regards,

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

Quoted 104 lines · Manos Pitsidianakis
Quoted 88 lines

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced)
understanding of the following statement is that using such rates
with controller hardware that is made for HDA will result in timing issues:

Quoted 4 lines

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.intel.com-252fcontent-252fdam-252fwww-252fpublic-252fu s-252fen-252fdocuments-252fproduct-252dspecifications-252fhigh-252dd efinition-252daudio-252dspecification.pdf-26umid-3Dd569f403-2D01a9-2 D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de28b92dfd96e93d9dd61a23e 634d2fbec-2Dcb72c66b78900b97f31176a2a470cdf7d28d8f94&d=DwIFaQ&c=euGZ stcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnz Mm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKt rwc8ZclqTYe-rwVj&s=C4PXCALcOBpPDNeGIWkB7vsmQ5xaPjMSbQnLkkrVlFE&e=

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252flists.oasis-252dopen.org-252farchives-252fvirtio-252dcomme nt-252f-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26auth -3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D0fef9f465f0a04da9ccd68 a483603afa78faeb94&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnV fiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd 4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=bE42_ADUpUKXqoY HPjF5jId4ZcCnadR-gcZNX0p_l34&e=
Feedback License:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fwho-252fipr-252ffeedback-255fli cense.pdf-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26au th-3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D0620b2dca8947547caf1 be09cb1b9460071d9c3c&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_Cdpg nVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQV yd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=ckJUT8QAnsUsx -2fLzVGpKp4IwskoblvcZy94Xq0hk0&e=
List Guidelines:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fpolicies-252dguidelines-252fmai ling-252dlists-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78 -26auth-3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D7f81dc376e1bb26 c4ccd422a6585c18e105f677a&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A _CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gH tFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=XkE8xofk 2zPmxpUTxrGH_5iblgB0klKi5m6WKqChmyQ&e=
Committee:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fcommittees-252fvirtio-252f-26um id-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de2 8b92dfd96e93d9dd61a23e634d2fbec-2De64745d0015d08f4923c010538fce9ec55 d679ff&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTt ojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6r HeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=4bK318HHAjzY50iMBH5gUsl-mFw W627wnR8ZpGdCmHQ&e=
Join OASIS:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-

Quoted 8 lines

2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fjoin-252f-26umid-3Dd569f403-2D0 1a9-2D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de28b92dfd96e93d9dd6 1a23e634d2fbec-2D0474f1d3e724132ee586e990891b08a79f61f539&d=DwIFaQ&c =euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNu TjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4i jjmKtrwc8ZclqTYe-rwVj&s=XqitxUGXDo3BcSAQyz0IvpRBl8gemYcxNSUIj8EiWBw& e=

--
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin

Reviewed-by
#6 lore raw

Thanks Pape!

I think that a separate ticket should be created on GitHub for non-editorial improvements to the specification, and the commit should fix this ticket.

Quoted 11 lines · On 29.11.2023 20:33, Pape, Andreas (ADITG/ESS3) wrote:

Hi Manos,

Quoted 1 line

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

sorry, have no mbox access on my devel machine, so here at least as 'inline' patch.

From 067de7a6676dad3ecaaf2316661b0f0057a19cd2 Mon Sep 17 00:00:00 2001
From: Andreas Pape <[email protected]>
Date: Thu, 9 Nov 2023 16:14:57 +0100
Subject: [PATCH] sound: add sampling rates 12000Hz and 24000Hz

Quoted 4 lines

24kHz is used for 'super wideband' voice transmission 12kHz is added 'for completeness'

Quoted 19 lines
---
  device-types/sound/description.tex | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
device-types/sound/description.tex +3 -1
index 54c9c8e..bad4415 100644
@@ -504,7 +504,9 @@ \subsubsection{PCM Control Messages}\label{sec:Device Types / Sound Device / Dev
      VIRTIO_SND_PCM_RATE_96000,
      VIRTIO_SND_PCM_RATE_176400,
      VIRTIO_SND_PCM_RATE_192000,
-    VIRTIO_SND_PCM_RATE_384000
+    VIRTIO_SND_PCM_RATE_384000,
+    VIRTIO_SND_PCM_RATE_12000,
+    VIRTIO_SND_PCM_RATE_24000
  };
 
  struct virtio_snd_pcm_info {
Signature · 21 lines
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin

This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
author Reviewed-by Anton Yakovlev
#7 lore raw
In reply to Manos Pitsidianakis

Hi Anton,

I am really confused on the process to get such change reviewed and finally integrated.. Seems that some 'magic' lines are missing :-)

I'd appreciate any hint on how to do it in the 'expected' way to kick it forward..

Dear TC,
I'd like to request a vote on solving issue 184
Fixes: https://github.com/oasis-tcs/virtio-spec/issues/184

THX,

Regards,
Andreas

---------------------------------
Thanks Pape!

I think that a separate ticket should be created on GitHub for non-editorial improvements to the specification, and the commit should fix this ticket.

On 29.11.2023 20:33, Pape, Andreas (ADITG/ESS3) wrote:

Hi Manos,

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

sorry, have no mbox access on my devel machine, so here at least as 'inline' patch.

From 067de7a6676dad3ecaaf2316661b0f0057a19cd2 Mon Sep 17 00:00:00 2001
From: Andreas Pape <[email protected]>
Date: Thu, 9 Nov 2023 16:14:57 +0100
Subject: [PATCH] sound: add sampling rates 12000Hz and 24000Hz

24kHz is used for 'super wideband' voice transmission 12kHz is added 'for completeness'

    ---
      device-types/sound/description.tex | 4 +++-
      1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/device-types/sound/description.tex b/device-types/sound/description.tex
    index 54c9c8e..bad4415 100644
    --- a/device-types/sound/description.tex
    +++ b/device-types/sound/description.tex
    @@ -504,7 +504,9 @@ \subsubsection{PCM Control Messages}\label{sec:Device Types / Sound Device / Dev
          VIRTIO_SND_PCM_RATE_96000,
          VIRTIO_SND_PCM_RATE_176400,
          VIRTIO_SND_PCM_RATE_192000,
    -    VIRTIO_SND_PCM_RATE_384000
    +    VIRTIO_SND_PCM_RATE_384000,
    +    VIRTIO_SND_PCM_RATE_12000,
    +    VIRTIO_SND_PCM_RATE_24000
      };

    struct virtio_snd_pcm_info { 

--
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin

-----Original Message-----
From: Pape, Andreas (ADITG/ESS3)
Sent: Mittwoch, 29. November 2023 12:34
To: 'Manos Pitsidianakis' <[email protected]>; Anton Yakovlev <[email protected]>
Cc: [email protected]
Subject: RE: [virtio-comment] virtio sound: add missing definitions for 12 and 24kHz sampling rates

Hi Manos,

Quoted 1 line

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

sorry, have no mbox access on my devel machine, so here at least as 'inline' patch.

From 067de7a6676dad3ecaaf2316661b0f0057a19cd2 Mon Sep 17 00:00:00 2001
From: Andreas Pape <[email protected]>
Date: Thu, 9 Nov 2023 16:14:57 +0100
Subject: [PATCH] sound: add sampling rates 12000Hz and 24000Hz

24kHz is used for 'super wideband' voice transmission 12kHz is added 'for completeness'

---
 device-types/sound/description.tex | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
device-types/sound/description.tex +3 -1
index 54c9c8e..bad4415 100644
@@ -504,7 +504,9 @@ \subsubsection{PCM Control Messages}\label{sec:Device Types / Sound Device / Dev
     VIRTIO_SND_PCM_RATE_96000,
     VIRTIO_SND_PCM_RATE_176400,
     VIRTIO_SND_PCM_RATE_192000,
-    VIRTIO_SND_PCM_RATE_384000
+    VIRTIO_SND_PCM_RATE_384000,
+    VIRTIO_SND_PCM_RATE_12000,
+    VIRTIO_SND_PCM_RATE_24000
 };
 
 struct virtio_snd_pcm_info {

--
2.7.4

Regards
Andreas

-----Original Message-----
From: Manos Pitsidianakis <[email protected]>
Sent: Mittwoch, 29. November 2023 11:00
To: Pape, Andreas (ADITG/ESS3) <[email protected]>; Anton Yakovlev <[email protected]>
Cc: [email protected]
Subject: Re: [virtio-comment] virtio sound: add missing definitions for 12 and 24kHz sampling rates

Quoted 9 lines · Anton Yakovlev

Hi Manos, Andreas,

Actually, I think it would make sense to add 12kHz, 24kHz and also 352800kHz to the list of supported frame rates.

Kind regards,

Andreas, would you mind re-sending the patch inline as a new thread with git-send-email instead of an attachment? And we can then review it formally.

Quoted 104 lines · Manos Pitsidianakis
Quoted 88 lines

Hello Andreas,

The spec says it is purposely modeled to be compatible with the HDA spec. HDA is optimized for specific multiples or submultiples of 44.1 kHz and 48 kHz. Specifically, look at "5.4 Handling Stream Independent Sample Rates" and "Table 56. Defined Sample Rates". My (unexperienced)
understanding of the following statement is that using such rates
with controller hardware that is made for HDA will result in timing issues:

Quoted 4 lines

This implies that the controller and link must also provide for an exact sample-rendering rate at the codec, in order to avoid any long term drift between sample delivery and rendering and the subsequent over(under)-run of codec buffers.

https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.intel.com-252fcontent-252fdam-252fwww-252fpublic-252fu s-252fen-252fdocuments-252fproduct-252dspecifications-252fhigh-252dd efinition-252daudio-252dspecification.pdf-26umid-3Dd569f403-2D01a9-2 D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de28b92dfd96e93d9dd61a23e 634d2fbec-2Dcb72c66b78900b97f31176a2a470cdf7d28d8f94&d=DwIFaQ&c=euGZ stcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnz Mm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKt rwc8ZclqTYe-rwVj&s=C4PXCALcOBpPDNeGIWkB7vsmQ5xaPjMSbQnLkkrVlFE&e=

If that is the case, I think the best approach would be to specify a non-HDA mode of operation to support more sound hardware. The most straight-forward solution though is for you to resample the audio before and after it goes through virtio-sound.

Regards,

-- Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd

This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.

Subscribe: [email protected]
Unsubscribe: [email protected] List help: [email protected]
List archive:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252flists.oasis-252dopen.org-252farchives-252fvirtio-252dcomme nt-252f-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26auth -3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D0fef9f465f0a04da9ccd68 a483603afa78faeb94&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnV fiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd 4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=bE42_ADUpUKXqoY HPjF5jId4ZcCnadR-gcZNX0p_l34&e=
Feedback License:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fwho-252fipr-252ffeedback-255fli cense.pdf-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26au th-3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D0620b2dca8947547caf1 be09cb1b9460071d9c3c&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_Cdpg nVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQV yd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=ckJUT8QAnsUsx -2fLzVGpKp4IwskoblvcZy94Xq0hk0&e=
List Guidelines:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fpolicies-252dguidelines-252fmai ling-252dlists-26umid-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78 -26auth-3D53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-2D7f81dc376e1bb26 c4ccd422a6585c18e105f677a&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A _CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gH tFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=XkE8xofk 2zPmxpUTxrGH_5iblgB0klKi5m6WKqChmyQ&e=
Committee:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-
2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fcommittees-252fvirtio-252f-26um id-3Dd569f403-2D01a9-2D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de2 8b92dfd96e93d9dd61a23e634d2fbec-2De64745d0015d08f4923c010538fce9ec55 d679ff&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTt ojMtCV9SvyEwkpBNuTjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6r HeSO00o8OX1s74k4ijjmKtrwc8ZclqTYe-rwVj&s=4bK318HHAjzY50iMBH5gUsl-mFw W627wnR8ZpGdCmHQ&e=
Join OASIS:
https://urldefense.proofpoint.com/v2/url?u=https-3A__ddec1-2D0-2Den-

Quoted 8 lines

2Dctp.trendmicro.com-3A443_wis_clicktime_v1_query-3Furl-3Dhttps-253a -252f-252fwww.oasis-252dopen.org-252fjoin-252f-26umid-3Dd569f403-2D0 1a9-2D4519-2D8038-2D4bb35906ff78-26auth-3D53c7c7de28b92dfd96e93d9dd6 1a23e634d2fbec-2D0474f1d3e724132ee586e990891b08a79f61f539&d=DwIFaQ&c =euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=aWTtojMtCV9SvyEwkpBNu TjVnzMm-Wc09ONKDmVeCUo&m=bMgr9gHtFkQVyd4PUiCK6_Vh6rHeSO00o8OX1s74k4i jjmKtrwc8ZclqTYe-rwVj&s=XqitxUGXDo3BcSAQyz0IvpRBl8gemYcxNSUIj8EiWBw& e=

--
Anton Yakovlev
Senior Software Engineer

OpenSynergy GmbH
Rotherstr. 20, 10245 Berlin