~hui.wang/alsa-driver/dkms-packaging.audiosdw-ppa

« back to all changes in this revision

Viewing changes to buildroot/src/oem-audiosdw-lp1836324-0.6ubuntu1.2/soc/intel/boards/hda_dsp_common.h

  • Committer: Hui Wang
  • Date: 2019-12-13 02:41:40 UTC
  • Revision ID: hui.wang@canonical.com-20191213024140-1cprdcbl3122fn85
insert pc-oem-dkms

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* SPDX-License-Identifier: GPL-2.0 */
2
 
/*
3
 
 * Copyright(c) 2019 Intel Corporation.
4
 
 */
5
 
 
6
 
/*
7
 
 * This file defines helper functions used by multiple
8
 
 * Intel HDA based machine drivers.
9
 
 */
10
 
 
11
 
#ifndef __HDA_DSP_COMMON_H
12
 
#define __HDA_DSP_COMMON_H
13
 
 
14
 
#include <dkms/sound/hda_codec.h>
15
 
#include <dkms/sound/hda_i915.h>
16
 
#include "../../codecs/hdac_hda.h"
17
 
 
18
 
struct snd_pcm *hda_dsp_hdmi_pcm_handle(struct snd_soc_card *card,
19
 
                                        int hdmi_idx);
20
 
 
21
 
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
22
 
int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
23
 
                                struct snd_soc_component *comp);
24
 
#else
25
 
static inline int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
26
 
                                              struct snd_soc_component *comp)
27
 
{
28
 
        return -EINVAL;
29
 
}
30
 
#endif
31
 
 
32
 
#endif /* __HDA_DSP_COMMON_H */