Skip to content

Commit 9260ff3

Browse files
committed
Tools: Topology: Add to nocodec port2 24 kHz rate capability
This patch adds the 24 kHz rate to PCM capabilities. The 24 kHz rate is defined in the MPEG-2 standard. This also needs a patch to alsa-lib to build the topology without error. The added rate_min/rate_max is not mandatory but it narrows down the range of rates evaluated in alsa-lib in snd_pcm_hw_refine(). Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent f485d27 commit 9260ff3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tools/topology/topology2/cavs-nocodec.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,14 +1696,18 @@ IncludeByKey.PASSTHROUGH {
16961696
direction "playback"
16971697
name "SSP2 Playback"
16981698
formats 'S16_LE,S24_LE,S32_LE'
1699-
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
1699+
rates "8000,11025,16000,22050,24000,32000,44100,48000,64000,88200,96000,176400,192000"
1700+
rate_min 8000
1701+
rate_max 192000
17001702
}
17011703

17021704
Object.PCM.pcm_caps.2 {
17031705
direction "capture"
17041706
name "SSP2 Capture"
17051707
formats 'S16_LE,S24_LE,S32_LE'
1706-
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
1708+
rates "8000,11025,16000,22050,24000,32000,44100,48000,64000,88200,96000,176400,192000"
1709+
rate_min 8000
1710+
rate_max 192000
17071711
}
17081712
}
17091713
]

0 commit comments

Comments
 (0)