soc-acpi.h (1bdd3e05a0a3b4a97ea88bc46fef8fb265c8b94c) soc-acpi.h (efb6f3159e874f09992b7318cea12e8e27e8389b)
1/* SPDX-License-Identifier: GPL-2.0
2 *
3 * Copyright (C) 2013-15, Intel Corporation. All rights reserved.
4 */
5
6#ifndef __LINUX_SND_SOC_ACPI_H
7#define __LINUX_SND_SOC_ACPI_H
8

--- 47 unchanged lines hidden (view full) ---

56
57/**
58 * snd_soc_acpi_mach_params: interface for machine driver configuration
59 *
60 * @acpi_ipc_irq_index: used for BYT-CR detection
61 * @platform: string used for HDaudio codec support
62 * @codec_mask: used for HDAudio support
63 * @common_hdmi_codec_drv: use commom HDAudio HDMI codec driver
1/* SPDX-License-Identifier: GPL-2.0
2 *
3 * Copyright (C) 2013-15, Intel Corporation. All rights reserved.
4 */
5
6#ifndef __LINUX_SND_SOC_ACPI_H
7#define __LINUX_SND_SOC_ACPI_H
8

--- 47 unchanged lines hidden (view full) ---

56
57/**
58 * snd_soc_acpi_mach_params: interface for machine driver configuration
59 *
60 * @acpi_ipc_irq_index: used for BYT-CR detection
61 * @platform: string used for HDaudio codec support
62 * @codec_mask: used for HDAudio support
63 * @common_hdmi_codec_drv: use commom HDAudio HDMI codec driver
64 * @link_mask: links enabled on the board
65 * @links: array of link _ADR descriptors, null terminated
64 */
65struct snd_soc_acpi_mach_params {
66 u32 acpi_ipc_irq_index;
67 const char *platform;
68 u32 codec_mask;
69 u32 dmic_num;
70 bool common_hdmi_codec_drv;
66 */
67struct snd_soc_acpi_mach_params {
68 u32 acpi_ipc_irq_index;
69 const char *platform;
70 u32 codec_mask;
71 u32 dmic_num;
72 bool common_hdmi_codec_drv;
73 u32 link_mask;
74 const struct snd_soc_acpi_link_adr *links;
71};
72
73/**
75};
76
77/**
78 * snd_soc_acpi_link_adr: ACPI-based list of _ADR, with a variable
79 * number of devices per link
80 *
81 * @mask: one bit set indicates the link this list applies to
82 * @num_adr: ARRAY_SIZE of adr
83 * @adr: array of _ADR (represented as u64).
84 */
85
86struct snd_soc_acpi_link_adr {
87 const u32 mask;
88 const u32 num_adr;
89 const u64 *adr;
90};
91
92/**
74 * snd_soc_acpi_mach: ACPI-based machine descriptor. Most of the fields are
75 * related to the hardware, except for the firmware and topology file names.
76 * A platform supported by legacy and Sound Open Firmware (SOF) would expose
77 * all firmware/topology related fields.
78 *
79 * @id: ACPI ID (usually the codec's) used to find a matching machine driver.
80 * @link_mask: describes required board layout, e.g. for SoundWire.
93 * snd_soc_acpi_mach: ACPI-based machine descriptor. Most of the fields are
94 * related to the hardware, except for the firmware and topology file names.
95 * A platform supported by legacy and Sound Open Firmware (SOF) would expose
96 * all firmware/topology related fields.
97 *
98 * @id: ACPI ID (usually the codec's) used to find a matching machine driver.
99 * @link_mask: describes required board layout, e.g. for SoundWire.
100 * @links: array of link _ADR descriptors, null terminated.
81 * @drv_name: machine driver name
82 * @fw_filename: firmware file name. Used when SOF is not enabled.
83 * @board: board name
84 * @machine_quirk: pointer to quirk, usually based on DMI information when
85 * ACPI ID alone is not sufficient, wrong or misleading
86 * @quirk_data: data used to uniquely identify a machine, usually a list of
87 * audio codecs whose presence if checked with ACPI
88 * @pdata: intended for platform data or machine specific-ops. This structure
89 * is not constant since this field may be updated at run-time
90 * @sof_fw_filename: Sound Open Firmware file name, if enabled
91 * @sof_tplg_filename: Sound Open Firmware topology file name, if enabled
92 */
93/* Descriptor for SST ASoC machine driver */
94struct snd_soc_acpi_mach {
95 const u8 id[ACPI_ID_LEN];
96 const u32 link_mask;
101 * @drv_name: machine driver name
102 * @fw_filename: firmware file name. Used when SOF is not enabled.
103 * @board: board name
104 * @machine_quirk: pointer to quirk, usually based on DMI information when
105 * ACPI ID alone is not sufficient, wrong or misleading
106 * @quirk_data: data used to uniquely identify a machine, usually a list of
107 * audio codecs whose presence if checked with ACPI
108 * @pdata: intended for platform data or machine specific-ops. This structure
109 * is not constant since this field may be updated at run-time
110 * @sof_fw_filename: Sound Open Firmware file name, if enabled
111 * @sof_tplg_filename: Sound Open Firmware topology file name, if enabled
112 */
113/* Descriptor for SST ASoC machine driver */
114struct snd_soc_acpi_mach {
115 const u8 id[ACPI_ID_LEN];
116 const u32 link_mask;
117 const struct snd_soc_acpi_link_adr *links;
97 const char *drv_name;
98 const char *fw_filename;
99 const char *board;
100 struct snd_soc_acpi_mach * (*machine_quirk)(void *arg);
101 const void *quirk_data;
102 void *pdata;
103 struct snd_soc_acpi_mach_params mach_params;
104 const char *sof_fw_filename;

--- 20 unchanged lines hidden ---
118 const char *drv_name;
119 const char *fw_filename;
120 const char *board;
121 struct snd_soc_acpi_mach * (*machine_quirk)(void *arg);
122 const void *quirk_data;
123 void *pdata;
124 struct snd_soc_acpi_mach_params mach_params;
125 const char *sof_fw_filename;

--- 20 unchanged lines hidden ---