ALSA: hda - Move PCM format and rate handling code to core library
[firefly-linux-kernel-4.4.55.git] / include / sound / hdaudio.h
index 59d21848a4728ea0b76ab04defdf5cdc42c9e578..15bc039de78dd68c29212a05765ce08039461123 100644 (file)
@@ -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