]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: usb-audio: map UAC3 front wide channels in convert_chmap_v3()
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Wed, 11 Mar 2026 20:00:10 +0000 (17:00 -0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Mar 2026 06:36:18 +0000 (07:36 +0100)
commit103a7b97c63905ab4d1463bf040e27f668e6a340
tree1996f9e7f27ffd7f6eeae2d235a6a821445425db
parentfd7df93013c5118812e63a52635dc6c3a805a1de
ALSA: usb-audio: map UAC3 front wide channels in convert_chmap_v3()

convert_chmap_v3() translates UAC3 channel relationship values into
ALSA channel-map positions.

UAC3_CH_FRONT_WIDE_LEFT and UAC3_CH_FRONT_WIDE_RIGHT currently fall
back to SNDRV_CHMAP_UNKNOWN, although ALSA already provides matching
channel-map positions via SNDRV_CHMAP_FLW and SNDRV_CHMAP_FRW.

Map these two UAC3 positions to their ALSA equivalents and update the
comment to clarify that unsupported UAC3 channel relationships remain
reported as SNDRV_CHMAP_UNKNOWN.

No functional change for other channel relationships.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260311200010.103710-1-cassiogabrielcontato@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c