diff options
author | Matthias Reichl <hias@horus.com> | 2023-06-24 18:52:32 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-06-25 08:42:57 +0200 |
commit | 4e0871333661d2ec0ed3dc00a945c2160eccae77 (patch) | |
tree | c400b970734cc8e2b2bbc13d4e79a9d57d613b64 /lib/llist.c | |
parent | 04b49b90caeed0b5544ff616d654900d27d403b6 (diff) |
ASoC: hdmi-codec: fix channel info for compressed formats
According to CTA 861 the channel/speaker allocation info in the
audio infoframe only applies to uncompressed (PCM) audio streams.
The channel count info should indicate the number of channels
in the transmitted audio, which usually won't match the number of
channels used to transmit the compressed bitstream.
Some devices (eg some Sony TVs) will refuse to decode compressed
audio if these values are not set correctly.
To fix this we can simply set the channel count to 0 (which means
"refer to stream header") and set the channel/speaker allocation to 0
as well (which would mean stereo FL/FR for PCM, a safe value all sinks
will support) when transmitting compressed audio.
Signed-off-by: Matthias Reichl <hias@horus.com>
Link: https://lore.kernel.org/r/20230624165232.5751-1-hias@horus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/llist.c')
0 files changed, 0 insertions, 0 deletions