]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
chtnau8824: Add support for using the SOF driver
authorHans de Goede <hdegoede@redhat.com>
Wed, 16 Dec 2020 15:38:38 +0000 (16:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Jan 2021 10:34:19 +0000 (11:34 +0100)
commit96e1c19a6bcc1e353f677966d4d93399204af0ec
tree91a4b295313545066daf3d962caa69f6e3b63ba3
parent4e0369b4fcebde195a38d5b90c73b08f28e0047a
chtnau8824: Add support for using the SOF driver

The old (and currently the default) SST driver uses TDM 4 slots 24 bit
as wire format to the codec. Where as the new SOF driver uses standard
I2S 2 channel 24 bit.

Normally this should not impact the UCM settings, but on the NAU8824
the "DAC Right Channel Source" mixer setting must be set to 1 when
using TDM 4 slots and to 0 when using I2S 2 channel mode.

Getting this wrong (in either case) results in the right channel not
outputting any sound.

This commit introduces a RightOutputChannel variable which gets
set to 0/1 depending on the driver and then uses that for the
"DAC Right Channel Source" mixer setting so that we do the right
thing depending on the driver.

This has been tested on the following devices:

Medion E2215T:    Stereo speakers, analog mic
Medion E2228T:    Stereo speakers, stereo digital mics
Cube iWork 8 Air: Mono speaker, analog mic

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/chtnau8824/HiFi.conf
ucm2/codecs/nau8824/EnableSeq.conf