Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/hdaudio.h

    r772 r777  
    1919#include <sound/memalloc.h>
    2020#include <sound/hda_verbs.h>
    21 #include <drm/i915_component.h>
     21#ifndef TARGET_OS2
     22#include <drm/intel/i915_component.h>
     23#endif
    2224
    2325/* codec node id */
     
    141143int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
    142144                           hda_nid_t *start_id);
    143 unsigned int snd_hdac_calc_stream_format(unsigned int rate,
    144                                          unsigned int channels,
    145                                          snd_pcm_format_t format,
    146                                          unsigned int maxbps,
    147                                          unsigned short spdif_ctls);
     145unsigned int snd_hdac_stream_format_bits(snd_pcm_format_t format, snd_pcm_subformat_t subformat,
     146                                         unsigned int maxbits);
     147unsigned int snd_hdac_stream_format(unsigned int channels, unsigned int bits, unsigned int rate);
     148unsigned int snd_hdac_spdif_stream_format(unsigned int channels, unsigned int bits,
     149                                          unsigned int rate, unsigned short spdif_ctls);
    148150int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
    149                                 u32 *ratesp, u64 *formatsp, unsigned int *bpsp);
     151                                 u32 *ratesp, u64 *formatsp, u32 *subformatsp,
     152                                 unsigned int *bpsp);
    150153bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
    151154                                  unsigned int format);
     
    362365        bool not_use_interrupts:1;      /* prohibiting the RIRB IRQ */
    363366        bool access_sdnctl_in_dword:1;  /* accessing the sdnctl register by dword */
     367        bool use_pio_for_commands:1;    /* Use PIO instead of CORB for commands */
    364368
    365369        int poll_count;
     
    588592                                        int dir, int stream_tag);
    589593
    590 int snd_hdac_stream_setup(struct hdac_stream *azx_dev);
     594int snd_hdac_stream_setup(struct hdac_stream *azx_dev, bool code_loading);
    591595void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev);
    592596int snd_hdac_stream_setup_periods(struct hdac_stream *azx_dev);
     
    603607                          unsigned int streams);
    604608void snd_hdac_stream_timecounter_init(struct hdac_stream *azx_dev,
    605                                       unsigned int streams);
     609                                      unsigned int streams, bool start);
    606610int snd_hdac_get_stream_stripe_ctl(struct hdac_bus *bus,
    607611                                struct snd_pcm_substream *substream);
     
    638642#define snd_hdac_stream_readb_poll(dev, reg, val, cond, delay_us, timeout_us) \
    639643        read_poll_timeout_atomic(snd_hdac_reg_readb, val, cond, delay_us, timeout_us, \
     644                                 false, (dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg)
     645#define snd_hdac_stream_readw_poll(dev, reg, val, cond, delay_us, timeout_us) \
     646        read_poll_timeout_atomic(snd_hdac_reg_readw, val, cond, delay_us, timeout_us, \
    640647                                 false, (dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg)
    641648#define snd_hdac_stream_readl_poll(dev, reg, val, cond, delay_us, timeout_us) \
     
    743750                        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HDA_DG2_1) }, \
    744751                        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HDA_DG2_2) }, \
     752                        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HDA_BMG) }, \
    745753                        { } \
    746754                }, pci) || HDA_CONTROLLER_IS_HSW(pci))
Note: See TracChangeset for help on using the changeset viewer.