diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-16 02:19:06 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-16 02:47:28 -0400 |
commit | b7d023e11434131e5a7ceb4be33c3afa2c855e89 (patch) | |
tree | 76faf07a3123683f002fcf947e2b0e164bb4bd00 /include/sound | |
parent | 602518a21b4c0673fee2146d46be4eb2464553b2 (diff) |
ALSA: hda - Move PCM format and rate handling code to core library
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/hdaudio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 59d21848a472..15bc039de78d 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h | |||
@@ -123,6 +123,15 @@ int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, | |||
123 | hda_nid_t *conn_list, int max_conns); | 123 | hda_nid_t *conn_list, int max_conns); |
124 | int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, | 124 | int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, |
125 | hda_nid_t *start_id); | 125 | hda_nid_t *start_id); |
126 | unsigned int snd_hdac_calc_stream_format(unsigned int rate, | ||
127 | unsigned int channels, | ||
128 | unsigned int format, | ||
129 | unsigned int maxbps, | ||
130 | unsigned short spdif_ctls); | ||
131 | int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, | ||
132 | u32 *ratesp, u64 *formatsp, unsigned int *bpsp); | ||
133 | bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, | ||
134 | unsigned int format); | ||
126 | 135 | ||
127 | /** | 136 | /** |
128 | * snd_hdac_read_parm - read a codec parameter | 137 | * snd_hdac_read_parm - read a codec parameter |