diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-16 08:19:06 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-16 08:47:28 +0200 |
commit | b7d023e11434131e5a7ceb4be33c3afa2c855e89 (patch) | |
tree | 76faf07a3123683f002fcf947e2b0e164bb4bd00 /include | |
parent | 602518a21b4c0673fee2146d46be4eb2464553b2 (diff) | |
download | op-kernel-dev-b7d023e11434131e5a7ceb4be33c3afa2c855e89.zip op-kernel-dev-b7d023e11434131e5a7ceb4be33c3afa2c855e89.tar.gz |
ALSA: hda - Move PCM format and rate handling code to core library
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-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 59d2184..15bc039 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, hda_nid_t *conn_list, int max_conns); int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, hda_nid_t *start_id); +unsigned int snd_hdac_calc_stream_format(unsigned int rate, + unsigned int channels, + unsigned int format, + unsigned int maxbps, + unsigned short spdif_ctls); +int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, + u32 *ratesp, u64 *formatsp, unsigned int *bpsp); +bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, + unsigned int format); /** * snd_hdac_read_parm - read a codec parameter |