7f53e11425
Enables correct identification of boards using rt5650 codec for either speaker or headset output (or both) by SOF Windows drivers. Change-Id: Ied9717955fcfca33bd63a34f3f6961deb045239c Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78092 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
46 lines
672 B
C
46 lines
672 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef __DRIVERS_AUDIO_SOF_H__
|
|
#define __DRIVERS_AUDIO_SOF_H__
|
|
|
|
#include <acpi/acpi_device.h>
|
|
#include <stdint.h>
|
|
|
|
/* Speaker topology */
|
|
enum _spkr_tplg {
|
|
max98373 = 1, /* port SSP1 */
|
|
max98373_ssp2,
|
|
max98360a,
|
|
max98357a,
|
|
max98357a_tdm,
|
|
max98390,
|
|
rt1011,
|
|
rt1015,
|
|
rt1019,
|
|
rt5650_sp,
|
|
};
|
|
|
|
/* Jack topology */
|
|
enum _jack_tplg {
|
|
cs42l42 = 1,
|
|
da7219,
|
|
nau8825,
|
|
rt5650_hp,
|
|
rt5682,
|
|
};
|
|
|
|
/* Mic topology */
|
|
enum _mic_tplg {
|
|
_1ch = 1,
|
|
_2ch_pdm0,
|
|
_2ch_pdm1,
|
|
_4ch,
|
|
};
|
|
|
|
struct drivers_sof_config {
|
|
enum _spkr_tplg spkr_tplg;
|
|
enum _jack_tplg jack_tplg;
|
|
enum _mic_tplg mic_tplg;
|
|
};
|
|
|
|
#endif /* __DRIVERS_AUDIO_SOF_H__ */
|