Skip to content

Commit

Permalink
HACK: add 9.6KHz support for SDW jack
Browse files Browse the repository at this point in the history
Will remove turn the HACK to a reasonable change.

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Nov 6, 2024
1 parent 306c9f3 commit 36e0c09
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions tools/topology/topology2/platform/intel/sdw-jack-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,49 @@ IncludeByKey.PASSTHROUGH {
Object.Widget.host-copier.1 {
stream_name "volume playback 0"
pcm_id 0
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 24
}
]
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
Object.Widget.gain.1 {
Object.Control.mixer.1 {
name 'Pre Mixer $JACK_PLAYBACK_PCM_NAME Playback Volume'
}
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
]
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
}
]
Expand All @@ -78,21 +116,25 @@ IncludeByKey.PASSTHROUGH {
num_input_audio_formats 3
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 24
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 1
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth $SDW_LINK_VALID_BITS
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
Expand All @@ -119,29 +161,35 @@ IncludeByKey.PASSTHROUGH {
num_input_audio_formats 3
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 24
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 3
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 16
out_valid_bit_depth 16
}
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 24
}
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
Expand All @@ -162,21 +210,25 @@ IncludeByKey.PASSTHROUGH {
num_input_audio_formats 3
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 16
in_valid_bit_depth 16
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 24
}
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 1
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth $SDW_LINK_VALID_BITS
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
Expand Down Expand Up @@ -207,21 +259,25 @@ Object.Pipeline.host-gateway-capture [
num_input_audio_formats 1
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
]
num_output_audio_formats 3
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 16
out_valid_bit_depth 16
}
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 24
}
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
Expand All @@ -245,6 +301,7 @@ Object.Widget {

Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth $SDW_LINK_VALID_BITS
in_sample_type $SAMPLE_TYPE_MSB_INTEGER
Expand All @@ -253,6 +310,7 @@ Object.Widget {
]
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
Expand All @@ -277,12 +335,14 @@ Object.Widget {
# the instance number is automatically generated as '0'
Object.Base.input_audio_format [
{
in_rate 96000
in_bit_depth 32
in_valid_bit_depth 32
}
]
Object.Base.output_audio_format [
{
out_rate 96000
out_bit_depth 32
out_valid_bit_depth 32
}
Expand Down Expand Up @@ -312,6 +372,7 @@ Object.PCM.pcm [
Object.PCM.pcm_caps.1 {
name "volume playback 0"
formats 'S16_LE,S24_LE,S32_LE'
rates '48000,96000'
}
}
{
Expand All @@ -325,6 +386,7 @@ Object.PCM.pcm [
Object.PCM.pcm_caps.1 {
name "Passthrough Capture 0"
formats 'S16_LE,S24_LE,S32_LE'
rates '48000,96000'
channels_min $SDW_JACK_CAPTURE_CH
channels_max $SDW_JACK_CAPTURE_CH
}
Expand Down

0 comments on commit 36e0c09

Please sign in to comment.