Ignore:
Timestamp:
Apr 19, 2025, 8:08:37 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/intel-nhlt.h

    r689 r772  
    1111#include <linux/acpi.h>
    1212
    13 #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT)
     13enum nhlt_link_type {
     14        NHLT_LINK_HDA = 0,
     15        NHLT_LINK_DSP = 1,
     16        NHLT_LINK_DMIC = 2,
     17        NHLT_LINK_SSP = 3,
     18        NHLT_LINK_INVALID
     19};
     20
     21enum nhlt_device_type {
     22        NHLT_DEVICE_BT = 0,
     23        NHLT_DEVICE_DMIC = 1,
     24        NHLT_DEVICE_I2S = 4,
     25        NHLT_DEVICE_INVALID
     26};
    1427
    1528struct wav_fmt {
     
    3346        u8 sub_fmt[16];
    3447} __packed;
    35 
    36 enum nhlt_link_type {
    37         NHLT_LINK_HDA = 0,
    38         NHLT_LINK_DSP = 1,
    39         NHLT_LINK_DMIC = 2,
    40         NHLT_LINK_SSP = 3,
    41         NHLT_LINK_INVALID
    42 };
    43 
    44 enum nhlt_device_type {
    45         NHLT_DEVICE_BT = 0,
    46         NHLT_DEVICE_DMIC = 1,
    47         NHLT_DEVICE_I2S = 4,
    48         NHLT_DEVICE_INVALID
    49 };
    5048
    5149struct nhlt_specific_cfg {
     
    127125};
    128126
     127#if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT)
     128
    129129struct nhlt_acpi_table *intel_nhlt_init(struct device *dev);
    130130
     
    133133int intel_nhlt_get_dmic_geo(struct device *dev, struct nhlt_acpi_table *nhlt);
    134134
     135bool intel_nhlt_has_endpoint_type(struct nhlt_acpi_table *nhlt, u8 link_type);
     136
     137int intel_nhlt_ssp_endpoint_mask(struct nhlt_acpi_table *nhlt, u8 device_type);
     138
     139int intel_nhlt_ssp_mclk_mask(struct nhlt_acpi_table *nhlt, int ssp_num);
     140
     141struct nhlt_specific_cfg *
     142intel_nhlt_get_endpoint_blob(struct device *dev, struct nhlt_acpi_table *nhlt,
     143                             u32 bus_id, u8 link_type, u8 vbps, u8 bps,
     144                             u8 num_ch, u32 rate, u8 dir, u8 dev_type);
     145
    135146#else
    136 
    137 struct nhlt_acpi_table;
    138147
    139148static inline struct nhlt_acpi_table *intel_nhlt_init(struct device *dev)
     
    151160        return 0;
    152161}
     162
     163static inline bool intel_nhlt_has_endpoint_type(struct nhlt_acpi_table *nhlt,
     164                                                u8 link_type)
     165{
     166        return false;
     167}
     168
     169static inline int intel_nhlt_ssp_endpoint_mask(struct nhlt_acpi_table *nhlt, u8 device_type)
     170{
     171        return 0;
     172}
     173
     174static inline int intel_nhlt_ssp_mclk_mask(struct nhlt_acpi_table *nhlt, int ssp_num)
     175{
     176        return 0;
     177}
     178
     179static inline struct nhlt_specific_cfg *
     180intel_nhlt_get_endpoint_blob(struct device *dev, struct nhlt_acpi_table *nhlt,
     181                             u32 bus_id, u8 link_type, u8 vbps, u8 bps,
     182                             u8 num_ch, u32 rate, u8 dir, u8 dev_type)
     183{
     184        return NULL;
     185}
     186
    153187#endif
    154188
Note: See TracChangeset for help on using the changeset viewer.