pulse-server: fix IEC958 passthrough again

We need to create fake channels when parsing the IEC958 format or
else we get an invalid format and IEC958 passthrough doesn't work.

Ignore the IEC958 formats when collecting formats for the device or else
the fake channels mess with the real channels of the device.

See #1442
This commit is contained in:
Wim Taymans 2022-02-21 16:53:03 +01:00
parent 22ec01d5c0
commit edb5664017
4 changed files with 12 additions and 5 deletions

View file

@ -205,7 +205,7 @@ void channel_map_to_positions(const struct channel_map *map, uint32_t *pos);
void channel_map_parse(const char *str, struct channel_map *map);
bool channel_map_valid(const struct channel_map *map);
int format_parse_param(const struct spa_pod *param, struct sample_spec *ss,
int format_parse_param(const struct spa_pod *param, bool collect, struct sample_spec *ss,
struct channel_map *map, const struct sample_spec *def_ss,
const struct channel_map *def_map);