hda_codec.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Universal Interface for Intel High Definition Audio Codec
  4. *
  5. * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
  6. */
  7. #ifndef __SOUND_HDA_CODEC_H
  8. #define __SOUND_HDA_CODEC_H
  9. #include <linux/refcount.h>
  10. #include <linux/mod_devicetable.h>
  11. #include <sound/info.h>
  12. #include <sound/control.h>
  13. #include <sound/pcm.h>
  14. #include <sound/hwdep.h>
  15. #include <sound/hdaudio.h>
  16. #include <sound/hda_verbs.h>
  17. #include <sound/hda_regmap.h>
  18. /*
  19. * Structures
  20. */
  21. struct hda_bus;
  22. struct hda_beep;
  23. struct hda_codec;
  24. struct hda_pcm;
  25. struct hda_pcm_stream;
  26. /*
  27. * codec bus
  28. *
  29. * each controller needs to creata a hda_bus to assign the accessor.
  30. * A hda_bus contains several codecs in the list codec_list.
  31. */
  32. struct hda_bus {
  33. struct hdac_bus core;
  34. struct snd_card *card;
  35. struct pci_dev *pci;
  36. const char *modelname;
  37. struct mutex prepare_mutex;
  38. /* assigned PCMs */
  39. DECLARE_BITMAP(pcm_dev_bits, SNDRV_PCM_DEVICES);
  40. /* misc op flags */
  41. unsigned int allow_bus_reset:1; /* allow bus reset at fatal error */
  42. /* status for codec/controller */
  43. unsigned int shutdown :1; /* being unloaded */
  44. unsigned int response_reset:1; /* controller was reset */
  45. unsigned int in_reset:1; /* during reset operation */
  46. unsigned int no_response_fallback:1; /* don't fallback at RIRB error */
  47. unsigned int bus_probing :1; /* during probing process */
  48. unsigned int keep_power:1; /* keep power up for notification */
  49. unsigned int jackpoll_in_suspend:1; /* keep jack polling during
  50. * runtime suspend
  51. */
  52. int primary_dig_out_type; /* primary digital out PCM type */
  53. unsigned int mixer_assigned; /* codec addr for mixer name */
  54. };
  55. /* from hdac_bus to hda_bus */
  56. #define to_hda_bus(bus) container_of(bus, struct hda_bus, core)
  57. /*
  58. * codec preset
  59. *
  60. * Known codecs have the patch to build and set up the controls/PCMs
  61. * better than the generic parser.
  62. */
  63. typedef int (*hda_codec_patch_t)(struct hda_codec *);
  64. #define HDA_CODEC_ID_SKIP_PROBE 0x00000001
  65. #define HDA_CODEC_ID_GENERIC_HDMI 0x00000101
  66. #define HDA_CODEC_ID_GENERIC 0x00000201
  67. #define HDA_CODEC_REV_ENTRY(_vid, _rev, _name, _patch) \
  68. { .vendor_id = (_vid), .rev_id = (_rev), .name = (_name), \
  69. .api_version = HDA_DEV_LEGACY, \
  70. .driver_data = (unsigned long)(_patch) }
  71. #define HDA_CODEC_ENTRY(_vid, _name, _patch) \
  72. HDA_CODEC_REV_ENTRY(_vid, 0, _name, _patch)
  73. struct hda_codec_driver {
  74. struct hdac_driver core;
  75. const struct hda_device_id *id;
  76. };
  77. int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name,
  78. struct module *owner);
  79. #define hda_codec_driver_register(drv) \
  80. __hda_codec_driver_register(drv, KBUILD_MODNAME, THIS_MODULE)
  81. void hda_codec_driver_unregister(struct hda_codec_driver *drv);
  82. #define module_hda_codec_driver(drv) \
  83. module_driver(drv, hda_codec_driver_register, \
  84. hda_codec_driver_unregister)
  85. /* ops set by the preset patch */
  86. struct hda_codec_ops {
  87. int (*build_controls)(struct hda_codec *codec);
  88. int (*build_pcms)(struct hda_codec *codec);
  89. int (*init)(struct hda_codec *codec);
  90. void (*free)(struct hda_codec *codec);
  91. void (*unsol_event)(struct hda_codec *codec, unsigned int res);
  92. void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
  93. unsigned int power_state);
  94. int (*suspend)(struct hda_codec *codec);
  95. int (*resume)(struct hda_codec *codec);
  96. int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
  97. void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
  98. };
  99. /* PCM callbacks */
  100. struct hda_pcm_ops {
  101. int (*open)(struct hda_pcm_stream *info, struct hda_codec *codec,
  102. struct snd_pcm_substream *substream);
  103. int (*close)(struct hda_pcm_stream *info, struct hda_codec *codec,
  104. struct snd_pcm_substream *substream);
  105. int (*prepare)(struct hda_pcm_stream *info, struct hda_codec *codec,
  106. unsigned int stream_tag, unsigned int format,
  107. struct snd_pcm_substream *substream);
  108. int (*cleanup)(struct hda_pcm_stream *info, struct hda_codec *codec,
  109. struct snd_pcm_substream *substream);
  110. unsigned int (*get_delay)(struct hda_pcm_stream *info,
  111. struct hda_codec *codec,
  112. struct snd_pcm_substream *substream);
  113. };
  114. /* PCM information for each substream */
  115. struct hda_pcm_stream {
  116. unsigned int substreams; /* number of substreams, 0 = not exist*/
  117. unsigned int channels_min; /* min. number of channels */
  118. unsigned int channels_max; /* max. number of channels */
  119. hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */
  120. u32 rates; /* supported rates */
  121. u64 formats; /* supported formats (SNDRV_PCM_FMTBIT_) */
  122. u32 subformats; /* for S32_LE format, SNDRV_PCM_SUBFMTBIT_* */
  123. unsigned int maxbps; /* supported max. bit per sample */
  124. const struct snd_pcm_chmap_elem *chmap; /* chmap to override */
  125. struct hda_pcm_ops ops;
  126. };
  127. /* PCM types */
  128. enum {
  129. HDA_PCM_TYPE_AUDIO,
  130. HDA_PCM_TYPE_SPDIF,
  131. HDA_PCM_TYPE_HDMI,
  132. HDA_PCM_TYPE_MODEM,
  133. HDA_PCM_NTYPES
  134. };
  135. #define SNDRV_PCM_INVALID_DEVICE (-1)
  136. /* for PCM creation */
  137. struct hda_pcm {
  138. char *name;
  139. struct hda_pcm_stream stream[2];
  140. unsigned int pcm_type; /* HDA_PCM_TYPE_XXX */
  141. int device; /* device number to assign */
  142. struct snd_pcm *pcm; /* assigned PCM instance */
  143. bool own_chmap; /* codec driver provides own channel maps */
  144. /* private: */
  145. struct hda_codec *codec;
  146. struct list_head list;
  147. unsigned int disconnected:1;
  148. };
  149. /* codec information */
  150. struct hda_codec {
  151. struct hdac_device core;
  152. struct hda_bus *bus;
  153. struct snd_card *card;
  154. unsigned int addr; /* codec addr*/
  155. u32 probe_id; /* overridden id for probing */
  156. /* detected preset */
  157. const struct hda_device_id *preset;
  158. const char *modelname; /* model name for preset */
  159. /* set by patch */
  160. struct hda_codec_ops patch_ops;
  161. /* PCM to create, set by patch_ops.build_pcms callback */
  162. struct list_head pcm_list_head;
  163. refcount_t pcm_ref;
  164. wait_queue_head_t remove_sleep;
  165. /* codec specific info */
  166. void *spec;
  167. /* beep device */
  168. struct hda_beep *beep;
  169. unsigned int beep_mode;
  170. bool beep_just_power_on;
  171. /* widget capabilities cache */
  172. u32 *wcaps;
  173. struct snd_array mixers; /* list of assigned mixer elements */
  174. struct snd_array nids; /* list of mapped mixer elements */
  175. struct list_head conn_list; /* linked-list of connection-list */
  176. struct mutex spdif_mutex;
  177. struct mutex control_mutex;
  178. struct snd_array spdif_out;
  179. unsigned int spdif_in_enable; /* SPDIF input enable? */
  180. const hda_nid_t *follower_dig_outs; /* optional digital out follower widgets */
  181. struct snd_array init_pins; /* initial (BIOS) pin configurations */
  182. struct snd_array driver_pins; /* pin configs set by codec parser */
  183. struct snd_array cvt_setups; /* audio convert setups */
  184. struct mutex user_mutex;
  185. #ifdef CONFIG_SND_HDA_RECONFIG
  186. struct snd_array init_verbs; /* additional init verbs */
  187. struct snd_array hints; /* additional hints */
  188. struct snd_array user_pins; /* default pin configs to override */
  189. #endif
  190. #ifdef CONFIG_SND_HDA_HWDEP
  191. struct snd_hwdep *hwdep; /* assigned hwdep device */
  192. #endif
  193. /* misc flags */
  194. unsigned int configured:1; /* codec was configured */
  195. unsigned int in_freeing:1; /* being released */
  196. unsigned int display_power_control:1; /* needs display power */
  197. unsigned int spdif_status_reset :1; /* needs to toggle SPDIF for each
  198. * status change
  199. * (e.g. Realtek codecs)
  200. */
  201. unsigned int pin_amp_workaround:1; /* pin out-amp takes index
  202. * (e.g. Conexant codecs)
  203. */
  204. unsigned int single_adc_amp:1; /* adc in-amp takes no index
  205. * (e.g. CX20549 codec)
  206. */
  207. unsigned int no_sticky_stream:1; /* no sticky-PCM stream assignment */
  208. unsigned int pins_shutup:1; /* pins are shut up */
  209. unsigned int no_trigger_sense:1; /* don't trigger at pin-sensing */
  210. unsigned int no_jack_detect:1; /* Machine has no jack-detection */
  211. unsigned int inv_eapd:1; /* broken h/w: inverted EAPD control */
  212. unsigned int inv_jack_detect:1; /* broken h/w: inverted detection bit */
  213. unsigned int pcm_format_first:1; /* PCM format must be set first */
  214. unsigned int cached_write:1; /* write only to caches */
  215. unsigned int dp_mst:1; /* support DP1.2 Multi-stream transport */
  216. unsigned int dump_coef:1; /* dump processing coefs in codec proc file */
  217. unsigned int power_save_node:1; /* advanced PM for each widget */
  218. unsigned int auto_runtime_pm:1; /* enable automatic codec runtime pm */
  219. unsigned int force_pin_prefix:1; /* Add location prefix */
  220. unsigned int link_down_at_suspend:1; /* link down at runtime suspend */
  221. unsigned int relaxed_resume:1; /* don't resume forcibly for jack */
  222. unsigned int forced_resume:1; /* forced resume for jack */
  223. unsigned int no_stream_clean_at_suspend:1; /* do not clean streams at suspend */
  224. unsigned int ctl_dev_id:1; /* old control element id build behaviour */
  225. unsigned long power_on_acct;
  226. unsigned long power_off_acct;
  227. unsigned long power_jiffies;
  228. /* filter the requested power state per nid */
  229. unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
  230. unsigned int power_state);
  231. /* codec-specific additional proc output */
  232. void (*proc_widget_hook)(struct snd_info_buffer *buffer,
  233. struct hda_codec *codec, hda_nid_t nid);
  234. /* jack detection */
  235. struct snd_array jacktbl;
  236. unsigned long jackpoll_interval; /* In jiffies. Zero means no poll, rely on unsol events */
  237. struct delayed_work jackpoll_work;
  238. int depop_delay; /* depop delay in ms, -1 for default delay time */
  239. /* fix-up list */
  240. int fixup_id;
  241. const struct hda_fixup *fixup_list;
  242. const char *fixup_name;
  243. /* additional init verbs */
  244. struct snd_array verbs;
  245. };
  246. #define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
  247. #define hda_codec_dev(_dev) (&(_dev)->core.dev)
  248. #define hdac_to_hda_codec(_hdac) container_of(_hdac, struct hda_codec, core)
  249. #define list_for_each_codec(c, bus) \
  250. list_for_each_entry(c, &(bus)->core.codec_list, core.list)
  251. #define list_for_each_codec_safe(c, n, bus) \
  252. list_for_each_entry_safe(c, n, &(bus)->core.codec_list, core.list)
  253. /* snd_hda_codec_read/write optional flags */
  254. #define HDA_RW_NO_RESPONSE_FALLBACK (1 << 0)
  255. /*
  256. * constructors
  257. */
  258. __printf(3, 4) struct hda_codec *
  259. snd_hda_codec_device_init(struct hda_bus *bus, unsigned int codec_addr,
  260. const char *fmt, ...);
  261. int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card,
  262. unsigned int codec_addr, struct hda_codec **codecp);
  263. int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card,
  264. unsigned int codec_addr, struct hda_codec *codec,
  265. bool snddev_managed);
  266. int snd_hda_codec_configure(struct hda_codec *codec);
  267. int snd_hda_codec_update_widgets(struct hda_codec *codec);
  268. void snd_hda_codec_register(struct hda_codec *codec);
  269. void snd_hda_codec_unregister(struct hda_codec *codec);
  270. void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec);
  271. /*
  272. * low level functions
  273. */
  274. static inline unsigned int
  275. snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid,
  276. int flags,
  277. unsigned int verb, unsigned int parm)
  278. {
  279. return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
  280. }
  281. static inline int
  282. snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags,
  283. unsigned int verb, unsigned int parm)
  284. {
  285. return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm);
  286. }
  287. #define snd_hda_param_read(codec, nid, param) \
  288. snd_hdac_read_parm(&(codec)->core, nid, param)
  289. #define snd_hda_get_sub_nodes(codec, nid, start_nid) \
  290. snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid)
  291. int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
  292. hda_nid_t *conn_list, int max_conns);
  293. static inline int
  294. snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid)
  295. {
  296. return snd_hda_get_connections(codec, nid, NULL, 0);
  297. }
  298. #define snd_hda_get_raw_connections(codec, nid, list, max_conns) \
  299. snd_hdac_get_connections(&(codec)->core, nid, list, max_conns)
  300. #define snd_hda_get_num_raw_conns(codec, nid) \
  301. snd_hdac_get_connections(&(codec)->core, nid, NULL, 0)
  302. int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid,
  303. const hda_nid_t **listp);
  304. int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums,
  305. const hda_nid_t *list);
  306. int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux,
  307. hda_nid_t nid, int recursive);
  308. unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid);
  309. int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid,
  310. u8 *dev_list, int max_devices);
  311. int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid);
  312. int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id);
  313. struct hda_verb {
  314. hda_nid_t nid;
  315. u32 verb;
  316. u32 param;
  317. };
  318. void snd_hda_sequence_write(struct hda_codec *codec,
  319. const struct hda_verb *seq);
  320. /* cached write */
  321. static inline int
  322. snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid,
  323. int flags, unsigned int verb, unsigned int parm)
  324. {
  325. return snd_hdac_regmap_write(&codec->core, nid, verb, parm);
  326. }
  327. /* the struct for codec->pin_configs */
  328. struct hda_pincfg {
  329. hda_nid_t nid;
  330. unsigned char ctrl; /* original pin control value */
  331. unsigned char target; /* target pin control value */
  332. unsigned int cfg; /* default configuration */
  333. };
  334. unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid);
  335. int snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid,
  336. unsigned int cfg);
  337. int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list,
  338. hda_nid_t nid, unsigned int cfg); /* for hwdep */
  339. void snd_hda_shutup_pins(struct hda_codec *codec);
  340. /* SPDIF controls */
  341. struct hda_spdif_out {
  342. hda_nid_t nid; /* Converter nid values relate to */
  343. unsigned int status; /* IEC958 status bits */
  344. unsigned short ctls; /* SPDIF control bits */
  345. };
  346. struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec,
  347. hda_nid_t nid);
  348. void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx);
  349. void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid);
  350. /*
  351. * Mixer
  352. */
  353. int snd_hda_codec_build_controls(struct hda_codec *codec);
  354. /*
  355. * PCM
  356. */
  357. int snd_hda_codec_parse_pcms(struct hda_codec *codec);
  358. int snd_hda_codec_build_pcms(struct hda_codec *codec);
  359. __printf(2, 3)
  360. struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec,
  361. const char *fmt, ...);
  362. void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec);
  363. static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm)
  364. {
  365. refcount_inc(&pcm->codec->pcm_ref);
  366. }
  367. void snd_hda_codec_pcm_put(struct hda_pcm *pcm);
  368. int snd_hda_codec_prepare(struct hda_codec *codec,
  369. struct hda_pcm_stream *hinfo,
  370. unsigned int stream,
  371. unsigned int format,
  372. struct snd_pcm_substream *substream);
  373. void snd_hda_codec_cleanup(struct hda_codec *codec,
  374. struct hda_pcm_stream *hinfo,
  375. struct snd_pcm_substream *substream);
  376. void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,
  377. u32 stream_tag,
  378. int channel_id, int format);
  379. void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid,
  380. int do_now);
  381. #define snd_hda_codec_cleanup_stream(codec, nid) \
  382. __snd_hda_codec_cleanup_stream(codec, nid, 0)
  383. #define snd_hda_query_supported_pcm(codec, nid, ratesp, fmtsp, subfmtp, bpsp) \
  384. snd_hdac_query_supported_pcm(&(codec)->core, nid, ratesp, fmtsp, subfmtp, bpsp)
  385. #define snd_hda_is_supported_format(codec, nid, fmt) \
  386. snd_hdac_is_supported_format(&(codec)->core, nid, fmt)
  387. extern const struct snd_pcm_chmap_elem snd_pcm_2_1_chmaps[];
  388. int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec,
  389. struct hda_pcm *cpcm);
  390. /*
  391. * Misc
  392. */
  393. void snd_hda_get_codec_name(struct hda_codec *codec, char *name, int namelen);
  394. void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg,
  395. unsigned int power_state);
  396. int snd_hda_lock_devices(struct hda_bus *bus);
  397. void snd_hda_unlock_devices(struct hda_bus *bus);
  398. void snd_hda_bus_reset(struct hda_bus *bus);
  399. void snd_hda_bus_reset_codecs(struct hda_bus *bus);
  400. int snd_hda_codec_set_name(struct hda_codec *codec, const char *name);
  401. /*
  402. * power management
  403. */
  404. extern const struct dev_pm_ops hda_codec_driver_pm;
  405. static inline
  406. int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
  407. {
  408. if (codec->patch_ops.check_power_status)
  409. return codec->patch_ops.check_power_status(codec, nid);
  410. return 0;
  411. }
  412. /*
  413. * power saving
  414. */
  415. #define snd_hda_power_up(codec) snd_hdac_power_up(&(codec)->core)
  416. #define snd_hda_power_up_pm(codec) snd_hdac_power_up_pm(&(codec)->core)
  417. #define snd_hda_power_down(codec) snd_hdac_power_down(&(codec)->core)
  418. #define snd_hda_power_down_pm(codec) snd_hdac_power_down_pm(&(codec)->core)
  419. void snd_hda_codec_set_power_save(struct hda_codec *codec, int delay);
  420. void snd_hda_set_power_save(struct hda_bus *bus, int delay);
  421. void snd_hda_update_power_acct(struct hda_codec *codec);
  422. static inline bool hda_codec_need_resume(struct hda_codec *codec)
  423. {
  424. return !codec->relaxed_resume && codec->jacktbl.used;
  425. }
  426. #ifdef CONFIG_SND_HDA_PATCH_LOADER
  427. /*
  428. * patch firmware
  429. */
  430. int snd_hda_load_patch(struct hda_bus *bus, size_t size, const void *buf);
  431. #endif
  432. #ifdef CONFIG_SND_HDA_DSP_LOADER
  433. int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
  434. unsigned int size,
  435. struct snd_dma_buffer *bufp);
  436. void snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start);
  437. void snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec,
  438. struct snd_dma_buffer *dmab);
  439. #else
  440. static inline int
  441. snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format,
  442. unsigned int size,
  443. struct snd_dma_buffer *bufp)
  444. {
  445. return -ENOSYS;
  446. }
  447. static inline void
  448. snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) {}
  449. static inline void
  450. snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec,
  451. struct snd_dma_buffer *dmab) {}
  452. #endif
  453. #endif /* __SOUND_HDA_CODEC_H */