Configurable USB Codec Input Audio Amplifier Board Wondom KAB9[774], with CM6206 chip working with weird channel order.

Winfried Ritsch <[email protected]> Mon, 27 Feb 2023 12:16:18 +0100
Newsgroups gmane.linux.alsa.user
Organization Institut für Elektronische Musik und Akustik
Message-ID <2133186.2jvq6xx2Bk@schulze>
Hello,

(see https://store.sure-electronics.com/product/AA-KA32473 )

FYI: working with standard USB audio mode, =


But since it claims to be a  "8 x 50W 6.1, 4.2, 4.0 Configurable USB Codec =

Input Audio Amplifier Board" the modes are not respected, which can be =

configured via switches on the Amplifier board.

ALSA Channels names (speaker-test):

     Front Left - Front Right - Rear Left - Rear Right - Front Center - Woo=
fer =

- Side Left - Side Right

Input to KAB9 has differential Input feed by USB-AUDIO Interface with chann=
el =

numbers: =


     IN1L+,IN1L-,IN1R+, ...,IN8R-

Signal are clean as differential signals (measured on speaker)

ALSA channel order stereo mode: =

   IN1 =3D 3, IN2=3D4, IN3=3D7, IN4=3D8, IN5=3D5, IN6=3D6, IN7=3D1, IN8=3D2 =


ALSA channel numbers mono mode: =

   channel 1 =3D IN2 =3D 4,  channel 2 =3D IN4 =3D 8, channel 3 =3D IN6=3D6=
, channel 4 =3D =

IN8=3D2 =


Questions:
- How to correct channel order ?
- How to switch between Mono und Stereo Mode on driver side maybe a module =

argument ?

Additionally on alsamixer there are all input parameter of the CM6206, but =

Card has only outputs...

Anyway thanks ALSA and USB Audio standard I can used it, but any hints how =
to =

make it more intuitively usable is appreciated.

mfG =

  Winfried

Addendum: here the Info for the test:

| Computer | Linux Debian system  |
|-|-|
|Notebook  | Debian 11 linux-5.10.0-20-rt-amd64 |
| embedded | | =

| USB-AUDIO | CM6206 chip - wondom module |
| amplifier | wondom KAB9 https://store.sure-electronics.com/product/AA-KA3=
2473 =

|

Boot-Messages

    [399312.935630] usb 6-2: new full-speed USB device number 11 using =

xhci_hcd
    [399313.100653] usb 6-2: New USB device found, idVendor=3D0d8c, =

idProduct=3D0102, bcdDevice=3D 0.10
    [399313.100661] usb 6-2: New USB device strings: Mfr=3D0, Product=3D2, =

SerialNumber=3D0
    [399313.100665] usb 6-2: Product: USB Sound Device        =

    [399313.186887] usb 6-2: current rate 30464 is different from the runti=
me =

rate 96000
    [399313.232711] usb 6-2: Warning! Unlikely big volume range (=3D8065), =
cval-
>res is probably wrong.
    [399313.232717] usb 6-2: [9] FU [Mic Playback Volume] ch =3D 2, val =3D =

-6144/1921/1
    [399313.256834] usb 6-2: Warning! Unlikely big volume range (=3D8065), =
cval-
>res is probably wrong.
    [399313.256841] usb 6-2: [11] FU [Line Playback Volume] ch =3D 2, val =
=3D =

-6144/1921/1
    [399313.318887] usb 6-2: Warning! Unlikely big volume range (=3D6928), =
cval-
>res is probably wrong.
    [399313.318893] usb 6-2: [8] FU [Mic Capture Volume] ch =3D 2, val =3D =

-4096/2832/1
    [399313.342695] usb 6-2: Warning! Unlikely big volume range (=3D6928), =
cval-
>res is probably wrong.
    [399313.342701] usb 6-2: [15] FU [Line Capture Volume] ch =3D 2, val =
=3D =

-4096/2832/1
    [399313.366704] usb 6-2: Warning! Unlikely big volume range (=3D6928), =
cval-
>res is probably wrong.
    [399313.366710] usb 6-2: [2] FU [PCM Capture Volume] ch =3D 2, val =3D =

-4096/2832/1
    [399313.372016] input: USB Sound Device         as /devices/
pci0000:00/0000:00:08.1/0000:06:00.4/usb6/6-2/6-2:1.3/0003:0D8C:0102.0022/
input/input82
    [399313.431830] hid-generic 0003:0D8C:0102.0022: input,hidraw0: USB HID =

v1.00 Device [USB Sound Device        ] on usb-0000:06:00.4-2/input3

alsa device:

    Karte 3: ICUSBAUDIO7D [ICUSBAUDIO7D], Ger=E4t 0: USB Audio [USB Audio]
    Sub-Ger=E4te: 1/1
    Sub-Ger=E4t #0: subdevice #0

alsa interfaces:

    hw:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        Direct hardware device without any conversions
    plughw:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        Hardware device with all software conversions
    sysdefault:CARD=3DICUSBAUDIO7D
        ICUSBAUDIO7D, USB Audio
        Default Audio Device
    front:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        Front output / input
    surround21:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        IEC958 (S/PDIF) Digital Audio Output
    dmix:CARD=3DICUSBAUDIO7D,DEV=3D0
        ICUSBAUDIO7D, USB Audio
        Direct sample mixing device
    usbstream:CARD=3DICUSBAUDIO7D
        ICUSBAUDIO7D
        USB Stream Output