pulse-server: filter out iec958 PCM formats

Convert the iec958 PCM formats differently when enumerating the sink
formats. This way we can still convert the param to a format_info.
This commit is contained in:
Wim Taymans 2021-09-01 13:11:08 +02:00
parent 93e9efc1e4
commit a25396c1eb
2 changed files with 6 additions and 2 deletions

View file

@ -389,7 +389,7 @@ struct encoding_info {
static const struct encoding_info encoding_names[] = {
[ENCODING_ANY] = { "ANY", 0 },
[ENCODING_PCM] = { "PCM", 0 },
[ENCODING_PCM] = { "PCM", SPA_AUDIO_IEC958_CODEC_PCM },
[ENCODING_AC3_IEC61937] = { "AC3-IEC61937", SPA_AUDIO_IEC958_CODEC_AC3 },
[ENCODING_EAC3_IEC61937] = { "EAC3-IEC61937", SPA_AUDIO_IEC958_CODEC_EAC3 },
[ENCODING_MPEG_IEC61937] = { "MPEG-IEC61937", SPA_AUDIO_IEC958_CODEC_MPEG },