ASoC: ics43432: add CMM-4030D-261 support
authorAngelo Dureghello <angelo.dureghello@timesys.com>
Sat, 21 Aug 2021 08:26:56 +0000 (10:26 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Aug 2021 15:41:01 +0000 (16:41 +0100)
commit43d2c4982fcc6ed0adfea1275bc6df28bc48c1ea
tree66b8bc8baa9112022d0872e2207a212aa24a2d20
parent77eca00f8366238398b9f2f6eea1707a0832f79e
ASoC: ics43432: add CMM-4030D-261 support

Despite minimal datasheet differences, the driver seems
perfectly compatible with CMM-4030D-261.

Tested CMM-4030D-261 to work with this changes:

/ {
        cmm4030d: cmm4030d {
                #sound-dai-cells = <0>;
                compatible = "cui,cmm-4030d-261";
        };

        sound_mic {
                compatible = "simple-audio-card";
                simple-audio-card,name = "i2s mem mic";
                simple-audio-card,format = "i2s";
                simple-audio-card,bitclock-master = <&sound_master>;
                simple-audio-card,frame-master = <&sound_master>;
                sound_master: simple-audio-card,cpu {
                        sound-dai = <&ssi2>;
                        system-clock-frequency = <2822400>;
                };
                simple-audio-card,codec {
                        sound-dai = <&cmm4030d>;
                };
        };
};

Audio has been captured and tested successfully by:

arecord -D "hw:1,0" -f S24_LE > test.wav
aplay test.wav

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Link: https://lore.kernel.org/r/20210821082658.4147595-1-angelo.dureghello@timesys.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/ics43432.c