18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Universal Interface for Intel High Definition Audio Codec 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * HD audio interface patch for Silicon Labs 3054/5 modem codec 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (c) 2005 Sasha Khapyorsky <sashak@alsa-project.org> 88c2ecf20Sopenharmony_ci * Takashi Iwai <tiwai@suse.de> 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/init.h> 128c2ecf20Sopenharmony_ci#include <linux/delay.h> 138c2ecf20Sopenharmony_ci#include <linux/slab.h> 148c2ecf20Sopenharmony_ci#include <linux/module.h> 158c2ecf20Sopenharmony_ci#include <sound/core.h> 168c2ecf20Sopenharmony_ci#include <sound/hda_codec.h> 178c2ecf20Sopenharmony_ci#include "hda_local.h" 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* si3054 verbs */ 208c2ecf20Sopenharmony_ci#define SI3054_VERB_READ_NODE 0x900 218c2ecf20Sopenharmony_ci#define SI3054_VERB_WRITE_NODE 0x100 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* si3054 nodes (registers) */ 248c2ecf20Sopenharmony_ci#define SI3054_EXTENDED_MID 2 258c2ecf20Sopenharmony_ci#define SI3054_LINE_RATE 3 268c2ecf20Sopenharmony_ci#define SI3054_LINE_LEVEL 4 278c2ecf20Sopenharmony_ci#define SI3054_GPIO_CFG 5 288c2ecf20Sopenharmony_ci#define SI3054_GPIO_POLARITY 6 298c2ecf20Sopenharmony_ci#define SI3054_GPIO_STICKY 7 308c2ecf20Sopenharmony_ci#define SI3054_GPIO_WAKEUP 8 318c2ecf20Sopenharmony_ci#define SI3054_GPIO_STATUS 9 328c2ecf20Sopenharmony_ci#define SI3054_GPIO_CONTROL 10 338c2ecf20Sopenharmony_ci#define SI3054_MISC_AFE 11 348c2ecf20Sopenharmony_ci#define SI3054_CHIPID 12 358c2ecf20Sopenharmony_ci#define SI3054_LINE_CFG1 13 368c2ecf20Sopenharmony_ci#define SI3054_LINE_STATUS 14 378c2ecf20Sopenharmony_ci#define SI3054_DC_TERMINATION 15 388c2ecf20Sopenharmony_ci#define SI3054_LINE_CONFIG 16 398c2ecf20Sopenharmony_ci#define SI3054_CALLPROG_ATT 17 408c2ecf20Sopenharmony_ci#define SI3054_SQ_CONTROL 18 418c2ecf20Sopenharmony_ci#define SI3054_MISC_CONTROL 19 428c2ecf20Sopenharmony_ci#define SI3054_RING_CTRL1 20 438c2ecf20Sopenharmony_ci#define SI3054_RING_CTRL2 21 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci/* extended MID */ 468c2ecf20Sopenharmony_ci#define SI3054_MEI_READY 0xf 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/* line level */ 498c2ecf20Sopenharmony_ci#define SI3054_ATAG_MASK 0x00f0 508c2ecf20Sopenharmony_ci#define SI3054_DTAG_MASK 0xf000 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/* GPIO bits */ 538c2ecf20Sopenharmony_ci#define SI3054_GPIO_OH 0x0001 548c2ecf20Sopenharmony_ci#define SI3054_GPIO_CID 0x0002 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/* chipid and revisions */ 578c2ecf20Sopenharmony_ci#define SI3054_CHIPID_CODEC_REV_MASK 0x000f 588c2ecf20Sopenharmony_ci#define SI3054_CHIPID_DAA_REV_MASK 0x00f0 598c2ecf20Sopenharmony_ci#define SI3054_CHIPID_INTERNATIONAL 0x0100 608c2ecf20Sopenharmony_ci#define SI3054_CHIPID_DAA_ID 0x0f00 618c2ecf20Sopenharmony_ci#define SI3054_CHIPID_CODEC_ID (1<<12) 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci/* si3054 codec registers (nodes) access macros */ 648c2ecf20Sopenharmony_ci#define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) 658c2ecf20Sopenharmony_ci#define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) 668c2ecf20Sopenharmony_ci#define SET_REG_CACHE(codec,reg,val) \ 678c2ecf20Sopenharmony_ci snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_cistruct si3054_spec { 718c2ecf20Sopenharmony_ci unsigned international; 728c2ecf20Sopenharmony_ci}; 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci/* 768c2ecf20Sopenharmony_ci * Modem mixer 778c2ecf20Sopenharmony_ci */ 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci#define PRIVATE_VALUE(reg,mask) ((reg<<16)|(mask&0xffff)) 808c2ecf20Sopenharmony_ci#define PRIVATE_REG(val) ((val>>16)&0xffff) 818c2ecf20Sopenharmony_ci#define PRIVATE_MASK(val) (val&0xffff) 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci#define si3054_switch_info snd_ctl_boolean_mono_info 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_cistatic int si3054_switch_get(struct snd_kcontrol *kcontrol, 868c2ecf20Sopenharmony_ci struct snd_ctl_elem_value *uvalue) 878c2ecf20Sopenharmony_ci{ 888c2ecf20Sopenharmony_ci struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 898c2ecf20Sopenharmony_ci u16 reg = PRIVATE_REG(kcontrol->private_value); 908c2ecf20Sopenharmony_ci u16 mask = PRIVATE_MASK(kcontrol->private_value); 918c2ecf20Sopenharmony_ci uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; 928c2ecf20Sopenharmony_ci return 0; 938c2ecf20Sopenharmony_ci} 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_cistatic int si3054_switch_put(struct snd_kcontrol *kcontrol, 968c2ecf20Sopenharmony_ci struct snd_ctl_elem_value *uvalue) 978c2ecf20Sopenharmony_ci{ 988c2ecf20Sopenharmony_ci struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 998c2ecf20Sopenharmony_ci u16 reg = PRIVATE_REG(kcontrol->private_value); 1008c2ecf20Sopenharmony_ci u16 mask = PRIVATE_MASK(kcontrol->private_value); 1018c2ecf20Sopenharmony_ci if (uvalue->value.integer.value[0]) 1028c2ecf20Sopenharmony_ci SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); 1038c2ecf20Sopenharmony_ci else 1048c2ecf20Sopenharmony_ci SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); 1058c2ecf20Sopenharmony_ci return 0; 1068c2ecf20Sopenharmony_ci} 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci#define SI3054_KCONTROL(kname,reg,mask) { \ 1098c2ecf20Sopenharmony_ci .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ 1108c2ecf20Sopenharmony_ci .name = kname, \ 1118c2ecf20Sopenharmony_ci .subdevice = HDA_SUBDEV_NID_FLAG | reg, \ 1128c2ecf20Sopenharmony_ci .info = si3054_switch_info, \ 1138c2ecf20Sopenharmony_ci .get = si3054_switch_get, \ 1148c2ecf20Sopenharmony_ci .put = si3054_switch_put, \ 1158c2ecf20Sopenharmony_ci .private_value = PRIVATE_VALUE(reg,mask), \ 1168c2ecf20Sopenharmony_ci} 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_cistatic const struct snd_kcontrol_new si3054_modem_mixer[] = { 1208c2ecf20Sopenharmony_ci SI3054_KCONTROL("Off-hook Switch", SI3054_GPIO_CONTROL, SI3054_GPIO_OH), 1218c2ecf20Sopenharmony_ci SI3054_KCONTROL("Caller ID Switch", SI3054_GPIO_CONTROL, SI3054_GPIO_CID), 1228c2ecf20Sopenharmony_ci {} 1238c2ecf20Sopenharmony_ci}; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_cistatic int si3054_build_controls(struct hda_codec *codec) 1268c2ecf20Sopenharmony_ci{ 1278c2ecf20Sopenharmony_ci return snd_hda_add_new_ctls(codec, si3054_modem_mixer); 1288c2ecf20Sopenharmony_ci} 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci/* 1328c2ecf20Sopenharmony_ci * PCM callbacks 1338c2ecf20Sopenharmony_ci */ 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_cistatic int si3054_pcm_prepare(struct hda_pcm_stream *hinfo, 1368c2ecf20Sopenharmony_ci struct hda_codec *codec, 1378c2ecf20Sopenharmony_ci unsigned int stream_tag, 1388c2ecf20Sopenharmony_ci unsigned int format, 1398c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream) 1408c2ecf20Sopenharmony_ci{ 1418c2ecf20Sopenharmony_ci u16 val; 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate); 1448c2ecf20Sopenharmony_ci val = GET_REG(codec, SI3054_LINE_LEVEL); 1458c2ecf20Sopenharmony_ci val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)); 1468c2ecf20Sopenharmony_ci val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); 1478c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_LINE_LEVEL, val); 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci snd_hda_codec_setup_stream(codec, hinfo->nid, 1508c2ecf20Sopenharmony_ci stream_tag, 0, format); 1518c2ecf20Sopenharmony_ci return 0; 1528c2ecf20Sopenharmony_ci} 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_cistatic int si3054_pcm_open(struct hda_pcm_stream *hinfo, 1558c2ecf20Sopenharmony_ci struct hda_codec *codec, 1568c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream) 1578c2ecf20Sopenharmony_ci{ 1588c2ecf20Sopenharmony_ci static const unsigned int rates[] = { 8000, 9600, 16000 }; 1598c2ecf20Sopenharmony_ci static const struct snd_pcm_hw_constraint_list hw_constraints_rates = { 1608c2ecf20Sopenharmony_ci .count = ARRAY_SIZE(rates), 1618c2ecf20Sopenharmony_ci .list = rates, 1628c2ecf20Sopenharmony_ci .mask = 0, 1638c2ecf20Sopenharmony_ci }; 1648c2ecf20Sopenharmony_ci substream->runtime->hw.period_bytes_min = 80; 1658c2ecf20Sopenharmony_ci return snd_pcm_hw_constraint_list(substream->runtime, 0, 1668c2ecf20Sopenharmony_ci SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates); 1678c2ecf20Sopenharmony_ci} 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_cistatic const struct hda_pcm_stream si3054_pcm = { 1718c2ecf20Sopenharmony_ci .substreams = 1, 1728c2ecf20Sopenharmony_ci .channels_min = 1, 1738c2ecf20Sopenharmony_ci .channels_max = 1, 1748c2ecf20Sopenharmony_ci .nid = 0x1, 1758c2ecf20Sopenharmony_ci .rates = SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|SNDRV_PCM_RATE_KNOT, 1768c2ecf20Sopenharmony_ci .formats = SNDRV_PCM_FMTBIT_S16_LE, 1778c2ecf20Sopenharmony_ci .maxbps = 16, 1788c2ecf20Sopenharmony_ci .ops = { 1798c2ecf20Sopenharmony_ci .open = si3054_pcm_open, 1808c2ecf20Sopenharmony_ci .prepare = si3054_pcm_prepare, 1818c2ecf20Sopenharmony_ci }, 1828c2ecf20Sopenharmony_ci}; 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci 1858c2ecf20Sopenharmony_cistatic int si3054_build_pcms(struct hda_codec *codec) 1868c2ecf20Sopenharmony_ci{ 1878c2ecf20Sopenharmony_ci struct hda_pcm *info; 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci info = snd_hda_codec_pcm_new(codec, "Si3054 Modem"); 1908c2ecf20Sopenharmony_ci if (!info) 1918c2ecf20Sopenharmony_ci return -ENOMEM; 1928c2ecf20Sopenharmony_ci info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; 1938c2ecf20Sopenharmony_ci info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm; 1948c2ecf20Sopenharmony_ci info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; 1958c2ecf20Sopenharmony_ci info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; 1968c2ecf20Sopenharmony_ci info->pcm_type = HDA_PCM_TYPE_MODEM; 1978c2ecf20Sopenharmony_ci return 0; 1988c2ecf20Sopenharmony_ci} 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci/* 2028c2ecf20Sopenharmony_ci * Init part 2038c2ecf20Sopenharmony_ci */ 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_cistatic int si3054_init(struct hda_codec *codec) 2068c2ecf20Sopenharmony_ci{ 2078c2ecf20Sopenharmony_ci struct si3054_spec *spec = codec->spec; 2088c2ecf20Sopenharmony_ci unsigned wait_count; 2098c2ecf20Sopenharmony_ci u16 val; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci if (snd_hdac_regmap_add_vendor_verb(&codec->core, 2128c2ecf20Sopenharmony_ci SI3054_VERB_WRITE_NODE)) 2138c2ecf20Sopenharmony_ci return -ENOMEM; 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci snd_hda_codec_write(codec, AC_NODE_ROOT, 0, AC_VERB_SET_CODEC_RESET, 0); 2168c2ecf20Sopenharmony_ci snd_hda_codec_write(codec, codec->core.mfg, 0, AC_VERB_SET_STREAM_FORMAT, 0); 2178c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_LINE_RATE, 9600); 2188c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_LINE_LEVEL, SI3054_DTAG_MASK|SI3054_ATAG_MASK); 2198c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_EXTENDED_MID, 0); 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci wait_count = 10; 2228c2ecf20Sopenharmony_ci do { 2238c2ecf20Sopenharmony_ci msleep(2); 2248c2ecf20Sopenharmony_ci val = GET_REG(codec, SI3054_EXTENDED_MID); 2258c2ecf20Sopenharmony_ci } while ((val & SI3054_MEI_READY) != SI3054_MEI_READY && wait_count--); 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci if((val&SI3054_MEI_READY) != SI3054_MEI_READY) { 2288c2ecf20Sopenharmony_ci codec_err(codec, "si3054: cannot initialize. EXT MID = %04x\n", val); 2298c2ecf20Sopenharmony_ci /* let's pray that this is no fatal error */ 2308c2ecf20Sopenharmony_ci /* return -EACCES; */ 2318c2ecf20Sopenharmony_ci } 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_GPIO_POLARITY, 0xffff); 2348c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_GPIO_CFG, 0x0); 2358c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_MISC_AFE, 0); 2368c2ecf20Sopenharmony_ci SET_REG(codec, SI3054_LINE_CFG1,0x200); 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci if((GET_REG(codec,SI3054_LINE_STATUS) & (1<<6)) == 0) { 2398c2ecf20Sopenharmony_ci codec_dbg(codec, 2408c2ecf20Sopenharmony_ci "Link Frame Detect(FDT) is not ready (line status: %04x)\n", 2418c2ecf20Sopenharmony_ci GET_REG(codec,SI3054_LINE_STATUS)); 2428c2ecf20Sopenharmony_ci } 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci spec->international = GET_REG(codec, SI3054_CHIPID) & SI3054_CHIPID_INTERNATIONAL; 2458c2ecf20Sopenharmony_ci 2468c2ecf20Sopenharmony_ci return 0; 2478c2ecf20Sopenharmony_ci} 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_cistatic void si3054_free(struct hda_codec *codec) 2508c2ecf20Sopenharmony_ci{ 2518c2ecf20Sopenharmony_ci kfree(codec->spec); 2528c2ecf20Sopenharmony_ci} 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci/* 2568c2ecf20Sopenharmony_ci */ 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_cistatic const struct hda_codec_ops si3054_patch_ops = { 2598c2ecf20Sopenharmony_ci .build_controls = si3054_build_controls, 2608c2ecf20Sopenharmony_ci .build_pcms = si3054_build_pcms, 2618c2ecf20Sopenharmony_ci .init = si3054_init, 2628c2ecf20Sopenharmony_ci .free = si3054_free, 2638c2ecf20Sopenharmony_ci}; 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_cistatic int patch_si3054(struct hda_codec *codec) 2668c2ecf20Sopenharmony_ci{ 2678c2ecf20Sopenharmony_ci struct si3054_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); 2688c2ecf20Sopenharmony_ci if (spec == NULL) 2698c2ecf20Sopenharmony_ci return -ENOMEM; 2708c2ecf20Sopenharmony_ci codec->spec = spec; 2718c2ecf20Sopenharmony_ci codec->patch_ops = si3054_patch_ops; 2728c2ecf20Sopenharmony_ci return 0; 2738c2ecf20Sopenharmony_ci} 2748c2ecf20Sopenharmony_ci 2758c2ecf20Sopenharmony_ci/* 2768c2ecf20Sopenharmony_ci * patch entries 2778c2ecf20Sopenharmony_ci */ 2788c2ecf20Sopenharmony_cistatic const struct hda_device_id snd_hda_id_si3054[] = { 2798c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x163c3055, "Si3054", patch_si3054), 2808c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x163c3155, "Si3054", patch_si3054), 2818c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x11c13026, "Si3054", patch_si3054), 2828c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x11c13055, "Si3054", patch_si3054), 2838c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x11c13155, "Si3054", patch_si3054), 2848c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x10573055, "Si3054", patch_si3054), 2858c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x10573057, "Si3054", patch_si3054), 2868c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x10573155, "Si3054", patch_si3054), 2878c2ecf20Sopenharmony_ci /* VIA HDA on Clevo m540 */ 2888c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x11063288, "Si3054", patch_si3054), 2898c2ecf20Sopenharmony_ci /* Asus A8J Modem (SM56) */ 2908c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x15433155, "Si3054", patch_si3054), 2918c2ecf20Sopenharmony_ci /* LG LW20 modem */ 2928c2ecf20Sopenharmony_ci HDA_CODEC_ENTRY(0x18540018, "Si3054", patch_si3054), 2938c2ecf20Sopenharmony_ci {} 2948c2ecf20Sopenharmony_ci}; 2958c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(hdaudio, snd_hda_id_si3054); 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL"); 2988c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Si3054 HD-audio modem codec"); 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_cistatic struct hda_codec_driver si3054_driver = { 3018c2ecf20Sopenharmony_ci .id = snd_hda_id_si3054, 3028c2ecf20Sopenharmony_ci}; 3038c2ecf20Sopenharmony_ci 3048c2ecf20Sopenharmony_cimodule_hda_codec_driver(si3054_driver); 305