codec 299 arch/arm/mach-imx/mach-mx27_3ds.c .codec = &mx27_3ds_codec, codec 358 arch/arm/mach-imx/mach-mx31_3ds.c .codec = &mx31_3ds_codec, codec 479 arch/arm/mach-imx/mach-mx31ads.c wm8350->codec.platform_data = &imx32ads_wm8350_setup; codec 270 arch/arm/mach-imx/mach-mx31moboard.c .codec = &moboard_codec, codec 874 arch/sh/boards/mach-ecovec24/setup.c .codec = "da7210.0-001a", codec 305 arch/sh/boards/mach-se/7724/setup.c .codec = "ak4642-codec.0-0012", codec 62 drivers/gpu/drm/vc4/vc4_hdmi.c struct snd_soc_dai_link_component codec; codec 1110 drivers/gpu/drm/vc4/vc4_hdmi.c dai_link->codecs = &hdmi->audio.codec; codec 140 drivers/input/touchscreen/wm97xx-core.c wm->codec->aux_prepare(wm); codec 146 drivers/input/touchscreen/wm97xx-core.c rc = wm->codec->poll_sample(wm, adcsel, &auxval); codec 151 drivers/input/touchscreen/wm97xx-core.c wm->codec->dig_restore(wm); codec 159 drivers/input/touchscreen/wm97xx-core.c wm->codec->dig_enable(wm, false); codec 412 drivers/input/touchscreen/wm97xx-core.c rc = wm->codec->poll_touch(wm, &data); codec 477 drivers/input/touchscreen/wm97xx-core.c BUG_ON(!wm->codec); codec 508 drivers/input/touchscreen/wm97xx-core.c wm->codec->acc_enable(wm, 1); codec 509 drivers/input/touchscreen/wm97xx-core.c wm->codec->dig_enable(wm, 1); codec 575 drivers/input/touchscreen/wm97xx-core.c wm->codec->dig_enable(wm, 0); codec 577 drivers/input/touchscreen/wm97xx-core.c wm->codec->acc_enable(wm, 0); codec 670 drivers/input/touchscreen/wm97xx-core.c wm->codec = &wm9705_codec; codec 675 drivers/input/touchscreen/wm97xx-core.c wm->codec = &wm9712_codec; codec 680 drivers/input/touchscreen/wm97xx-core.c wm->codec = &wm9713_codec; codec 690 drivers/input/touchscreen/wm97xx-core.c wm->codec->phy_init(wm); codec 60 drivers/isdn/mISDN/l1oip.h int codec; /* codec to use for transmis. */ codec 237 drivers/isdn/mISDN/l1oip_core.c static u_int codec[MAX_CARDS]; codec 250 drivers/isdn/mISDN/l1oip_core.c module_param_array(codec, uint, NULL, S_IRUGO | S_IWUSR); codec 1137 drivers/isdn/mISDN/l1oip_core.c l1oip_socket_send(hc, hc->codec, bch->slot, 0, codec 1303 drivers/isdn/mISDN/l1oip_core.c switch (codec[l1oip_cnt]) { codec 1311 drivers/isdn/mISDN/l1oip_core.c codec[l1oip_cnt]); codec 1314 drivers/isdn/mISDN/l1oip_core.c hc->codec = codec[l1oip_cnt]; codec 1317 drivers/isdn/mISDN/l1oip_core.c __func__, hc->codec); codec 236 drivers/media/platform/coda/coda-bit.c switch (ctx->codec->src_fourcc) { codec 300 drivers/media/platform/coda/coda-bit.c ctx->codec->src_fourcc == V4L2_PIX_FMT_H264) codec 338 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_JPEG && codec 362 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_JPEG && codec 483 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264 || codec 484 drivers/media/platform/coda/coda-bit.c ctx->codec->dst_fourcc == V4L2_PIX_FMT_H264 || codec 485 drivers/media/platform/coda/coda-bit.c ctx->codec->src_fourcc == V4L2_PIX_FMT_MPEG4 || codec 486 drivers/media/platform/coda/coda-bit.c ctx->codec->dst_fourcc == V4L2_PIX_FMT_MPEG4) codec 504 drivers/media/platform/coda/coda-bit.c (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264 || codec 505 drivers/media/platform/coda/coda-bit.c (ctx->codec->src_fourcc == V4L2_PIX_FMT_MPEG4 && i == 0))) codec 547 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264) codec 549 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_MPEG4 && i == 0) codec 641 drivers/media/platform/coda/coda-bit.c ctx->codec->dst_fourcc == V4L2_PIX_FMT_H264 && codec 1157 drivers/media/platform/coda/coda-bit.c ctx->params.codec_mode = ctx->codec->mode; codec 1373 drivers/media/platform/coda/coda-bit.c (char *)&ctx->codec->src_fourcc, (char *)&dst_fourcc, codec 1817 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_JPEG) codec 1820 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc != V4L2_PIX_FMT_H264) codec 1876 drivers/media/platform/coda/coda-bit.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_JPEG) codec 1880 drivers/media/platform/coda/coda-bit.c ctx->params.codec_mode = ctx->codec->mode; codec 2220 drivers/media/platform/coda/coda-bit.c if (meta && ctx->codec->src_fourcc == V4L2_PIX_FMT_JPEG) { codec 302 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec, codec 310 drivers/media/platform/coda/coda-common.c if (codec) { codec 311 drivers/media/platform/coda/coda-common.c w = codec->max_w; codec 312 drivers/media/platform/coda/coda-common.c h = codec->max_h; codec 520 drivers/media/platform/coda/coda-common.c static int coda_try_fmt(struct coda_ctx *ctx, const struct coda_codec *codec, codec 537 drivers/media/platform/coda/coda-common.c coda_get_max_dimensions(dev, codec, &max_w, &max_h); codec 586 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec; codec 613 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, q_data_src->fourcc, codec 615 drivers/media/platform/coda/coda-common.c if (!codec) codec 618 drivers/media/platform/coda/coda-common.c ret = coda_try_fmt(ctx, codec, f); codec 623 drivers/media/platform/coda/coda-common.c if (codec && codec->src_fourcc == V4L2_PIX_FMT_H264) { codec 669 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec; codec 680 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(dev, f->fmt.pix.pixelformat, q_data_dst->fourcc); codec 682 drivers/media/platform/coda/coda-common.c return coda_try_fmt(ctx, codec, f); codec 760 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec; codec 782 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, q_data_src->fourcc, codec 784 drivers/media/platform/coda/coda-common.c if (!codec) { codec 788 drivers/media/platform/coda/coda-common.c ctx->codec = codec; codec 802 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec; codec 824 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, f->fmt.pix.pixelformat, codec 826 drivers/media/platform/coda/coda-common.c if (!codec) { codec 830 drivers/media/platform/coda/coda-common.c ctx->codec = codec; codec 1159 drivers/media/platform/coda/coda-common.c const struct coda_codec *codec; codec 1170 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, fsize->pixel_format, codec 1173 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420, codec 1176 drivers/media/platform/coda/coda-common.c if (!codec) codec 1181 drivers/media/platform/coda/coda-common.c fsize->stepwise.max_width = codec->max_w; codec 1184 drivers/media/platform/coda/coda-common.c fsize->stepwise.max_height = codec->max_h; codec 1525 drivers/media/platform/coda/coda-common.c ctx->codec = coda_find_codec(ctx->dev, ctx->cvd->src_formats[0], codec 1527 drivers/media/platform/coda/coda-common.c max_w = min(ctx->codec->max_w, 1920U); codec 1528 drivers/media/platform/coda/coda-common.c max_h = min(ctx->codec->max_h, 1088U); codec 1532 drivers/media/platform/coda/coda-common.c ctx->params.codec_mode = ctx->codec->mode; codec 1549 drivers/media/platform/coda/coda-common.c if (ctx->codec->src_fourcc == V4L2_PIX_FMT_YUV420) { codec 1665 drivers/media/platform/coda/coda-common.c switch (ctx->codec->src_fourcc) { codec 225 drivers/media/platform/coda/coda.h const struct coda_codec *codec; codec 146 drivers/media/platform/qcom/venus/core.c static u32 to_v4l2_codec_type(u32 codec) codec 148 drivers/media/platform/qcom/venus/core.c switch (codec) { codec 177 drivers/media/platform/qcom/venus/core.c u32 codec, codecs; codec 201 drivers/media/platform/qcom/venus/core.c codec = (1UL << i) & codecs; codec 202 drivers/media/platform/qcom/venus/core.c if (!codec) codec 205 drivers/media/platform/qcom/venus/core.c ret = hfi_session_init(inst, to_v4l2_codec_type(codec)); codec 64 drivers/media/platform/qcom/venus/core.h u32 codec; codec 363 drivers/media/platform/qcom/venus/core.h venus_caps_by_codec(struct venus_core *core, u32 codec, u32 domain) codec 368 drivers/media/platform/qcom/venus/core.h if (core->caps[c].codec == codec && codec 34 drivers/media/platform/qcom/venus/helpers.c u32 codec; codec 38 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_H264; codec 41 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_H263; codec 44 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_MPEG1; codec 47 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_MPEG2; codec 50 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_MPEG4; codec 54 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_VC1; codec 57 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_VP8; codec 60 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_VP9; codec 63 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_DIVX; codec 66 drivers/media/platform/qcom/venus/helpers.c codec = HFI_VIDEO_CODEC_HEVC; codec 72 drivers/media/platform/qcom/venus/helpers.c if (session_type == VIDC_SESSION_TYPE_ENC && core->enc_codecs & codec) codec 75 drivers/media/platform/qcom/venus/helpers.c if (session_type == VIDC_SESSION_TYPE_DEC && core->dec_codecs & codec) codec 114 drivers/media/platform/qcom/venus/hfi.h u32 codec); codec 153 drivers/media/platform/qcom/venus/hfi_cmds.c u32 session_type, u32 codec) codec 155 drivers/media/platform/qcom/venus/hfi_cmds.c if (!pkt || !cookie || !codec) codec 162 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->session_codec = codec; codec 270 drivers/media/platform/qcom/venus/hfi_cmds.h u32 session_type, u32 codec); codec 24 drivers/media/platform/qcom/venus/hfi_parser.c cap->codec = BIT(bit); codec 31 drivers/media/platform/qcom/venus/hfi_parser.c cap->codec = BIT(bit); codec 48 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == domain) codec 226 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == dom) codec 1130 drivers/media/platform/qcom/venus/hfi_venus.c u32 codec) codec 1136 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_init(&pkt, inst, session_type, codec); codec 520 drivers/media/platform/s5p-mfc/s5p_mfc_common.h } codec; codec 1846 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.cpb_size = ctrl->val; codec 1863 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.profile = codec 1867 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.profile = codec 1871 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.profile = codec 1876 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.profile = codec 1886 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.level_v4l2 = ctrl->val; codec 1887 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.level = h264_level(ctrl->val); codec 1888 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (p->codec.h264.level < 0) { codec 1890 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ret = p->codec.h264.level; codec 1894 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.level_v4l2 = ctrl->val; codec 1895 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.level = mpeg4_level(ctrl->val); codec 1896 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (p->codec.mpeg4.level < 0) { codec 1898 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ret = p->codec.mpeg4.level; codec 1902 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.loop_filter_mode = ctrl->val; codec 1905 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.loop_filter_alpha = ctrl->val; codec 1908 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.loop_filter_beta = ctrl->val; codec 1911 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.entropy_mode = ctrl->val; codec 1914 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.num_ref_pic_4p = ctrl->val; codec 1917 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264._8x8_transform = ctrl->val; codec 1923 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_frame_qp = ctrl->val; codec 1926 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_min_qp = ctrl->val; codec 1929 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_max_qp = ctrl->val; codec 1932 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_p_frame_qp = ctrl->val; codec 1935 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_b_frame_qp = ctrl->val; codec 1939 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.rc_frame_qp = ctrl->val; codec 1943 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.rc_min_qp = ctrl->val; codec 1947 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.rc_max_qp = ctrl->val; codec 1951 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.rc_p_frame_qp = ctrl->val; codec 1955 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.rc_b_frame_qp = ctrl->val; codec 1958 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_mb_dark = ctrl->val; codec 1961 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_mb_smooth = ctrl->val; codec 1964 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_mb_static = ctrl->val; codec 1967 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.rc_mb_activity = ctrl->val; codec 1970 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.vui_sar = ctrl->val; codec 1973 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.vui_sar_idc = vui_sar_idc(ctrl->val); codec 1976 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.vui_ext_sar_width = ctrl->val; codec 1979 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.vui_ext_sar_height = ctrl->val; codec 1982 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.open_gop = !ctrl->val; codec 1985 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.h264.open_gop_size = ctrl->val; codec 1990 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.profile = codec 1994 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.profile = codec 2002 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.mpeg4.quarter_pixel = ctrl->val; codec 2005 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.num_partitions = ctrl->val; codec 2008 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.imd_4x4 = ctrl->val; codec 2011 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.num_ref = ctrl->val; codec 2014 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.filter_level = ctrl->val; codec 2017 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.filter_sharpness = ctrl->val; codec 2020 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.golden_frame_ref_period = ctrl->val; codec 2023 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.golden_frame_sel = ctrl->val; codec 2026 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.rc_min_qp = ctrl->val; codec 2029 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.rc_max_qp = ctrl->val; codec 2032 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.rc_frame_qp = ctrl->val; codec 2035 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.rc_p_frame_qp = ctrl->val; codec 2038 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.vp8.profile = ctrl->val; codec 2041 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_frame_qp = ctrl->val; codec 2044 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_p_frame_qp = ctrl->val; codec 2047 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_b_frame_qp = ctrl->val; codec 2050 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_framerate = ctrl->val; codec 2053 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_min_qp = ctrl->val; codec 2055 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_max_qp); codec 2058 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.rc_max_qp = ctrl->val; codec 2059 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c __enc_update_hevc_qp_ctrls_range(ctx, p->codec.hevc.rc_min_qp, codec 2063 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.level_v4l2 = ctrl->val; codec 2064 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.level = hevc_level(ctrl->val); codec 2069 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.profile = codec 2073 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.profile = codec 2081 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.tier = ctrl->val; codec 2084 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.max_partition_depth = ctrl->val; codec 2087 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.num_refs_for_p = ctrl->val; codec 2090 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.refreshtype = ctrl->val; codec 2093 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.const_intra_period_enable = ctrl->val; codec 2096 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.lossless_cu_enable = ctrl->val; codec 2099 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.wavefront_enable = ctrl->val; codec 2102 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.loopfilter = ctrl->val; codec 2105 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_enable = ctrl->val; codec 2108 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_type = ctrl->val; codec 2111 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.num_hier_layer = ctrl->val; codec 2114 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[0] = ctrl->val; codec 2117 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[1] = ctrl->val; codec 2120 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[2] = ctrl->val; codec 2123 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[3] = ctrl->val; codec 2126 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[4] = ctrl->val; codec 2129 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[5] = ctrl->val; codec 2132 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_qp_layer[6] = ctrl->val; codec 2135 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[0] = ctrl->val; codec 2138 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[1] = ctrl->val; codec 2141 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[2] = ctrl->val; codec 2144 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[3] = ctrl->val; codec 2147 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[4] = ctrl->val; codec 2150 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[5] = ctrl->val; codec 2153 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.hier_bit_layer[6] = ctrl->val; codec 2156 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.general_pb_enable = ctrl->val; codec 2159 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.temporal_id_enable = ctrl->val; codec 2162 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.strong_intra_smooth = ctrl->val; codec 2165 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.intra_pu_split_disable = ctrl->val; codec 2168 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.tmv_prediction_disable = !ctrl->val; codec 2171 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.max_num_merge_mv = ctrl->val; codec 2174 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.encoding_nostartcode_enable = ctrl->val; codec 2177 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.refreshperiod = ctrl->val; codec 2180 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.lf_beta_offset_div2 = ctrl->val; codec 2183 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.lf_tc_offset_div2 = ctrl->val; codec 2186 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.size_of_length_field = ctrl->val; codec 2189 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c p->codec.hevc.prepend_sps_pps_to_idr = ctrl->val; codec 761 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c struct s5p_mfc_h264_enc_params *p_264 = &p->codec.h264; codec 918 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c struct s5p_mfc_mpeg4_enc_params *p_mpeg4 = &p->codec.mpeg4; codec 997 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c struct s5p_mfc_mpeg4_enc_params *p_h263 = &p->codec.mpeg4; codec 919 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_h264_enc_params *p_h264 = &p->codec.h264; codec 1200 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_mpeg4_enc_params *p_mpeg4 = &p->codec.mpeg4; codec 1282 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_mpeg4_enc_params *p_h263 = &p->codec.mpeg4; codec 1352 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_vp8_enc_params *p_vp8 = &p->codec.vp8; codec 1445 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_hevc_enc_params *p_hevc = &p->codec.hevc; codec 1741 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c struct s5p_mfc_h264_enc_params *p_h264 = &p->codec.h264; codec 121 drivers/media/usb/hdpvr/hdpvr-control.c enum v4l2_mpeg_audio_encoding codec) codec 129 drivers/media/usb/hdpvr/hdpvr-control.c if (codec == V4L2_MPEG_AUDIO_ENCODING_AAC) codec 131 drivers/media/usb/hdpvr/hdpvr-control.c else if (codec == V4L2_MPEG_AUDIO_ENCODING_AC3) codec 136 drivers/media/usb/hdpvr/hdpvr-control.c codec); codec 296 drivers/media/usb/hdpvr/hdpvr.h enum v4l2_mpeg_audio_encoding codec); codec 24 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 38 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 54 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 68 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 84 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 100 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 114 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 130 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 144 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 160 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 176 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 192 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 206 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 220 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 236 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 252 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 266 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 280 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 294 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 308 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 322 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 336 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 350 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 364 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 378 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 394 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 410 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 426 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 442 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 458 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 474 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 490 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 506 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 522 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 538 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 554 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 570 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 586 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 602 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 618 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 634 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 650 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 666 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 682 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 698 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 714 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 728 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 744 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 760 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 776 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 792 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 808 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 824 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 838 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 852 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 866 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 880 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 894 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 908 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 924 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 940 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 956 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 972 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 988 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7113, codec 1004 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_SAA7111, codec 1018 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_WEBCAM, codec 1032 drivers/media/usb/usbvision/usbvision-cards.c .codec = CODEC_WEBCAM, codec 1727 drivers/media/usb/usbvision/usbvision-core.c if (usbvision_device_data[usbvision->dev_model].codec == CODEC_WEBCAM) { codec 1932 drivers/media/usb/usbvision/usbvision-core.c } else if (usbvision_device_data[usbvision->dev_model].codec == CODEC_SAA7113) { codec 1980 drivers/media/usb/usbvision/usbvision-core.c if (usbvision_device_data[usbvision->dev_model].codec == CODEC_WEBCAM) { codec 2020 drivers/media/usb/usbvision/usbvision-core.c } else if (usbvision_device_data[usbvision->dev_model].codec == CODEC_SAA7113) { codec 2119 drivers/media/usb/usbvision/usbvision-core.c if (usbvision_device_data[usbvision->dev_model].codec == CODEC_WEBCAM) { codec 2206 drivers/media/usb/usbvision/usbvision-core.c if (usbvision_device_data[usbvision->dev_model].codec == CODEC_WEBCAM) codec 2406 drivers/media/usb/usbvision/usbvision-core.c switch (usbvision_device_data[usbvision->dev_model].codec) { codec 209 drivers/media/usb/usbvision/usbvision-i2c.c switch (usbvision_device_data[usbvision->dev_model].codec) { codec 323 drivers/media/usb/usbvision/usbvision.h __u16 codec; codec 475 drivers/mfd/mc13xxx-core.c pdata->codec, sizeof(*pdata->codec)); codec 152 drivers/mfd/twl4030-audio.c if (pdata && pdata->codec) codec 229 drivers/mfd/twl4030-audio.c cell->platform_data = pdata->codec; codec 230 drivers/mfd/twl4030-audio.c cell->pdata_size = sizeof(*pdata->codec); codec 423 drivers/mfd/wm8350-core.c &(wm8350->codec.pdev)); codec 393 drivers/mtd/nand/raw/cafe_nand.c syn[i] = cafe->rs->codec->index_of[tmp & 0xfff]; codec 394 drivers/mtd/nand/raw/cafe_nand.c syn[i+1] = cafe->rs->codec->index_of[(tmp >> 16) & 0xfff]; codec 142 drivers/mtd/nand/raw/diskonchip.c struct rs_codec *cd = rs->codec; codec 33 drivers/staging/greybus/audio_codec.c find_dai_stream_params(struct gbaudio_codec_info *codec, int id, int stream) codec 37 drivers/staging/greybus/audio_codec.c list_for_each_entry(dai, &codec->dai_list, list) { codec 44 drivers/staging/greybus/audio_codec.c static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec, codec 62 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, id, SNDRV_PCM_STREAM_PLAYBACK); codec 64 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 179 drivers/staging/greybus/audio_codec.c static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, codec 197 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, id, SNDRV_PCM_STREAM_CAPTURE); codec 199 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 314 drivers/staging/greybus/audio_codec.c int gbaudio_module_update(struct gbaudio_codec_info *codec, codec 325 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "No action required for %s\n", w->name); codec 332 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Error while parsing dai_id for %s\n", codec 337 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 340 drivers/staging/greybus/audio_codec.c ret = gbaudio_module_enable_tx(codec, module, dai_id); codec 345 drivers/staging/greybus/audio_codec.c ret = gbaudio_module_enable_rx(codec, module, dai_id); codec 350 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 362 drivers/staging/greybus/audio_codec.c struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); codec 365 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 367 drivers/staging/greybus/audio_codec.c if (list_empty(&codec->module_list)) { codec 368 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "No codec module available\n"); codec 369 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 373 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); codec 375 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 376 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 380 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 390 drivers/staging/greybus/audio_codec.c struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); codec 393 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 395 drivers/staging/greybus/audio_codec.c if (list_empty(&codec->module_list)) codec 396 drivers/staging/greybus/audio_codec.c dev_info(codec->dev, "No codec module available during shutdown\n"); codec 398 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); codec 400 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 401 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 405 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 419 drivers/staging/greybus/audio_codec.c struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); codec 422 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 424 drivers/staging/greybus/audio_codec.c if (list_empty(&codec->module_list)) { codec 425 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "No codec module available\n"); codec 426 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 437 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 445 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 453 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 459 drivers/staging/greybus/audio_codec.c list_for_each_entry(module, &codec->module_list, list) { codec 467 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 471 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); codec 473 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 474 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 481 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 492 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 509 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 520 drivers/staging/greybus/audio_codec.c struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); codec 523 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 525 drivers/staging/greybus/audio_codec.c if (list_empty(&codec->module_list)) { codec 526 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "No codec module available\n"); codec 527 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 531 drivers/staging/greybus/audio_codec.c list_for_each_entry(module, &codec->module_list, list) { codec 539 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 543 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); codec 545 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 546 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 553 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 568 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 577 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 587 drivers/staging/greybus/audio_codec.c struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); codec 593 drivers/staging/greybus/audio_codec.c mutex_lock(&codec->lock); codec 595 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, stream); codec 597 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); codec 598 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 602 drivers/staging/greybus/audio_codec.c if (list_empty(&codec->module_list)) { codec 603 drivers/staging/greybus/audio_codec.c dev_err(codec->dev, "No codec module available\n"); codec 610 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 614 drivers/staging/greybus/audio_codec.c list_for_each_entry(module, &codec->module_list, list) { codec 623 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 630 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 671 drivers/staging/greybus/audio_codec.c mutex_unlock(&codec->lock); codec 712 drivers/staging/greybus/audio_codec.c struct snd_soc_codec *codec) codec 721 drivers/staging/greybus/audio_codec.c ret = snd_soc_jack_new(codec, module->jack_name, module->jack_mask, codec 733 drivers/staging/greybus/audio_codec.c ret = snd_soc_jack_new(codec, module->button_name, module->button_mask, codec 796 drivers/staging/greybus/audio_codec.c struct snd_soc_codec *codec; codec 805 drivers/staging/greybus/audio_codec.c codec = gbcodec->codec; codec 806 drivers/staging/greybus/audio_codec.c card = codec->card->snd_card; codec 818 drivers/staging/greybus/audio_codec.c ret = gbaudio_init_jack(module, codec); codec 825 drivers/staging/greybus/audio_codec.c snd_soc_dapm_new_controls(&codec->dapm, module->dapm_widgets, codec 828 drivers/staging/greybus/audio_codec.c snd_soc_add_codec_controls(codec, module->controls, codec 831 drivers/staging/greybus/audio_codec.c snd_soc_dapm_add_routes(&codec->dapm, module->dapm_routes, codec 835 drivers/staging/greybus/audio_codec.c if (codec->card->instantiated) { codec 836 drivers/staging/greybus/audio_codec.c snd_soc_dapm_link_component_dai_widgets(codec->card, codec 837 drivers/staging/greybus/audio_codec.c &codec->dapm); codec 843 drivers/staging/greybus/audio_codec.c list_for_each_entry(jack, &codec->jack_list, list) { codec 846 drivers/staging/greybus/audio_codec.c snd_device_register(codec->card->snd_card, codec 856 drivers/staging/greybus/audio_codec.c if (codec->card->instantiated) codec 857 drivers/staging/greybus/audio_codec.c ret = snd_soc_dapm_new_widgets(&codec->dapm); codec 858 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Registered %s module\n", module->name); codec 929 drivers/staging/greybus/audio_codec.c struct snd_soc_codec *codec = gbcodec->codec; codec 930 drivers/staging/greybus/audio_codec.c struct snd_card *card = codec->card->snd_card; codec 934 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Unregister %s module\n", module->name); codec 940 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Process Unregister %s module\n", module->name); codec 945 drivers/staging/greybus/audio_codec.c list_for_each_entry_safe(jack, next_j, &codec->jack_list, list) { codec 956 drivers/staging/greybus/audio_codec.c snd_device_free(codec->card->snd_card, jack->jack); codec 963 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Removing %d routes\n", codec 965 drivers/staging/greybus/audio_codec.c snd_soc_dapm_del_routes(&codec->dapm, module->dapm_routes, codec 969 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Removing %d controls\n", codec 971 drivers/staging/greybus/audio_codec.c snd_soc_remove_codec_controls(codec, module->controls, codec 975 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Removing %d widgets\n", codec 977 drivers/staging/greybus/audio_codec.c snd_soc_dapm_free_controls(&codec->dapm, module->dapm_widgets, codec 981 drivers/staging/greybus/audio_codec.c dev_dbg(codec->dev, "Unregistered %s module\n", module->name); codec 990 drivers/staging/greybus/audio_codec.c static int gbcodec_probe(struct snd_soc_codec *codec) codec 996 drivers/staging/greybus/audio_codec.c info = devm_kzalloc(codec->dev, sizeof(*info), GFP_KERNEL); codec 1000 drivers/staging/greybus/audio_codec.c info->dev = codec->dev; codec 1007 drivers/staging/greybus/audio_codec.c dai = devm_kzalloc(codec->dev, sizeof(*dai), GFP_KERNEL); codec 1014 drivers/staging/greybus/audio_codec.c info->codec = codec; codec 1015 drivers/staging/greybus/audio_codec.c snd_soc_codec_set_drvdata(codec, info); codec 1018 drivers/staging/greybus/audio_codec.c device_init_wakeup(codec->dev, 1); codec 1022 drivers/staging/greybus/audio_codec.c static int gbcodec_remove(struct snd_soc_codec *codec) codec 1028 drivers/staging/greybus/audio_codec.c static int gbcodec_write(struct snd_soc_codec *codec, unsigned int reg, codec 1034 drivers/staging/greybus/audio_codec.c static unsigned int gbcodec_read(struct snd_soc_codec *codec, codec 69 drivers/staging/greybus/audio_codec.h struct snd_soc_codec *codec; codec 166 drivers/staging/greybus/audio_codec.h int gbaudio_module_update(struct gbaudio_codec_info *codec, codec 28 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *codec, codec 39 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "%s:Find module#%d\n", __func__, dev_id); codec 41 drivers/staging/greybus/audio_topology.c mutex_lock(&codec->lock); codec 42 drivers/staging/greybus/audio_topology.c list_for_each_entry(module, &codec->module_list, list) { codec 44 drivers/staging/greybus/audio_topology.c mutex_unlock(&codec->lock); codec 48 drivers/staging/greybus/audio_topology.c mutex_unlock(&codec->lock); codec 49 drivers/staging/greybus/audio_topology.c dev_warn(codec->dev, "%s: module#%d missing in codec list\n", name, codec 168 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); codec 169 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gbcodec = snd_soc_codec_get_drvdata(codec); codec 171 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 176 drivers/staging/greybus/audio_topology.c dev_err(codec->dev, "NULL info for %s\n", uinfo->id.name); codec 204 drivers/staging/greybus/audio_topology.c dev_err(codec->dev, "Invalid type: %d for %s:kcontrol\n", codec 219 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); codec 220 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 223 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 242 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 265 drivers/staging/greybus/audio_topology.c dev_err(codec->dev, "Invalid type: %d for %s:kcontrol\n", codec 281 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); codec 282 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 285 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 312 drivers/staging/greybus/audio_topology.c dev_err(codec->dev, "Invalid type: %d for %s:kcontrol\n", codec 331 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 357 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = widget->codec; codec 359 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 390 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = widget->codec; codec 391 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 394 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 418 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 440 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = widget->codec; codec 441 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 444 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); codec 487 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, codec 556 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); codec 560 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 583 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 601 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); codec 605 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 640 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 723 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = widget->codec; codec 724 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 748 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 771 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = widget->codec; codec 772 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gb = snd_soc_codec_get_drvdata(codec); codec 800 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, "%d:Error in %s for %s\n", ret, codec 840 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, codec 938 drivers/staging/greybus/audio_topology.c struct snd_soc_codec *codec = w->codec; codec 939 drivers/staging/greybus/audio_topology.c struct gbaudio_codec_info *gbcodec = snd_soc_codec_get_drvdata(codec); codec 943 drivers/staging/greybus/audio_topology.c dev_dbg(codec->dev, "%s %s %d\n", __func__, w->name, event); codec 953 drivers/staging/greybus/audio_topology.c dev_err(codec->dev, "Invalid widget name:%s\n", w->name); codec 976 drivers/staging/greybus/audio_topology.c dev_err_ratelimited(codec->dev, codec 189 drivers/staging/media/allegro-dvt/allegro-core.c u32 codec; codec 324 drivers/staging/media/allegro-dvt/allegro-core.c s8 codec; codec 1025 drivers/staging/media/allegro-dvt/allegro-core.c msg.codec = v4l2_pixelformat_to_mcu_codec(channel->codec); codec 2006 drivers/staging/media/allegro-dvt/allegro-core.c (char *)&channel->codec, channel->width, channel->height, 25); codec 2061 drivers/staging/media/allegro-dvt/allegro-core.c channel->codec = V4L2_PIX_FMT_H264; codec 2414 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = channel->codec; codec 93 drivers/staging/media/hantro/hantro.h unsigned int codec; codec 127 drivers/staging/media/hantro/hantro.h unsigned int codec; codec 293 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_JPEG_ENCODER, codec 303 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_MPEG2_DECODER, codec 308 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_MPEG2_DECODER, codec 313 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_VP8_DECODER, codec 318 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 323 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 328 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 333 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 338 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 343 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 351 drivers/staging/media/hantro/hantro_drv.c .codec = HANTRO_H264_DECODER, codec 371 drivers/staging/media/hantro/hantro_drv.c if (!(allowed_codecs & controls[i].codec)) codec 414 drivers/staging/media/hantro/hantro_drv.c allowed_codecs = vpu->variant->codec & HANTRO_ENCODERS; codec 419 drivers/staging/media/hantro/hantro_drv.c allowed_codecs = vpu->variant->codec & HANTRO_DECODERS; codec 218 drivers/staging/media/hantro/rk3288_vpu_hw.c .codec = HANTRO_JPEG_ENCODER | HANTRO_MPEG2_DECODER | codec 198 drivers/staging/media/hantro/rk3399_vpu_hw.c .codec = HANTRO_JPEG_ENCODER | HANTRO_MPEG2_DECODER | codec 216 drivers/staging/media/hantro/rk3399_vpu_hw.c .codec = HANTRO_MPEG2_DECODER | HANTRO_VP8_DECODER, codec 35 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_MPEG2, codec 42 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_MPEG2, codec 49 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 56 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 63 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 70 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 77 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 86 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 95 drivers/staging/media/sunxi/cedrus/cedrus.c .codec = CEDRUS_CODEC_H264, codec 197 drivers/staging/media/sunxi/cedrus/cedrus.c if (cedrus_controls[i].codec != ctx->current_codec || codec 53 drivers/staging/media/sunxi/cedrus/cedrus.h enum cedrus_codec codec; codec 88 drivers/staging/media/sunxi/cedrus/cedrus.h } codec; codec 113 drivers/staging/media/sunxi/cedrus/cedrus.h } codec; codec 60 drivers/staging/media/sunxi/cedrus/cedrus_h264.c dma_addr_t addr = ctx->codec.h264.mv_col_buf_dma; codec 63 drivers/staging/media/sunxi/cedrus/cedrus_h264.c addr += position * ctx->codec.h264.mv_col_buf_field_size * 2; codec 66 drivers/staging/media/sunxi/cedrus/cedrus_h264.c addr += field * ctx->codec.h264.mv_col_buf_field_size; codec 78 drivers/staging/media/sunxi/cedrus/cedrus_h264.c unsigned int position = buf->codec.h264.position; codec 82 drivers/staging/media/sunxi/cedrus/cedrus_h264.c pic->frame_info = cpu_to_le32(buf->codec.h264.pic_type << 8); codec 124 drivers/staging/media/sunxi/cedrus/cedrus_h264.c position = cedrus_buf->codec.h264.position; codec 144 drivers/staging/media/sunxi/cedrus/cedrus_h264.c output_buf->codec.h264.position = position; codec 147 drivers/staging/media/sunxi/cedrus/cedrus_h264.c output_buf->codec.h264.pic_type = CEDRUS_H264_PIC_TYPE_FIELD; codec 149 drivers/staging/media/sunxi/cedrus/cedrus_h264.c output_buf->codec.h264.pic_type = CEDRUS_H264_PIC_TYPE_MBAFF; codec 151 drivers/staging/media/sunxi/cedrus/cedrus_h264.c output_buf->codec.h264.pic_type = CEDRUS_H264_PIC_TYPE_FRAME; codec 202 drivers/staging/media/sunxi/cedrus/cedrus_h264.c position = cedrus_buf->codec.h264.position; codec 458 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf_dma); codec 460 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf_dma); codec 481 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf = codec 483 drivers/staging/media/sunxi/cedrus/cedrus_h264.c &ctx->codec.h264.pic_info_buf_dma, codec 485 drivers/staging/media/sunxi/cedrus/cedrus_h264.c if (!ctx->codec.h264.pic_info_buf) codec 495 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf = codec 497 drivers/staging/media/sunxi/cedrus/cedrus_h264.c &ctx->codec.h264.neighbor_info_buf_dma, codec 499 drivers/staging/media/sunxi/cedrus/cedrus_h264.c if (!ctx->codec.h264.neighbor_info_buf) { codec 522 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf_field_size = field_size; codec 525 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf_size = mv_col_size; codec 526 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf = dma_alloc_coherent(dev->dev, codec 527 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf_size, codec 528 drivers/staging/media/sunxi/cedrus/cedrus_h264.c &ctx->codec.h264.mv_col_buf_dma, codec 530 drivers/staging/media/sunxi/cedrus/cedrus_h264.c if (!ctx->codec.h264.mv_col_buf) { codec 539 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf, codec 540 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf_dma); codec 544 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf, codec 545 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf_dma); codec 553 drivers/staging/media/sunxi/cedrus/cedrus_h264.c dma_free_coherent(dev->dev, ctx->codec.h264.mv_col_buf_size, codec 554 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf, codec 555 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.mv_col_buf_dma); codec 557 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf, codec 558 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.neighbor_info_buf_dma); codec 560 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf, codec 561 drivers/staging/media/sunxi/cedrus/cedrus_h264.c ctx->codec.h264.pic_info_buf_dma); codec 33 drivers/staging/media/sunxi/cedrus/cedrus_hw.c int cedrus_engine_enable(struct cedrus_dev *dev, enum cedrus_codec codec) codec 44 drivers/staging/media/sunxi/cedrus/cedrus_hw.c switch (codec) { codec 19 drivers/staging/media/sunxi/cedrus/cedrus_hw.h int cedrus_engine_enable(struct cedrus_dev *dev, enum cedrus_codec codec); codec 384 include/linux/mfd/abx500/ab8500.h struct ab8500_codec_platform_data *codec; codec 56 include/linux/mfd/madera/pdata.h struct madera_codec_pdata codec; codec 232 include/linux/mfd/mc13xxx.h struct mc13xxx_codec_platform_data *codec; codec 684 include/linux/mfd/twl.h struct twl4030_codec_data *codec; codec 201 include/linux/mfd/twl6040.h struct twl6040_codec_data *codec; codec 610 include/linux/mfd/wm8350/core.h struct wm8350_codec codec; codec 56 include/linux/rslib.h struct rs_codec *codec; codec 271 include/linux/wm97xx.h struct wm97xx_codec_drv *codec; /* attached codec driver*/ codec 214 include/sound/ac97_codec.h struct snd_ac97 *codec[4]; codec 395 include/sound/ac97_codec.h struct snd_ac97 *codec[4]; /* allocated codecs */ codec 121 include/sound/compress_driver.h struct snd_compr_codec_caps *codec); codec 43 include/sound/es1688.h #define ES1688P(codec, x) ((codec)->port + e_s_s_ESS1688##x) codec 49 include/sound/hda_chmap.h int (*pin_get_slot_channel)(struct hdac_device *codec, codec 51 include/sound/hda_chmap.h int (*pin_set_slot_channel)(struct hdac_device *codec, codec 53 include/sound/hda_chmap.h void (*set_channel_count)(struct hdac_device *codec, codec 106 include/sound/hda_codec.h int (*build_controls)(struct hda_codec *codec); codec 107 include/sound/hda_codec.h int (*build_pcms)(struct hda_codec *codec); codec 108 include/sound/hda_codec.h int (*init)(struct hda_codec *codec); codec 109 include/sound/hda_codec.h void (*free)(struct hda_codec *codec); codec 110 include/sound/hda_codec.h void (*unsol_event)(struct hda_codec *codec, unsigned int res); codec 111 include/sound/hda_codec.h void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, codec 114 include/sound/hda_codec.h int (*suspend)(struct hda_codec *codec); codec 115 include/sound/hda_codec.h int (*resume)(struct hda_codec *codec); codec 116 include/sound/hda_codec.h int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); codec 118 include/sound/hda_codec.h void (*reboot_notify)(struct hda_codec *codec); codec 119 include/sound/hda_codec.h void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); codec 124 include/sound/hda_codec.h int (*open)(struct hda_pcm_stream *info, struct hda_codec *codec, codec 126 include/sound/hda_codec.h int (*close)(struct hda_pcm_stream *info, struct hda_codec *codec, codec 128 include/sound/hda_codec.h int (*prepare)(struct hda_pcm_stream *info, struct hda_codec *codec, codec 131 include/sound/hda_codec.h int (*cleanup)(struct hda_pcm_stream *info, struct hda_codec *codec, codec 134 include/sound/hda_codec.h struct hda_codec *codec, codec 170 include/sound/hda_codec.h struct hda_codec *codec; codec 265 include/sound/hda_codec.h unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, codec 270 include/sound/hda_codec.h struct hda_codec *codec, hda_nid_t nid); codec 305 include/sound/hda_codec.h unsigned int codec_addr, struct hda_codec *codec); codec 306 include/sound/hda_codec.h int snd_hda_codec_configure(struct hda_codec *codec); codec 307 include/sound/hda_codec.h int snd_hda_codec_update_widgets(struct hda_codec *codec); codec 313 include/sound/hda_codec.h snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, codec 317 include/sound/hda_codec.h return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); codec 321 include/sound/hda_codec.h snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, codec 324 include/sound/hda_codec.h return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); codec 327 include/sound/hda_codec.h #define snd_hda_param_read(codec, nid, param) \ codec 328 include/sound/hda_codec.h snd_hdac_read_parm(&(codec)->core, nid, param) codec 329 include/sound/hda_codec.h #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ codec 330 include/sound/hda_codec.h snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid) codec 331 include/sound/hda_codec.h int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, codec 334 include/sound/hda_codec.h snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) codec 336 include/sound/hda_codec.h return snd_hda_get_connections(codec, nid, NULL, 0); codec 339 include/sound/hda_codec.h #define snd_hda_get_raw_connections(codec, nid, list, max_conns) \ codec 340 include/sound/hda_codec.h snd_hdac_get_connections(&(codec)->core, nid, list, max_conns) codec 341 include/sound/hda_codec.h #define snd_hda_get_num_raw_conns(codec, nid) \ codec 342 include/sound/hda_codec.h snd_hdac_get_connections(&(codec)->core, nid, NULL, 0); codec 344 include/sound/hda_codec.h int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, codec 346 include/sound/hda_codec.h int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums, codec 348 include/sound/hda_codec.h int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, codec 350 include/sound/hda_codec.h unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid); codec 351 include/sound/hda_codec.h int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, codec 353 include/sound/hda_codec.h int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid); codec 354 include/sound/hda_codec.h int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id); codec 362 include/sound/hda_codec.h void snd_hda_sequence_write(struct hda_codec *codec, codec 374 include/sound/hda_codec.h snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, codec 377 include/sound/hda_codec.h return snd_hdac_regmap_write(&codec->core, nid, verb, parm); codec 388 include/sound/hda_codec.h unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid); codec 389 include/sound/hda_codec.h int snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid, codec 391 include/sound/hda_codec.h int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, codec 393 include/sound/hda_codec.h void snd_hda_shutup_pins(struct hda_codec *codec); codec 401 include/sound/hda_codec.h struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec, codec 403 include/sound/hda_codec.h void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx); codec 404 include/sound/hda_codec.h void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid); codec 409 include/sound/hda_codec.h int snd_hda_codec_build_controls(struct hda_codec *codec); codec 414 include/sound/hda_codec.h int snd_hda_codec_parse_pcms(struct hda_codec *codec); codec 415 include/sound/hda_codec.h int snd_hda_codec_build_pcms(struct hda_codec *codec); codec 418 include/sound/hda_codec.h struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec, codec 427 include/sound/hda_codec.h int snd_hda_codec_prepare(struct hda_codec *codec, codec 432 include/sound/hda_codec.h void snd_hda_codec_cleanup(struct hda_codec *codec, codec 436 include/sound/hda_codec.h void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, codec 439 include/sound/hda_codec.h void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, codec 441 include/sound/hda_codec.h #define snd_hda_codec_cleanup_stream(codec, nid) \ codec 442 include/sound/hda_codec.h __snd_hda_codec_cleanup_stream(codec, nid, 0) codec 444 include/sound/hda_codec.h #define snd_hda_query_supported_pcm(codec, nid, ratesp, fmtsp, bpsp) \ codec 445 include/sound/hda_codec.h snd_hdac_query_supported_pcm(&(codec)->core, nid, ratesp, fmtsp, bpsp) codec 446 include/sound/hda_codec.h #define snd_hda_is_supported_format(codec, nid, fmt) \ codec 447 include/sound/hda_codec.h snd_hdac_is_supported_format(&(codec)->core, nid, fmt) codec 451 include/sound/hda_codec.h int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, codec 457 include/sound/hda_codec.h void snd_hda_get_codec_name(struct hda_codec *codec, char *name, int namelen); codec 458 include/sound/hda_codec.h void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, codec 466 include/sound/hda_codec.h int snd_hda_codec_set_name(struct hda_codec *codec, const char *name); codec 474 include/sound/hda_codec.h int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) codec 477 include/sound/hda_codec.h if (codec->patch_ops.check_power_status) codec 478 include/sound/hda_codec.h return codec->patch_ops.check_power_status(codec, nid); codec 486 include/sound/hda_codec.h #define snd_hda_power_up(codec) snd_hdac_power_up(&(codec)->core) codec 487 include/sound/hda_codec.h #define snd_hda_power_up_pm(codec) snd_hdac_power_up_pm(&(codec)->core) codec 488 include/sound/hda_codec.h #define snd_hda_power_down(codec) snd_hdac_power_down(&(codec)->core) codec 489 include/sound/hda_codec.h #define snd_hda_power_down_pm(codec) snd_hdac_power_down_pm(&(codec)->core) codec 492 include/sound/hda_codec.h void snd_hda_update_power_acct(struct hda_codec *codec); codec 505 include/sound/hda_codec.h int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, codec 508 include/sound/hda_codec.h void snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start); codec 509 include/sound/hda_codec.h void snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, codec 513 include/sound/hda_codec.h snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, codec 520 include/sound/hda_codec.h snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) {} codec 522 include/sound/hda_codec.h snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, codec 17 include/sound/hda_component.h int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, codec 19 include/sound/hda_component.h int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, codec 37 include/sound/hda_component.h static inline int snd_hdac_sync_audio_rate(struct hdac_device *codec, codec 42 include/sound/hda_component.h static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, codec 15 include/sound/hda_regmap.h int snd_hdac_regmap_init(struct hdac_device *codec); codec 16 include/sound/hda_regmap.h void snd_hdac_regmap_exit(struct hdac_device *codec); codec 17 include/sound/hda_regmap.h int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, codec 19 include/sound/hda_regmap.h int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, codec 21 include/sound/hda_regmap.h int snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec, codec 23 include/sound/hda_regmap.h int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, codec 25 include/sound/hda_regmap.h int snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg, codec 27 include/sound/hda_regmap.h int snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg, codec 29 include/sound/hda_regmap.h void snd_hdac_regmap_sync(struct hdac_device *codec); codec 79 include/sound/hda_regmap.h snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, codec 84 include/sound/hda_regmap.h return snd_hdac_regmap_write_raw(codec, cmd, val); codec 97 include/sound/hda_regmap.h snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, codec 103 include/sound/hda_regmap.h return snd_hdac_regmap_update_raw(codec, cmd, mask, val); codec 115 include/sound/hda_regmap.h snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, codec 120 include/sound/hda_regmap.h return snd_hdac_regmap_read_raw(codec, cmd, val); codec 136 include/sound/hda_regmap.h snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, codec 142 include/sound/hda_regmap.h err = snd_hdac_regmap_read_raw(codec, cmd, &val); codec 160 include/sound/hda_regmap.h snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, codec 165 include/sound/hda_regmap.h return snd_hdac_regmap_update_raw(codec, cmd, mask, val); codec 181 include/sound/hda_regmap.h snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, codec 187 include/sound/hda_regmap.h err = snd_hdac_regmap_read_raw(codec, cmd, &val); codec 205 include/sound/hda_regmap.h snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, codec 210 include/sound/hda_regmap.h return snd_hdac_regmap_update_raw(codec, cmd, mask, val); codec 219 include/sound/hda_regmap.h snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) codec 221 include/sound/hda_regmap.h regcache_mark_dirty(codec->regmap); codec 222 include/sound/hda_regmap.h regcache_sync_region(codec->regmap, nid << 20, ((nid + 1) << 20) - 1); codec 120 include/sound/hdaudio.h int snd_hdac_device_register(struct hdac_device *codec); codec 121 include/sound/hdaudio.h void snd_hdac_device_unregister(struct hdac_device *codec); codec 122 include/sound/hdaudio.h int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name); codec 125 include/sound/hdaudio.h int snd_hdac_refresh_widgets(struct hdac_device *codec); codec 127 include/sound/hdaudio.h int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, codec 129 include/sound/hdaudio.h int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, codec 131 include/sound/hdaudio.h int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, codec 133 include/sound/hdaudio.h int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, codec 135 include/sound/hdaudio.h int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, codec 137 include/sound/hdaudio.h int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, codec 144 include/sound/hdaudio.h int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, codec 146 include/sound/hdaudio.h bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, codec 166 include/sound/hdaudio.h static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, codec 171 include/sound/hdaudio.h return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val; codec 175 include/sound/hdaudio.h int snd_hdac_power_up(struct hdac_device *codec); codec 176 include/sound/hdaudio.h int snd_hdac_power_down(struct hdac_device *codec); codec 177 include/sound/hdaudio.h int snd_hdac_power_up_pm(struct hdac_device *codec); codec 178 include/sound/hdaudio.h int snd_hdac_power_down_pm(struct hdac_device *codec); codec 179 include/sound/hdaudio.h int snd_hdac_keep_power_up(struct hdac_device *codec); codec 182 include/sound/hdaudio.h static inline void snd_hdac_enter_pm(struct hdac_device *codec) codec 184 include/sound/hdaudio.h atomic_inc(&codec->in_pm); codec 188 include/sound/hdaudio.h static inline void snd_hdac_leave_pm(struct hdac_device *codec) codec 190 include/sound/hdaudio.h atomic_dec(&codec->in_pm); codec 193 include/sound/hdaudio.h static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) codec 195 include/sound/hdaudio.h return atomic_read(&codec->in_pm); codec 198 include/sound/hdaudio.h static inline bool snd_hdac_is_power_on(struct hdac_device *codec) codec 200 include/sound/hdaudio.h return !pm_runtime_suspended(&codec->dev); codec 203 include/sound/hdaudio.h static inline int snd_hdac_power_up(struct hdac_device *codec) { return 0; } codec 204 include/sound/hdaudio.h static inline int snd_hdac_power_down(struct hdac_device *codec) { return 0; } codec 205 include/sound/hdaudio.h static inline int snd_hdac_power_up_pm(struct hdac_device *codec) { return 0; } codec 206 include/sound/hdaudio.h static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0; } codec 207 include/sound/hdaudio.h static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; } codec 208 include/sound/hdaudio.h static inline void snd_hdac_enter_pm(struct hdac_device *codec) {} codec 209 include/sound/hdaudio.h static inline void snd_hdac_leave_pm(struct hdac_device *codec) {} codec 210 include/sound/hdaudio.h static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return 0; } codec 211 include/sound/hdaudio.h static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return 1; } codec 376 include/sound/hdaudio.h static inline void snd_hdac_codec_link_up(struct hdac_device *codec) codec 378 include/sound/hdaudio.h set_bit(codec->addr, &codec->bus->codec_powered); codec 381 include/sound/hdaudio.h static inline void snd_hdac_codec_link_down(struct hdac_device *codec) codec 383 include/sound/hdaudio.h clear_bit(codec->addr, &codec->bus->codec_powered); codec 18 include/sound/simple_card.h const char *codec; codec 74 include/sound/simple_card_utils.h struct device_node *codec, codec 850 include/sound/soc.h #define for_each_link_codecs(link, i, codec) \ codec 852 include/sound/soc.h ((i) < link->num_codecs) && ((codec) = &link->codecs[i]); \ codec 915 include/sound/soc.h #define SND_SOC_DAILINK_REG2(cpu, codec) SND_SOC_DAILINK_REG3(cpu, codec, null_dailink_component) codec 916 include/sound/soc.h #define SND_SOC_DAILINK_REG3(cpu, codec, platform) \ codec 919 include/sound/soc.h .codecs = codec, \ codec 920 include/sound/soc.h .num_codecs = ARRAY_SIZE(codec), \ codec 934 include/sound/soc.h #define SND_SOC_DAILINK_DEFS(name, cpu, codec, platform...) \ codec 936 include/sound/soc.h SND_SOC_DAILINK_DEF(name##_codecs, codec); \ codec 84 include/sound/vx_core.h void (*write_codec)(struct vx_core *chip, int codec, unsigned int data); codec 53 include/uapi/sound/compress_offload.h struct snd_codec codec; codec 120 include/uapi/sound/compress_offload.h __u32 codec; codec 13 lib/reed_solomon/decode_rs.c struct rs_codec *rs = rsc->codec; codec 13 lib/reed_solomon/encode_rs.c struct rs_codec *rs = rsc->codec; codec 183 lib/reed_solomon/reed_solomon.c cd = rs->codec; codec 261 lib/reed_solomon/reed_solomon.c rs->codec = cd; codec 266 lib/reed_solomon/reed_solomon.c rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); codec 267 lib/reed_solomon/reed_solomon.c if (!rs->codec) { codec 154 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; codec 158 lib/reed_solomon/test_rslib.c int nn = rs->codec->nn; codec 232 lib/reed_solomon/test_rslib.c struct rs_codec *rs = rsc->codec; codec 264 lib/reed_solomon/test_rslib.c int dlen = len - rs->codec->nroots; codec 323 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; codec 370 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; codec 411 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; codec 457 lib/reed_solomon/test_rslib.c ws = alloc_ws(rsc->codec); codec 105 sound/ac97/bus.c struct ac97_codec_device *codec; codec 108 sound/ac97/bus.c codec = kzalloc(sizeof(*codec), GFP_KERNEL); codec 109 sound/ac97/bus.c if (!codec) codec 111 sound/ac97/bus.c ac97_ctrl->codecs[idx] = codec; codec 112 sound/ac97/bus.c codec->vendor_id = vendor_id; codec 113 sound/ac97/bus.c codec->dev.release = ac97_codec_release; codec 114 sound/ac97/bus.c codec->dev.bus = &ac97_bus_type; codec 115 sound/ac97/bus.c codec->dev.parent = &ac97_ctrl->adap; codec 116 sound/ac97/bus.c codec->num = idx; codec 117 sound/ac97/bus.c codec->ac97_ctrl = ac97_ctrl; codec 119 sound/ac97/bus.c device_initialize(&codec->dev); codec 120 sound/ac97/bus.c dev_set_name(&codec->dev, "%s:%u", dev_name(ac97_ctrl->parent), idx); codec 121 sound/ac97/bus.c codec->dev.of_node = ac97_of_get_child_device(ac97_ctrl, idx, codec 124 sound/ac97/bus.c ret = device_add(&codec->dev); codec 126 sound/ac97/bus.c put_device(&codec->dev); codec 393 sound/ac97/bus.c struct ac97_codec_device *codec = to_ac97_device(dev); codec 398 sound/ac97/bus.c clk_disable(codec->clk); codec 400 sound/ac97/bus.c clk_disable_unprepare(codec->clk); codec 408 sound/ac97/bus.c struct ac97_codec_device *codec = to_ac97_device(dev); codec 413 sound/ac97/bus.c ret = clk_enable(codec->clk); codec 415 sound/ac97/bus.c ret = clk_prepare_enable(codec->clk); codec 461 sound/ac97/bus.c struct ac97_codec_device *codec = to_ac97_device(dev); codec 463 sound/ac97/bus.c return sprintf(buf, "%08x", codec->vendor_id); codec 27 sound/aoa/aoa.h int (*init)(struct aoa_codec *codec); codec 31 sound/aoa/aoa.h void (*exit)(struct aoa_codec *codec); codec 61 sound/aoa/aoa.h aoa_codec_register(struct aoa_codec *codec); codec 63 sound/aoa/aoa.h aoa_codec_unregister(struct aoa_codec *codec); codec 76 sound/aoa/aoa.h int (*found_codec)(struct aoa_codec *codec); codec 83 sound/aoa/aoa.h void (*remove_codec)(struct aoa_codec *codec); codec 86 sound/aoa/aoa.h void (*attached_codec)(struct aoa_codec *codec); codec 111 sound/aoa/aoa.h aoa_fabric_unlink_codec(struct aoa_codec *codec); codec 49 sound/aoa/codecs/onyx.c struct aoa_codec codec; codec 62 sound/aoa/codecs/onyx.c #define codec_to_onyx(c) container_of(c, struct onyx, codec) codec 778 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->all_amps_off(onyx->codec.gpio); codec 781 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->all_amps_restore(onyx->codec.gpio); codec 820 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); codec 822 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 1); codec 824 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); codec 860 sound/aoa/codecs/onyx.c static int onyx_init_codec(struct aoa_codec *codec) codec 862 sound/aoa/codecs/onyx.c struct onyx *onyx = codec_to_onyx(codec); codec 868 sound/aoa/codecs/onyx.c if (!onyx->codec.gpio || !onyx->codec.gpio->methods) { codec 873 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); codec 875 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 1); codec 877 sound/aoa/codecs/onyx.c onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); codec 891 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 0xF) == 0) codec 895 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 0xC) == 0) { codec 906 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 3) == 0) { codec 918 sound/aoa/codecs/onyx.c if (onyx->codec.soundbus_dev->attach_codec(onyx->codec.soundbus_dev, codec 929 sound/aoa/codecs/onyx.c onyx->codec.soundbus_dev->pcm->device; \ codec 936 sound/aoa/codecs/onyx.c if (onyx->codec.soundbus_dev->pcm) { codec 939 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 0xC) == 0xC) codec 941 sound/aoa/codecs/onyx.c else if (onyx->codec.connected & 4) codec 945 sound/aoa/codecs/onyx.c if (onyx->codec.connected & 0xC) codec 950 sound/aoa/codecs/onyx.c if (onyx->codec.connected & 1) { codec 959 sound/aoa/codecs/onyx.c if (onyx->codec.connected & 2) { codec 963 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 3) == 3) codec 966 sound/aoa/codecs/onyx.c if ((onyx->codec.connected & 3) == 2) { codec 977 sound/aoa/codecs/onyx.c onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); codec 982 sound/aoa/codecs/onyx.c static void onyx_exit_codec(struct aoa_codec *codec) codec 984 sound/aoa/codecs/onyx.c struct onyx *onyx = codec_to_onyx(codec); codec 986 sound/aoa/codecs/onyx.c if (!onyx->codec.soundbus_dev) { codec 990 sound/aoa/codecs/onyx.c onyx->codec.soundbus_dev->detach_codec(onyx->codec.soundbus_dev, onyx); codec 1016 sound/aoa/codecs/onyx.c strlcpy(onyx->codec.name, "onyx", MAX_CODEC_NAME_LEN); codec 1017 sound/aoa/codecs/onyx.c onyx->codec.owner = THIS_MODULE; codec 1018 sound/aoa/codecs/onyx.c onyx->codec.init = onyx_init_codec; codec 1019 sound/aoa/codecs/onyx.c onyx->codec.exit = onyx_exit_codec; codec 1020 sound/aoa/codecs/onyx.c onyx->codec.node = of_node_get(node); codec 1022 sound/aoa/codecs/onyx.c if (aoa_codec_register(&onyx->codec)) { codec 1036 sound/aoa/codecs/onyx.c aoa_codec_unregister(&onyx->codec); codec 1037 sound/aoa/codecs/onyx.c of_node_put(onyx->codec.node); codec 84 sound/aoa/codecs/tas.c struct aoa_codec codec; codec 103 sound/aoa/codecs/tas.c static struct tas *codec_to_tas(struct aoa_codec *codec) codec 105 sound/aoa/codecs/tas.c return container_of(codec, struct tas, codec); codec 675 sound/aoa/codecs/tas.c tas->codec.gpio->methods->all_amps_off(tas->codec.gpio); codec 677 sound/aoa/codecs/tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 0); codec 679 sound/aoa/codecs/tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 1); codec 681 sound/aoa/codecs/tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 0); codec 683 sound/aoa/codecs/tas.c tas->codec.gpio->methods->all_amps_restore(tas->codec.gpio); codec 721 sound/aoa/codecs/tas.c tas->codec.gpio->methods->all_amps_off(tas->codec.gpio); codec 731 sound/aoa/codecs/tas.c tas->codec.gpio->methods->all_amps_restore(tas->codec.gpio); codec 796 sound/aoa/codecs/tas.c static int tas_init_codec(struct aoa_codec *codec) codec 798 sound/aoa/codecs/tas.c struct tas *tas = codec_to_tas(codec); codec 801 sound/aoa/codecs/tas.c if (!tas->codec.gpio || !tas->codec.gpio->methods) { codec 815 sound/aoa/codecs/tas.c if (tas->codec.soundbus_dev->attach_codec(tas->codec.soundbus_dev, codec 864 sound/aoa/codecs/tas.c tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); codec 869 sound/aoa/codecs/tas.c static void tas_exit_codec(struct aoa_codec *codec) codec 871 sound/aoa/codecs/tas.c struct tas *tas = codec_to_tas(codec); codec 873 sound/aoa/codecs/tas.c if (!tas->codec.soundbus_dev) codec 875 sound/aoa/codecs/tas.c tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); codec 897 sound/aoa/codecs/tas.c strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); codec 898 sound/aoa/codecs/tas.c tas->codec.owner = THIS_MODULE; codec 899 sound/aoa/codecs/tas.c tas->codec.init = tas_init_codec; codec 900 sound/aoa/codecs/tas.c tas->codec.exit = tas_exit_codec; codec 901 sound/aoa/codecs/tas.c tas->codec.node = of_node_get(node); codec 903 sound/aoa/codecs/tas.c if (aoa_codec_register(&tas->codec)) { codec 921 sound/aoa/codecs/tas.c aoa_codec_unregister(&tas->codec); codec 922 sound/aoa/codecs/tas.c of_node_put(tas->codec.node); codec 24 sound/aoa/codecs/toonie.c struct aoa_codec codec; codec 26 sound/aoa/codecs/toonie.c #define codec_to_toonie(c) container_of(c, struct toonie, codec) codec 85 sound/aoa/codecs/toonie.c static int toonie_init_codec(struct aoa_codec *codec) codec 87 sound/aoa/codecs/toonie.c struct toonie *toonie = codec_to_toonie(codec); codec 90 sound/aoa/codecs/toonie.c if (toonie->codec.connected != 1) codec 98 sound/aoa/codecs/toonie.c if (toonie->codec.soundbus_dev->attach_codec(toonie->codec.soundbus_dev, codec 109 sound/aoa/codecs/toonie.c static void toonie_exit_codec(struct aoa_codec *codec) codec 111 sound/aoa/codecs/toonie.c struct toonie *toonie = codec_to_toonie(codec); codec 113 sound/aoa/codecs/toonie.c if (!toonie->codec.soundbus_dev) { codec 117 sound/aoa/codecs/toonie.c toonie->codec.soundbus_dev->detach_codec(toonie->codec.soundbus_dev, toonie); codec 129 sound/aoa/codecs/toonie.c strlcpy(toonie->codec.name, "toonie", sizeof(toonie->codec.name)); codec 130 sound/aoa/codecs/toonie.c toonie->codec.owner = THIS_MODULE; codec 131 sound/aoa/codecs/toonie.c toonie->codec.init = toonie_init_codec; codec 132 sound/aoa/codecs/toonie.c toonie->codec.exit = toonie_exit_codec; codec 134 sound/aoa/codecs/toonie.c if (aoa_codec_register(&toonie->codec)) { codec 144 sound/aoa/codecs/toonie.c aoa_codec_unregister(&toonie->codec); codec 57 sound/aoa/core/core.c int aoa_codec_register(struct aoa_codec *codec) codec 65 sound/aoa/core/core.c err = attach_codec_to_fabric(codec); codec 67 sound/aoa/core/core.c list_add(&codec->list, &codec_list); codec 72 sound/aoa/core/core.c void aoa_codec_unregister(struct aoa_codec *codec) codec 74 sound/aoa/core/core.c list_del(&codec->list); codec 75 sound/aoa/core/core.c if (codec->fabric && codec->exit) codec 76 sound/aoa/core/core.c codec->exit(codec); codec 78 sound/aoa/core/core.c fabric->remove_codec(codec); codec 79 sound/aoa/core/core.c codec->fabric = NULL; codec 80 sound/aoa/core/core.c module_put(codec->owner); codec 133 sound/aoa/core/core.c void aoa_fabric_unlink_codec(struct aoa_codec *codec) codec 135 sound/aoa/core/core.c if (!codec->fabric) { codec 141 sound/aoa/core/core.c if (codec->exit) codec 142 sound/aoa/core/core.c codec->exit(codec); codec 143 sound/aoa/core/core.c if (codec->fabric->remove_codec) codec 144 sound/aoa/core/core.c codec->fabric->remove_codec(codec); codec 145 sound/aoa/core/core.c codec->fabric = NULL; codec 146 sound/aoa/core/core.c module_put(codec->owner); codec 768 sound/aoa/fabrics/layout.c static int check_codec(struct aoa_codec *codec, codec 777 sound/aoa/fabrics/layout.c if (of_node_name_eq(codec->node, "codec")) { codec 779 sound/aoa/fabrics/layout.c "platform-%s-codec-ref", codec->name); codec 786 sound/aoa/fabrics/layout.c if (*ref != codec->node->phandle) { codec 798 sound/aoa/fabrics/layout.c codec->soundbus_dev = ldev->sdev; codec 799 sound/aoa/fabrics/layout.c codec->gpio = &ldev->gpio; codec 807 sound/aoa/fabrics/layout.c codec->connected = 0; codec 808 sound/aoa/fabrics/layout.c codec->fabric_data = cc; codec 811 sound/aoa/fabrics/layout.c codec->connected |= 1<<cc->codec_bit; codec 818 sound/aoa/fabrics/layout.c static int layout_found_codec(struct aoa_codec *codec) codec 827 sound/aoa/fabrics/layout.c if (strcmp(ldev->layout->codecs[i].name, codec->name) == 0) { codec 828 sound/aoa/fabrics/layout.c if (check_codec(codec, codec 838 sound/aoa/fabrics/layout.c static void layout_remove_codec(struct aoa_codec *codec) codec 844 sound/aoa/fabrics/layout.c codec->soundbus_dev = NULL; codec 845 sound/aoa/fabrics/layout.c codec->gpio = NULL; codec 895 sound/aoa/fabrics/layout.c static void layout_attached_codec(struct aoa_codec *codec) codec 904 sound/aoa/fabrics/layout.c cc = codec->fabric_data; codec 906 sound/aoa/fabrics/layout.c headphones = codec->gpio->methods->get_detect(codec->gpio, codec 908 sound/aoa/fabrics/layout.c lineout = codec->gpio->methods->get_detect(codec->gpio, codec 911 sound/aoa/fabrics/layout.c if (codec->gpio->methods->set_master) { codec 912 sound/aoa/fabrics/layout.c ctl = snd_ctl_new1(&master_ctl, codec->gpio); codec 919 sound/aoa/fabrics/layout.c ldev->gpio.methods->set_speakers(codec->gpio, 1); codec 920 sound/aoa/fabrics/layout.c ctl = snd_ctl_new1(&speakers_ctl, codec->gpio); codec 926 sound/aoa/fabrics/layout.c ldev->gpio.methods->set_headphone(codec->gpio, 1); codec 927 sound/aoa/fabrics/layout.c ctl = snd_ctl_new1(&headphone_ctl, codec->gpio); codec 948 sound/aoa/fabrics/layout.c ldev->gpio.methods->set_lineout(codec->gpio, 1); codec 949 sound/aoa/fabrics/layout.c ctl = snd_ctl_new1(&lineout_ctl, codec->gpio); codec 385 sound/aoa/soundbus/i2sbus/core.c if (cii->codec->suspend) codec 386 sound/aoa/soundbus/i2sbus/core.c err = cii->codec->suspend(cii, state); codec 412 sound/aoa/soundbus/i2sbus/core.c if (cii->codec->resume) codec 413 sound/aoa/soundbus/i2sbus/core.c err = cii->codec->resume(cii); codec 101 sound/aoa/soundbus/i2sbus/pcm.c struct transfer_info *ti = cii->codec->transfers; codec 102 sound/aoa/soundbus/i2sbus/pcm.c bus_factor = cii->codec->bus_factor; codec 103 sound/aoa/soundbus/i2sbus/pcm.c sysclock_factor = cii->codec->sysclock_factor; codec 107 sound/aoa/soundbus/i2sbus/pcm.c && cii->codec->usable(cii, ti, &v)) { codec 202 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->open) { codec 203 sound/aoa/soundbus/i2sbus/pcm.c err = cii->codec->open(cii, pi->substream); codec 210 sound/aoa/soundbus/i2sbus/pcm.c if (found_this && rev->codec->close) { codec 211 sound/aoa/soundbus/i2sbus/pcm.c rev->codec->close(rev, codec 240 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->close) { codec 241 sound/aoa/soundbus/i2sbus/pcm.c tmp = cii->codec->close(cii, pi->substream); codec 420 sound/aoa/soundbus/i2sbus/pcm.c bi.bus_factor = cii->codec->bus_factor; codec 442 sound/aoa/soundbus/i2sbus/pcm.c bi.sysclock_factor = cii->codec->sysclock_factor; codec 466 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->prepare) codec 467 sound/aoa/soundbus/i2sbus/pcm.c err = cii->codec->prepare(cii, &bi, pi->substream); codec 492 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->switch_clock) codec 493 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->switch_clock(cii, CLOCK_SWITCH_PREPARE_SLAVE); codec 522 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->switch_clock) codec 523 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->switch_clock(cii, CLOCK_SWITCH_SLAVE); codec 557 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->start) codec 558 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->start(cii, pi->substream); codec 606 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->stop) codec 607 sound/aoa/soundbus/i2sbus/pcm.c cii->codec->stop(cii, pi->substream); codec 872 sound/aoa/soundbus/i2sbus/pcm.c module_put(p->codec->owner); codec 911 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->sysclock_factor != ci->sysclock_factor) { codec 916 sound/aoa/soundbus/i2sbus/pcm.c if (cii->codec->bus_factor != ci->bus_factor) { codec 940 sound/aoa/soundbus/i2sbus/pcm.c cii->codec = ci; codec 1058 sound/aoa/soundbus/i2sbus/pcm.c module_put(cii->codec->owner); codec 46 sound/aoa/soundbus/soundbus.h struct codec_info *codec; codec 263 sound/arm/pxa2xx-ac97.c snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata[0]); codec 536 sound/core/compress_offload.c if (params->codec.id == 0 || params->codec.id > SND_AUDIOCODEC_MAX) codec 539 sound/core/compress_offload.c if (params->codec.ch_in == 0 || params->codec.ch_out == 0) codec 20 sound/drivers/vx/vx_mixer.c static void vx_write_codec_reg(struct vx_core *chip, int codec, unsigned int data) codec 29 sound/drivers/vx/vx_mixer.c chip->ops->write_codec(chip, codec, data); codec 74 sound/drivers/vx/vx_mixer.c static void vx_set_codec_reg(struct vx_core *chip, int codec, int reg, int val) codec 81 sound/drivers/vx/vx_mixer.c vx_write_codec_reg(chip, codec, data.l); codec 91 sound/drivers/vx/vx_mixer.c static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right) codec 101 sound/drivers/vx/vx_mixer.c vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_LEFT_REGISTER, left); codec 102 sound/drivers/vx/vx_mixer.c vx_set_codec_reg(chip, codec, XX_CODEC_LEVEL_RIGHT_REGISTER, right); codec 413 sound/drivers/vx/vx_mixer.c int codec = kcontrol->id.index; codec 415 sound/drivers/vx/vx_mixer.c ucontrol->value.integer.value[0] = chip->output_level[codec][0]; codec 416 sound/drivers/vx/vx_mixer.c ucontrol->value.integer.value[1] = chip->output_level[codec][1]; codec 424 sound/drivers/vx/vx_mixer.c int codec = kcontrol->id.index; codec 433 sound/drivers/vx/vx_mixer.c if (val[0] != chip->output_level[codec][0] || codec 434 sound/drivers/vx/vx_mixer.c val[1] != chip->output_level[codec][1]) { codec 435 sound/drivers/vx/vx_mixer.c vx_set_analog_output_level(chip, codec, val[0], val[1]); codec 436 sound/drivers/vx/vx_mixer.c chip->output_level[codec][0] = val[0]; codec 437 sound/drivers/vx/vx_mixer.c chip->output_level[codec][1] = val[1]; codec 121 sound/hda/ext/hdac_ext_bus.c struct hdac_device *codec, *__codec; codec 126 sound/hda/ext/hdac_ext_bus.c list_for_each_entry_safe(codec, __codec, &bus->codec_list, list) { codec 127 sound/hda/ext/hdac_ext_bus.c snd_hdac_device_unregister(codec); codec 128 sound/hda/ext/hdac_ext_bus.c put_device(&codec->dev); codec 157 sound/hda/hdac_bus.c struct hdac_device *codec; codec 169 sound/hda/hdac_bus.c codec = bus->caddr_tbl[caddr & 0x0f]; codec 170 sound/hda/hdac_bus.c if (!codec || !codec->dev.driver) codec 172 sound/hda/hdac_bus.c drv = drv_to_hdac_driver(codec->dev.driver); codec 174 sound/hda/hdac_bus.c drv->unsol_event(codec, res); codec 187 sound/hda/hdac_bus.c int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec) codec 189 sound/hda/hdac_bus.c if (bus->caddr_tbl[codec->addr]) { codec 191 sound/hda/hdac_bus.c codec->addr); codec 195 sound/hda/hdac_bus.c list_add_tail(&codec->list, &bus->codec_list); codec 196 sound/hda/hdac_bus.c bus->caddr_tbl[codec->addr] = codec; codec 197 sound/hda/hdac_bus.c set_bit(codec->addr, &bus->codec_powered); codec 208 sound/hda/hdac_bus.c struct hdac_device *codec) codec 210 sound/hda/hdac_bus.c WARN_ON(bus != codec->bus); codec 211 sound/hda/hdac_bus.c if (list_empty(&codec->list)) codec 213 sound/hda/hdac_bus.c list_del_init(&codec->list); codec 214 sound/hda/hdac_bus.c bus->caddr_tbl[codec->addr] = NULL; codec 215 sound/hda/hdac_bus.c clear_bit(codec->addr, &bus->codec_powered); codec 121 sound/hda/hdac_component.c int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, codec 124 sound/hda/hdac_component.c struct hdac_bus *bus = codec->bus; codec 132 sound/hda/hdac_component.c port = acomp->audio_ops->pin2port(codec, nid); codec 162 sound/hda/hdac_component.c int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, codec 165 sound/hda/hdac_component.c struct hdac_bus *bus = codec->bus; codec 174 sound/hda/hdac_component.c port = acomp->audio_ops->pin2port(codec, nid); codec 18 sound/hda/hdac_device.c static void setup_fg_nodes(struct hdac_device *codec); codec 19 sound/hda/hdac_device.c static int get_codec_vendor_name(struct hdac_device *codec); codec 40 sound/hda/hdac_device.c int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, codec 47 sound/hda/hdac_device.c dev = &codec->dev; codec 56 sound/hda/hdac_device.c codec->bus = bus; codec 57 sound/hda/hdac_device.c codec->addr = addr; codec 58 sound/hda/hdac_device.c codec->type = HDA_DEV_CORE; codec 59 sound/hda/hdac_device.c mutex_init(&codec->widget_lock); codec 60 sound/hda/hdac_device.c mutex_init(&codec->regmap_lock); codec 61 sound/hda/hdac_device.c pm_runtime_set_active(&codec->dev); codec 62 sound/hda/hdac_device.c pm_runtime_get_noresume(&codec->dev); codec 63 sound/hda/hdac_device.c atomic_set(&codec->in_pm, 0); codec 65 sound/hda/hdac_device.c err = snd_hdac_bus_add_device(bus, codec); codec 70 sound/hda/hdac_device.c codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, codec 72 sound/hda/hdac_device.c if (codec->vendor_id == -1) { codec 76 sound/hda/hdac_device.c codec->vendor_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, codec 80 sound/hda/hdac_device.c codec->subsystem_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, codec 82 sound/hda/hdac_device.c codec->revision_id = snd_hdac_read_parm(codec, AC_NODE_ROOT, codec 85 sound/hda/hdac_device.c setup_fg_nodes(codec); codec 86 sound/hda/hdac_device.c if (!codec->afg && !codec->mfg) { codec 92 sound/hda/hdac_device.c fg = codec->afg ? codec->afg : codec->mfg; codec 94 sound/hda/hdac_device.c err = snd_hdac_refresh_widgets(codec); codec 98 sound/hda/hdac_device.c codec->power_caps = snd_hdac_read_parm(codec, fg, AC_PAR_POWER_STATE); codec 100 sound/hda/hdac_device.c if (codec->subsystem_id == -1 || codec->subsystem_id == 0) codec 101 sound/hda/hdac_device.c snd_hdac_read(codec, fg, AC_VERB_GET_SUBSYSTEM_ID, 0, codec 102 sound/hda/hdac_device.c &codec->subsystem_id); codec 104 sound/hda/hdac_device.c err = get_codec_vendor_name(codec); codec 108 sound/hda/hdac_device.c codec->chip_name = kasprintf(GFP_KERNEL, "ID %x", codec 109 sound/hda/hdac_device.c codec->vendor_id & 0xffff); codec 110 sound/hda/hdac_device.c if (!codec->chip_name) { codec 118 sound/hda/hdac_device.c put_device(&codec->dev); codec 127 sound/hda/hdac_device.c void snd_hdac_device_exit(struct hdac_device *codec) codec 129 sound/hda/hdac_device.c pm_runtime_put_noidle(&codec->dev); codec 130 sound/hda/hdac_device.c snd_hdac_bus_remove_device(codec->bus, codec); codec 131 sound/hda/hdac_device.c kfree(codec->vendor_name); codec 132 sound/hda/hdac_device.c kfree(codec->chip_name); codec 140 sound/hda/hdac_device.c int snd_hdac_device_register(struct hdac_device *codec) codec 144 sound/hda/hdac_device.c err = device_add(&codec->dev); codec 147 sound/hda/hdac_device.c mutex_lock(&codec->widget_lock); codec 148 sound/hda/hdac_device.c err = hda_widget_sysfs_init(codec); codec 149 sound/hda/hdac_device.c mutex_unlock(&codec->widget_lock); codec 151 sound/hda/hdac_device.c device_del(&codec->dev); codec 163 sound/hda/hdac_device.c void snd_hdac_device_unregister(struct hdac_device *codec) codec 165 sound/hda/hdac_device.c if (device_is_registered(&codec->dev)) { codec 166 sound/hda/hdac_device.c mutex_lock(&codec->widget_lock); codec 167 sound/hda/hdac_device.c hda_widget_sysfs_exit(codec); codec 168 sound/hda/hdac_device.c mutex_unlock(&codec->widget_lock); codec 169 sound/hda/hdac_device.c device_del(&codec->dev); codec 170 sound/hda/hdac_device.c snd_hdac_bus_remove_device(codec->bus, codec); codec 182 sound/hda/hdac_device.c int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name) codec 191 sound/hda/hdac_device.c kfree(codec->chip_name); codec 192 sound/hda/hdac_device.c codec->chip_name = newname; codec 205 sound/hda/hdac_device.c int snd_hdac_codec_modalias(struct hdac_device *codec, char *buf, size_t size) codec 208 sound/hda/hdac_device.c codec->vendor_id, codec->revision_id, codec->type); codec 222 sound/hda/hdac_device.c static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, codec 227 sound/hda/hdac_device.c addr = codec->addr; codec 230 sound/hda/hdac_device.c dev_err(&codec->dev, "out of range cmd %x:%x:%x:%x\n", codec 254 sound/hda/hdac_device.c int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, codec 257 sound/hda/hdac_device.c if (codec->exec_verb) codec 258 sound/hda/hdac_device.c return codec->exec_verb(codec, cmd, flags, res); codec 259 sound/hda/hdac_device.c return snd_hdac_bus_exec_verb(codec->bus, codec->addr, cmd, res); codec 273 sound/hda/hdac_device.c int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, codec 276 sound/hda/hdac_device.c unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); codec 278 sound/hda/hdac_device.c return snd_hdac_exec_verb(codec, cmd, 0, res); codec 287 sound/hda/hdac_device.c int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, codec 293 sound/hda/hdac_device.c return snd_hdac_regmap_read_raw(codec, cmd, res); codec 306 sound/hda/hdac_device.c int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, codec 312 sound/hda/hdac_device.c if (snd_hdac_regmap_read_raw_uncached(codec, cmd, &val) < 0) codec 325 sound/hda/hdac_device.c int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, codec 331 sound/hda/hdac_device.c if (!codec->regmap) codec 334 sound/hda/hdac_device.c codec->caps_overwriting = true; codec 335 sound/hda/hdac_device.c err = snd_hdac_regmap_write_raw(codec, verb, val); codec 336 sound/hda/hdac_device.c codec->caps_overwriting = false; codec 350 sound/hda/hdac_device.c int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, codec 355 sound/hda/hdac_device.c parm = snd_hdac_read_parm_uncached(codec, nid, AC_PAR_NODE_COUNT); codec 368 sound/hda/hdac_device.c static void setup_fg_nodes(struct hdac_device *codec) codec 373 sound/hda/hdac_device.c total_nodes = snd_hdac_get_sub_nodes(codec, AC_NODE_ROOT, &nid); codec 375 sound/hda/hdac_device.c function_id = snd_hdac_read_parm(codec, nid, codec 379 sound/hda/hdac_device.c codec->afg = nid; codec 380 sound/hda/hdac_device.c codec->afg_function_id = function_id & 0xff; codec 381 sound/hda/hdac_device.c codec->afg_unsol = (function_id >> 8) & 1; codec 384 sound/hda/hdac_device.c codec->mfg = nid; codec 385 sound/hda/hdac_device.c codec->mfg_function_id = function_id & 0xff; codec 386 sound/hda/hdac_device.c codec->mfg_unsol = (function_id >> 8) & 1; codec 398 sound/hda/hdac_device.c int snd_hdac_refresh_widgets(struct hdac_device *codec) codec 407 sound/hda/hdac_device.c mutex_lock(&codec->widget_lock); codec 408 sound/hda/hdac_device.c nums = snd_hdac_get_sub_nodes(codec, codec->afg, &start_nid); codec 410 sound/hda/hdac_device.c dev_err(&codec->dev, "cannot read sub nodes for FG 0x%02x\n", codec 411 sound/hda/hdac_device.c codec->afg); codec 416 sound/hda/hdac_device.c err = hda_widget_sysfs_reinit(codec, start_nid, nums); codec 420 sound/hda/hdac_device.c codec->num_nodes = nums; codec 421 sound/hda/hdac_device.c codec->start_nid = start_nid; codec 422 sound/hda/hdac_device.c codec->end_nid = start_nid + nums; codec 424 sound/hda/hdac_device.c mutex_unlock(&codec->widget_lock); codec 430 sound/hda/hdac_device.c static unsigned int get_num_conns(struct hdac_device *codec, hda_nid_t nid) codec 432 sound/hda/hdac_device.c unsigned int wcaps = get_wcaps(codec, nid); codec 439 sound/hda/hdac_device.c parm = snd_hdac_read_parm(codec, nid, AC_PAR_CONNLIST_LEN); codec 458 sound/hda/hdac_device.c int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, codec 467 sound/hda/hdac_device.c parm = get_num_conns(codec, nid); codec 488 sound/hda/hdac_device.c err = snd_hdac_read(codec, nid, AC_VERB_GET_CONNECT_LIST, 0, codec 505 sound/hda/hdac_device.c err = snd_hdac_read(codec, nid, codec 514 sound/hda/hdac_device.c dev_dbg(&codec->dev, codec 523 sound/hda/hdac_device.c dev_warn(&codec->dev, codec 561 sound/hda/hdac_device.c int snd_hdac_power_up(struct hdac_device *codec) codec 563 sound/hda/hdac_device.c return pm_runtime_get_sync(&codec->dev); codec 573 sound/hda/hdac_device.c int snd_hdac_power_down(struct hdac_device *codec) codec 575 sound/hda/hdac_device.c struct device *dev = &codec->dev; codec 593 sound/hda/hdac_device.c int snd_hdac_power_up_pm(struct hdac_device *codec) codec 595 sound/hda/hdac_device.c if (!atomic_inc_not_zero(&codec->in_pm)) codec 596 sound/hda/hdac_device.c return snd_hdac_power_up(codec); codec 605 sound/hda/hdac_device.c int snd_hdac_keep_power_up(struct hdac_device *codec) codec 607 sound/hda/hdac_device.c if (!atomic_inc_not_zero(&codec->in_pm)) { codec 608 sound/hda/hdac_device.c int ret = pm_runtime_get_if_in_use(&codec->dev); codec 626 sound/hda/hdac_device.c int snd_hdac_power_down_pm(struct hdac_device *codec) codec 628 sound/hda/hdac_device.c if (atomic_dec_if_positive(&codec->in_pm) < 0) codec 629 sound/hda/hdac_device.c return snd_hdac_power_down(codec); codec 666 sound/hda/hdac_device.c static int get_codec_vendor_name(struct hdac_device *codec) codec 669 sound/hda/hdac_device.c u16 vendor_id = codec->vendor_id >> 16; codec 673 sound/hda/hdac_device.c codec->vendor_name = kstrdup(c->name, GFP_KERNEL); codec 674 sound/hda/hdac_device.c return codec->vendor_name ? 0 : -ENOMEM; codec 678 sound/hda/hdac_device.c codec->vendor_name = kasprintf(GFP_KERNEL, "Generic %04x", vendor_id); codec 679 sound/hda/hdac_device.c return codec->vendor_name ? 0 : -ENOMEM; codec 781 sound/hda/hdac_device.c static unsigned int query_pcm_param(struct hdac_device *codec, hda_nid_t nid) codec 785 sound/hda/hdac_device.c if (nid != codec->afg && codec 786 sound/hda/hdac_device.c (get_wcaps(codec, nid) & AC_WCAP_FORMAT_OVRD)) codec 787 sound/hda/hdac_device.c val = snd_hdac_read_parm(codec, nid, AC_PAR_PCM); codec 789 sound/hda/hdac_device.c val = snd_hdac_read_parm(codec, codec->afg, AC_PAR_PCM); codec 795 sound/hda/hdac_device.c static unsigned int query_stream_param(struct hdac_device *codec, hda_nid_t nid) codec 797 sound/hda/hdac_device.c unsigned int streams = snd_hdac_read_parm(codec, nid, AC_PAR_STREAM); codec 800 sound/hda/hdac_device.c streams = snd_hdac_read_parm(codec, codec->afg, AC_PAR_STREAM); codec 819 sound/hda/hdac_device.c int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, codec 824 sound/hda/hdac_device.c wcaps = get_wcaps(codec, nid); codec 825 sound/hda/hdac_device.c val = query_pcm_param(codec, nid); codec 834 sound/hda/hdac_device.c dev_err(&codec->dev, codec 847 sound/hda/hdac_device.c streams = query_stream_param(codec, nid); codec 897 sound/hda/hdac_device.c dev_err(&codec->dev, codec 924 sound/hda/hdac_device.c bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, codec 930 sound/hda/hdac_device.c val = query_pcm_param(codec, nid); codec 944 sound/hda/hdac_device.c stream = query_stream_param(codec, nid); codec 1071 sound/hda/hdac_device.c unsigned int snd_hdac_sync_power_state(struct hdac_device *codec, codec 1078 sound/hda/hdac_device.c state = snd_hdac_codec_read(codec, nid, 0, codec 26 sound/hda/hdac_regmap.c static int codec_pm_lock(struct hdac_device *codec) codec 28 sound/hda/hdac_regmap.c return snd_hdac_keep_power_up(codec); codec 31 sound/hda/hdac_regmap.c static void codec_pm_unlock(struct hdac_device *codec, int lock) codec 34 sound/hda/hdac_regmap.c snd_hdac_power_down_pm(codec); codec 41 sound/hda/hdac_regmap.c struct hdac_device *codec = dev_to_hdac_dev(dev); codec 46 sound/hda/hdac_regmap.c return !codec->cache_coef; codec 68 sound/hda/hdac_regmap.c struct hdac_device *codec = dev_to_hdac_dev(dev); codec 73 sound/hda/hdac_regmap.c snd_array_for_each(&codec->vendor_verbs, i, v) { codec 78 sound/hda/hdac_regmap.c if (codec->caps_overwriting) codec 86 sound/hda/hdac_regmap.c return codec->cache_coef; codec 117 sound/hda/hdac_regmap.c struct hdac_device *codec = dev_to_hdac_dev(dev); codec 120 sound/hda/hdac_regmap.c if (codec->caps_overwriting) codec 157 sound/hda/hdac_regmap.c static int hda_reg_read_stereo_amp(struct hdac_device *codec, codec 164 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); codec 167 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_RIGHT, 0, &right); codec 175 sound/hda/hdac_regmap.c static int hda_reg_write_stereo_amp(struct hdac_device *codec, codec 192 sound/hda/hdac_regmap.c return snd_hdac_exec_verb(codec, reg | left, 0, NULL); codec 195 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); codec 198 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_RIGHT | right, 0, NULL); codec 205 sound/hda/hdac_regmap.c static int hda_reg_read_coef(struct hdac_device *codec, unsigned int reg, codec 211 sound/hda/hdac_regmap.c if (!codec->cache_coef) codec 215 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, verb, 0, NULL); codec 219 sound/hda/hdac_regmap.c return snd_hdac_exec_verb(codec, verb, 0, val); codec 223 sound/hda/hdac_regmap.c static int hda_reg_write_coef(struct hdac_device *codec, unsigned int reg, codec 229 sound/hda/hdac_regmap.c if (!codec->cache_coef) codec 233 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, verb, 0, NULL); codec 238 sound/hda/hdac_regmap.c return snd_hdac_exec_verb(codec, verb, 0, NULL); codec 243 sound/hda/hdac_regmap.c struct hdac_device *codec = context; codec 249 sound/hda/hdac_regmap.c pm_lock = codec_pm_lock(codec); codec 253 sound/hda/hdac_regmap.c reg |= (codec->addr << 28); codec 255 sound/hda/hdac_regmap.c err = hda_reg_read_stereo_amp(codec, reg, val); codec 259 sound/hda/hdac_regmap.c err = hda_reg_read_coef(codec, reg, val); codec 265 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg, 0, val); codec 276 sound/hda/hdac_regmap.c codec_pm_unlock(codec, pm_lock); codec 282 sound/hda/hdac_regmap.c struct hdac_device *codec = context; codec 287 sound/hda/hdac_regmap.c if (codec->caps_overwriting) codec 291 sound/hda/hdac_regmap.c reg |= (codec->addr << 28); codec 295 sound/hda/hdac_regmap.c pm_lock = codec_pm_lock(codec); codec 297 sound/hda/hdac_regmap.c return codec->lazy_cache ? 0 : -EAGAIN; codec 301 sound/hda/hdac_regmap.c err = hda_reg_write_stereo_amp(codec, reg, val); codec 306 sound/hda/hdac_regmap.c err = hda_reg_write_coef(codec, reg, val); codec 343 sound/hda/hdac_regmap.c err = snd_hdac_exec_verb(codec, reg, 0, NULL); codec 349 sound/hda/hdac_regmap.c codec_pm_unlock(codec, pm_lock); codec 375 sound/hda/hdac_regmap.c int snd_hdac_regmap_init(struct hdac_device *codec) codec 379 sound/hda/hdac_regmap.c regmap = regmap_init(&codec->dev, NULL, codec, &hda_regmap_cfg); codec 382 sound/hda/hdac_regmap.c codec->regmap = regmap; codec 383 sound/hda/hdac_regmap.c snd_array_init(&codec->vendor_verbs, sizeof(unsigned int), 8); codec 392 sound/hda/hdac_regmap.c void snd_hdac_regmap_exit(struct hdac_device *codec) codec 394 sound/hda/hdac_regmap.c if (codec->regmap) { codec 395 sound/hda/hdac_regmap.c regmap_exit(codec->regmap); codec 396 sound/hda/hdac_regmap.c codec->regmap = NULL; codec 397 sound/hda/hdac_regmap.c snd_array_free(&codec->vendor_verbs); codec 409 sound/hda/hdac_regmap.c int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, codec 412 sound/hda/hdac_regmap.c unsigned int *p = snd_array_new(&codec->vendor_verbs); codec 426 sound/hda/hdac_regmap.c static int reg_raw_write(struct hdac_device *codec, unsigned int reg, codec 431 sound/hda/hdac_regmap.c mutex_lock(&codec->regmap_lock); codec 432 sound/hda/hdac_regmap.c if (!codec->regmap) codec 433 sound/hda/hdac_regmap.c err = hda_reg_write(codec, reg, val); codec 435 sound/hda/hdac_regmap.c err = regmap_write(codec->regmap, reg, val); codec 436 sound/hda/hdac_regmap.c mutex_unlock(&codec->regmap_lock); codec 441 sound/hda/hdac_regmap.c #define CALL_RAW_FUNC(codec, func_call) \ codec 445 sound/hda/hdac_regmap.c _err = snd_hdac_power_up_pm(codec); \ codec 448 sound/hda/hdac_regmap.c snd_hdac_power_down_pm(codec); \ codec 460 sound/hda/hdac_regmap.c int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, codec 463 sound/hda/hdac_regmap.c return CALL_RAW_FUNC(codec, reg_raw_write(codec, reg, val)); codec 467 sound/hda/hdac_regmap.c static int reg_raw_read(struct hdac_device *codec, unsigned int reg, codec 472 sound/hda/hdac_regmap.c mutex_lock(&codec->regmap_lock); codec 473 sound/hda/hdac_regmap.c if (uncached || !codec->regmap) codec 474 sound/hda/hdac_regmap.c err = hda_reg_read(codec, reg, val); codec 476 sound/hda/hdac_regmap.c err = regmap_read(codec->regmap, reg, val); codec 477 sound/hda/hdac_regmap.c mutex_unlock(&codec->regmap_lock); codec 481 sound/hda/hdac_regmap.c static int __snd_hdac_regmap_read_raw(struct hdac_device *codec, codec 485 sound/hda/hdac_regmap.c return CALL_RAW_FUNC(codec, reg_raw_read(codec, reg, val, uncached)); codec 496 sound/hda/hdac_regmap.c int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, codec 499 sound/hda/hdac_regmap.c return __snd_hdac_regmap_read_raw(codec, reg, val, false); codec 506 sound/hda/hdac_regmap.c int snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec, codec 509 sound/hda/hdac_regmap.c return __snd_hdac_regmap_read_raw(codec, reg, val, true); codec 512 sound/hda/hdac_regmap.c static int reg_raw_update(struct hdac_device *codec, unsigned int reg, codec 519 sound/hda/hdac_regmap.c mutex_lock(&codec->regmap_lock); codec 520 sound/hda/hdac_regmap.c if (codec->regmap) { codec 521 sound/hda/hdac_regmap.c err = regmap_update_bits_check(codec->regmap, reg, mask, val, codec 526 sound/hda/hdac_regmap.c err = hda_reg_read(codec, reg, &orig); codec 531 sound/hda/hdac_regmap.c err = hda_reg_write(codec, reg, val); codec 537 sound/hda/hdac_regmap.c mutex_unlock(&codec->regmap_lock); codec 550 sound/hda/hdac_regmap.c int snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg, codec 553 sound/hda/hdac_regmap.c return CALL_RAW_FUNC(codec, reg_raw_update(codec, reg, mask, val)); codec 557 sound/hda/hdac_regmap.c static int reg_raw_update_once(struct hdac_device *codec, unsigned int reg, codec 563 sound/hda/hdac_regmap.c if (!codec->regmap) codec 564 sound/hda/hdac_regmap.c return reg_raw_update(codec, reg, mask, val); codec 566 sound/hda/hdac_regmap.c mutex_lock(&codec->regmap_lock); codec 567 sound/hda/hdac_regmap.c regcache_cache_only(codec->regmap, true); codec 568 sound/hda/hdac_regmap.c err = regmap_read(codec->regmap, reg, &orig); codec 569 sound/hda/hdac_regmap.c regcache_cache_only(codec->regmap, false); codec 571 sound/hda/hdac_regmap.c err = regmap_update_bits(codec->regmap, reg, mask, val); codec 572 sound/hda/hdac_regmap.c mutex_unlock(&codec->regmap_lock); codec 587 sound/hda/hdac_regmap.c int snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg, codec 590 sound/hda/hdac_regmap.c return CALL_RAW_FUNC(codec, reg_raw_update_once(codec, reg, mask, val)); codec 598 sound/hda/hdac_regmap.c void snd_hdac_regmap_sync(struct hdac_device *codec) codec 600 sound/hda/hdac_regmap.c if (codec->regmap) { codec 601 sound/hda/hdac_regmap.c mutex_lock(&codec->regmap_lock); codec 602 sound/hda/hdac_regmap.c regcache_sync(codec->regmap); codec 603 sound/hda/hdac_regmap.c mutex_unlock(&codec->regmap_lock); codec 24 sound/hda/hdac_sysfs.c struct hdac_device *codec = dev_to_hdac_dev(dev); \ codec 25 sound/hda/hdac_sysfs.c return sprintf(buf, "0x%x\n", codec->type); \ codec 34 sound/hda/hdac_sysfs.c struct hdac_device *codec = dev_to_hdac_dev(dev); \ codec 36 sound/hda/hdac_sysfs.c codec->type ? codec->type : ""); \ codec 89 sound/hda/hdac_sysfs.c ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, codec 91 sound/hda/hdac_sysfs.c ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, codec 114 sound/hda/hdac_sysfs.c struct hdac_device *codec; codec 119 sound/hda/hdac_sysfs.c nid = get_codec_nid(kobj, &codec); codec 122 sound/hda/hdac_sysfs.c return wid_attr->show(codec, nid, wid_attr, buf); codec 130 sound/hda/hdac_sysfs.c struct hdac_device *codec; codec 135 sound/hda/hdac_sysfs.c nid = get_codec_nid(kobj, &codec); codec 138 sound/hda/hdac_sysfs.c return wid_attr->store(codec, nid, wid_attr, buf, count); codec 161 sound/hda/hdac_sysfs.c static ssize_t caps_show(struct hdac_device *codec, hda_nid_t nid, codec 164 sound/hda/hdac_sysfs.c return sprintf(buf, "0x%08x\n", get_wcaps(codec, nid)); codec 167 sound/hda/hdac_sysfs.c static ssize_t pin_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 170 sound/hda/hdac_sysfs.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) codec 173 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_PIN_CAP)); codec 176 sound/hda/hdac_sysfs.c static ssize_t pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, codec 181 sound/hda/hdac_sysfs.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) codec 183 sound/hda/hdac_sysfs.c if (snd_hdac_read(codec, nid, AC_VERB_GET_CONFIG_DEFAULT, 0, &val)) codec 188 sound/hda/hdac_sysfs.c static bool has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) codec 190 sound/hda/hdac_sysfs.c if (nid == codec->afg || nid == codec->mfg) codec 192 sound/hda/hdac_sysfs.c switch (get_wcaps_type(get_wcaps(codec, nid))) { codec 201 sound/hda/hdac_sysfs.c static ssize_t pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 204 sound/hda/hdac_sysfs.c if (!has_pcm_cap(codec, nid)) codec 207 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_PCM)); codec 210 sound/hda/hdac_sysfs.c static ssize_t pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, codec 213 sound/hda/hdac_sysfs.c if (!has_pcm_cap(codec, nid)) codec 216 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_STREAM)); codec 219 sound/hda/hdac_sysfs.c static ssize_t amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 222 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_IN_AMP)) codec 225 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_AMP_IN_CAP)); codec 228 sound/hda/hdac_sysfs.c static ssize_t amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 231 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)) codec 234 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_AMP_OUT_CAP)); codec 237 sound/hda/hdac_sysfs.c static ssize_t power_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 240 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_POWER)) codec 243 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_POWER_STATE)); codec 246 sound/hda/hdac_sysfs.c static ssize_t gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, codec 250 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_GPIO_CAP)); codec 253 sound/hda/hdac_sysfs.c static ssize_t connections_show(struct hdac_device *codec, hda_nid_t nid, codec 260 sound/hda/hdac_sysfs.c nconns = snd_hdac_get_connections(codec, nid, list, ARRAY_SIZE(list)); codec 320 sound/hda/hdac_sysfs.c static void widget_tree_free(struct hdac_device *codec) codec 322 sound/hda/hdac_sysfs.c struct hdac_widget_tree *tree = codec->widgets; codec 335 sound/hda/hdac_sysfs.c codec->widgets = NULL; codec 361 sound/hda/hdac_sysfs.c static int widget_tree_create(struct hdac_device *codec) codec 367 sound/hda/hdac_sysfs.c tree = codec->widgets = kzalloc(sizeof(*tree), GFP_KERNEL); codec 371 sound/hda/hdac_sysfs.c tree->root = kobject_create_and_add("widgets", &codec->dev.kobj); codec 375 sound/hda/hdac_sysfs.c tree->nodes = kcalloc(codec->num_nodes + 1, sizeof(*tree->nodes), codec 380 sound/hda/hdac_sysfs.c for (i = 0, nid = codec->start_nid; i < codec->num_nodes; i++, nid++) { codec 387 sound/hda/hdac_sysfs.c if (codec->afg) { codec 388 sound/hda/hdac_sysfs.c err = add_widget_node(tree->root, codec->afg, codec 399 sound/hda/hdac_sysfs.c int hda_widget_sysfs_init(struct hdac_device *codec) codec 403 sound/hda/hdac_sysfs.c if (codec->widgets) codec 406 sound/hda/hdac_sysfs.c err = widget_tree_create(codec); codec 408 sound/hda/hdac_sysfs.c widget_tree_free(codec); codec 416 sound/hda/hdac_sysfs.c void hda_widget_sysfs_exit(struct hdac_device *codec) codec 418 sound/hda/hdac_sysfs.c widget_tree_free(codec); codec 422 sound/hda/hdac_sysfs.c int hda_widget_sysfs_reinit(struct hdac_device *codec, codec 430 sound/hda/hdac_sysfs.c if (!codec->widgets) codec 433 sound/hda/hdac_sysfs.c tree = kmemdup(codec->widgets, sizeof(*tree), GFP_KERNEL); codec 444 sound/hda/hdac_sysfs.c for (i = 0, nid = codec->start_nid; i < codec->num_nodes; i++, nid++) { codec 446 sound/hda/hdac_sysfs.c free_widget_node(codec->widgets->nodes[i], codec 452 sound/hda/hdac_sysfs.c if (nid < codec->start_nid || nid >= codec->end_nid) codec 457 sound/hda/hdac_sysfs.c codec->widgets->nodes[nid - codec->start_nid]; codec 461 sound/hda/hdac_sysfs.c kfree(codec->widgets->nodes); codec 462 sound/hda/hdac_sysfs.c kfree(codec->widgets); codec 463 sound/hda/hdac_sysfs.c codec->widgets = tree; codec 182 sound/hda/hdmi_chmap.c static int hdmi_pin_set_slot_channel(struct hdac_device *codec, codec 185 sound/hda/hdmi_chmap.c return snd_hdac_codec_write(codec, pin_nid, 0, codec 190 sound/hda/hdmi_chmap.c static int hdmi_pin_get_slot_channel(struct hdac_device *codec, codec 193 sound/hda/hdmi_chmap.c return (snd_hdac_codec_read(codec, pin_nid, 0, codec 198 sound/hda/hdmi_chmap.c static int hdmi_get_channel_count(struct hdac_device *codec, hda_nid_t cvt_nid) codec 200 sound/hda/hdmi_chmap.c return 1 + snd_hdac_codec_read(codec, cvt_nid, 0, codec 204 sound/hda/hdmi_chmap.c static void hdmi_set_channel_count(struct hdac_device *codec, codec 207 sound/hda/hdmi_chmap.c if (chs != hdmi_get_channel_count(codec, cvt_nid)) codec 208 sound/hda/hdmi_chmap.c snd_hdac_codec_write(codec, cvt_nid, 0, codec 268 sound/hda/hdmi_chmap.c static int hdmi_channel_allocation_spk_alloc_blk(struct hdac_device *codec, codec 317 sound/hda/hdmi_chmap.c dev_dbg(&codec->dev, "HDMI: select CA 0x%x for %d-channel allocation: %s\n", codec 9 sound/hda/local.h #define get_wcaps(codec, nid) \ codec 10 sound/hda/local.h snd_hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) codec 31 sound/hda/local.h int hda_widget_sysfs_init(struct hdac_device *codec); codec 32 sound/hda/local.h int hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, codec 34 sound/hda/local.h void hda_widget_sysfs_exit(struct hdac_device *codec); codec 36 sound/hda/local.h int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec); codec 38 sound/hda/local.h struct hdac_device *codec); codec 40 sound/hda/local.h int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, codec 1264 sound/isa/opti9xx/miro.c struct snd_wss *codec; codec 1299 sound/isa/opti9xx/miro.c WSS_HW_DETECT, 0, &codec); codec 1303 sound/isa/opti9xx/miro.c error = snd_wss_pcm(codec, 0); codec 1307 sound/isa/opti9xx/miro.c error = snd_wss_mixer(codec); codec 1311 sound/isa/opti9xx/miro.c error = snd_wss_timer(codec, 0); codec 1315 sound/isa/opti9xx/miro.c miro->pcm = codec->pcm; codec 1350 sound/isa/opti9xx/miro.c card->shortname, miro->name, codec->pcm->name, codec 129 sound/isa/opti9xx/opti92x-ad1848.c struct snd_wss *codec; codec 642 sound/isa/opti9xx/opti92x-ad1848.c struct snd_wss *codec = chip->codec; codec 645 sound/isa/opti9xx/opti92x-ad1848.c if (!codec) codec 649 sound/isa/opti9xx/opti92x-ad1848.c if ((status & OPTi93X_IRQ_PLAYBACK) && codec->playback_substream) codec 650 sound/isa/opti9xx/opti92x-ad1848.c snd_pcm_period_elapsed(codec->playback_substream); codec 651 sound/isa/opti9xx/opti92x-ad1848.c if ((status & OPTi93X_IRQ_CAPTURE) && codec->capture_substream) { codec 652 sound/isa/opti9xx/opti92x-ad1848.c snd_wss_overrange(codec); codec 653 sound/isa/opti9xx/opti92x-ad1848.c snd_pcm_period_elapsed(codec->capture_substream); codec 655 sound/isa/opti9xx/opti92x-ad1848.c outb(0x00, OPTi93X_PORT(codec, STATUS)); codec 818 sound/isa/opti9xx/opti92x-ad1848.c struct snd_wss *codec; codec 846 sound/isa/opti9xx/opti92x-ad1848.c &codec); codec 849 sound/isa/opti9xx/opti92x-ad1848.c chip->codec = codec; codec 850 sound/isa/opti9xx/opti92x-ad1848.c error = snd_wss_pcm(codec, 0); codec 853 sound/isa/opti9xx/opti92x-ad1848.c error = snd_wss_mixer(codec); codec 857 sound/isa/opti9xx/opti92x-ad1848.c error = snd_opti93x_mixer(codec); codec 862 sound/isa/opti9xx/opti92x-ad1848.c error = snd_wss_timer(codec, 0); codec 880 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, codec 885 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, chip->wss_base + 4, irq, codec 1037 sound/isa/opti9xx/opti92x-ad1848.c chip->codec->suspend(chip->codec); codec 1055 sound/isa/opti9xx/opti92x-ad1848.c chip->codec->resume(chip->codec); codec 314 sound/mips/hal2.c static int hal2_compute_rate(struct hal2_codec *codec, unsigned int rate) codec 320 sound/mips/hal2.c codec->master = 44100; codec 323 sound/mips/hal2.c codec->master = 48000; codec 326 sound/mips/hal2.c codec->inc = 4; codec 327 sound/mips/hal2.c codec->mod = mod; codec 328 sound/mips/hal2.c rate = 4 * codec->master / mod; codec 444 sound/mips/hal2.c static int hal2_alloc_dmabuf(struct snd_hal2 *hal2, struct hal2_codec *codec) codec 452 sound/mips/hal2.c codec->buffer = dma_alloc_attrs(dev, H2_BUF_SIZE, &buffer_dma, codec 454 sound/mips/hal2.c if (!codec->buffer) codec 459 sound/mips/hal2.c dma_free_attrs(dev, H2_BUF_SIZE, codec->buffer, buffer_dma, codec 463 sound/mips/hal2.c codec->buffer_dma = buffer_dma; codec 464 sound/mips/hal2.c codec->desc_dma = desc_dma; codec 465 sound/mips/hal2.c codec->desc = desc; codec 473 sound/mips/hal2.c dma_cache_sync(dev, codec->desc, count * sizeof(struct hal2_desc), codec 475 sound/mips/hal2.c codec->desc_count = count; codec 479 sound/mips/hal2.c static void hal2_free_dmabuf(struct snd_hal2 *hal2, struct hal2_codec *codec) codec 483 sound/mips/hal2.c dma_free_attrs(dev, codec->desc_count * sizeof(struct hal2_desc), codec 484 sound/mips/hal2.c codec->desc, codec->desc_dma, DMA_ATTR_NON_CONSISTENT); codec 485 sound/mips/hal2.c dma_free_attrs(dev, H2_BUF_SIZE, codec->buffer, codec->buffer_dma, codec 763 sound/mips/hal2.c static void hal2_init_codec(struct hal2_codec *codec, struct hpc3_regs *hpc3, codec 766 sound/mips/hal2.c codec->pbus.pbusnr = index; codec 767 sound/mips/hal2.c codec->pbus.pbus = &hpc3->pbdma[index]; codec 415 sound/pci/ac97/ac97_codec.c static int snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value) codec 421 sound/pci/ac97/ac97_codec.c old = ac97->spec.ad18xx.pcmreg[codec]; codec 427 sound/pci/ac97/ac97_codec.c ac97->spec.ad18xx.pcmreg[codec] = new; codec 431 sound/pci/ac97/ac97_codec.c ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]); codec 867 sound/pci/ac97/ac97_codec.c #define AD18XX_PCM_BITS(xname, codec, lshift, rshift, mask) \ codec 870 sound/pci/ac97/ac97_codec.c .private_value = (codec) | ((lshift) << 8) | ((rshift) << 12) | ((mask) << 16) } codec 892 sound/pci/ac97/ac97_codec.c int codec = kcontrol->private_value & 3; codec 897 sound/pci/ac97/ac97_codec.c ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask); codec 899 sound/pci/ac97/ac97_codec.c ucontrol->value.integer.value[1] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> rshift) & mask); codec 906 sound/pci/ac97/ac97_codec.c int codec = kcontrol->private_value & 3; codec 918 sound/pci/ac97/ac97_codec.c return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, valmask, val); codec 921 sound/pci/ac97/ac97_codec.c #define AD18XX_PCM_VOLUME(xname, codec) \ codec 924 sound/pci/ac97/ac97_codec.c .private_value = codec } codec 938 sound/pci/ac97/ac97_codec.c int codec = kcontrol->private_value & 3; codec 941 sound/pci/ac97/ac97_codec.c ucontrol->value.integer.value[0] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 0) & 31); codec 942 sound/pci/ac97/ac97_codec.c ucontrol->value.integer.value[1] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 8) & 31); codec 950 sound/pci/ac97/ac97_codec.c int codec = kcontrol->private_value & 3; codec 955 sound/pci/ac97/ac97_codec.c return snd_ac97_ad18xx_update_pcm_bits(ac97, codec, 0x1f1f, (val1 << 8) | val2); codec 1010 sound/pci/ac97/ac97_codec.c ac97->bus->codec[ac97->num] = NULL; codec 2014 sound/pci/ac97/ac97_codec.c if (bus->codec[template->num]) codec 2029 sound/pci/ac97/ac97_codec.c bus->codec[ac97->num] = ac97; codec 1367 sound/pci/ac97/ac97_patch.c int i, codec; codec 1382 sound/pci/ac97/ac97_patch.c for (codec = 0; codec < 3; codec++) { codec 1383 sound/pci/ac97/ac97_patch.c if (! ac97->spec.ad18xx.id[codec]) codec 1387 sound/pci/ac97/ac97_patch.c ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]); codec 1388 sound/pci/ac97/ac97_patch.c ac97->bus->ops->write(ac97, AC97_AD_CODEC_CFG, ac97->spec.ad18xx.codec_cfg[codec]); codec 1400 sound/pci/ac97/ac97_patch.c for (codec = 0; codec < 3; codec++) { codec 1401 sound/pci/ac97/ac97_patch.c if (! ac97->spec.ad18xx.id[codec]) codec 1405 sound/pci/ac97/ac97_patch.c ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]); codec 1407 sound/pci/ac97/ac97_patch.c ac97->bus->ops->write(ac97, AC97_PCM, ac97->spec.ad18xx.pcmreg[codec]); codec 411 sound/pci/ac97/ac97_pcm.c rates &= pcm->r[dbl].codec[cidx]->rates[idx]; codec 443 sound/pci/ac97/ac97_pcm.c struct snd_ac97 *codec; codec 452 sound/pci/ac97/ac97_pcm.c codec = bus->codec[i]; codec 453 sound/pci/ac97/ac97_pcm.c if (!codec) codec 455 sound/pci/ac97/ac97_pcm.c avail_slots[0][i] = get_pslots(codec, &rate_table[0][i], &spdif_slots[i]); codec 456 sound/pci/ac97/ac97_pcm.c avail_slots[1][i] = get_cslots(codec); codec 457 sound/pci/ac97/ac97_pcm.c if (!(codec->scaps & AC97_SCAP_INDEP_SDIN)) { codec 459 sound/pci/ac97/ac97_pcm.c if (bus->codec[j]) codec 481 sound/pci/ac97/ac97_pcm.c if (!bus->codec[j]) codec 501 sound/pci/ac97/ac97_pcm.c rpcm->r[0].codec[j] = bus->codec[j]; codec 516 sound/pci/ac97/ac97_pcm.c bus->codec[0] && (bus->codec[0]->flags & AC97_DOUBLE_RATE) && codec 524 sound/pci/ac97/ac97_pcm.c rpcm->r[1].codec[0] = bus->codec[0]; codec 568 sound/pci/ac97/ac97_pcm.c if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { codec 569 sound/pci/ac97/ac97_pcm.c err = set_spdif_rate(bus->codec[cidx], rate); codec 617 sound/pci/ac97/ac97_pcm.c err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate); codec 660 sound/pci/ac97/ac97_pcm.c snd_ac97_update_power(pcm->r[r].codec[cidx], codec 142 sound/pci/ali5451/ali5451.c #define ALI_REG(codec, x) ((codec)->port + x) codec 181 sound/pci/ali5451/ali5451.c struct snd_ali *codec; codec 267 sound/pci/ali5451/ali5451.c static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, codec 270 sound/pci/ali5451/ali5451.c return (unsigned int)inl(ALI_REG(codec, port)); codec 273 sound/pci/ali5451/ali5451.c static inline void snd_ali_5451_poke(struct snd_ali *codec, codec 277 sound/pci/ali5451/ali5451.c outl((unsigned int)val, ALI_REG(codec, port)); codec 280 sound/pci/ali5451/ali5451.c static int snd_ali_codec_ready(struct snd_ali *codec, codec 289 sound/pci/ali5451/ali5451.c res = snd_ali_5451_peek(codec,port); codec 297 sound/pci/ali5451/ali5451.c snd_ali_5451_poke(codec, port, res & ~0x8000); codec 298 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n "); codec 302 sound/pci/ali5451/ali5451.c static int snd_ali_stimer_ready(struct snd_ali *codec) codec 307 sound/pci/ali5451/ali5451.c dwChk1 = snd_ali_5451_peek(codec, ALI_STIMER); codec 311 sound/pci/ali5451/ali5451.c dwChk2 = snd_ali_5451_peek(codec, ALI_STIMER); codec 319 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_stimer_read: stimer is not ready.\n"); codec 323 sound/pci/ali5451/ali5451.c static void snd_ali_codec_poke(struct snd_ali *codec,int secondary, codec 331 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 336 sound/pci/ali5451/ali5451.c port = codec->chregs.regs.ac97write; codec 338 sound/pci/ali5451/ali5451.c if (snd_ali_codec_ready(codec, port) < 0) codec 340 sound/pci/ali5451/ali5451.c if (snd_ali_stimer_ready(codec) < 0) codec 347 sound/pci/ali5451/ali5451.c if (codec->revision == ALI_5451_V02) codec 350 sound/pci/ali5451/ali5451.c snd_ali_5451_poke(codec, port, dwVal); codec 355 sound/pci/ali5451/ali5451.c static unsigned short snd_ali_codec_peek(struct snd_ali *codec, codec 363 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 368 sound/pci/ali5451/ali5451.c port = codec->chregs.regs.ac97read; codec 370 sound/pci/ali5451/ali5451.c if (snd_ali_codec_ready(codec, port) < 0) codec 372 sound/pci/ali5451/ali5451.c if (snd_ali_stimer_ready(codec) < 0) codec 380 sound/pci/ali5451/ali5451.c snd_ali_5451_poke(codec, port, dwVal); codec 382 sound/pci/ali5451/ali5451.c if (snd_ali_stimer_ready(codec) < 0) codec 384 sound/pci/ali5451/ali5451.c if (snd_ali_codec_ready(codec, port) < 0) codec 387 sound/pci/ali5451/ali5451.c return (snd_ali_5451_peek(codec, port) & 0xffff0000) >> 16; codec 394 sound/pci/ali5451/ali5451.c struct snd_ali *codec = ac97->private_data; codec 396 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "codec_write: reg=%xh data=%xh.\n", reg, val); codec 399 sound/pci/ali5451/ali5451.c ALI_REG(codec, ALI_AC97_GPIO)); codec 402 sound/pci/ali5451/ali5451.c snd_ali_codec_poke(codec, ac97->num, reg, val); codec 410 sound/pci/ali5451/ali5451.c struct snd_ali *codec = ac97->private_data; codec 412 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "codec_read reg=%xh.\n", reg); codec 413 sound/pci/ali5451/ali5451.c return snd_ali_codec_peek(codec, ac97->num, reg); codec 420 sound/pci/ali5451/ali5451.c static int snd_ali_reset_5451(struct snd_ali *codec) codec 426 sound/pci/ali5451/ali5451.c pci_dev = codec->pci_m1533; codec 436 sound/pci/ali5451/ali5451.c pci_dev = codec->pci; codec 446 sound/pci/ali5451/ali5451.c wReg = snd_ali_codec_peek(codec, 0, AC97_POWERDOWN); codec 461 sound/pci/ali5451/ali5451.c static void snd_ali_enable_special_channel(struct snd_ali *codec, codec 466 sound/pci/ali5451/ali5451.c dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 468 sound/pci/ali5451/ali5451.c outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 471 sound/pci/ali5451/ali5451.c static void snd_ali_disable_special_channel(struct snd_ali *codec, codec 476 sound/pci/ali5451/ali5451.c dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 478 sound/pci/ali5451/ali5451.c outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 481 sound/pci/ali5451/ali5451.c static void snd_ali_enable_address_interrupt(struct snd_ali *codec) codec 485 sound/pci/ali5451/ali5451.c gc = inl(ALI_REG(codec, ALI_GC_CIR)); codec 488 sound/pci/ali5451/ali5451.c outl( gc, ALI_REG(codec, ALI_GC_CIR)); codec 491 sound/pci/ali5451/ali5451.c static void snd_ali_disable_address_interrupt(struct snd_ali *codec) codec 495 sound/pci/ali5451/ali5451.c gc = inl(ALI_REG(codec, ALI_GC_CIR)); codec 498 sound/pci/ali5451/ali5451.c outl(gc, ALI_REG(codec, ALI_GC_CIR)); codec 501 sound/pci/ali5451/ali5451.c static void snd_ali_disable_voice_irq(struct snd_ali *codec, codec 505 sound/pci/ali5451/ali5451.c struct snd_ali_channel_control *pchregs = &(codec->chregs); codec 507 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "disable_voice_irq channel=%d\n", channel); codec 510 sound/pci/ali5451/ali5451.c pchregs->data.ainten = inl(ALI_REG(codec, pchregs->regs.ainten)); codec 512 sound/pci/ali5451/ali5451.c outl(pchregs->data.ainten, ALI_REG(codec, pchregs->regs.ainten)); codec 515 sound/pci/ali5451/ali5451.c static int snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) codec 519 sound/pci/ali5451/ali5451.c if (codec->synth.chcnt >= ALI_CHANNELS){ codec 520 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 525 sound/pci/ali5451/ali5451.c if (!(codec->synth.chmap & (1 << idx))) { codec 526 sound/pci/ali5451/ali5451.c codec->synth.chmap |= 1 << idx; codec 527 sound/pci/ali5451/ali5451.c codec->synth.chcnt++; codec 528 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "alloc_pcm_channel no. %d.\n", idx); codec 534 sound/pci/ali5451/ali5451.c static int snd_ali_find_free_channel(struct snd_ali * codec, int rec) codec 539 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, codec 544 sound/pci/ali5451/ali5451.c if (codec->spdif_support && codec 545 sound/pci/ali5451/ali5451.c (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) & codec 551 sound/pci/ali5451/ali5451.c result = snd_ali_alloc_pcm_channel(codec, idx); codec 555 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 562 sound/pci/ali5451/ali5451.c if (codec->spdif_support && codec 563 sound/pci/ali5451/ali5451.c (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) & codec 566 sound/pci/ali5451/ali5451.c result = snd_ali_alloc_pcm_channel(codec, idx); codec 570 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 575 sound/pci/ali5451/ali5451.c result = snd_ali_alloc_pcm_channel(codec, idx); codec 579 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_find_free_channel: no free channels.\n"); codec 583 sound/pci/ali5451/ali5451.c static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) codec 587 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "free_channel_pcm channel=%d\n", channel); codec 592 sound/pci/ali5451/ali5451.c if (!(codec->synth.chmap & (1 << idx))) { codec 593 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 598 sound/pci/ali5451/ali5451.c codec->synth.chmap &= ~(1 << idx); codec 599 sound/pci/ali5451/ali5451.c codec->synth.chcnt--; codec 603 sound/pci/ali5451/ali5451.c static void snd_ali_stop_voice(struct snd_ali *codec, unsigned int channel) codec 607 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "stop_voice: channel=%d\n", channel); codec 608 sound/pci/ali5451/ali5451.c outl(mask, ALI_REG(codec, codec->chregs.regs.stop)); codec 615 sound/pci/ali5451/ali5451.c static void snd_ali_delay(struct snd_ali *codec,int interval) codec 619 sound/pci/ali5451/ali5451.c begintimer = inl(ALI_REG(codec, ALI_STIMER)); codec 620 sound/pci/ali5451/ali5451.c currenttimer = inl(ALI_REG(codec, ALI_STIMER)); codec 623 sound/pci/ali5451/ali5451.c if (snd_ali_stimer_ready(codec) < 0) codec 625 sound/pci/ali5451/ali5451.c currenttimer = inl(ALI_REG(codec, ALI_STIMER)); codec 630 sound/pci/ali5451/ali5451.c static void snd_ali_detect_spdif_rate(struct snd_ali *codec) codec 636 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); codec 638 sound/pci/ali5451/ali5451.c outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL + 1)); codec 642 sound/pci/ali5451/ali5451.c snd_ali_delay(codec, 6); codec 643 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); codec 648 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_detect_spdif_rate: timeout!\n"); codec 653 sound/pci/ali5451/ali5451.c snd_ali_delay(codec, 6); codec 654 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); codec 663 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_detect_spdif_rate: timeout!\n"); codec 668 sound/pci/ali5451/ali5451.c wval = inw(ALI_REG(codec, ALI_SPDIF_CTRL + 2)); codec 671 sound/pci/ali5451/ali5451.c outw(wval, ALI_REG(codec, ALI_SPDIF_CTRL + 2)); codec 673 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)) & 0xf0; codec 674 sound/pci/ali5451/ali5451.c outb(bval | 0x02, ALI_REG(codec, ALI_SPDIF_CS + 3)); codec 676 sound/pci/ali5451/ali5451.c wval = inw(ALI_REG(codec, ALI_SPDIF_CTRL + 2)); codec 679 sound/pci/ali5451/ali5451.c outw(wval, ALI_REG(codec, ALI_SPDIF_CTRL + 2)); codec 681 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec,ALI_SPDIF_CS + 3)) & 0xf0; codec 682 sound/pci/ali5451/ali5451.c outb(bval | 0x03, ALI_REG(codec, ALI_SPDIF_CS + 3)); codec 686 sound/pci/ali5451/ali5451.c static unsigned int snd_ali_get_spdif_in_rate(struct snd_ali *codec) codec 691 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); codec 694 sound/pci/ali5451/ali5451.c outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL)); codec 696 sound/pci/ali5451/ali5451.c snd_ali_detect_spdif_rate(codec); codec 698 sound/pci/ali5451/ali5451.c bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)); codec 711 sound/pci/ali5451/ali5451.c static void snd_ali_enable_spdif_in(struct snd_ali *codec) codec 715 sound/pci/ali5451/ali5451.c dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 717 sound/pci/ali5451/ali5451.c outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 719 sound/pci/ali5451/ali5451.c dwVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); codec 721 sound/pci/ali5451/ali5451.c outb(dwVal, ALI_REG(codec, ALI_SPDIF_CTRL)); codec 723 sound/pci/ali5451/ali5451.c snd_ali_enable_special_channel(codec, ALI_SPDIF_IN_CHANNEL); codec 726 sound/pci/ali5451/ali5451.c static void snd_ali_disable_spdif_in(struct snd_ali *codec) codec 730 sound/pci/ali5451/ali5451.c dwVal = inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 732 sound/pci/ali5451/ali5451.c outl(dwVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 734 sound/pci/ali5451/ali5451.c snd_ali_disable_special_channel(codec, ALI_SPDIF_IN_CHANNEL); codec 738 sound/pci/ali5451/ali5451.c static void snd_ali_set_spdif_out_rate(struct snd_ali *codec, unsigned int rate) codec 749 sound/pci/ali5451/ali5451.c bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); codec 753 sound/pci/ali5451/ali5451.c outb(bVal, ALI_REG(codec, ALI_SPDIF_CTRL)); codec 754 sound/pci/ali5451/ali5451.c outb(dwRate | 0x20, ALI_REG(codec, ALI_SPDIF_CS + 2)); codec 757 sound/pci/ali5451/ali5451.c outb(bVal, ALI_REG(codec, ALI_SPDIF_CTRL)); codec 758 sound/pci/ali5451/ali5451.c outw(rate | 0x10, ALI_REG(codec, ALI_SPDIF_CS + 2)); codec 761 sound/pci/ali5451/ali5451.c static void snd_ali_enable_spdif_out(struct snd_ali *codec) codec 767 sound/pci/ali5451/ali5451.c pci_dev = codec->pci_m1533; codec 782 sound/pci/ali5451/ali5451.c bVal = inb(ALI_REG(codec, ALI_SCTRL)); codec 783 sound/pci/ali5451/ali5451.c outb(bVal | ALI_SPDIF_OUT_ENABLE, ALI_REG(codec, ALI_SCTRL)); codec 785 sound/pci/ali5451/ali5451.c bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); codec 786 sound/pci/ali5451/ali5451.c outb(bVal & ALI_SPDIF_OUT_CH_STATUS, ALI_REG(codec, ALI_SPDIF_CTRL)); codec 788 sound/pci/ali5451/ali5451.c wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 790 sound/pci/ali5451/ali5451.c outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 791 sound/pci/ali5451/ali5451.c snd_ali_disable_special_channel(codec, ALI_SPDIF_OUT_CHANNEL); codec 794 sound/pci/ali5451/ali5451.c static void snd_ali_enable_spdif_chnout(struct snd_ali *codec) codec 798 sound/pci/ali5451/ali5451.c wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 800 sound/pci/ali5451/ali5451.c outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 809 sound/pci/ali5451/ali5451.c snd_ali_enable_special_channel(codec, ALI_SPDIF_OUT_CHANNEL); codec 812 sound/pci/ali5451/ali5451.c static void snd_ali_disable_spdif_chnout(struct snd_ali *codec) codec 816 sound/pci/ali5451/ali5451.c wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 818 sound/pci/ali5451/ali5451.c outw(wVal, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 820 sound/pci/ali5451/ali5451.c snd_ali_enable_special_channel(codec, ALI_SPDIF_OUT_CHANNEL); codec 823 sound/pci/ali5451/ali5451.c static void snd_ali_disable_spdif_out(struct snd_ali *codec) codec 827 sound/pci/ali5451/ali5451.c bVal = inb(ALI_REG(codec, ALI_SCTRL)); codec 828 sound/pci/ali5451/ali5451.c outb(bVal & ~ALI_SPDIF_OUT_ENABLE, ALI_REG(codec, ALI_SCTRL)); codec 830 sound/pci/ali5451/ali5451.c snd_ali_disable_spdif_chnout(codec); codec 833 sound/pci/ali5451/ali5451.c static void snd_ali_update_ptr(struct snd_ali *codec, int channel) codec 839 sound/pci/ali5451/ali5451.c pchregs = &(codec->chregs); codec 848 sound/pci/ali5451/ali5451.c pvoice = &codec->synth.voices[channel]; codec 851 sound/pci/ali5451/ali5451.c spin_lock(&codec->reg_lock); codec 856 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, codec 858 sound/pci/ali5451/ali5451.c inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2)), codec 859 sound/pci/ali5451/ali5451.c (inl(ALI_REG(codec, ALI_CSPF)) & mask) == mask); codec 860 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 862 sound/pci/ali5451/ali5451.c spin_lock(&codec->reg_lock); codec 864 sound/pci/ali5451/ali5451.c snd_ali_stop_voice(codec, channel); codec 865 sound/pci/ali5451/ali5451.c snd_ali_disable_voice_irq(codec, channel); codec 867 sound/pci/ali5451/ali5451.c } else if (codec->synth.voices[channel].synth) { codec 869 sound/pci/ali5451/ali5451.c } else if (codec->synth.voices[channel].midi) { codec 873 sound/pci/ali5451/ali5451.c snd_ali_stop_voice(codec, channel); codec 874 sound/pci/ali5451/ali5451.c snd_ali_disable_voice_irq(codec, channel); codec 876 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 877 sound/pci/ali5451/ali5451.c outl(mask,ALI_REG(codec,pchregs->regs.aint)); codec 883 sound/pci/ali5451/ali5451.c struct snd_ali *codec = dev_id; codec 888 sound/pci/ali5451/ali5451.c if (codec == NULL || !codec->hw_initialized) codec 891 sound/pci/ali5451/ali5451.c audio_int = inl(ALI_REG(codec, ALI_MISCINT)); codec 895 sound/pci/ali5451/ali5451.c pchregs = &(codec->chregs); codec 898 sound/pci/ali5451/ali5451.c pchregs->data.aint = inl(ALI_REG(codec, pchregs->regs.aint)); codec 900 sound/pci/ali5451/ali5451.c snd_ali_update_ptr(codec, channel); codec 903 sound/pci/ali5451/ali5451.c ALI_REG(codec, ALI_MISCINT)); codec 909 sound/pci/ali5451/ali5451.c static struct snd_ali_voice *snd_ali_alloc_voice(struct snd_ali * codec, codec 915 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "alloc_voice: type=%d rec=%d\n", type, rec); codec 917 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->voice_alloc); codec 919 sound/pci/ali5451/ali5451.c idx = channel > 0 ? snd_ali_alloc_pcm_channel(codec, channel) : codec 920 sound/pci/ali5451/ali5451.c snd_ali_find_free_channel(codec,rec); codec 922 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_alloc_voice: err.\n"); codec 923 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->voice_alloc); codec 926 sound/pci/ali5451/ali5451.c pvoice = &(codec->synth.voices[idx]); codec 927 sound/pci/ali5451/ali5451.c pvoice->codec = codec; codec 931 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->voice_alloc); codec 934 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->voice_alloc); codec 939 sound/pci/ali5451/ali5451.c static void snd_ali_free_voice(struct snd_ali * codec, codec 945 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "free_voice: channel=%d\n", pvoice->number); codec 948 sound/pci/ali5451/ali5451.c snd_ali_clear_voices(codec, pvoice->number, pvoice->number); codec 949 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->voice_alloc); codec 955 sound/pci/ali5451/ali5451.c snd_ali_free_channel_pcm(codec, pvoice->number); codec 958 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->voice_alloc); codec 964 sound/pci/ali5451/ali5451.c static void snd_ali_clear_voices(struct snd_ali *codec, codec 971 sound/pci/ali5451/ali5451.c snd_ali_stop_voice(codec, i); codec 972 sound/pci/ali5451/ali5451.c snd_ali_disable_voice_irq(codec, i); codec 976 sound/pci/ali5451/ali5451.c static void snd_ali_write_voice_regs(struct snd_ali *codec, codec 991 sound/pci/ali5451/ali5451.c outb((unsigned char)(Channel & 0x001f), ALI_REG(codec, ALI_GC_CIR)); codec 1002 sound/pci/ali5451/ali5451.c outb(Channel, ALI_REG(codec, ALI_GC_CIR)); codec 1004 sound/pci/ali5451/ali5451.c outl(ctlcmds[0], ALI_REG(codec, ALI_CSO_ALPHA_FMS)); codec 1005 sound/pci/ali5451/ali5451.c outl(ctlcmds[1], ALI_REG(codec, ALI_LBA)); codec 1006 sound/pci/ali5451/ali5451.c outl(ctlcmds[2], ALI_REG(codec, ALI_ESO_DELTA)); codec 1007 sound/pci/ali5451/ali5451.c outl(ctlcmds[3], ALI_REG(codec, ALI_GVSEL_PAN_VOC_CTRL_EC)); codec 1009 sound/pci/ali5451/ali5451.c outl(0x30000000, ALI_REG(codec, ALI_EBUF1)); /* Still Mode */ codec 1010 sound/pci/ali5451/ali5451.c outl(0x30000000, ALI_REG(codec, ALI_EBUF2)); /* Still Mode */ codec 1071 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1093 sound/pci/ali5451/ali5451.c if ((struct snd_ali *) snd_pcm_substream_chip(s) == codec) { codec 1117 sound/pci/ali5451/ali5451.c spin_lock(&codec->reg_lock); codec 1119 sound/pci/ali5451/ali5451.c outl(what, ALI_REG(codec, ALI_STOP)); codec 1120 sound/pci/ali5451/ali5451.c val = inl(ALI_REG(codec, ALI_AINTEN)); codec 1125 sound/pci/ali5451/ali5451.c outl(val, ALI_REG(codec, ALI_AINTEN)); codec 1127 sound/pci/ali5451/ali5451.c outl(what, ALI_REG(codec, ALI_START)); codec 1128 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "trigger: what=%xh whati=%xh\n", what, whati); codec 1129 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 1137 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1153 sound/pci/ali5451/ali5451.c evoice = snd_ali_alloc_voice(codec, codec 1163 sound/pci/ali5451/ali5451.c snd_ali_free_voice(codec, evoice); codec 1173 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1180 sound/pci/ali5451/ali5451.c snd_ali_free_voice(codec, evoice); codec 1200 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1214 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare ...\n"); codec 1216 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->reg_lock); codec 1223 sound/pci/ali5451/ali5451.c snd_ali_disable_special_channel(codec, pvoice->number); codec 1224 sound/pci/ali5451/ali5451.c else if (codec->spdif_support && codec 1225 sound/pci/ali5451/ali5451.c (inl(ALI_REG(codec, ALI_GLOBAL_CONTROL)) & codec 1228 sound/pci/ali5451/ali5451.c snd_ali_set_spdif_out_rate(codec, runtime->rate); codec 1241 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare: eso=%xh count=%xh\n", codec 1253 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare:\n"); codec 1254 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, codec 1257 sound/pci/ali5451/ali5451.c snd_ali_write_voice_regs(codec, codec 1273 sound/pci/ali5451/ali5451.c snd_ali_write_voice_regs(codec, codec 1286 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->reg_lock); codec 1293 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1306 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->reg_lock); codec 1308 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "ali_prepare...\n"); codec 1310 sound/pci/ali5451/ali5451.c snd_ali_enable_special_channel(codec,pvoice->number); codec 1321 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->reg_lock); codec 1322 sound/pci/ali5451/ali5451.c if (codec->revision != ALI_5451_V02) codec 1325 sound/pci/ali5451/ali5451.c rate = snd_ali_get_spdif_in_rate(codec); codec 1327 sound/pci/ali5451/ali5451.c dev_warn(codec->card->dev, codec 1331 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->reg_lock); codec 1332 sound/pci/ali5451/ali5451.c bValue = inb(ALI_REG(codec,ALI_SPDIF_CTRL)); codec 1334 sound/pci/ali5451/ali5451.c outb(bValue,ALI_REG(codec,ALI_SPDIF_CTRL)); codec 1335 sound/pci/ali5451/ali5451.c dev_warn(codec->card->dev, codec 1360 sound/pci/ali5451/ali5451.c snd_ali_write_voice_regs( codec, codec 1373 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->reg_lock); codec 1382 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1387 sound/pci/ali5451/ali5451.c spin_lock(&codec->reg_lock); codec 1389 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 1392 sound/pci/ali5451/ali5451.c outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR)); codec 1393 sound/pci/ali5451/ali5451.c cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2)); codec 1394 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 1395 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback pointer returned cso=%xh.\n", cso); codec 1404 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1409 sound/pci/ali5451/ali5451.c spin_lock(&codec->reg_lock); codec 1411 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 1414 sound/pci/ali5451/ali5451.c outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR)); codec 1415 sound/pci/ali5451/ali5451.c cso = inw(ALI_REG(codec, ALI_CSO_ALPHA_FMS + 2)); codec 1416 sound/pci/ali5451/ali5451.c spin_unlock(&codec->reg_lock); codec 1475 sound/pci/ali5451/ali5451.c snd_ali_free_voice(pvoice->codec, pvoice); codec 1481 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1485 sound/pci/ali5451/ali5451.c pvoice = snd_ali_alloc_voice(codec, SNDRV_ALI_VOICE_TYPE_PCM, rec, codec 1518 sound/pci/ali5451/ali5451.c struct snd_ali *codec = snd_pcm_substream_chip(substream); codec 1521 sound/pci/ali5451/ali5451.c snd_ali_disable_special_channel(codec,pvoice->number); codec 1647 sound/pci/ali5451/ali5451.c struct snd_ali *codec = pcm->private_data; codec 1648 sound/pci/ali5451/ali5451.c codec->pcm[pcm->device] = NULL; codec 1652 sound/pci/ali5451/ali5451.c static int snd_ali_pcm(struct snd_ali *codec, int device, codec 1658 sound/pci/ali5451/ali5451.c err = snd_pcm_new(codec->card, desc->name, device, codec 1661 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 1665 sound/pci/ali5451/ali5451.c pcm->private_data = codec; codec 1675 sound/pci/ali5451/ali5451.c snd_dma_pci_data(codec->pci), codec 1682 sound/pci/ali5451/ali5451.c codec->pcm[0] = pcm; codec 1702 sound/pci/ali5451/ali5451.c static int snd_ali_build_pcms(struct snd_ali *codec) codec 1705 sound/pci/ali5451/ali5451.c for (i = 0; i < codec->num_of_codecs && i < ARRAY_SIZE(ali_pcms); i++) { codec 1706 sound/pci/ali5451/ali5451.c err = snd_ali_pcm(codec, i, &ali_pcms[i]); codec 1724 sound/pci/ali5451/ali5451.c struct snd_ali *codec = kcontrol->private_data; codec 1729 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->reg_lock); codec 1732 sound/pci/ali5451/ali5451.c spdif_enable = (codec->spdif_mask & 0x02) ? 1 : 0; codec 1735 sound/pci/ali5451/ali5451.c spdif_enable = ((codec->spdif_mask & 0x02) && codec 1736 sound/pci/ali5451/ali5451.c (codec->spdif_mask & 0x04)) ? 1 : 0; codec 1739 sound/pci/ali5451/ali5451.c spdif_enable = (codec->spdif_mask & 0x01) ? 1 : 0; codec 1745 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->reg_lock); codec 1752 sound/pci/ali5451/ali5451.c struct snd_ali *codec = kcontrol->private_data; codec 1757 sound/pci/ali5451/ali5451.c spin_lock_irq(&codec->reg_lock); codec 1760 sound/pci/ali5451/ali5451.c change = (codec->spdif_mask & 0x02) ? 1 : 0; codec 1764 sound/pci/ali5451/ali5451.c codec->spdif_mask |= 0x02; codec 1765 sound/pci/ali5451/ali5451.c snd_ali_enable_spdif_out(codec); codec 1767 sound/pci/ali5451/ali5451.c codec->spdif_mask &= ~(0x02); codec 1768 sound/pci/ali5451/ali5451.c codec->spdif_mask &= ~(0x04); codec 1769 sound/pci/ali5451/ali5451.c snd_ali_disable_spdif_out(codec); codec 1774 sound/pci/ali5451/ali5451.c change = (codec->spdif_mask & 0x04) ? 1 : 0; codec 1776 sound/pci/ali5451/ali5451.c if (change && (codec->spdif_mask & 0x02)) { codec 1778 sound/pci/ali5451/ali5451.c codec->spdif_mask |= 0x04; codec 1779 sound/pci/ali5451/ali5451.c snd_ali_enable_spdif_chnout(codec); codec 1781 sound/pci/ali5451/ali5451.c codec->spdif_mask &= ~(0x04); codec 1782 sound/pci/ali5451/ali5451.c snd_ali_disable_spdif_chnout(codec); codec 1787 sound/pci/ali5451/ali5451.c change = (codec->spdif_mask & 0x01) ? 1 : 0; codec 1791 sound/pci/ali5451/ali5451.c codec->spdif_mask |= 0x01; codec 1792 sound/pci/ali5451/ali5451.c snd_ali_enable_spdif_in(codec); codec 1794 sound/pci/ali5451/ali5451.c codec->spdif_mask &= ~(0x01); codec 1795 sound/pci/ali5451/ali5451.c snd_ali_disable_spdif_in(codec); codec 1802 sound/pci/ali5451/ali5451.c spin_unlock_irq(&codec->reg_lock); codec 1817 sound/pci/ali5451/ali5451.c static int snd_ali_mixer(struct snd_ali *codec) codec 1827 sound/pci/ali5451/ali5451.c err = snd_ac97_bus(codec->card, 0, &ops, codec, &codec->ac97_bus); codec 1832 sound/pci/ali5451/ali5451.c ac97.private_data = codec; codec 1834 sound/pci/ali5451/ali5451.c for (i = 0; i < codec->num_of_codecs; i++) { codec 1836 sound/pci/ali5451/ali5451.c err = snd_ac97_mixer(codec->ac97_bus, &ac97, &codec->ac97[i]); codec 1838 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, codec 1842 sound/pci/ali5451/ali5451.c codec->num_of_codecs = 1; codec 1847 sound/pci/ali5451/ali5451.c if (codec->spdif_support) { codec 1849 sound/pci/ali5451/ali5451.c err = snd_ctl_add(codec->card, codec 1850 sound/pci/ali5451/ali5451.c snd_ctl_new1(&snd_ali5451_mixer_spdif[idx], codec)); codec 1948 sound/pci/ali5451/ali5451.c static int snd_ali_free(struct snd_ali * codec) codec 1950 sound/pci/ali5451/ali5451.c if (codec->hw_initialized) codec 1951 sound/pci/ali5451/ali5451.c snd_ali_disable_address_interrupt(codec); codec 1952 sound/pci/ali5451/ali5451.c if (codec->irq >= 0) codec 1953 sound/pci/ali5451/ali5451.c free_irq(codec->irq, codec); codec 1954 sound/pci/ali5451/ali5451.c if (codec->port) codec 1955 sound/pci/ali5451/ali5451.c pci_release_regions(codec->pci); codec 1956 sound/pci/ali5451/ali5451.c pci_disable_device(codec->pci); codec 1958 sound/pci/ali5451/ali5451.c kfree(codec->image); codec 1960 sound/pci/ali5451/ali5451.c pci_dev_put(codec->pci_m1533); codec 1961 sound/pci/ali5451/ali5451.c pci_dev_put(codec->pci_m7101); codec 1962 sound/pci/ali5451/ali5451.c kfree(codec); codec 1966 sound/pci/ali5451/ali5451.c static int snd_ali_chip_init(struct snd_ali *codec) codec 1972 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "chip initializing ...\n"); codec 1974 sound/pci/ali5451/ali5451.c if (snd_ali_reset_5451(codec)) { codec 1975 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_chip_init: reset 5451 error.\n"); codec 1979 sound/pci/ali5451/ali5451.c if (codec->revision == ALI_5451_V02) { codec 1980 sound/pci/ali5451/ali5451.c pci_dev = codec->pci_m1533; codec 1985 sound/pci/ali5451/ali5451.c pci_dev = codec->pci_m7101; codec 1991 sound/pci/ali5451/ali5451.c pci_read_config_dword(codec->pci, 0x44, &legacy); codec 1994 sound/pci/ali5451/ali5451.c pci_write_config_dword(codec->pci, 0x44, legacy); codec 1996 sound/pci/ali5451/ali5451.c outl(0x80000001, ALI_REG(codec, ALI_GLOBAL_CONTROL)); codec 1997 sound/pci/ali5451/ali5451.c outl(0x00000000, ALI_REG(codec, ALI_AINTEN)); codec 1998 sound/pci/ali5451/ali5451.c outl(0xffffffff, ALI_REG(codec, ALI_AINT)); codec 1999 sound/pci/ali5451/ali5451.c outl(0x00000000, ALI_REG(codec, ALI_VOLUME)); codec 2000 sound/pci/ali5451/ali5451.c outb(0x10, ALI_REG(codec, ALI_MPUR2)); codec 2002 sound/pci/ali5451/ali5451.c codec->ac97_ext_id = snd_ali_codec_peek(codec, 0, AC97_EXTENDED_ID); codec 2003 sound/pci/ali5451/ali5451.c codec->ac97_ext_status = snd_ali_codec_peek(codec, 0, codec 2005 sound/pci/ali5451/ali5451.c if (codec->spdif_support) { codec 2006 sound/pci/ali5451/ali5451.c snd_ali_enable_spdif_out(codec); codec 2007 sound/pci/ali5451/ali5451.c codec->spdif_mask = 0x00000002; codec 2010 sound/pci/ali5451/ali5451.c codec->num_of_codecs = 1; codec 2013 sound/pci/ali5451/ali5451.c if (inl(ALI_REG(codec, ALI_SCTRL)) & ALI_SCTRL_CODEC2_READY) { codec 2014 sound/pci/ali5451/ali5451.c codec->num_of_codecs++; codec 2015 sound/pci/ali5451/ali5451.c outl(inl(ALI_REG(codec, ALI_SCTRL)) | codec 2018 sound/pci/ali5451/ali5451.c ALI_REG(codec, ALI_SCTRL)); codec 2021 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "chip initialize succeed.\n"); codec 2030 sound/pci/ali5451/ali5451.c struct snd_ali *codec = entry->private_data; codec 2033 sound/pci/ali5451/ali5451.c snd_iprintf(buf, "%02x: %08x\n", i, inl(ALI_REG(codec, i))); codec 2036 sound/pci/ali5451/ali5451.c static void snd_ali_proc_init(struct snd_ali *codec) codec 2038 sound/pci/ali5451/ali5451.c snd_card_ro_proc_new(codec->card, "ali5451", codec, snd_ali_proc_read); codec 2041 sound/pci/ali5451/ali5451.c static int snd_ali_resources(struct snd_ali *codec) codec 2045 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "resources allocation ...\n"); codec 2046 sound/pci/ali5451/ali5451.c err = pci_request_regions(codec->pci, "ALI 5451"); codec 2049 sound/pci/ali5451/ali5451.c codec->port = pci_resource_start(codec->pci, 0); codec 2051 sound/pci/ali5451/ali5451.c if (request_irq(codec->pci->irq, snd_ali_card_interrupt, codec 2052 sound/pci/ali5451/ali5451.c IRQF_SHARED, KBUILD_MODNAME, codec)) { codec 2053 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "Unable to request irq.\n"); codec 2056 sound/pci/ali5451/ali5451.c codec->irq = codec->pci->irq; codec 2057 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "resources allocated.\n"); codec 2062 sound/pci/ali5451/ali5451.c struct snd_ali *codec = device->device_data; codec 2063 sound/pci/ali5451/ali5451.c snd_ali_free(codec); codec 2073 sound/pci/ali5451/ali5451.c struct snd_ali *codec; codec 2097 sound/pci/ali5451/ali5451.c codec = kzalloc(sizeof(*codec), GFP_KERNEL); codec 2098 sound/pci/ali5451/ali5451.c if (!codec) { codec 2103 sound/pci/ali5451/ali5451.c spin_lock_init(&codec->reg_lock); codec 2104 sound/pci/ali5451/ali5451.c spin_lock_init(&codec->voice_alloc); codec 2106 sound/pci/ali5451/ali5451.c codec->card = card; codec 2107 sound/pci/ali5451/ali5451.c codec->pci = pci; codec 2108 sound/pci/ali5451/ali5451.c codec->irq = -1; codec 2109 sound/pci/ali5451/ali5451.c codec->revision = pci->revision; codec 2110 sound/pci/ali5451/ali5451.c codec->spdif_support = spdif_support; codec 2125 sound/pci/ali5451/ali5451.c if (snd_ali_resources(codec)) { codec 2126 sound/pci/ali5451/ali5451.c snd_ali_free(codec); codec 2132 sound/pci/ali5451/ali5451.c codec->synth.chmap = 0; codec 2133 sound/pci/ali5451/ali5451.c codec->synth.chcnt = 0; codec 2134 sound/pci/ali5451/ali5451.c codec->spdif_mask = 0; codec 2135 sound/pci/ali5451/ali5451.c codec->synth.synthcount = 0; codec 2137 sound/pci/ali5451/ali5451.c if (codec->revision == ALI_5451_V02) codec 2138 sound/pci/ali5451/ali5451.c codec->chregs.regs.ac97read = ALI_AC97_WRITE; codec 2140 sound/pci/ali5451/ali5451.c codec->chregs.regs.ac97read = ALI_AC97_READ; codec 2141 sound/pci/ali5451/ali5451.c codec->chregs.regs.ac97write = ALI_AC97_WRITE; codec 2143 sound/pci/ali5451/ali5451.c codec->chregs.regs.start = ALI_START; codec 2144 sound/pci/ali5451/ali5451.c codec->chregs.regs.stop = ALI_STOP; codec 2145 sound/pci/ali5451/ali5451.c codec->chregs.regs.aint = ALI_AINT; codec 2146 sound/pci/ali5451/ali5451.c codec->chregs.regs.ainten = ALI_AINTEN; codec 2148 sound/pci/ali5451/ali5451.c codec->chregs.data.start = 0x00; codec 2149 sound/pci/ali5451/ali5451.c codec->chregs.data.stop = 0x00; codec 2150 sound/pci/ali5451/ali5451.c codec->chregs.data.aint = 0x00; codec 2151 sound/pci/ali5451/ali5451.c codec->chregs.data.ainten = 0x00; codec 2154 sound/pci/ali5451/ali5451.c codec->pci_m1533 = pci_get_device(0x10b9, 0x1533, NULL); codec 2155 sound/pci/ali5451/ali5451.c if (!codec->pci_m1533) { codec 2157 sound/pci/ali5451/ali5451.c snd_ali_free(codec); codec 2161 sound/pci/ali5451/ali5451.c codec->pci_m7101 = pci_get_device(0x10b9, 0x7101, NULL); codec 2162 sound/pci/ali5451/ali5451.c if (!codec->pci_m7101 && codec->revision == ALI_5451_V02) { codec 2164 sound/pci/ali5451/ali5451.c snd_ali_free(codec); codec 2169 sound/pci/ali5451/ali5451.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, codec, &ops); codec 2171 sound/pci/ali5451/ali5451.c snd_ali_free(codec); codec 2177 sound/pci/ali5451/ali5451.c codec->synth.voices[i].number = i; codec 2179 sound/pci/ali5451/ali5451.c err = snd_ali_chip_init(codec); codec 2186 sound/pci/ali5451/ali5451.c codec->image = kmalloc(sizeof(*codec->image), GFP_KERNEL); codec 2187 sound/pci/ali5451/ali5451.c if (!codec->image) codec 2191 sound/pci/ali5451/ali5451.c snd_ali_enable_address_interrupt(codec); codec 2192 sound/pci/ali5451/ali5451.c codec->hw_initialized = 1; codec 2194 sound/pci/ali5451/ali5451.c *r_ali = codec; codec 2203 sound/pci/ali5451/ali5451.c struct snd_ali *codec; codec 2212 sound/pci/ali5451/ali5451.c err = snd_ali_create(card, pci, pcm_channels, spdif, &codec); codec 2215 sound/pci/ali5451/ali5451.c card->private_data = codec; codec 2218 sound/pci/ali5451/ali5451.c err = snd_ali_mixer(codec); codec 2223 sound/pci/ali5451/ali5451.c err = snd_ali_build_pcms(codec); codec 2227 sound/pci/ali5451/ali5451.c snd_ali_proc_init(codec); codec 2233 sound/pci/ali5451/ali5451.c card->shortname, codec->port, codec->irq); codec 429 sound/pci/atiixp.c static unsigned short snd_atiixp_codec_read(struct atiixp *chip, unsigned short codec, unsigned short reg) codec 439 sound/pci/atiixp.c codec; codec 457 sound/pci/atiixp.c static void snd_atiixp_codec_write(struct atiixp *chip, unsigned short codec, codec 466 sound/pci/atiixp.c ATI_REG_PHYS_OUT_ADDR_EN | codec; codec 398 sound/pci/atiixp_modem.c unsigned short codec, codec 409 sound/pci/atiixp_modem.c codec; codec 428 sound/pci/atiixp_modem.c unsigned short codec, codec 437 sound/pci/atiixp_modem.c ATI_REG_PHYS_OUT_ADDR_EN | codec; codec 136 sound/pci/au88x0/au88x0.h struct snd_ac97 *codec; codec 223 sound/pci/au88x0/au88x0.h static void vortex_codec_write(struct snd_ac97 * codec, unsigned short addr, codec 225 sound/pci/au88x0/au88x0.h static unsigned short vortex_codec_read(struct snd_ac97 * codec, unsigned short addr); codec 2325 sound/pci/au88x0/au88x0_core.c snd_ac97_write_cache(vortex->codec, codec 2327 sound/pci/au88x0/au88x0_core.c snd_ac97_read(vortex->codec, codec 2332 sound/pci/au88x0/au88x0_core.c snd_ac97_write_cache(vortex->codec, codec 2334 sound/pci/au88x0/au88x0_core.c snd_ac97_read(vortex->codec, codec 2537 sound/pci/au88x0/au88x0_core.c vortex_codec_write(struct snd_ac97 * codec, unsigned short addr, unsigned short data) codec 2540 sound/pci/au88x0/au88x0_core.c vortex_t *card = (vortex_t *) codec->private_data; codec 2556 sound/pci/au88x0/au88x0_core.c (codec->num << VORTEX_CODEC_ID_SHIFT) ); codec 2562 sound/pci/au88x0/au88x0_core.c static unsigned short vortex_codec_read(struct snd_ac97 * codec, unsigned short addr) codec 2565 sound/pci/au88x0/au88x0_core.c vortex_t *card = (vortex_t *) codec->private_data; codec 2579 sound/pci/au88x0/au88x0_core.c (codec->num << VORTEX_CODEC_ID_SHIFT) ; codec 39 sound/pci/au88x0/au88x0_mixer.c err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); codec 40 sound/pci/au88x0/au88x0_mixer.c vortex->isquad = ((vortex->codec == NULL) ? 0 : (vortex->codec->ext_id&0x80)); codec 338 sound/pci/azt3328.c snd_azf3328_codec_outb(const struct snd_azf3328_codec_data *codec, codec 343 sound/pci/azt3328.c outb(value, codec->io_base + reg); codec 347 sound/pci/azt3328.c snd_azf3328_codec_inb(const struct snd_azf3328_codec_data *codec, unsigned reg) codec 349 sound/pci/azt3328.c return inb(codec->io_base + reg); codec 353 sound/pci/azt3328.c snd_azf3328_codec_outw(const struct snd_azf3328_codec_data *codec, codec 358 sound/pci/azt3328.c outw(value, codec->io_base + reg); codec 362 sound/pci/azt3328.c snd_azf3328_codec_inw(const struct snd_azf3328_codec_data *codec, unsigned reg) codec 364 sound/pci/azt3328.c return inw(codec->io_base + reg); codec 368 sound/pci/azt3328.c snd_azf3328_codec_outl(const struct snd_azf3328_codec_data *codec, codec 373 sound/pci/azt3328.c outl(value, codec->io_base + reg); codec 377 sound/pci/azt3328.c snd_azf3328_codec_outl_multi(const struct snd_azf3328_codec_data *codec, codec 381 sound/pci/azt3328.c unsigned long addr = codec->io_base + reg; codec 392 sound/pci/azt3328.c snd_azf3328_codec_inl(const struct snd_azf3328_codec_data *codec, unsigned reg) codec 394 sound/pci/azt3328.c return inl(codec->io_base + reg); codec 1223 sound/pci/azt3328.c snd_azf3328_codec_setfmt(struct snd_azf3328_codec_data *codec, codec 1272 sound/pci/azt3328.c spin_lock_irqsave(codec->lock, flags); codec 1275 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_SOUNDFORMAT, val); codec 1285 sound/pci/azt3328.c if (codec->type != AZF_CODEC_CAPTURE) codec 1286 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1287 sound/pci/azt3328.c snd_azf3328_codec_inw(codec, IDX_IO_CODEC_DMA_FLAGS) | codec 1295 sound/pci/azt3328.c spin_unlock_irqrestore(codec->lock, flags); codec 1299 sound/pci/azt3328.c snd_azf3328_codec_setfmt_lowpower(struct snd_azf3328_codec_data *codec codec 1306 sound/pci/azt3328.c snd_azf3328_codec_setfmt(codec, AZF_FREQ_4000, 8, 1); codec 1343 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = &chip->codecs[codec_type]; codec 1344 sound/pci/azt3328.c bool need_change = (codec->running != enable); codec 1348 sound/pci/azt3328.c codec->name, enable, need_change codec 1381 sound/pci/azt3328.c snd_azf3328_codec_setfmt_lowpower(codec); codec 1382 sound/pci/azt3328.c codec->running = enable; codec 1388 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec, codec 1398 sound/pci/azt3328.c if (!codec->running) { codec 1433 sound/pci/azt3328.c spin_lock_irqsave(codec->lock, flags); codec 1435 sound/pci/azt3328.c codec, IDX_IO_CODEC_DMA_START_1, &setup_io, 3 codec 1437 sound/pci/azt3328.c spin_unlock_irqrestore(codec->lock, flags); codec 1445 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = runtime->private_data; codec 1451 sound/pci/azt3328.c codec->dma_base = runtime->dma_addr; codec 1454 sound/pci/azt3328.c snd_azf3328_codec_setfmt(codec, codec 1458 sound/pci/azt3328.c snd_azf3328_codec_setdmaa(chip, codec, codec 1469 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = runtime->private_data; codec 1473 sound/pci/azt3328.c bool is_main_mixer_playback_codec = (AZF_CODEC_PLAYBACK == codec->type); codec 1477 sound/pci/azt3328.c dev_dbg(chip->card->dev, "START PCM %s\n", codec->name); codec 1487 sound/pci/azt3328.c snd_azf3328_codec_setfmt(codec, codec 1492 sound/pci/azt3328.c spin_lock(codec->lock); codec 1494 sound/pci/azt3328.c flags1 = snd_azf3328_codec_inw(codec, IDX_IO_CODEC_DMA_FLAGS); codec 1498 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1501 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_IRQTYPE, 0xffff); codec 1502 sound/pci/azt3328.c spin_unlock(codec->lock); codec 1504 sound/pci/azt3328.c snd_azf3328_codec_setdmaa(chip, codec, runtime->dma_addr, codec 1509 sound/pci/azt3328.c spin_lock(codec->lock); codec 1513 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1518 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1520 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1522 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1524 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1527 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1533 sound/pci/azt3328.c spin_unlock(codec->lock); codec 1534 sound/pci/azt3328.c snd_azf3328_ctrl_codec_activity(chip, codec->type, 1); codec 1544 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STARTED %s\n", codec->name); codec 1547 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM RESUME %s\n", codec->name); codec 1549 sound/pci/azt3328.c spin_lock(codec->lock); codec 1550 sound/pci/azt3328.c if (codec->running) codec 1551 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1553 sound/pci/azt3328.c codec, IDX_IO_CODEC_DMA_FLAGS codec 1556 sound/pci/azt3328.c spin_unlock(codec->lock); codec 1559 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STOP %s\n", codec->name); codec 1569 sound/pci/azt3328.c spin_lock(codec->lock); codec 1571 sound/pci/azt3328.c flags1 = snd_azf3328_codec_inw(codec, IDX_IO_CODEC_DMA_FLAGS); codec 1575 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1580 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1583 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, flags1); codec 1584 sound/pci/azt3328.c spin_unlock(codec->lock); codec 1585 sound/pci/azt3328.c snd_azf3328_ctrl_codec_activity(chip, codec->type, 0); codec 1595 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STOPPED %s\n", codec->name); codec 1598 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM SUSPEND %s\n", codec->name); codec 1600 sound/pci/azt3328.c snd_azf3328_codec_outw(codec, IDX_IO_CODEC_DMA_FLAGS, codec 1602 sound/pci/azt3328.c codec, IDX_IO_CODEC_DMA_FLAGS codec 1624 sound/pci/azt3328.c const struct snd_azf3328_codec_data *codec = codec 1629 sound/pci/azt3328.c result = snd_azf3328_codec_inl(codec, IDX_IO_CODEC_DMA_CURRPOS); codec 1633 sound/pci/azt3328.c result -= snd_azf3328_codec_inl(codec, IDX_IO_CODEC_DMA_START_1); codec 1635 sound/pci/azt3328.c result -= codec->dma_base; codec 1639 sound/pci/azt3328.c jiffies, codec->name, result, frmres); codec 1881 sound/pci/azt3328.c const struct snd_azf3328_codec_data *codec = first_codec; codec 1885 sound/pci/azt3328.c ++codec_type, ++codec) { codec 1891 sound/pci/azt3328.c spin_lock(codec->lock); codec 1892 sound/pci/azt3328.c which = snd_azf3328_codec_inb(codec, IDX_IO_CODEC_IRQTYPE); codec 1894 sound/pci/azt3328.c snd_azf3328_codec_outb(codec, IDX_IO_CODEC_IRQTYPE, which); codec 1895 sound/pci/azt3328.c spin_unlock(codec->lock); codec 1897 sound/pci/azt3328.c if (codec->substream) { codec 1898 sound/pci/azt3328.c snd_pcm_period_elapsed(codec->substream); codec 1900 sound/pci/azt3328.c codec->name, codec 1903 sound/pci/azt3328.c codec, IDX_IO_CODEC_DMA_CURRPOS)); codec 2035 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = &chip->codecs[codec_type]; codec 2037 sound/pci/azt3328.c codec->substream = substream; codec 2044 sound/pci/azt3328.c runtime->private_data = codec; codec 2070 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = codec 2073 sound/pci/azt3328.c codec->substream = NULL; codec 2471 sound/pci/azt3328.c struct snd_azf3328_codec_data *codec = codec 2476 sound/pci/azt3328.c codec->running = 1; codec 2479 sound/pci/azt3328.c spin_lock_irq(codec->lock); codec 2480 sound/pci/azt3328.c snd_azf3328_codec_outb(codec, IDX_IO_CODEC_DMA_FLAGS, codec 2482 sound/pci/azt3328.c spin_unlock_irq(codec->lock); codec 2434 sound/pci/cs46xx/cs46xx_lib.c static int cs46xx_detect_codec(struct snd_cs46xx *chip, int codec) codec 2442 sound/pci/cs46xx/cs46xx_lib.c ac97.num = codec; codec 2446 sound/pci/cs46xx/cs46xx_lib.c if (codec == CS46XX_SECONDARY_CODEC_INDEX) { codec 2447 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_codec_write(chip, AC97_RESET, 0, codec); codec 2449 sound/pci/cs46xx/cs46xx_lib.c if (snd_cs46xx_codec_read(chip, AC97_RESET, codec) & 0x8000) { codec 2456 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_codec_write(chip, AC97_MASTER, 0x8000, codec); codec 2458 sound/pci/cs46xx/cs46xx_lib.c if (snd_cs46xx_codec_read(chip, AC97_MASTER, codec) == 0x8000) { codec 2459 sound/pci/cs46xx/cs46xx_lib.c err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97[codec]); codec 2464 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "codec %d detection timeout\n", codec); codec 56 sound/pci/hda/hda_auto_parser.c static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, codec 63 sound/pci/hda/hda_auto_parser.c nid_has_volume(codec, nid, HDA_INPUT); codec 102 sound/pci/hda/hda_auto_parser.c static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, codec 105 sound/pci/hda/hda_auto_parser.c unsigned int pincap = snd_hda_query_pin_caps(codec, pin); codec 123 sound/pci/hda/hda_auto_parser.c static bool can_be_headset_mic(struct hda_codec *codec, codec 135 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, item->pin); codec 166 sound/pci/hda/hda_auto_parser.c int snd_hda_parse_pin_defcfg(struct hda_codec *codec, codec 178 sound/pci/hda/hda_auto_parser.c if (!snd_hda_get_int_hint(codec, "parser_flags", &i)) codec 188 sound/pci/hda/hda_auto_parser.c for_each_hda_codec_node(nid, codec) { codec 189 sound/pci/hda/hda_auto_parser.c unsigned int wid_caps = get_wcaps(codec, nid); codec 201 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 215 sound/pci/hda/hda_auto_parser.c if (!check_pincap_validity(codec, nid, dev)) codec 231 sound/pci/hda/hda_auto_parser.c codec_info(codec, codec 237 sound/pci/hda/hda_auto_parser.c codec_info(codec, codec 250 sound/pci/hda/hda_auto_parser.c codec_info(codec, codec 263 sound/pci/hda/hda_auto_parser.c codec_info(codec, codec 273 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_MIC); codec 276 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_LINE_IN); codec 279 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_CD); codec 282 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_AUX); codec 287 sound/pci/hda/hda_auto_parser.c codec_info(codec, codec 314 sound/pci/hda/hda_auto_parser.c if (hsmic && can_be_headset_mic(codec, &cfg->inputs[i], 0xc)) { codec 317 sound/pci/hda/hda_auto_parser.c } else if (hpmic && can_be_headset_mic(codec, &cfg->inputs[i], 0xd)) { codec 324 sound/pci/hda/hda_auto_parser.c if (!can_be_headset_mic(codec, &cfg->inputs[i], -1)) codec 336 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "Told to look for a headset mic, but didn't find any.\n"); codec 338 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "Told to look for a headphone mic, but didn't find any.\n"); codec 407 sound/pci/hda/hda_auto_parser.c codec_info(codec, "autoconfig for %s: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n", codec 408 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, cfg->line_outs, cfg->line_out_pins[0], codec 414 sound/pci/hda/hda_auto_parser.c codec_info(codec, " speaker_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n", codec 418 sound/pci/hda/hda_auto_parser.c codec_info(codec, " hp_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x)\n", codec 422 sound/pci/hda/hda_auto_parser.c codec_info(codec, " mono: mono_out=0x%x\n", cfg->mono_out_pin); codec 424 sound/pci/hda/hda_auto_parser.c codec_info(codec, " dig-out=0x%x/0x%x\n", codec 426 sound/pci/hda/hda_auto_parser.c codec_info(codec, " inputs:\n"); codec 428 sound/pci/hda/hda_auto_parser.c codec_info(codec, " %s=0x%x\n", codec 429 sound/pci/hda/hda_auto_parser.c hda_get_autocfg_input_label(codec, cfg, i), codec 433 sound/pci/hda/hda_auto_parser.c codec_info(codec, " dig-in=0x%x\n", cfg->dig_in_pin); codec 478 sound/pci/hda/hda_auto_parser.c static const char *hda_get_input_pin_label(struct hda_codec *codec, codec 488 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, pin); codec 530 sound/pci/hda/hda_auto_parser.c static int check_mic_location_need(struct hda_codec *codec, codec 537 sound/pci/hda/hda_auto_parser.c defc = snd_hda_codec_get_pincfg(codec, cfg->inputs[input].pin); codec 545 sound/pci/hda/hda_auto_parser.c defc = snd_hda_codec_get_pincfg(codec, cfg->inputs[i].pin); codec 567 sound/pci/hda/hda_auto_parser.c const char *hda_get_autocfg_input_label(struct hda_codec *codec, codec 578 sound/pci/hda/hda_auto_parser.c has_multiple_pins &= check_mic_location_need(codec, cfg, input); codec 579 sound/pci/hda/hda_auto_parser.c has_multiple_pins |= codec->force_pin_prefix; codec 580 sound/pci/hda/hda_auto_parser.c return hda_get_input_pin_label(codec, &cfg->inputs[input], codec 618 sound/pci/hda/hda_auto_parser.c static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) codec 620 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 633 sound/pci/hda/hda_auto_parser.c static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, codec 638 sound/pci/hda/hda_auto_parser.c const char *pfx = check_output_pfx(codec, nid); codec 644 sound/pci/hda/hda_auto_parser.c if (pfx == check_output_pfx(codec, pins[j])) codec 650 sound/pci/hda/hda_auto_parser.c static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, codec 655 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 662 sound/pci/hda/hda_auto_parser.c pfx = check_output_pfx(codec, nid); codec 673 sound/pci/hda/hda_auto_parser.c int idx = get_hp_label_index(codec, nid, cfg->hp_pins, codec 706 sound/pci/hda/hda_auto_parser.c int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, codec 710 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 722 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Line Out", codec 725 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Speaker", codec 728 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Headphone", codec 740 sound/pci/hda/hda_auto_parser.c c = snd_hda_codec_get_pincfg(codec, pin); codec 750 sound/pci/hda/hda_auto_parser.c name = hda_get_autocfg_input_label(codec, cfg, i); codec 756 sound/pci/hda/hda_auto_parser.c name = hda_get_input_pin_label(codec, NULL, nid, true); codec 774 sound/pci/hda/hda_auto_parser.c int snd_hda_add_verbs(struct hda_codec *codec, codec 778 sound/pci/hda/hda_auto_parser.c v = snd_array_new(&codec->verbs); codec 790 sound/pci/hda/hda_auto_parser.c void snd_hda_apply_verbs(struct hda_codec *codec) codec 795 sound/pci/hda/hda_auto_parser.c snd_array_for_each(&codec->verbs, i, v) codec 796 sound/pci/hda/hda_auto_parser.c snd_hda_sequence_write(codec, *v); codec 805 sound/pci/hda/hda_auto_parser.c void snd_hda_apply_pincfgs(struct hda_codec *codec, codec 809 sound/pci/hda/hda_auto_parser.c snd_hda_codec_set_pincfg(codec, cfg->nid, cfg->val); codec 813 sound/pci/hda/hda_auto_parser.c static void set_pin_targets(struct hda_codec *codec, codec 817 sound/pci/hda/hda_auto_parser.c snd_hda_set_pin_ctl_cache(codec, cfg->nid, cfg->val); codec 820 sound/pci/hda/hda_auto_parser.c static void apply_fixup(struct hda_codec *codec, int id, int action, int depth) codec 822 sound/pci/hda/hda_auto_parser.c const char *modelname = codec->fixup_name; codec 825 sound/pci/hda/hda_auto_parser.c const struct hda_fixup *fix = codec->fixup_list + id; codec 830 sound/pci/hda/hda_auto_parser.c apply_fixup(codec, fix->chain_id, action, depth + 1); codec 836 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: Apply pincfg for %s\n", codec 837 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, modelname); codec 838 sound/pci/hda/hda_auto_parser.c snd_hda_apply_pincfgs(codec, fix->v.pins); codec 843 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: Apply fix-verbs for %s\n", codec 844 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, modelname); codec 845 sound/pci/hda/hda_auto_parser.c snd_hda_add_verbs(codec, fix->v.verbs); codec 850 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: Apply fix-func for %s\n", codec 851 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, modelname); codec 852 sound/pci/hda/hda_auto_parser.c fix->v.func(codec, fix, action); codec 857 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: Apply pinctl for %s\n", codec 858 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, modelname); codec 859 sound/pci/hda/hda_auto_parser.c set_pin_targets(codec, fix->v.pins); codec 862 sound/pci/hda/hda_auto_parser.c codec_err(codec, "%s: Invalid fixup type %d\n", codec 863 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, fix->type); codec 877 sound/pci/hda/hda_auto_parser.c void snd_hda_apply_fixup(struct hda_codec *codec, int action) codec 879 sound/pci/hda/hda_auto_parser.c if (codec->fixup_list) codec 880 sound/pci/hda/hda_auto_parser.c apply_fixup(codec, codec->fixup_id, action, 0); codec 886 sound/pci/hda/hda_auto_parser.c static bool pin_config_match(struct hda_codec *codec, codec 893 sound/pci/hda/hda_auto_parser.c snd_array_for_each(&codec->init_pins, i, pin) { codec 927 sound/pci/hda/hda_auto_parser.c void snd_hda_pick_pin_fixup(struct hda_codec *codec, codec 934 sound/pci/hda/hda_auto_parser.c if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET) codec 938 sound/pci/hda/hda_auto_parser.c if ((codec->core.subsystem_id & 0xffff0000) != (pq->subvendor << 16)) codec 940 sound/pci/hda/hda_auto_parser.c if (codec->core.vendor_id != pq->codec) codec 942 sound/pci/hda/hda_auto_parser.c if (pin_config_match(codec, pq->pins, match_all_pins)) { codec 943 sound/pci/hda/hda_auto_parser.c codec->fixup_id = pq->value; codec 945 sound/pci/hda/hda_auto_parser.c codec->fixup_name = pq->name; codec 946 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: picked fixup %s (pin match)\n", codec 947 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, codec->fixup_name); codec 949 sound/pci/hda/hda_auto_parser.c codec->fixup_list = fixlist; codec 971 sound/pci/hda/hda_auto_parser.c void snd_hda_pick_fixup(struct hda_codec *codec, codec 980 sound/pci/hda/hda_auto_parser.c if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET) codec 984 sound/pci/hda/hda_auto_parser.c if (codec->modelname && !strcmp(codec->modelname, "nofixup")) { codec 985 sound/pci/hda/hda_auto_parser.c codec->fixup_list = NULL; codec 986 sound/pci/hda/hda_auto_parser.c codec->fixup_name = NULL; codec 987 sound/pci/hda/hda_auto_parser.c codec->fixup_id = HDA_FIXUP_ID_NO_FIXUP; codec 988 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: picked no fixup (nofixup specified)\n", codec 989 sound/pci/hda/hda_auto_parser.c codec->core.chip_name); codec 993 sound/pci/hda/hda_auto_parser.c if (codec->modelname && models) { codec 995 sound/pci/hda/hda_auto_parser.c if (!strcmp(codec->modelname, models->name)) { codec 996 sound/pci/hda/hda_auto_parser.c codec->fixup_id = models->id; codec 997 sound/pci/hda/hda_auto_parser.c codec->fixup_name = models->name; codec 998 sound/pci/hda/hda_auto_parser.c codec->fixup_list = fixlist; codec 999 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: picked fixup %s (model specified)\n", codec 1000 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, codec->fixup_name); codec 1007 sound/pci/hda/hda_auto_parser.c q = snd_pci_quirk_lookup(codec->bus->pci, quirk); codec 1012 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: picked fixup %s (PCI SSID%s)\n", codec 1013 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, name, q->subdevice_mask ? "" : " - vendor generic"); codec 1022 sound/pci/hda/hda_auto_parser.c if ((codec->core.subsystem_id & mask) == (vendorid & mask)) { codec 1026 sound/pci/hda/hda_auto_parser.c codec_dbg(codec, "%s: picked fixup %s (codec SSID)\n", codec 1027 sound/pci/hda/hda_auto_parser.c codec->core.chip_name, name); codec 1034 sound/pci/hda/hda_auto_parser.c codec->fixup_id = id; codec 1036 sound/pci/hda/hda_auto_parser.c codec->fixup_list = fixlist; codec 1037 sound/pci/hda/hda_auto_parser.c codec->fixup_name = name; codec 41 sound/pci/hda/hda_auto_parser.h const char *hda_get_autocfg_input_label(struct hda_codec *codec, codec 44 sound/pci/hda/hda_auto_parser.h int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, codec 85 sound/pci/hda/hda_auto_parser.h int snd_hda_parse_pin_defcfg(struct hda_codec *codec, codec 91 sound/pci/hda/hda_auto_parser.h #define snd_hda_parse_pin_def_config(codec, cfg, ignore) \ codec 92 sound/pci/hda/hda_auto_parser.h snd_hda_parse_pin_defcfg(codec, cfg, ignore, 0) codec 26 sound/pci/hda/hda_beep.c struct hda_codec *codec = beep->codec; codec 29 sound/pci/hda/hda_beep.c snd_hda_power_up(codec); codec 34 sound/pci/hda/hda_beep.c snd_hda_codec_write(codec, beep->nid, 0, codec 40 sound/pci/hda/hda_beep.c snd_hda_power_down(codec); codec 135 sound/pci/hda/hda_beep.c int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) codec 137 sound/pci/hda/hda_beep.c struct hda_beep *beep = codec->beep; codec 178 sound/pci/hda/hda_beep.c beep->codec->beep = NULL; codec 193 sound/pci/hda/hda_beep.c int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) codec 204 sound/pci/hda/hda_beep.c if (!snd_hda_get_bool_hint(codec, "beep")) codec 206 sound/pci/hda/hda_beep.c if (codec->beep_mode == HDA_BEEP_MODE_OFF) codec 213 sound/pci/hda/hda_beep.c "card%d/codec#%d/beep0", codec->card->number, codec->addr); codec 215 sound/pci/hda/hda_beep.c snd_hda_codec_write_cache(codec, nid, 0, codec 219 sound/pci/hda/hda_beep.c beep->codec = codec; codec 220 sound/pci/hda/hda_beep.c codec->beep = beep; codec 235 sound/pci/hda/hda_beep.c input_dev->dev.parent = &codec->card->card_dev; codec 237 sound/pci/hda/hda_beep.c input_dev->id.vendor = codec->core.vendor_id >> 16; codec 238 sound/pci/hda/hda_beep.c input_dev->id.product = codec->core.vendor_id & 0xffff; codec 248 sound/pci/hda/hda_beep.c err = snd_device_new(codec->card, SNDRV_DEV_JACK, beep, &ops); codec 258 sound/pci/hda/hda_beep.c codec->beep = NULL; codec 267 sound/pci/hda/hda_beep.c void snd_hda_detach_beep_device(struct hda_codec *codec) codec 269 sound/pci/hda/hda_beep.c if (!codec->bus->shutdown && codec->beep) codec 270 sound/pci/hda/hda_beep.c snd_device_free(codec->card, codec->beep); codec 276 sound/pci/hda/hda_beep.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 277 sound/pci/hda/hda_beep.c return query_amp_caps(codec, get_amp_nid(kcontrol), codec 291 sound/pci/hda/hda_beep.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 292 sound/pci/hda/hda_beep.c struct hda_beep *beep = codec->beep; codec 314 sound/pci/hda/hda_beep.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 315 sound/pci/hda/hda_beep.c struct hda_beep *beep = codec->beep; codec 326 sound/pci/hda/hda_beep.c snd_hda_enable_beep_device(codec, enable); codec 20 sound/pci/hda/hda_beep.h struct hda_codec *codec; codec 34 sound/pci/hda/hda_beep.h int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); codec 35 sound/pci/hda/hda_beep.h int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); codec 36 sound/pci/hda/hda_beep.h void snd_hda_detach_beep_device(struct hda_codec *codec); codec 38 sound/pci/hda/hda_beep.h static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) codec 42 sound/pci/hda/hda_beep.h static inline void snd_hda_detach_beep_device(struct hda_codec *codec) codec 23 sound/pci/hda/hda_bind.c struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec 28 sound/pci/hda/hda_bind.c u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; codec 29 sound/pci/hda/hda_bind.c u32 rev_id = codec->core.revision_id; codec 34 sound/pci/hda/hda_bind.c codec->preset = list; codec 44 sound/pci/hda/hda_bind.c struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec 47 sound/pci/hda/hda_bind.c if (codec->bus->shutdown) codec 50 sound/pci/hda/hda_bind.c if (codec->patch_ops.unsol_event) codec 51 sound/pci/hda/hda_bind.c codec->patch_ops.unsol_event(codec, ev); codec 59 sound/pci/hda/hda_bind.c int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) codec 65 sound/pci/hda/hda_bind.c err = snd_hdac_device_set_chip_name(&codec->core, name); codec 70 sound/pci/hda/hda_bind.c if (!*codec->card->mixername || codec 71 sound/pci/hda/hda_bind.c codec->bus->mixer_assigned >= codec->core.addr) { codec 72 sound/pci/hda/hda_bind.c snprintf(codec->card->mixername, codec 73 sound/pci/hda/hda_bind.c sizeof(codec->card->mixername), "%s %s", codec 74 sound/pci/hda/hda_bind.c codec->core.vendor_name, codec->core.chip_name); codec 75 sound/pci/hda/hda_bind.c codec->bus->mixer_assigned = codec->core.addr; codec 84 sound/pci/hda/hda_bind.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 89 sound/pci/hda/hda_bind.c if (codec->bus->core.ext_ops) { codec 90 sound/pci/hda/hda_bind.c if (WARN_ON(!codec->bus->core.ext_ops->hdev_attach)) codec 92 sound/pci/hda/hda_bind.c return codec->bus->core.ext_ops->hdev_attach(&codec->core); codec 95 sound/pci/hda/hda_bind.c if (WARN_ON(!codec->preset)) codec 98 sound/pci/hda/hda_bind.c err = snd_hda_codec_set_name(codec, codec->preset->name); codec 101 sound/pci/hda/hda_bind.c err = snd_hdac_regmap_init(&codec->core); codec 110 sound/pci/hda/hda_bind.c patch = (hda_codec_patch_t)codec->preset->driver_data; codec 112 sound/pci/hda/hda_bind.c err = patch(codec); codec 117 sound/pci/hda/hda_bind.c err = snd_hda_codec_build_pcms(codec); codec 120 sound/pci/hda/hda_bind.c err = snd_hda_codec_build_controls(codec); codec 124 sound/pci/hda/hda_bind.c if (!codec->bus->bus_probing && codec->card->registered) { codec 125 sound/pci/hda/hda_bind.c err = snd_card_register(codec->card); codec 128 sound/pci/hda/hda_bind.c snd_hda_codec_register(codec); codec 131 sound/pci/hda/hda_bind.c codec->core.lazy_cache = true; codec 135 sound/pci/hda/hda_bind.c if (codec->patch_ops.free) codec 136 sound/pci/hda/hda_bind.c codec->patch_ops.free(codec); codec 141 sound/pci/hda/hda_bind.c snd_hda_codec_cleanup_for_unbind(codec); codec 147 sound/pci/hda/hda_bind.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 149 sound/pci/hda/hda_bind.c if (codec->bus->core.ext_ops) { codec 150 sound/pci/hda/hda_bind.c if (WARN_ON(!codec->bus->core.ext_ops->hdev_detach)) codec 152 sound/pci/hda/hda_bind.c return codec->bus->core.ext_ops->hdev_detach(&codec->core); codec 155 sound/pci/hda/hda_bind.c if (codec->patch_ops.free) codec 156 sound/pci/hda/hda_bind.c codec->patch_ops.free(codec); codec 157 sound/pci/hda/hda_bind.c snd_hda_codec_cleanup_for_unbind(codec); codec 164 sound/pci/hda/hda_bind.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 166 sound/pci/hda/hda_bind.c if (!pm_runtime_suspended(dev) && codec->patch_ops.reboot_notify) codec 167 sound/pci/hda/hda_bind.c codec->patch_ops.reboot_notify(codec); codec 193 sound/pci/hda/hda_bind.c static inline bool codec_probed(struct hda_codec *codec) codec 195 sound/pci/hda/hda_bind.c return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; codec 199 sound/pci/hda/hda_bind.c static void request_codec_module(struct hda_codec *codec) codec 205 sound/pci/hda/hda_bind.c switch (codec->probe_id) { codec 217 sound/pci/hda/hda_bind.c snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias)); codec 228 sound/pci/hda/hda_bind.c static void codec_bind_module(struct hda_codec *codec) codec 231 sound/pci/hda/hda_bind.c request_codec_module(codec); codec 232 sound/pci/hda/hda_bind.c if (codec_probed(codec)) codec 239 sound/pci/hda/hda_bind.c static bool is_likely_hdmi_codec(struct hda_codec *codec) codec 243 sound/pci/hda/hda_bind.c for_each_hda_codec_node(nid, codec) { codec 244 sound/pci/hda/hda_bind.c unsigned int wcaps = get_wcaps(codec, nid); codec 258 sound/pci/hda/hda_bind.c #define is_likely_hdmi_codec(codec) false codec 261 sound/pci/hda/hda_bind.c static int codec_bind_generic(struct hda_codec *codec) codec 263 sound/pci/hda/hda_bind.c if (codec->probe_id) codec 266 sound/pci/hda/hda_bind.c if (is_likely_hdmi_codec(codec)) { codec 267 sound/pci/hda/hda_bind.c codec->probe_id = HDA_CODEC_ID_GENERIC_HDMI; codec 268 sound/pci/hda/hda_bind.c request_codec_module(codec); codec 269 sound/pci/hda/hda_bind.c if (codec_probed(codec)) codec 273 sound/pci/hda/hda_bind.c codec->probe_id = HDA_CODEC_ID_GENERIC; codec 274 sound/pci/hda/hda_bind.c request_codec_module(codec); codec 275 sound/pci/hda/hda_bind.c if (codec_probed(codec)) codec 281 sound/pci/hda/hda_bind.c #define is_generic_config(codec) \ codec 282 sound/pci/hda/hda_bind.c (codec->modelname && !strcmp(codec->modelname, "generic")) codec 284 sound/pci/hda/hda_bind.c #define is_generic_config(codec) 0 codec 296 sound/pci/hda/hda_bind.c int snd_hda_codec_configure(struct hda_codec *codec) codec 300 sound/pci/hda/hda_bind.c if (is_generic_config(codec)) codec 301 sound/pci/hda/hda_bind.c codec->probe_id = HDA_CODEC_ID_GENERIC; codec 303 sound/pci/hda/hda_bind.c codec->probe_id = 0; codec 305 sound/pci/hda/hda_bind.c err = snd_hdac_device_register(&codec->core); codec 309 sound/pci/hda/hda_bind.c if (!codec->preset) codec 310 sound/pci/hda/hda_bind.c codec_bind_module(codec); codec 311 sound/pci/hda/hda_bind.c if (!codec->preset) { codec 312 sound/pci/hda/hda_bind.c err = codec_bind_generic(codec); codec 314 sound/pci/hda/hda_bind.c codec_err(codec, "Unable to bind the codec\n"); codec 322 sound/pci/hda/hda_bind.c snd_hdac_device_unregister(&codec->core); codec 27 sound/pci/hda/hda_codec.c #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) codec 28 sound/pci/hda/hda_codec.c #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) codec 29 sound/pci/hda/hda_codec.c #define codec_has_epss(codec) \ codec 30 sound/pci/hda/hda_codec.c ((codec)->core.power_caps & AC_PWRST_EPSS) codec 31 sound/pci/hda/hda_codec.c #define codec_has_clkstop(codec) \ codec 32 sound/pci/hda/hda_codec.c ((codec)->core.power_caps & AC_PWRST_CLKSTOP) codec 40 sound/pci/hda/hda_codec.c struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec 41 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; codec 48 sound/pci/hda/hda_codec.c snd_hda_power_up_pm(codec); codec 52 sound/pci/hda/hda_codec.c err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, codec 56 sound/pci/hda/hda_codec.c snd_hda_power_down_pm(codec); codec 57 sound/pci/hda/hda_codec.c if (!codec_in_pm(codec) && res && err == -EAGAIN) { codec 59 sound/pci/hda/hda_codec.c codec_dbg(codec, codec 66 sound/pci/hda/hda_codec.c if (!err || codec_in_pm(codec)) codec 79 sound/pci/hda/hda_codec.c void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) codec 82 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); codec 96 sound/pci/hda/hda_codec.c lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) codec 99 sound/pci/hda/hda_codec.c list_for_each_entry(p, &codec->conn_list, list) { codec 106 sound/pci/hda/hda_codec.c static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, codec 117 sound/pci/hda/hda_codec.c list_add(&p->list, &codec->conn_list); codec 121 sound/pci/hda/hda_codec.c static void remove_conn_list(struct hda_codec *codec) codec 123 sound/pci/hda/hda_codec.c while (!list_empty(&codec->conn_list)) { codec 125 sound/pci/hda/hda_codec.c p = list_first_entry(&codec->conn_list, typeof(*p), list); codec 132 sound/pci/hda/hda_codec.c static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) codec 138 sound/pci/hda/hda_codec.c len = snd_hda_get_raw_connections(codec, nid, list, ARRAY_SIZE(list)); codec 140 sound/pci/hda/hda_codec.c len = snd_hda_get_num_raw_conns(codec, nid); codec 144 sound/pci/hda/hda_codec.c len = snd_hda_get_raw_connections(codec, nid, result, len); codec 147 sound/pci/hda/hda_codec.c len = snd_hda_override_conn_list(codec, nid, len, result); codec 168 sound/pci/hda/hda_codec.c int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, codec 178 sound/pci/hda/hda_codec.c p = lookup_conn_list(codec, nid); codec 187 sound/pci/hda/hda_codec.c err = read_and_add_raw_conns(codec, nid); codec 207 sound/pci/hda/hda_codec.c int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, codec 211 sound/pci/hda/hda_codec.c int len = snd_hda_get_conn_list(codec, nid, &list); codec 215 sound/pci/hda/hda_codec.c codec_err(codec, "Too many connections %d for NID 0x%x\n", codec 238 sound/pci/hda/hda_codec.c int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, codec 243 sound/pci/hda/hda_codec.c p = lookup_conn_list(codec, nid); codec 249 sound/pci/hda/hda_codec.c return add_conn_list(codec, nid, len, list); codec 264 sound/pci/hda/hda_codec.c int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, codec 270 sound/pci/hda/hda_codec.c nums = snd_hda_get_conn_list(codec, mux, &conn); codec 277 sound/pci/hda/hda_codec.c codec_dbg(codec, "too deep connection for 0x%x\n", nid); codec 282 sound/pci/hda/hda_codec.c unsigned int type = get_wcaps_type(get_wcaps(codec, conn[i])); codec 285 sound/pci/hda/hda_codec.c if (snd_hda_get_conn_index(codec, conn[i], nid, recursive) >= 0) codec 300 sound/pci/hda/hda_codec.c unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid) codec 302 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); codec 305 sound/pci/hda/hda_codec.c if (!codec->dp_mst || !(wcaps & AC_WCAP_DIGITAL) || codec 309 sound/pci/hda/hda_codec.c parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); codec 326 sound/pci/hda/hda_codec.c int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, codec 332 sound/pci/hda/hda_codec.c parm = snd_hda_get_num_devices(codec, nid); codec 341 sound/pci/hda/hda_codec.c if (snd_hdac_read(&codec->core, nid, codec 365 sound/pci/hda/hda_codec.c int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid) codec 368 sound/pci/hda/hda_codec.c if (!codec->dp_mst) codec 371 sound/pci/hda/hda_codec.c return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_DEVICE_SEL, 0); codec 383 sound/pci/hda/hda_codec.c int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id) codec 388 sound/pci/hda/hda_codec.c if (!codec->dp_mst) codec 392 sound/pci/hda/hda_codec.c num_devices = snd_hda_get_num_devices(codec, nid) + 1; codec 406 sound/pci/hda/hda_codec.c ret = snd_hda_codec_write(codec, nid, 0, codec 416 sound/pci/hda/hda_codec.c static int read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) codec 421 sound/pci/hda/hda_codec.c codec->wcaps = kmalloc_array(codec->core.num_nodes, 4, GFP_KERNEL); codec 422 sound/pci/hda/hda_codec.c if (!codec->wcaps) codec 424 sound/pci/hda/hda_codec.c nid = codec->core.start_nid; codec 425 sound/pci/hda/hda_codec.c for (i = 0; i < codec->core.num_nodes; i++, nid++) codec 426 sound/pci/hda/hda_codec.c codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, codec 432 sound/pci/hda/hda_codec.c static int read_pin_defaults(struct hda_codec *codec) codec 436 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { codec 438 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); codec 442 sound/pci/hda/hda_codec.c pin = snd_array_new(&codec->init_pins); codec 446 sound/pci/hda/hda_codec.c pin->cfg = snd_hda_codec_read(codec, nid, 0, codec 452 sound/pci/hda/hda_codec.c pin->ctrl = snd_hda_codec_read(codec, nid, 0, codec 460 sound/pci/hda/hda_codec.c static struct hda_pincfg *look_up_pincfg(struct hda_codec *codec, codec 477 sound/pci/hda/hda_codec.c int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, codec 491 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, list, nid); codec 512 sound/pci/hda/hda_codec.c int snd_hda_codec_set_pincfg(struct hda_codec *codec, codec 515 sound/pci/hda/hda_codec.c return snd_hda_add_pincfg(codec, &codec->driver_pins, nid, cfg); codec 528 sound/pci/hda/hda_codec.c unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) codec 535 sound/pci/hda/hda_codec.c mutex_lock(&codec->user_mutex); codec 536 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->user_pins, nid); codec 539 sound/pci/hda/hda_codec.c mutex_unlock(&codec->user_mutex); codec 544 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->driver_pins, nid); codec 547 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); codec 564 sound/pci/hda/hda_codec.c int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, codec 569 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); codec 582 sound/pci/hda/hda_codec.c int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) codec 586 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); codec 600 sound/pci/hda/hda_codec.c void snd_hda_shutup_pins(struct hda_codec *codec) codec 608 sound/pci/hda/hda_codec.c if (codec->bus->shutdown) codec 610 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->init_pins, i, pin) { codec 612 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, pin->nid, 0, codec 615 sound/pci/hda/hda_codec.c codec->pins_shutup = 1; codec 621 sound/pci/hda/hda_codec.c static void restore_shutup_pins(struct hda_codec *codec) codec 626 sound/pci/hda/hda_codec.c if (!codec->pins_shutup) codec 628 sound/pci/hda/hda_codec.c if (codec->bus->shutdown) codec 630 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->init_pins, i, pin) { codec 631 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, pin->nid, 0, codec 635 sound/pci/hda/hda_codec.c codec->pins_shutup = 0; codec 641 sound/pci/hda/hda_codec.c struct hda_codec *codec = codec 644 sound/pci/hda/hda_codec.c snd_hda_jack_set_dirty_all(codec); codec 645 sound/pci/hda/hda_codec.c snd_hda_jack_poll_all(codec); codec 647 sound/pci/hda/hda_codec.c if (!codec->jackpoll_interval) codec 650 sound/pci/hda/hda_codec.c schedule_delayed_work(&codec->jackpoll_work, codec 651 sound/pci/hda/hda_codec.c codec->jackpoll_interval); codec 655 sound/pci/hda/hda_codec.c static void free_init_pincfgs(struct hda_codec *codec) codec 657 sound/pci/hda/hda_codec.c snd_array_free(&codec->driver_pins); codec 659 sound/pci/hda/hda_codec.c snd_array_free(&codec->user_pins); codec 661 sound/pci/hda/hda_codec.c snd_array_free(&codec->init_pins); codec 678 sound/pci/hda/hda_codec.c get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) codec 683 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->cvt_setups, i, p) { codec 687 sound/pci/hda/hda_codec.c p = snd_array_new(&codec->cvt_setups); codec 701 sound/pci/hda/hda_codec.c snd_device_free(pcm->codec->card, pcm->pcm); codec 702 sound/pci/hda/hda_codec.c clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits); codec 713 sound/pci/hda/hda_codec.c struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec, codec 723 sound/pci/hda/hda_codec.c pcm->codec = codec; codec 733 sound/pci/hda/hda_codec.c list_add_tail(&pcm->list, &codec->pcm_list_head); codec 741 sound/pci/hda/hda_codec.c static void codec_release_pcms(struct hda_codec *codec) codec 745 sound/pci/hda/hda_codec.c list_for_each_entry_safe(pcm, n, &codec->pcm_list_head, list) { codec 748 sound/pci/hda/hda_codec.c snd_device_disconnect(codec->card, pcm->pcm); codec 753 sound/pci/hda/hda_codec.c void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec) codec 755 sound/pci/hda/hda_codec.c if (codec->registered) { codec 757 sound/pci/hda/hda_codec.c pm_runtime_get_noresume(hda_codec_dev(codec)); codec 758 sound/pci/hda/hda_codec.c pm_runtime_disable(hda_codec_dev(codec)); codec 759 sound/pci/hda/hda_codec.c codec->registered = 0; codec 762 sound/pci/hda/hda_codec.c cancel_delayed_work_sync(&codec->jackpoll_work); codec 763 sound/pci/hda/hda_codec.c if (!codec->in_freeing) codec 764 sound/pci/hda/hda_codec.c snd_hda_ctls_clear(codec); codec 765 sound/pci/hda/hda_codec.c codec_release_pcms(codec); codec 766 sound/pci/hda/hda_codec.c snd_hda_detach_beep_device(codec); codec 767 sound/pci/hda/hda_codec.c memset(&codec->patch_ops, 0, sizeof(codec->patch_ops)); codec 768 sound/pci/hda/hda_codec.c snd_hda_jack_tbl_clear(codec); codec 769 sound/pci/hda/hda_codec.c codec->proc_widget_hook = NULL; codec 770 sound/pci/hda/hda_codec.c codec->spec = NULL; codec 773 sound/pci/hda/hda_codec.c snd_array_free(&codec->driver_pins); codec 774 sound/pci/hda/hda_codec.c snd_array_free(&codec->cvt_setups); codec 775 sound/pci/hda/hda_codec.c snd_array_free(&codec->spdif_out); codec 776 sound/pci/hda/hda_codec.c snd_array_free(&codec->verbs); codec 777 sound/pci/hda/hda_codec.c codec->preset = NULL; codec 778 sound/pci/hda/hda_codec.c codec->slave_dig_outs = NULL; codec 779 sound/pci/hda/hda_codec.c codec->spdif_status_reset = 0; codec 780 sound/pci/hda/hda_codec.c snd_array_free(&codec->mixers); codec 781 sound/pci/hda/hda_codec.c snd_array_free(&codec->nids); codec 782 sound/pci/hda/hda_codec.c remove_conn_list(codec); codec 783 sound/pci/hda/hda_codec.c snd_hdac_regmap_exit(&codec->core); codec 786 sound/pci/hda/hda_codec.c static unsigned int hda_set_power_state(struct hda_codec *codec, codec 790 sound/pci/hda/hda_codec.c static void codec_display_power(struct hda_codec *codec, bool enable) codec 792 sound/pci/hda/hda_codec.c if (codec->display_power_control) codec 793 sound/pci/hda/hda_codec.c snd_hdac_display_power(&codec->bus->core, codec->addr, enable); codec 797 sound/pci/hda/hda_codec.c void snd_hda_codec_register(struct hda_codec *codec) codec 799 sound/pci/hda/hda_codec.c if (codec->registered) codec 801 sound/pci/hda/hda_codec.c if (device_is_registered(hda_codec_dev(codec))) { codec 802 sound/pci/hda/hda_codec.c codec_display_power(codec, true); codec 803 sound/pci/hda/hda_codec.c pm_runtime_enable(hda_codec_dev(codec)); codec 805 sound/pci/hda/hda_codec.c snd_hda_power_down(codec); codec 806 sound/pci/hda/hda_codec.c codec->registered = 1; codec 818 sound/pci/hda/hda_codec.c struct hda_codec *codec = device->device_data; codec 820 sound/pci/hda/hda_codec.c codec->in_freeing = 1; codec 826 sound/pci/hda/hda_codec.c if (codec->core.type == HDA_DEV_LEGACY) codec 827 sound/pci/hda/hda_codec.c snd_hdac_device_unregister(&codec->core); codec 828 sound/pci/hda/hda_codec.c codec_display_power(codec, false); codec 834 sound/pci/hda/hda_codec.c if (codec->core.type == HDA_DEV_LEGACY) codec 835 sound/pci/hda/hda_codec.c put_device(hda_codec_dev(codec)); codec 842 sound/pci/hda/hda_codec.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 844 sound/pci/hda/hda_codec.c free_init_pincfgs(codec); codec 845 sound/pci/hda/hda_codec.c snd_hdac_device_exit(&codec->core); codec 846 sound/pci/hda/hda_codec.c snd_hda_sysfs_clear(codec); codec 847 sound/pci/hda/hda_codec.c kfree(codec->modelname); codec 848 sound/pci/hda/hda_codec.c kfree(codec->wcaps); codec 854 sound/pci/hda/hda_codec.c if (codec->core.type == HDA_DEV_LEGACY) codec 855 sound/pci/hda/hda_codec.c kfree(codec); codec 864 sound/pci/hda/hda_codec.c struct hda_codec *codec; codec 874 sound/pci/hda/hda_codec.c codec = kzalloc(sizeof(*codec), GFP_KERNEL); codec 875 sound/pci/hda/hda_codec.c if (!codec) codec 879 sound/pci/hda/hda_codec.c err = snd_hdac_device_init(&codec->core, &bus->core, name, codec_addr); codec 881 sound/pci/hda/hda_codec.c kfree(codec); codec 885 sound/pci/hda/hda_codec.c codec->core.type = HDA_DEV_LEGACY; codec 886 sound/pci/hda/hda_codec.c *codecp = codec; codec 913 sound/pci/hda/hda_codec.c unsigned int codec_addr, struct hda_codec *codec) codec 930 sound/pci/hda/hda_codec.c codec->core.dev.release = snd_hda_codec_dev_release; codec 931 sound/pci/hda/hda_codec.c codec->core.exec_verb = codec_exec_verb; codec 933 sound/pci/hda/hda_codec.c codec->bus = bus; codec 934 sound/pci/hda/hda_codec.c codec->card = card; codec 935 sound/pci/hda/hda_codec.c codec->addr = codec_addr; codec 936 sound/pci/hda/hda_codec.c mutex_init(&codec->spdif_mutex); codec 937 sound/pci/hda/hda_codec.c mutex_init(&codec->control_mutex); codec 938 sound/pci/hda/hda_codec.c snd_array_init(&codec->mixers, sizeof(struct hda_nid_item), 32); codec 939 sound/pci/hda/hda_codec.c snd_array_init(&codec->nids, sizeof(struct hda_nid_item), 32); codec 940 sound/pci/hda/hda_codec.c snd_array_init(&codec->init_pins, sizeof(struct hda_pincfg), 16); codec 941 sound/pci/hda/hda_codec.c snd_array_init(&codec->driver_pins, sizeof(struct hda_pincfg), 16); codec 942 sound/pci/hda/hda_codec.c snd_array_init(&codec->cvt_setups, sizeof(struct hda_cvt_setup), 8); codec 943 sound/pci/hda/hda_codec.c snd_array_init(&codec->spdif_out, sizeof(struct hda_spdif_out), 16); codec 944 sound/pci/hda/hda_codec.c snd_array_init(&codec->jacktbl, sizeof(struct hda_jack_tbl), 16); codec 945 sound/pci/hda/hda_codec.c snd_array_init(&codec->verbs, sizeof(struct hda_verb *), 8); codec 946 sound/pci/hda/hda_codec.c INIT_LIST_HEAD(&codec->conn_list); codec 947 sound/pci/hda/hda_codec.c INIT_LIST_HEAD(&codec->pcm_list_head); codec 949 sound/pci/hda/hda_codec.c INIT_DELAYED_WORK(&codec->jackpoll_work, hda_jackpoll_work); codec 950 sound/pci/hda/hda_codec.c codec->depop_delay = -1; codec 951 sound/pci/hda/hda_codec.c codec->fixup_id = HDA_FIXUP_ID_NOT_SET; codec 954 sound/pci/hda/hda_codec.c codec->power_jiffies = jiffies; codec 957 sound/pci/hda/hda_codec.c snd_hda_sysfs_init(codec); codec 959 sound/pci/hda/hda_codec.c if (codec->bus->modelname) { codec 960 sound/pci/hda/hda_codec.c codec->modelname = kstrdup(codec->bus->modelname, GFP_KERNEL); codec 961 sound/pci/hda/hda_codec.c if (!codec->modelname) { codec 967 sound/pci/hda/hda_codec.c fg = codec->core.afg ? codec->core.afg : codec->core.mfg; codec 968 sound/pci/hda/hda_codec.c err = read_widget_caps(codec, fg); codec 971 sound/pci/hda/hda_codec.c err = read_pin_defaults(codec); codec 976 sound/pci/hda/hda_codec.c hda_set_power_state(codec, AC_PWRST_D0); codec 977 sound/pci/hda/hda_codec.c codec->core.dev.power.power_state = PMSG_ON; codec 979 sound/pci/hda/hda_codec.c snd_hda_codec_proc_new(codec); codec 981 sound/pci/hda/hda_codec.c snd_hda_create_hwdep(codec); codec 983 sound/pci/hda/hda_codec.c sprintf(component, "HDA:%08x,%08x,%08x", codec->core.vendor_id, codec 984 sound/pci/hda/hda_codec.c codec->core.subsystem_id, codec->core.revision_id); codec 987 sound/pci/hda/hda_codec.c err = snd_device_new(card, SNDRV_DEV_CODEC, codec, &dev_ops); codec 994 sound/pci/hda/hda_codec.c put_device(hda_codec_dev(codec)); codec 1006 sound/pci/hda/hda_codec.c int snd_hda_codec_update_widgets(struct hda_codec *codec) codec 1011 sound/pci/hda/hda_codec.c err = snd_hdac_refresh_widgets(&codec->core); codec 1018 sound/pci/hda/hda_codec.c kfree(codec->wcaps); codec 1019 sound/pci/hda/hda_codec.c fg = codec->core.afg ? codec->core.afg : codec->core.mfg; codec 1020 sound/pci/hda/hda_codec.c err = read_widget_caps(codec, fg); codec 1024 sound/pci/hda/hda_codec.c snd_array_free(&codec->init_pins); codec 1025 sound/pci/hda/hda_codec.c err = read_pin_defaults(codec); codec 1032 sound/pci/hda/hda_codec.c static void update_pcm_stream_id(struct hda_codec *codec, codec 1039 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0); codec 1042 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, codec 1051 sound/pci/hda/hda_codec.c static void update_pcm_format(struct hda_codec *codec, struct hda_cvt_setup *p, codec 1057 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, nid, 0, codec 1061 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, codec 1077 sound/pci/hda/hda_codec.c void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, codec 1089 sound/pci/hda/hda_codec.c codec_dbg(codec, codec 1092 sound/pci/hda/hda_codec.c p = get_hda_cvt_setup(codec, nid); codec 1096 sound/pci/hda/hda_codec.c if (codec->patch_ops.stream_pm) codec 1097 sound/pci/hda/hda_codec.c codec->patch_ops.stream_pm(codec, nid, true); codec 1098 sound/pci/hda/hda_codec.c if (codec->pcm_format_first) codec 1099 sound/pci/hda/hda_codec.c update_pcm_format(codec, p, nid, format); codec 1100 sound/pci/hda/hda_codec.c update_pcm_stream_id(codec, p, nid, stream_tag, channel_id); codec 1101 sound/pci/hda/hda_codec.c if (!codec->pcm_format_first) codec 1102 sound/pci/hda/hda_codec.c update_pcm_format(codec, p, nid, format); codec 1108 sound/pci/hda/hda_codec.c type = get_wcaps_type(get_wcaps(codec, nid)); codec 1109 sound/pci/hda/hda_codec.c list_for_each_codec(c, codec->bus) { codec 1119 sound/pci/hda/hda_codec.c static void really_cleanup_stream(struct hda_codec *codec, codec 1128 sound/pci/hda/hda_codec.c void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, codec 1136 sound/pci/hda/hda_codec.c if (codec->no_sticky_stream) codec 1139 sound/pci/hda/hda_codec.c codec_dbg(codec, "hda_codec_cleanup_stream: NID=0x%x\n", nid); codec 1140 sound/pci/hda/hda_codec.c p = get_hda_cvt_setup(codec, nid); codec 1147 sound/pci/hda/hda_codec.c really_cleanup_stream(codec, p); codec 1154 sound/pci/hda/hda_codec.c static void really_cleanup_stream(struct hda_codec *codec, codec 1159 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CHANNEL_STREAMID, 0); codec 1161 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, 0 codec 1165 sound/pci/hda/hda_codec.c if (codec->patch_ops.stream_pm) codec 1166 sound/pci/hda/hda_codec.c codec->patch_ops.stream_pm(codec, nid, false); codec 1170 sound/pci/hda/hda_codec.c static void purify_inactive_streams(struct hda_codec *codec) codec 1176 sound/pci/hda/hda_codec.c list_for_each_codec(c, codec->bus) { codec 1186 sound/pci/hda/hda_codec.c static void hda_cleanup_all_streams(struct hda_codec *codec) codec 1191 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->cvt_setups, i, p) { codec 1193 sound/pci/hda/hda_codec.c really_cleanup_stream(codec, p); codec 1214 sound/pci/hda/hda_codec.c u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) codec 1216 sound/pci/hda/hda_codec.c if (!(get_wcaps(codec, nid) & AC_WCAP_AMP_OVRD)) codec 1217 sound/pci/hda/hda_codec.c nid = codec->core.afg; codec 1218 sound/pci/hda/hda_codec.c return snd_hda_param_read(codec, nid, codec 1233 sound/pci/hda/hda_codec.c bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, codec 1238 sound/pci/hda/hda_codec.c if (get_wcaps(codec, nid) & (1 << (dir + 1))) codec 1239 sound/pci/hda/hda_codec.c if (query_amp_caps(codec, nid, dir) & bits) codec 1258 sound/pci/hda/hda_codec.c int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, codec 1263 sound/pci/hda/hda_codec.c snd_hda_override_wcaps(codec, nid, codec 1264 sound/pci/hda/hda_codec.c get_wcaps(codec, nid) | AC_WCAP_AMP_OVRD); codec 1266 sound/pci/hda/hda_codec.c return snd_hdac_override_parm(&codec->core, nid, parm, caps); codec 1270 sound/pci/hda/hda_codec.c static unsigned int encode_amp(struct hda_codec *codec, hda_nid_t nid, codec 1276 sound/pci/hda/hda_codec.c if ((query_amp_caps(codec, nid, dir) & codec 1294 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, codec 1297 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); codec 1299 sound/pci/hda/hda_codec.c return snd_hdac_regmap_update_raw(&codec->core, cmd, mask, val); codec 1315 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, codec 1323 sound/pci/hda/hda_codec.c ret |= snd_hda_codec_amp_update(codec, nid, ch, direction, codec 1343 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, codec 1346 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); codec 1348 sound/pci/hda/hda_codec.c if (!codec->core.regmap) codec 1350 sound/pci/hda/hda_codec.c return snd_hdac_regmap_update_raw_once(&codec->core, cmd, mask, val); codec 1365 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, codec 1373 sound/pci/hda/hda_codec.c ret |= snd_hda_codec_amp_init(codec, nid, ch, dir, codec 1379 sound/pci/hda/hda_codec.c static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, codec 1382 sound/pci/hda/hda_codec.c u32 caps = query_amp_caps(codec, nid, dir); codec 1401 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1410 sound/pci/hda/hda_codec.c uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); codec 1412 sound/pci/hda/hda_codec.c codec_warn(codec, codec 1423 sound/pci/hda/hda_codec.c read_amp_value(struct hda_codec *codec, hda_nid_t nid, codec 1427 sound/pci/hda/hda_codec.c val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); codec 1437 sound/pci/hda/hda_codec.c update_amp_value(struct hda_codec *codec, hda_nid_t nid, codec 1446 sound/pci/hda/hda_codec.c maxval = get_amp_max_value(codec, nid, dir, 0); codec 1449 sound/pci/hda/hda_codec.c return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, codec 1464 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1473 sound/pci/hda/hda_codec.c *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); codec 1475 sound/pci/hda/hda_codec.c *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); codec 1491 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1501 sound/pci/hda/hda_codec.c change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); codec 1505 sound/pci/hda/hda_codec.c change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); codec 1513 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1520 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); codec 1569 sound/pci/hda/hda_codec.c void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, codec 1575 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); codec 1588 sound/pci/hda/hda_codec.c find_mixer_ctl(struct hda_codec *codec, const char *name, int dev, int idx) codec 1598 sound/pci/hda/hda_codec.c return snd_ctl_find_id(codec->card, &id); codec 1608 sound/pci/hda/hda_codec.c struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, codec 1611 sound/pci/hda/hda_codec.c return find_mixer_ctl(codec, name, 0, 0); codec 1615 sound/pci/hda/hda_codec.c static int find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name, codec 1621 sound/pci/hda/hda_codec.c if (!find_mixer_ctl(codec, name, 0, idx)) codec 1646 sound/pci/hda/hda_codec.c int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, codec 1662 sound/pci/hda/hda_codec.c err = snd_ctl_add(codec->card, kctl); codec 1665 sound/pci/hda/hda_codec.c item = snd_array_new(&codec->mixers); codec 1686 sound/pci/hda/hda_codec.c int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, codec 1692 sound/pci/hda/hda_codec.c item = snd_array_new(&codec->nids); codec 1700 sound/pci/hda/hda_codec.c codec_err(codec, "no NID for mapping control %s:%d:%d\n", codec 1710 sound/pci/hda/hda_codec.c void snd_hda_ctls_clear(struct hda_codec *codec) codec 1713 sound/pci/hda/hda_codec.c struct hda_nid_item *items = codec->mixers.list; codec 1714 sound/pci/hda/hda_codec.c for (i = 0; i < codec->mixers.used; i++) codec 1715 sound/pci/hda/hda_codec.c snd_ctl_remove(codec->card, items[i].kctl); codec 1716 sound/pci/hda/hda_codec.c snd_array_free(&codec->mixers); codec 1717 sound/pci/hda/hda_codec.c snd_array_free(&codec->nids); codec 1729 sound/pci/hda/hda_codec.c struct hda_codec *codec; codec 1738 sound/pci/hda/hda_codec.c list_for_each_codec(codec, bus) { codec 1740 sound/pci/hda/hda_codec.c list_for_each_entry(cpcm, &codec->pcm_list_head, list) { codec 1783 sound/pci/hda/hda_codec.c int snd_hda_codec_reset(struct hda_codec *codec) codec 1785 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; codec 1791 sound/pci/hda/hda_codec.c snd_hdac_device_unregister(&codec->core); codec 1801 sound/pci/hda/hda_codec.c static int map_slaves(struct hda_codec *codec, const char * const *slaves, codec 1808 sound/pci/hda/hda_codec.c items = codec->mixers.list; codec 1809 sound/pci/hda/hda_codec.c for (i = 0; i < codec->mixers.used; i++) { codec 1822 sound/pci/hda/hda_codec.c err = func(codec, data, sctl); codec 1832 sound/pci/hda/hda_codec.c static int check_slave_present(struct hda_codec *codec, codec 1853 sound/pci/hda/hda_codec.c struct hda_codec *codec; codec 1870 sound/pci/hda/hda_codec.c codec_err(arg->codec, codec 1888 sound/pci/hda/hda_codec.c codec_err(arg->codec, codec 1912 sound/pci/hda/hda_codec.c static int add_slave(struct hda_codec *codec, codec 1937 sound/pci/hda/hda_codec.c int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, codec 1948 sound/pci/hda/hda_codec.c err = map_slaves(codec, slaves, suffix, check_slave_present, NULL); codec 1950 sound/pci/hda/hda_codec.c codec_dbg(codec, "No slave found for %s\n", name); codec 1956 sound/pci/hda/hda_codec.c err = snd_hda_ctl_add(codec, 0, kctl); codec 1960 sound/pci/hda/hda_codec.c err = map_slaves(codec, slaves, suffix, add_slave, kctl); codec 1968 sound/pci/hda/hda_codec.c .codec = codec, codec 2033 sound/pci/hda/hda_codec.c hook->hook(hook->codec, enabled); codec 2046 sound/pci/hda/hda_codec.c int snd_hda_add_vmaster_hook(struct hda_codec *codec, codec 2054 sound/pci/hda/hda_codec.c hook->codec = codec; codec 2062 sound/pci/hda/hda_codec.c return snd_hda_ctl_add(codec, 0, kctl); codec 2075 sound/pci/hda/hda_codec.c if (!hook->hook || !hook->codec) codec 2080 sound/pci/hda/hda_codec.c if (hook->codec->bus->shutdown) codec 2119 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2127 sound/pci/hda/hda_codec.c *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) & codec 2130 sound/pci/hda/hda_codec.c *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) & codec 2147 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2156 sound/pci/hda/hda_codec.c change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx, codec 2162 sound/pci/hda/hda_codec.c change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx, codec 2165 sound/pci/hda/hda_codec.c hda_call_check_power_status(codec, nid); codec 2206 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2210 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2212 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2213 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2218 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2277 sound/pci/hda/hda_codec.c static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, codec 2282 sound/pci/hda/hda_codec.c snd_hdac_regmap_update(&codec->core, nid, AC_VERB_SET_DIGI_CONVERT_1, codec 2284 sound/pci/hda/hda_codec.c d = codec->slave_dig_outs; codec 2288 sound/pci/hda/hda_codec.c snd_hdac_regmap_update(&codec->core, *d, codec 2292 sound/pci/hda/hda_codec.c static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, codec 2306 sound/pci/hda/hda_codec.c set_dig_out(codec, nid, mask, val); codec 2312 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2319 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2321 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2322 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2333 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, val & 0xff, (val >> 8) & 0xff); codec 2334 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2343 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2347 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2349 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2350 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2352 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2356 sound/pci/hda/hda_codec.c static inline void set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, codec 2359 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, dig1, dig2); codec 2361 sound/pci/hda/hda_codec.c if ((get_wcaps(codec, nid) & AC_WCAP_OUT_AMP) && codec 2363 sound/pci/hda/hda_codec.c snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, codec 2370 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2377 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2379 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2380 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2388 sound/pci/hda/hda_codec.c set_spdif_ctls(codec, nid, val & 0xff, -1); codec 2389 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2436 sound/pci/hda/hda_codec.c int snd_hda_create_dig_out_ctls(struct hda_codec *codec, codec 2448 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; codec 2457 sound/pci/hda/hda_codec.c kctl = find_mixer_ctl(codec, dig_mix->name, 0, 0); codec 2467 sound/pci/hda/hda_codec.c idx = find_empty_mixer_ctl_idx(codec, "IEC958 Playback Switch", idx); codec 2469 sound/pci/hda/hda_codec.c codec_err(codec, "too many IEC958 outputs\n"); codec 2472 sound/pci/hda/hda_codec.c spdif = snd_array_new(&codec->spdif_out); codec 2476 sound/pci/hda/hda_codec.c kctl = snd_ctl_new1(dig_mix, codec); codec 2480 sound/pci/hda/hda_codec.c kctl->private_value = codec->spdif_out.used - 1; codec 2481 sound/pci/hda/hda_codec.c err = snd_hda_ctl_add(codec, associated_nid, kctl); codec 2486 sound/pci/hda/hda_codec.c snd_hdac_regmap_read(&codec->core, cvt_nid, codec 2501 sound/pci/hda/hda_codec.c struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec, codec 2507 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->spdif_out, i, spdif) { codec 2522 sound/pci/hda/hda_codec.c void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx) codec 2526 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2528 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2529 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2531 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2543 sound/pci/hda/hda_codec.c void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) codec 2548 sound/pci/hda/hda_codec.c if (WARN_ON(codec->spdif_out.used <= idx)) codec 2550 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2551 sound/pci/hda/hda_codec.c spdif = snd_array_elem(&codec->spdif_out, idx); codec 2555 sound/pci/hda/hda_codec.c set_spdif_ctls(codec, nid, val & 0xff, (val >> 8) & 0xff); codec 2557 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2593 sound/pci/hda/hda_codec.c int snd_hda_create_spdif_share_sw(struct hda_codec *codec, codec 2605 sound/pci/hda/hda_codec.c return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl); codec 2618 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2620 sound/pci/hda/hda_codec.c ucontrol->value.integer.value[0] = codec->spdif_in_enable; codec 2627 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2632 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 2633 sound/pci/hda/hda_codec.c change = codec->spdif_in_enable != val; codec 2635 sound/pci/hda/hda_codec.c codec->spdif_in_enable = val; codec 2636 sound/pci/hda/hda_codec.c snd_hdac_regmap_write(&codec->core, nid, codec 2639 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 2646 sound/pci/hda/hda_codec.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2651 sound/pci/hda/hda_codec.c snd_hdac_regmap_read(&codec->core, nid, codec 2689 sound/pci/hda/hda_codec.c int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) codec 2696 sound/pci/hda/hda_codec.c idx = find_empty_mixer_ctl_idx(codec, "IEC958 Capture Switch", 0); codec 2698 sound/pci/hda/hda_codec.c codec_err(codec, "too many IEC958 inputs\n"); codec 2702 sound/pci/hda/hda_codec.c kctl = snd_ctl_new1(dig_mix, codec); codec 2706 sound/pci/hda/hda_codec.c err = snd_hda_ctl_add(codec, nid, kctl); codec 2710 sound/pci/hda/hda_codec.c codec->spdif_in_enable = codec 2711 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, nid, 0, codec 2728 sound/pci/hda/hda_codec.c void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, codec 2733 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { codec 2734 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); codec 2738 sound/pci/hda/hda_codec.c if (codec->power_filter) { codec 2739 sound/pci/hda/hda_codec.c state = codec->power_filter(codec, nid, power_state); codec 2743 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_POWER_STATE, codec 2758 sound/pci/hda/hda_codec.c unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, codec 2762 sound/pci/hda/hda_codec.c if (nid == codec->core.afg || nid == codec->core.mfg) codec 2765 sound/pci/hda/hda_codec.c get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_PIN && codec 2766 sound/pci/hda/hda_codec.c (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) { codec 2767 sound/pci/hda/hda_codec.c int eapd = snd_hda_codec_read(codec, nid, 0, codec 2779 sound/pci/hda/hda_codec.c static unsigned int hda_set_power_state(struct hda_codec *codec, codec 2782 sound/pci/hda/hda_codec.c hda_nid_t fg = codec->core.afg ? codec->core.afg : codec->core.mfg; codec 2789 sound/pci/hda/hda_codec.c if (codec->depop_delay < 0) codec 2790 sound/pci/hda/hda_codec.c msleep(codec_has_epss(codec) ? 10 : 100); codec 2791 sound/pci/hda/hda_codec.c else if (codec->depop_delay > 0) codec 2792 sound/pci/hda/hda_codec.c msleep(codec->depop_delay); codec 2798 sound/pci/hda/hda_codec.c if (codec->patch_ops.set_power_state) codec 2799 sound/pci/hda/hda_codec.c codec->patch_ops.set_power_state(codec, fg, codec 2803 sound/pci/hda/hda_codec.c if (codec->power_filter) codec 2804 sound/pci/hda/hda_codec.c state = codec->power_filter(codec, fg, state); codec 2806 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, fg, flags, codec 2809 sound/pci/hda/hda_codec.c snd_hda_codec_set_power_to_all(codec, fg, power_state); codec 2811 sound/pci/hda/hda_codec.c state = snd_hda_sync_power_state(codec, fg, power_state); codec 2822 sound/pci/hda/hda_codec.c static void sync_power_up_states(struct hda_codec *codec) codec 2827 sound/pci/hda/hda_codec.c if (!codec->power_filter) codec 2830 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { codec 2831 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); codec 2835 sound/pci/hda/hda_codec.c target = codec->power_filter(codec, nid, AC_PWRST_D0); codec 2838 sound/pci/hda/hda_codec.c if (!snd_hda_check_power_state(codec, nid, target)) codec 2839 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, codec 2846 sound/pci/hda/hda_codec.c static void hda_exec_init_verbs(struct hda_codec *codec) codec 2848 sound/pci/hda/hda_codec.c if (codec->init_verbs.list) codec 2849 sound/pci/hda/hda_codec.c snd_hda_sequence_write(codec, codec->init_verbs.list); codec 2852 sound/pci/hda/hda_codec.c static inline void hda_exec_init_verbs(struct hda_codec *codec) {} codec 2857 sound/pci/hda/hda_codec.c static void update_power_acct(struct hda_codec *codec, bool on) codec 2859 sound/pci/hda/hda_codec.c unsigned long delta = jiffies - codec->power_jiffies; codec 2862 sound/pci/hda/hda_codec.c codec->power_on_acct += delta; codec 2864 sound/pci/hda/hda_codec.c codec->power_off_acct += delta; codec 2865 sound/pci/hda/hda_codec.c codec->power_jiffies += delta; codec 2868 sound/pci/hda/hda_codec.c void snd_hda_update_power_acct(struct hda_codec *codec) codec 2870 sound/pci/hda/hda_codec.c update_power_acct(codec, hda_codec_is_power_on(codec)); codec 2877 sound/pci/hda/hda_codec.c static unsigned int hda_call_codec_suspend(struct hda_codec *codec) codec 2881 sound/pci/hda/hda_codec.c snd_hdac_enter_pm(&codec->core); codec 2882 sound/pci/hda/hda_codec.c if (codec->patch_ops.suspend) codec 2883 sound/pci/hda/hda_codec.c codec->patch_ops.suspend(codec); codec 2884 sound/pci/hda/hda_codec.c hda_cleanup_all_streams(codec); codec 2885 sound/pci/hda/hda_codec.c state = hda_set_power_state(codec, AC_PWRST_D3); codec 2886 sound/pci/hda/hda_codec.c update_power_acct(codec, true); codec 2887 sound/pci/hda/hda_codec.c snd_hdac_leave_pm(&codec->core); codec 2894 sound/pci/hda/hda_codec.c static void hda_call_codec_resume(struct hda_codec *codec) codec 2896 sound/pci/hda/hda_codec.c snd_hdac_enter_pm(&codec->core); codec 2897 sound/pci/hda/hda_codec.c if (codec->core.regmap) codec 2898 sound/pci/hda/hda_codec.c regcache_mark_dirty(codec->core.regmap); codec 2900 sound/pci/hda/hda_codec.c codec->power_jiffies = jiffies; codec 2902 sound/pci/hda/hda_codec.c hda_set_power_state(codec, AC_PWRST_D0); codec 2903 sound/pci/hda/hda_codec.c restore_shutup_pins(codec); codec 2904 sound/pci/hda/hda_codec.c hda_exec_init_verbs(codec); codec 2905 sound/pci/hda/hda_codec.c snd_hda_jack_set_dirty_all(codec); codec 2906 sound/pci/hda/hda_codec.c if (codec->patch_ops.resume) codec 2907 sound/pci/hda/hda_codec.c codec->patch_ops.resume(codec); codec 2909 sound/pci/hda/hda_codec.c if (codec->patch_ops.init) codec 2910 sound/pci/hda/hda_codec.c codec->patch_ops.init(codec); codec 2911 sound/pci/hda/hda_codec.c snd_hda_regmap_sync(codec); codec 2914 sound/pci/hda/hda_codec.c if (codec->jackpoll_interval) codec 2915 sound/pci/hda/hda_codec.c hda_jackpoll_work(&codec->jackpoll_work.work); codec 2917 sound/pci/hda/hda_codec.c snd_hda_jack_report_sync(codec); codec 2918 sound/pci/hda/hda_codec.c codec->core.dev.power.power_state = PMSG_ON; codec 2919 sound/pci/hda/hda_codec.c snd_hdac_leave_pm(&codec->core); codec 2924 sound/pci/hda/hda_codec.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 2927 sound/pci/hda/hda_codec.c cancel_delayed_work_sync(&codec->jackpoll_work); codec 2928 sound/pci/hda/hda_codec.c state = hda_call_codec_suspend(codec); codec 2929 sound/pci/hda/hda_codec.c if (codec->link_down_at_suspend || codec 2930 sound/pci/hda/hda_codec.c (codec_has_clkstop(codec) && codec_has_epss(codec) && codec 2932 sound/pci/hda/hda_codec.c snd_hdac_codec_link_down(&codec->core); codec 2933 sound/pci/hda/hda_codec.c codec_display_power(codec, false); codec 2939 sound/pci/hda/hda_codec.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 2941 sound/pci/hda/hda_codec.c codec_display_power(codec, true); codec 2942 sound/pci/hda/hda_codec.c snd_hdac_codec_link_up(&codec->core); codec 2943 sound/pci/hda/hda_codec.c hda_call_codec_resume(codec); codec 2952 sound/pci/hda/hda_codec.c struct hda_codec *codec = dev_to_hda_codec(dev); codec 2953 sound/pci/hda/hda_codec.c bool forced_resume = !codec->relaxed_resume && codec->jacktbl.used; codec 3016 sound/pci/hda/hda_codec.c static int add_std_chmaps(struct hda_codec *codec) codec 3021 sound/pci/hda/hda_codec.c list_for_each_entry(pcm, &codec->pcm_list_head, list) { codec 3054 sound/pci/hda/hda_codec.c int snd_hda_codec_build_controls(struct hda_codec *codec) codec 3057 sound/pci/hda/hda_codec.c hda_exec_init_verbs(codec); codec 3059 sound/pci/hda/hda_codec.c if (codec->patch_ops.init) codec 3060 sound/pci/hda/hda_codec.c err = codec->patch_ops.init(codec); codec 3061 sound/pci/hda/hda_codec.c if (!err && codec->patch_ops.build_controls) codec 3062 sound/pci/hda/hda_codec.c err = codec->patch_ops.build_controls(codec); codec 3067 sound/pci/hda/hda_codec.c err = add_std_chmaps(codec); codec 3071 sound/pci/hda/hda_codec.c if (codec->jackpoll_interval) codec 3072 sound/pci/hda/hda_codec.c hda_jackpoll_work(&codec->jackpoll_work.work); codec 3074 sound/pci/hda/hda_codec.c snd_hda_jack_report_sync(codec); /* call at the last init point */ codec 3075 sound/pci/hda/hda_codec.c sync_power_up_states(codec); codec 3084 sound/pci/hda/hda_codec.c struct hda_codec *codec, codec 3091 sound/pci/hda/hda_codec.c struct hda_codec *codec, codec 3096 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); codec 3101 sound/pci/hda/hda_codec.c struct hda_codec *codec, codec 3104 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); codec 3108 sound/pci/hda/hda_codec.c static int set_pcm_default_values(struct hda_codec *codec, codec 3115 sound/pci/hda/hda_codec.c err = snd_hda_query_supported_pcm(codec, info->nid, codec 3153 sound/pci/hda/hda_codec.c int snd_hda_codec_prepare(struct hda_codec *codec, codec 3160 sound/pci/hda/hda_codec.c mutex_lock(&codec->bus->prepare_mutex); codec 3162 sound/pci/hda/hda_codec.c ret = hinfo->ops.prepare(hinfo, codec, stream, format, codec 3167 sound/pci/hda/hda_codec.c purify_inactive_streams(codec); codec 3168 sound/pci/hda/hda_codec.c mutex_unlock(&codec->bus->prepare_mutex); codec 3181 sound/pci/hda/hda_codec.c void snd_hda_codec_cleanup(struct hda_codec *codec, codec 3185 sound/pci/hda/hda_codec.c mutex_lock(&codec->bus->prepare_mutex); codec 3187 sound/pci/hda/hda_codec.c hinfo->ops.cleanup(hinfo, codec, substream); codec 3188 sound/pci/hda/hda_codec.c mutex_unlock(&codec->bus->prepare_mutex); codec 3246 sound/pci/hda/hda_codec.c int snd_hda_codec_parse_pcms(struct hda_codec *codec) codec 3251 sound/pci/hda/hda_codec.c if (!list_empty(&codec->pcm_list_head)) codec 3254 sound/pci/hda/hda_codec.c if (!codec->patch_ops.build_pcms) codec 3257 sound/pci/hda/hda_codec.c err = codec->patch_ops.build_pcms(codec); codec 3259 sound/pci/hda/hda_codec.c codec_err(codec, "cannot build PCMs for #%d (error %d)\n", codec 3260 sound/pci/hda/hda_codec.c codec->core.addr, err); codec 3264 sound/pci/hda/hda_codec.c list_for_each_entry(cpcm, &codec->pcm_list_head, list) { codec 3272 sound/pci/hda/hda_codec.c err = set_pcm_default_values(codec, info); codec 3274 sound/pci/hda/hda_codec.c codec_warn(codec, codec 3287 sound/pci/hda/hda_codec.c int snd_hda_codec_build_pcms(struct hda_codec *codec) codec 3289 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; codec 3293 sound/pci/hda/hda_codec.c err = snd_hda_codec_parse_pcms(codec); codec 3298 sound/pci/hda/hda_codec.c list_for_each_entry(cpcm, &codec->pcm_list_head, list) { codec 3310 sound/pci/hda/hda_codec.c err = snd_hda_attach_pcm_stream(bus, codec, cpcm); codec 3312 sound/pci/hda/hda_codec.c codec_err(codec, codec 3314 sound/pci/hda/hda_codec.c dev, codec->core.addr); codec 3332 sound/pci/hda/hda_codec.c int snd_hda_add_new_ctls(struct hda_codec *codec, codec 3343 sound/pci/hda/hda_codec.c kctl = snd_ctl_new1(knew, codec); codec 3350 sound/pci/hda/hda_codec.c err = snd_hda_ctl_add(codec, 0, kctl); codec 3357 sound/pci/hda/hda_codec.c if (!addr && codec->core.addr) codec 3358 sound/pci/hda/hda_codec.c addr = codec->core.addr; codec 3360 sound/pci/hda/hda_codec.c idx = find_empty_mixer_ctl_idx(codec, codec 3373 sound/pci/hda/hda_codec.c static void codec_set_power_save(struct hda_codec *codec, int delay) codec 3375 sound/pci/hda/hda_codec.c struct device *dev = hda_codec_dev(codec); codec 3377 sound/pci/hda/hda_codec.c if (delay == 0 && codec->auto_runtime_pm) codec 3421 sound/pci/hda/hda_codec.c int snd_hda_check_amp_list_power(struct hda_codec *codec, codec 3439 sound/pci/hda/hda_codec.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, codec 3444 sound/pci/hda/hda_codec.c snd_hda_power_up_pm(codec); codec 3452 sound/pci/hda/hda_codec.c snd_hda_power_down_pm(codec); codec 3494 sound/pci/hda/hda_codec.c int snd_hda_input_mux_put(struct hda_codec *codec, codec 3509 sound/pci/hda/hda_codec.c snd_hda_codec_write_cache(codec, nid, 0, AC_VERB_SET_CONNECT_SEL, codec 3549 sound/pci/hda/hda_codec.c static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, codec 3556 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, nid); codec 3563 sound/pci/hda/hda_codec.c curr_fmt = snd_hda_codec_read(codec, nid, 0, codec 3565 sound/pci/hda/hda_codec.c reset = codec->spdif_status_reset && codec 3572 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, codec 3575 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format); codec 3576 sound/pci/hda/hda_codec.c if (codec->slave_dig_outs) { codec 3578 sound/pci/hda/hda_codec.c for (d = codec->slave_dig_outs; *d; d++) codec 3579 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, *d, stream_tag, 0, codec 3584 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, codec 3588 sound/pci/hda/hda_codec.c static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) codec 3590 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, nid); codec 3591 sound/pci/hda/hda_codec.c if (codec->slave_dig_outs) { codec 3593 sound/pci/hda/hda_codec.c for (d = codec->slave_dig_outs; *d; d++) codec 3594 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, *d); codec 3603 sound/pci/hda/hda_codec.c int snd_hda_multi_out_dig_open(struct hda_codec *codec, codec 3606 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3609 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); codec 3611 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3624 sound/pci/hda/hda_codec.c int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, codec 3630 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3631 sound/pci/hda/hda_codec.c setup_dig_out_stream(codec, mout->dig_out_nid, stream_tag, format); codec 3632 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3642 sound/pci/hda/hda_codec.c int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, codec 3645 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3646 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); codec 3647 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3657 sound/pci/hda/hda_codec.c int snd_hda_multi_out_dig_close(struct hda_codec *codec, codec 3660 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3662 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3678 sound/pci/hda/hda_codec.c int snd_hda_multi_out_analog_open(struct hda_codec *codec, codec 3696 sound/pci/hda/hda_codec.c snd_hda_query_supported_pcm(codec, mout->dig_out_nid, codec 3701 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3714 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3732 sound/pci/hda/hda_codec.c int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, codec 3743 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3744 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); codec 3748 sound/pci/hda/hda_codec.c snd_hda_is_supported_format(codec, mout->dig_out_nid, codec 3752 sound/pci/hda/hda_codec.c setup_dig_out_stream(codec, mout->dig_out_nid, codec 3756 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); codec 3759 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3762 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, nids[HDA_FRONT], stream_tag, codec 3767 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, mout->hp_nid, stream_tag, codec 3772 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, codec 3779 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, nids[i], stream_tag, codec 3782 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, nids[i], stream_tag, codec 3795 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, mout->extra_out_nid[i], codec 3808 sound/pci/hda/hda_codec.c int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, codec 3815 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, nids[i]); codec 3817 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, mout->hp_nid); codec 3820 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, codec 3824 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, codec 3826 sound/pci/hda/hda_codec.c mutex_lock(&codec->spdif_mutex); codec 3828 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); codec 3831 sound/pci/hda/hda_codec.c mutex_unlock(&codec->spdif_mutex); codec 3844 sound/pci/hda/hda_codec.c unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) codec 3848 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, pin, 0, codec 3850 sound/pci/hda/hda_codec.c pincap = snd_hda_query_pin_caps(codec, pin); codec 3871 sound/pci/hda/hda_codec.c unsigned int snd_hda_correct_pin_ctl(struct hda_codec *codec, codec 3884 sound/pci/hda/hda_codec.c cap = snd_hda_query_pin_caps(codec, pin); codec 3934 sound/pci/hda/hda_codec.c int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, codec 3937 sound/pci/hda/hda_codec.c val = snd_hda_correct_pin_ctl(codec, pin, val); codec 3938 sound/pci/hda/hda_codec.c snd_hda_codec_set_pin_target(codec, pin, val); codec 3940 sound/pci/hda/hda_codec.c return snd_hda_codec_write_cache(codec, pin, 0, codec 3943 sound/pci/hda/hda_codec.c return snd_hda_codec_write(codec, pin, 0, codec 3960 sound/pci/hda/hda_codec.c int snd_hda_add_imux_item(struct hda_codec *codec, codec 3966 sound/pci/hda/hda_codec.c codec_err(codec, "hda_codec: Too many imux items!\n"); codec 3994 sound/pci/hda/hda_codec.c struct hda_codec *codec; codec 3996 sound/pci/hda/hda_codec.c list_for_each_codec(codec, bus) { codec 3998 sound/pci/hda/hda_codec.c if (current_work() != &codec->jackpoll_work.work) codec 3999 sound/pci/hda/hda_codec.c cancel_delayed_work_sync(&codec->jackpoll_work); codec 4001 sound/pci/hda/hda_codec.c if (hda_codec_is_power_on(codec)) { codec 4002 sound/pci/hda/hda_codec.c hda_call_codec_suspend(codec); codec 4003 sound/pci/hda/hda_codec.c hda_call_codec_resume(codec); codec 72 sound/pci/hda/hda_controller.c codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); codec 97 sound/pci/hda/hda_controller.c hinfo->ops.close(hinfo, apcm->codec, substream); codec 98 sound/pci/hda/hda_controller.c snd_hda_power_down(apcm->codec); codec 142 sound/pci/hda/hda_controller.c snd_hda_codec_cleanup(apcm->codec, hinfo, substream); codec 160 sound/pci/hda/hda_controller.c snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); codec 195 sound/pci/hda/hda_controller.c err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, codec 316 sound/pci/hda/hda_controller.c delay += hinfo->ops.get_delay(hinfo, apcm->codec, codec 642 sound/pci/hda/hda_controller.c snd_hda_power_up(apcm->codec); codec 644 sound/pci/hda/hda_controller.c err = hinfo->ops.open(hinfo, apcm->codec, substream); codec 659 sound/pci/hda/hda_controller.c hinfo->ops.close(hinfo, apcm->codec, substream); codec 676 sound/pci/hda/hda_controller.c snd_hda_power_down(apcm->codec); codec 719 sound/pci/hda/hda_controller.c int snd_hda_attach_pcm_stream(struct hda_bus *_bus, struct hda_codec *codec, codec 752 sound/pci/hda/hda_controller.c apcm->codec = codec; codec 1022 sound/pci/hda/hda_controller.c int snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, codec 1026 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; codec 1056 sound/pci/hda/hda_controller.c void snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) codec 1058 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; codec 1066 sound/pci/hda/hda_controller.c void snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, codec 1069 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; codec 1297 sound/pci/hda/hda_controller.c struct hda_codec *codec; codec 1298 sound/pci/hda/hda_controller.c err = snd_hda_codec_new(&chip->bus, chip->card, c, &codec); codec 1301 sound/pci/hda/hda_controller.c codec->jackpoll_interval = chip->jackpoll_interval; codec 1302 sound/pci/hda/hda_controller.c codec->beep_mode = chip->beep_mode; codec 1317 sound/pci/hda/hda_controller.c struct hda_codec *codec, *next; codec 1322 sound/pci/hda/hda_controller.c list_for_each_codec_safe(codec, next, &chip->bus) { codec 1323 sound/pci/hda/hda_controller.c snd_hda_codec_configure(codec); codec 88 sound/pci/hda/hda_controller.h struct hda_codec *codec; codec 122 sound/pci/hda/hda_eld.c static unsigned int hdmi_get_eld_data(struct hda_codec *codec, hda_nid_t nid, codec 127 sound/pci/hda/hda_eld.c val = snd_hda_codec_read(codec, nid, 0, codec 130 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: ELD data byte %d: 0x%x\n", byte_index, val); codec 144 sound/pci/hda/hda_eld.c static void hdmi_update_short_audio_desc(struct hda_codec *codec, codec 166 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: audio coding type 0 not expected\n"); codec 210 sound/pci/hda/hda_eld.c codec_info(codec, codec 224 sound/pci/hda/hda_eld.c int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e, codec 234 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: Unknown ELD version %d\n", e->eld_ver); codec 257 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: MNL is reserved value %d\n", mnl); codec 260 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: out of range MNL %d\n", mnl); codec 267 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: out of range SAD %d\n", i); codec 270 sound/pci/hda/hda_eld.c hdmi_update_short_audio_desc(codec, e->sad + i, codec 288 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) codec 290 sound/pci/hda/hda_eld.c return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_HDMI_DIP_SIZE, codec 294 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, codec 306 sound/pci/hda/hda_eld.c size = snd_hdmi_get_eld_size(codec, nid); codec 309 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: ELD buf size is 0, force 128\n"); codec 313 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: invalid ELD buf size %d\n", size); codec 319 sound/pci/hda/hda_eld.c unsigned int val = hdmi_get_eld_data(codec, nid, i); codec 325 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI: invalid ELD data byte %d\n", i); codec 337 sound/pci/hda/hda_eld.c codec_dbg(codec, "HDMI: 0 ELD data\n"); codec 371 sound/pci/hda/hda_eld.c static void hdmi_show_short_audio_desc(struct hda_codec *codec, codec 390 sound/pci/hda/hda_eld.c codec_dbg(codec, codec 396 sound/pci/hda/hda_eld.c void snd_hdmi_show_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e) codec 400 sound/pci/hda/hda_eld.c codec_dbg(codec, "HDMI: detected monitor %s at connection type %s\n", codec 407 sound/pci/hda/hda_eld.c codec_dbg(codec, "HDMI: available speakers:%s\n", buf); codec 411 sound/pci/hda/hda_eld.c hdmi_show_short_audio_desc(codec, e->sad + i); codec 632 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, codec 641 sound/pci/hda/hda_eld.c spkalloc = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SPEAKER_ALLOCATION, 0); codec 644 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI ATI/AMD: no speaker allocation for ELD\n"); codec 665 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PORT_ID_LOW); codec 666 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 669 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PORT_ID_HIGH); codec 670 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 673 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_MANUFACTURER_ID); codec 674 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 677 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PRODUCT_ID); codec 678 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 681 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_SINK_DESC_LEN); codec 682 sound/pci/hda/hda_eld.c sink_desc_len = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 685 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI ATI/AMD: Truncating HDMI sink description with length %d\n", codec 693 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_SINK_DESC_FIRST + i); codec 694 sound/pci/hda/hda_eld.c buf[pos++] = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); codec 702 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_AUDIO_DESCRIPTOR, i << 3); codec 703 sound/pci/hda/hda_eld.c ati_sad = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_AUDIO_DESCRIPTOR, 0); codec 727 sound/pci/hda/hda_eld.c codec_info(codec, "HDMI ATI/AMD: no audio descriptors for ELD\n"); codec 744 sound/pci/hda/hda_eld.c aud_synch = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_AUDIO_VIDEO_DELAY, 0); codec 99 sound/pci/hda/hda_generic.c static void parse_user_hints(struct hda_codec *codec) codec 101 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 104 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "jack_detect"); codec 106 sound/pci/hda/hda_generic.c codec->no_jack_detect = !val; codec 107 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); codec 109 sound/pci/hda/hda_generic.c codec->inv_jack_detect = !!val; codec 110 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "trigger_sense"); codec 112 sound/pci/hda/hda_generic.c codec->no_trigger_sense = !val; codec 113 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "inv_eapd"); codec 115 sound/pci/hda/hda_generic.c codec->inv_eapd = !!val; codec 116 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "pcm_format_first"); codec 118 sound/pci/hda/hda_generic.c codec->pcm_format_first = !!val; codec 119 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "sticky_stream"); codec 121 sound/pci/hda/hda_generic.c codec->no_sticky_stream = !val; codec 122 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "spdif_status_reset"); codec 124 sound/pci/hda/hda_generic.c codec->spdif_status_reset = !!val; codec 125 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "pin_amp_workaround"); codec 127 sound/pci/hda/hda_generic.c codec->pin_amp_workaround = !!val; codec 128 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "single_adc_amp"); codec 130 sound/pci/hda/hda_generic.c codec->single_adc_amp = !!val; codec 131 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "power_save_node"); codec 133 sound/pci/hda/hda_generic.c codec->power_save_node = !!val; codec 135 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "auto_mute"); codec 138 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "auto_mic"); codec 141 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "line_in_auto_switch"); codec 144 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "auto_mute_via_amp"); codec 147 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "need_dac_fix"); codec 150 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "primary_hp"); codec 153 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "multi_io"); codec 156 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "multi_cap_vol"); codec 159 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "inv_dmic_split"); codec 162 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "indep_hp"); codec 165 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "add_stereo_mix_input"); codec 169 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "add_out_jack_modes"); codec 172 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "add_in_jack_modes"); codec 175 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "add_jack_modes"); codec 178 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "power_down_unused"); codec 181 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "add_hp_mic"); codec 184 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "hp_mic_detect"); codec 187 sound/pci/hda/hda_generic.c val = snd_hda_get_bool_hint(codec, "vmaster"); codec 191 sound/pci/hda/hda_generic.c if (!snd_hda_get_int_hint(codec, "mixer_nid", &val)) codec 199 sound/pci/hda/hda_generic.c #define update_pin_ctl(codec, pin, val) \ codec 200 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, pin, 0, \ codec 204 sound/pci/hda/hda_generic.c static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) codec 206 sound/pci/hda/hda_generic.c update_pin_ctl(codec, pin, snd_hda_codec_get_pin_target(codec, pin)); codec 210 sound/pci/hda/hda_generic.c static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, codec 215 sound/pci/hda/hda_generic.c val = snd_hda_correct_pin_ctl(codec, pin, val); codec 216 sound/pci/hda/hda_generic.c snd_hda_codec_set_pin_target(codec, pin, val); codec 218 sound/pci/hda/hda_generic.c update_pin_ctl(codec, pin, val); codec 222 sound/pci/hda/hda_generic.c static void set_pin_targets(struct hda_codec *codec, int num_pins, codec 227 sound/pci/hda/hda_generic.c set_pin_target(codec, pins[i], val, false); codec 250 sound/pci/hda/hda_generic.c static struct nid_path *get_nid_path(struct hda_codec *codec, codec 254 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 281 sound/pci/hda/hda_generic.c int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) codec 283 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 302 sound/pci/hda/hda_generic.c struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) codec 304 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 313 sound/pci/hda/hda_generic.c static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) codec 315 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 327 sound/pci/hda/hda_generic.c static bool is_reachable_path(struct hda_codec *codec, codec 332 sound/pci/hda/hda_generic.c return snd_hda_get_conn_index(codec, to_nid, from_nid, true) >= 0; codec 339 sound/pci/hda/hda_generic.c static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) codec 341 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 354 sound/pci/hda/hda_generic.c static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, codec 358 sound/pci/hda/hda_generic.c return is_ctl_used(codec, val, type); codec 361 sound/pci/hda/hda_generic.c static void print_nid_path(struct hda_codec *codec, codec 374 sound/pci/hda/hda_generic.c codec_dbg(codec, "%s path: depth=%d '%s'\n", pfx, path->depth, buf); codec 378 sound/pci/hda/hda_generic.c static bool __parse_nid_path(struct hda_codec *codec, codec 391 sound/pci/hda/hda_generic.c nums = snd_hda_get_conn_list(codec, to_nid, &conn); codec 398 sound/pci/hda/hda_generic.c get_wcaps_type(get_wcaps(codec, conn[i])) != AC_WID_AUD_OUT || codec 399 sound/pci/hda/hda_generic.c is_dac_already_used(codec, conn[i])) codec 410 sound/pci/hda/hda_generic.c type = get_wcaps_type(get_wcaps(codec, conn[i])); codec 414 sound/pci/hda/hda_generic.c if (__parse_nid_path(codec, from_nid, conn[i], codec 423 sound/pci/hda/hda_generic.c if (nums > 1 && get_wcaps_type(get_wcaps(codec, to_nid)) != AC_WID_AUD_MIX) codec 448 sound/pci/hda/hda_generic.c static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, codec 452 sound/pci/hda/hda_generic.c if (__parse_nid_path(codec, from_nid, to_nid, anchor_nid, path, 1)) { codec 471 sound/pci/hda/hda_generic.c snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, codec 474 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 477 sound/pci/hda/hda_generic.c if (from_nid && to_nid && !is_reachable_path(codec, from_nid, to_nid)) codec 481 sound/pci/hda/hda_generic.c path = get_nid_path(codec, from_nid, to_nid, anchor_nid); codec 489 sound/pci/hda/hda_generic.c if (snd_hda_parse_nid_path(codec, from_nid, to_nid, anchor_nid, path)) codec 498 sound/pci/hda/hda_generic.c static void invalidate_nid_path(struct hda_codec *codec, int idx) codec 500 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, idx); codec 507 sound/pci/hda/hda_generic.c static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) codec 509 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 521 sound/pci/hda/hda_generic.c static hda_nid_t look_for_dac(struct hda_codec *codec, hda_nid_t pin, codec 524 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 530 sound/pci/hda/hda_generic.c if (!nid || is_dac_already_used(codec, nid)) codec 532 sound/pci/hda/hda_generic.c cap_digital = !!(get_wcaps(codec, nid) & AC_WCAP_DIGITAL); codec 535 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) codec 549 sound/pci/hda/hda_generic.c static bool same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, codec 552 sound/pci/hda/hda_generic.c if (!(get_wcaps(codec, nid1) & (1 << (dir + 1)))) codec 553 sound/pci/hda/hda_generic.c return !(get_wcaps(codec, nid2) & (1 << (dir + 1))); codec 554 sound/pci/hda/hda_generic.c return (query_amp_caps(codec, nid1, dir) == codec 555 sound/pci/hda/hda_generic.c query_amp_caps(codec, nid2, dir)); codec 559 sound/pci/hda/hda_generic.c static hda_nid_t look_for_out_mute_nid(struct hda_codec *codec, codec 565 sound/pci/hda/hda_generic.c if (nid_has_mute(codec, path->path[i], HDA_OUTPUT)) codec 568 sound/pci/hda/hda_generic.c nid_has_mute(codec, path->path[i], HDA_INPUT)) codec 575 sound/pci/hda/hda_generic.c static hda_nid_t look_for_out_vol_nid(struct hda_codec *codec, codec 578 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 585 sound/pci/hda/hda_generic.c if (nid_has_volume(codec, nid, HDA_OUTPUT)) codec 596 sound/pci/hda/hda_generic.c static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) codec 599 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); codec 610 sound/pci/hda/hda_generic.c static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) codec 613 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); codec 624 sound/pci/hda/hda_generic.c static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, codec 627 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 628 sound/pci/hda/hda_generic.c int type = get_wcaps_type(get_wcaps(codec, nid)); codec 632 sound/pci/hda/hda_generic.c if (nid == codec->core.afg) codec 638 sound/pci/hda/hda_generic.c if (codec->power_save_node) { codec 659 sound/pci/hda/hda_generic.c #define is_active_nid_for_any(codec, nid) \ codec 660 sound/pci/hda/hda_generic.c is_active_nid(codec, nid, HDA_OUTPUT, -1) codec 663 sound/pci/hda/hda_generic.c static int get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, codec 681 sound/pci/hda/hda_generic.c static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) codec 683 sound/pci/hda/hda_generic.c unsigned int wcaps = get_wcaps(codec, nid); codec 690 sound/pci/hda/hda_generic.c if (snd_hda_get_num_conns(codec, nid) != 1) codec 692 sound/pci/hda/hda_generic.c if (snd_hda_get_connections(codec, nid, &conn, 1) < 0) codec 694 sound/pci/hda/hda_generic.c return !!(get_wcaps(codec, conn) & AC_WCAP_STEREO); codec 698 sound/pci/hda/hda_generic.c static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) codec 700 sound/pci/hda/hda_generic.c unsigned int caps = query_amp_caps(codec, nid, dir); codec 701 sound/pci/hda/hda_generic.c int val = get_amp_val_to_activate(codec, nid, dir, caps, false); codec 703 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) codec 704 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init_stereo(codec, nid, dir, idx, 0xff, val); codec 706 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init(codec, nid, 0, dir, idx, 0xff, val); codec 710 sound/pci/hda/hda_generic.c static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, codec 713 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) codec 714 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_stereo(codec, nid, dir, idx, codec 717 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_update(codec, nid, 0, dir, idx, codec 724 sound/pci/hda/hda_generic.c static unsigned int get_amp_mask_to_modify(struct hda_codec *codec, codec 731 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_MUTE_CTL)) codec 735 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || codec 736 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) codec 742 sound/pci/hda/hda_generic.c static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, codec 748 sound/pci/hda/hda_generic.c caps = query_amp_caps(codec, nid, dir); codec 749 sound/pci/hda/hda_generic.c val = get_amp_val_to_activate(codec, nid, dir, caps, enable); codec 750 sound/pci/hda/hda_generic.c mask = get_amp_mask_to_modify(codec, nid, dir, idx_to_check, caps); codec 755 sound/pci/hda/hda_generic.c update_amp(codec, nid, dir, idx, mask, val); codec 758 sound/pci/hda/hda_generic.c static void check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, codec 763 sound/pci/hda/hda_generic.c if (!enable && is_active_nid(codec, nid, dir, idx_to_check)) codec 765 sound/pci/hda/hda_generic.c activate_amp(codec, nid, dir, idx, idx_to_check, enable); codec 768 sound/pci/hda/hda_generic.c static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, codec 772 sound/pci/hda/hda_generic.c init_amp(codec, nid, HDA_OUTPUT, 0); codec 773 sound/pci/hda/hda_generic.c check_and_activate_amp(codec, nid, HDA_OUTPUT, 0, 0, enable); codec 776 sound/pci/hda/hda_generic.c static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, codec 779 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 785 sound/pci/hda/hda_generic.c nums = snd_hda_get_conn_list(codec, nid, &conn); codec 788 sound/pci/hda/hda_generic.c type = get_wcaps_type(get_wcaps(codec, nid)); codec 790 sound/pci/hda/hda_generic.c (type == AC_WID_AUD_IN && codec->single_adc_amp)) { codec 797 sound/pci/hda/hda_generic.c init_amp(codec, nid, HDA_INPUT, n); codec 808 sound/pci/hda/hda_generic.c activate_amp(codec, nid, HDA_INPUT, n, n, false); codec 812 sound/pci/hda/hda_generic.c check_and_activate_amp(codec, nid, HDA_INPUT, n, idx, enable); codec 817 sound/pci/hda/hda_generic.c static hda_nid_t path_power_update(struct hda_codec *codec, codec 826 sound/pci/hda/hda_generic.c if (!(get_wcaps(codec, nid) & AC_WCAP_POWER)) codec 828 sound/pci/hda/hda_generic.c if (nid == codec->core.afg) codec 830 sound/pci/hda/hda_generic.c if (!allow_powerdown || is_active_nid_for_any(codec, nid)) codec 834 sound/pci/hda/hda_generic.c power = snd_hda_codec_read(codec, nid, 0, codec 837 sound/pci/hda/hda_generic.c snd_hda_codec_write(codec, nid, 0, codec 848 sound/pci/hda/hda_generic.c snd_hdac_regmap_sync_node(&codec->core, nid); codec 856 sound/pci/hda/hda_generic.c static void sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) codec 860 sound/pci/hda/hda_generic.c snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_POWER_STATE, 0); codec 873 sound/pci/hda/hda_generic.c void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, codec 876 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 882 sound/pci/hda/hda_generic.c if (enable && (spec->power_down_unused || codec->power_save_node)) codec 883 sound/pci/hda/hda_generic.c path_power_update(codec, path, codec->power_save_node); codec 889 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, nid, 0, codec 892 sound/pci/hda/hda_generic.c if (has_amp_in(codec, path, i)) codec 893 sound/pci/hda/hda_generic.c activate_amp_in(codec, path, i, enable, add_aamix); codec 894 sound/pci/hda/hda_generic.c if (has_amp_out(codec, path, i)) codec 895 sound/pci/hda/hda_generic.c activate_amp_out(codec, path, i, enable); codec 901 sound/pci/hda/hda_generic.c static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) codec 903 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 905 sound/pci/hda/hda_generic.c if (!(spec->power_down_unused || codec->power_save_node) || path->active) codec 907 sound/pci/hda/hda_generic.c sync_power_state_change(codec, path_power_update(codec, path, true)); codec 911 sound/pci/hda/hda_generic.c static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) codec 913 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 915 sound/pci/hda/hda_generic.c !(snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_EAPD)) codec 919 sound/pci/hda/hda_generic.c if (codec->inv_eapd) codec 921 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, pin, 0, codec 927 sound/pci/hda/hda_generic.c static void resume_path_from_idx(struct hda_codec *codec, int path_idx) codec 929 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); codec 931 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, false); codec 1008 sound/pci/hda/hda_generic.c static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, codec 1018 sound/pci/hda/hda_generic.c return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); codec 1022 sound/pci/hda/hda_generic.c static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, codec 1028 sound/pci/hda/hda_generic.c if (nid && (get_wcaps(codec, nid) & AC_WCAP_STEREO)) codec 1034 sound/pci/hda/hda_generic.c static int add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, codec 1037 sound/pci/hda/hda_generic.c int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); codec 1038 sound/pci/hda/hda_generic.c return add_vol_ctl(codec, pfx, cidx, chs, path); codec 1044 sound/pci/hda/hda_generic.c static int add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, codec 1058 sound/pci/hda/hda_generic.c int nums = snd_hda_get_num_conns(codec, nid); codec 1064 sound/pci/hda/hda_generic.c return __add_pb_sw_ctrl(codec->spec, type, pfx, cidx, val); codec 1067 sound/pci/hda/hda_generic.c static int add_stereo_sw(struct hda_codec *codec, const char *pfx, codec 1070 sound/pci/hda/hda_generic.c int chs = get_default_ch_nums(codec, path, NID_PATH_MUTE_CTL); codec 1071 sound/pci/hda/hda_generic.c return add_sw_ctl(codec, pfx, cidx, chs, path); codec 1078 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1079 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1105 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1109 sound/pci/hda/hda_generic.c mutex_lock(&codec->control_mutex); codec 1114 sound/pci/hda/hda_generic.c mutex_unlock(&codec->control_mutex); codec 1121 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 1127 sound/pci/hda/hda_generic.c mutex_lock(&codec->control_mutex); codec 1139 sound/pci/hda/hda_generic.c mutex_unlock(&codec->control_mutex); codec 1144 sound/pci/hda/hda_generic.c static bool path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) codec 1146 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); codec 1155 sound/pci/hda/hda_generic.c static const char *get_line_out_pfx(struct hda_codec *codec, int ch, codec 1158 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1163 sound/pci/hda/hda_generic.c !codec->force_pin_prefix && codec 1171 sound/pci/hda/hda_generic.c !codec->force_pin_prefix && codec 1185 sound/pci/hda/hda_generic.c !path_has_mixer(codec, spec->hp_paths[0], ctl_type)) codec 1197 sound/pci/hda/hda_generic.c !path_has_mixer(codec, spec->speaker_paths[0], ctl_type)) codec 1208 sound/pci/hda/hda_generic.c bool hp_lo_shared = !path_has_mixer(codec, spec->hp_paths[0], ctl_type); codec 1209 sound/pci/hda/hda_generic.c bool spk_lo_shared = !path_has_mixer(codec, spec->speaker_paths[0], ctl_type); codec 1266 sound/pci/hda/hda_generic.c static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) codec 1268 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1280 sound/pci/hda/hda_generic.c nid = look_for_out_vol_nid(codec, path); codec 1285 sound/pci/hda/hda_generic.c if (is_ctl_used(codec, val, NID_PATH_VOL_CTL)) codec 1291 sound/pci/hda/hda_generic.c nid = look_for_out_mute_nid(codec, path); codec 1293 sound/pci/hda/hda_generic.c unsigned int wid_type = get_wcaps_type(get_wcaps(codec, nid)); codec 1295 sound/pci/hda/hda_generic.c nid_has_mute(codec, nid, HDA_OUTPUT)) codec 1299 sound/pci/hda/hda_generic.c if (is_ctl_used(codec, val, NID_PATH_MUTE_CTL)) codec 1329 sound/pci/hda/hda_generic.c static hda_nid_t get_primary_out(struct hda_codec *codec, int idx) codec 1331 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1343 sound/pci/hda/hda_generic.c static inline hda_nid_t try_dac(struct hda_codec *codec, codec 1346 sound/pci/hda/hda_generic.c return is_reachable_path(codec, dac, pin) ? dac : 0; codec 1350 sound/pci/hda/hda_generic.c static int try_assign_dacs(struct hda_codec *codec, int num_outs, codec 1355 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1367 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx[i]); codec 1369 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); codec 1373 sound/pci/hda/hda_generic.c dacs[i] = get_preferred_dac(codec, pin); codec 1375 sound/pci/hda/hda_generic.c if (is_dac_already_used(codec, dacs[i])) codec 1380 sound/pci/hda/hda_generic.c dacs[i] = look_for_dac(codec, pin, false); codec 1384 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, dacs[j], pin)) { codec 1387 sound/pci/hda/hda_generic.c invalidate_nid_path(codec, path_idx[j]); codec 1396 sound/pci/hda/hda_generic.c dac = try_dac(codec, get_primary_out(codec, i), pin); codec 1398 sound/pci/hda/hda_generic.c dac = try_dac(codec, dacs[0], pin); codec 1400 sound/pci/hda/hda_generic.c dac = try_dac(codec, get_primary_out(codec, i), pin); codec 1408 sound/pci/hda/hda_generic.c } else if (is_reachable_path(codec, spec->private_dac_nids[0], pin)) { codec 1418 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, -spec->mixer_nid); codec 1421 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, 0); codec 1429 sound/pci/hda/hda_generic.c path_idx[i] = snd_hda_get_path_idx(codec, path); codec 1430 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); codec 1438 sound/pci/hda/hda_generic.c static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) codec 1440 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1446 sound/pci/hda/hda_generic.c if (!nid || is_dac_already_used(codec, nid)) codec 1448 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) { codec 1458 sound/pci/hda/hda_generic.c static bool can_be_multiio_pin(struct hda_codec *codec, codec 1463 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, nid); codec 1468 sound/pci/hda/hda_generic.c caps = snd_hda_query_pin_caps(codec, nid); codec 1475 sound/pci/hda/hda_generic.c static int count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) codec 1477 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1479 sound/pci/hda/hda_generic.c unsigned int defcfg = snd_hda_codec_get_pincfg(codec, reference_pin); codec 1488 sound/pci/hda/hda_generic.c if (can_be_multiio_pin(codec, location, codec 1504 sound/pci/hda/hda_generic.c static int fill_multi_ios(struct hda_codec *codec, codec 1508 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1511 sound/pci/hda/hda_generic.c unsigned int defcfg = snd_hda_codec_get_pincfg(codec, reference_pin); codec 1520 sound/pci/hda/hda_generic.c num_pins = count_multiio_pins(codec, reference_pin); codec 1531 sound/pci/hda/hda_generic.c if (!can_be_multiio_pin(codec, location, nid)) codec 1541 sound/pci/hda/hda_generic.c dac = get_dac_if_single(codec, nid); codec 1543 sound/pci/hda/hda_generic.c dac = look_for_dac(codec, nid, false); codec 1548 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, nid, codec 1558 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); codec 1582 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[cfg->line_outs + i]); codec 1583 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); codec 1590 sound/pci/hda/hda_generic.c static bool map_singles(struct hda_codec *codec, int outs, codec 1593 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1601 sound/pci/hda/hda_generic.c dac = get_dac_if_single(codec, pins[i]); codec 1604 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pins[i], codec 1607 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pins[i], 0); codec 1613 sound/pci/hda/hda_generic.c path_idx[i] = snd_hda_get_path_idx(codec, path); codec 1626 sound/pci/hda/hda_generic.c static int check_aamix_out_path(struct hda_codec *codec, int path_idx) codec 1628 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1632 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); codec 1639 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid); codec 1650 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, codec 1658 sound/pci/hda/hda_generic.c return snd_hda_get_path_idx(codec, path); codec 1662 sound/pci/hda/hda_generic.c static bool indep_hp_possible(struct hda_codec *codec) codec 1664 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1673 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, idx); codec 1685 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); codec 1690 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->speaker_paths[i]); codec 1701 sound/pci/hda/hda_generic.c static void refill_shared_dacs(struct hda_codec *codec, int num_outs, codec 1710 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx[i]); codec 1718 sound/pci/hda/hda_generic.c static int fill_and_eval_dacs(struct hda_codec *codec, codec 1722 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1751 sound/pci/hda/hda_generic.c mapped = map_singles(codec, cfg->line_outs, codec 1755 sound/pci/hda/hda_generic.c mapped |= map_singles(codec, cfg->hp_outs, codec 1759 sound/pci/hda/hda_generic.c mapped |= map_singles(codec, cfg->speaker_outs, codec 1766 sound/pci/hda/hda_generic.c err = fill_multi_ios(codec, cfg->line_out_pins[0], true); codec 1773 sound/pci/hda/hda_generic.c badness += try_assign_dacs(codec, cfg->line_outs, cfg->line_out_pins, codec 1780 sound/pci/hda/hda_generic.c err = fill_multi_ios(codec, cfg->line_out_pins[0], false); codec 1787 sound/pci/hda/hda_generic.c err = try_assign_dacs(codec, cfg->hp_outs, cfg->hp_pins, codec 1796 sound/pci/hda/hda_generic.c err = try_assign_dacs(codec, cfg->speaker_outs, codec 1807 sound/pci/hda/hda_generic.c err = fill_multi_ios(codec, cfg->line_out_pins[0], false); codec 1815 sound/pci/hda/hda_generic.c check_aamix_out_path(codec, spec->out_paths[0]); codec 1818 sound/pci/hda/hda_generic.c check_aamix_out_path(codec, spec->hp_paths[0]); codec 1821 sound/pci/hda/hda_generic.c check_aamix_out_path(codec, spec->speaker_paths[0]); codec 1826 sound/pci/hda/hda_generic.c if (count_multiio_pins(codec, cfg->hp_pins[0]) >= 2) codec 1854 sound/pci/hda/hda_generic.c if (spec->indep_hp && !indep_hp_possible(codec)) codec 1859 sound/pci/hda/hda_generic.c refill_shared_dacs(codec, cfg->hp_outs, codec 1863 sound/pci/hda/hda_generic.c refill_shared_dacs(codec, cfg->speaker_outs, codec 1874 sound/pci/hda/hda_generic.c codec_dbg(codec, fmt, ##__VA_ARGS__) codec 1877 sound/pci/hda/hda_generic.c do { if (0) codec_dbg(codec, fmt, ##__VA_ARGS__); } while (0) codec 1881 sound/pci/hda/hda_generic.c static inline void print_nid_path_idx(struct hda_codec *codec, codec 1886 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, idx); codec 1888 sound/pci/hda/hda_generic.c print_nid_path(codec, pfx, path); codec 1891 sound/pci/hda/hda_generic.c static void debug_show_configs(struct hda_codec *codec, codec 1894 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1907 sound/pci/hda/hda_generic.c print_nid_path_idx(codec, " out", spec->out_paths[i]); codec 1914 sound/pci/hda/hda_generic.c print_nid_path_idx(codec, " mio", codec 1925 sound/pci/hda/hda_generic.c print_nid_path_idx(codec, " hp ", spec->hp_paths[i]); codec 1935 sound/pci/hda/hda_generic.c print_nid_path_idx(codec, " spk", spec->speaker_paths[i]); codec 1937 sound/pci/hda/hda_generic.c print_nid_path_idx(codec, " mix", spec->aamix_out_paths[i]); codec 1940 sound/pci/hda/hda_generic.c #define debug_show_configs(codec, cfg) /* NOP */ codec 1944 sound/pci/hda/hda_generic.c static void fill_all_dac_nids(struct hda_codec *codec) codec 1946 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1951 sound/pci/hda/hda_generic.c for_each_hda_codec_node(nid, codec) { codec 1952 sound/pci/hda/hda_generic.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_AUD_OUT) codec 1955 sound/pci/hda/hda_generic.c codec_err(codec, "Too many DACs!\n"); codec 1962 sound/pci/hda/hda_generic.c static int parse_output_paths(struct hda_codec *codec) codec 1964 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 1980 sound/pci/hda/hda_generic.c badness = fill_and_eval_dacs(codec, fill_hardwired, codec 1989 sound/pci/hda/hda_generic.c debug_show_configs(codec, cfg); codec 2041 sound/pci/hda/hda_generic.c fill_and_eval_dacs(codec, best_wired, best_mio); codec 2045 sound/pci/hda/hda_generic.c debug_show_configs(codec, cfg); codec 2049 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[0]); codec 2051 sound/pci/hda/hda_generic.c spec->vmaster_nid = look_for_out_vol_nid(codec, path); codec 2053 sound/pci/hda/hda_generic.c snd_hda_set_vmaster_tlv(codec, spec->vmaster_nid, codec 2065 sound/pci/hda/hda_generic.c set_pin_targets(codec, cfg->line_outs, cfg->line_out_pins, val); codec 2067 sound/pci/hda/hda_generic.c set_pin_targets(codec, cfg->hp_outs, cfg->hp_pins, PIN_HP); codec 2070 sound/pci/hda/hda_generic.c set_pin_targets(codec, cfg->speaker_outs, codec 2075 sound/pci/hda/hda_generic.c if (spec->indep_hp && !indep_hp_possible(codec)) codec 2083 sound/pci/hda/hda_generic.c static int create_multi_out_ctls(struct hda_codec *codec, codec 2086 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2098 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); codec 2102 sound/pci/hda/hda_generic.c name = get_line_out_pfx(codec, i, &index, NID_PATH_VOL_CTL); codec 2105 sound/pci/hda/hda_generic.c err = add_vol_ctl(codec, "Center", 0, 1, path); codec 2108 sound/pci/hda/hda_generic.c err = add_vol_ctl(codec, "LFE", 0, 2, path); codec 2112 sound/pci/hda/hda_generic.c err = add_stereo_vol(codec, name, index, path); codec 2117 sound/pci/hda/hda_generic.c name = get_line_out_pfx(codec, i, &index, NID_PATH_MUTE_CTL); codec 2119 sound/pci/hda/hda_generic.c err = add_sw_ctl(codec, "Center", 0, 1, path); codec 2122 sound/pci/hda/hda_generic.c err = add_sw_ctl(codec, "LFE", 0, 2, path); codec 2126 sound/pci/hda/hda_generic.c err = add_stereo_sw(codec, name, index, path); codec 2134 sound/pci/hda/hda_generic.c static int create_extra_out(struct hda_codec *codec, int path_idx, codec 2140 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); codec 2143 sound/pci/hda/hda_generic.c err = add_stereo_vol(codec, pfx, cidx, path); codec 2146 sound/pci/hda/hda_generic.c err = add_stereo_sw(codec, pfx, cidx, path); codec 2153 sound/pci/hda/hda_generic.c static int create_extra_outs(struct hda_codec *codec, int num_pins, codec 2173 sound/pci/hda/hda_generic.c err = create_extra_out(codec, paths[i], name, idx); codec 2180 sound/pci/hda/hda_generic.c static int create_hp_out_ctls(struct hda_codec *codec) codec 2182 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2183 sound/pci/hda/hda_generic.c return create_extra_outs(codec, spec->autocfg.hp_outs, codec 2188 sound/pci/hda/hda_generic.c static int create_speaker_out_ctls(struct hda_codec *codec) codec 2190 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2191 sound/pci/hda/hda_generic.c return create_extra_outs(codec, spec->autocfg.speaker_outs, codec 2200 sound/pci/hda/hda_generic.c static void call_hp_automute(struct hda_codec *codec, codec 2211 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2212 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2217 sound/pci/hda/hda_generic.c static void update_aamix_paths(struct hda_codec *codec, bool do_mix, codec 2224 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2225 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2245 sound/pci/hda/hda_generic.c update_aamix_paths(codec, spec->aamix_mode, codec 2250 sound/pci/hda/hda_generic.c update_aamix_paths(codec, spec->aamix_mode, codec 2262 sound/pci/hda/hda_generic.c call_hp_automute(codec, NULL); codec 2279 sound/pci/hda/hda_generic.c static int create_indep_hp_ctls(struct hda_codec *codec) codec 2281 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2309 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2310 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2326 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2327 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2334 sound/pci/hda/hda_generic.c get_multiio_path(struct hda_codec *codec, int idx) codec 2336 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2337 sound/pci/hda/hda_generic.c return snd_hda_get_path_from_idx(codec, codec 2341 sound/pci/hda/hda_generic.c static void update_automute_all(struct hda_codec *codec); codec 2351 sound/pci/hda/hda_generic.c static int set_multi_io(struct hda_codec *codec, int idx, bool output) codec 2353 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2357 sound/pci/hda/hda_generic.c path = get_multiio_path(codec, idx); codec 2365 sound/pci/hda/hda_generic.c set_pin_target(codec, nid, PIN_OUT, true); codec 2366 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, true, aamix_default(spec)); codec 2367 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, true); codec 2369 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, false); codec 2370 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, false, aamix_default(spec)); codec 2371 sound/pci/hda/hda_generic.c set_pin_target(codec, nid, spec->multi_io[idx].ctl_in, true); codec 2372 sound/pci/hda/hda_generic.c path_power_down_sync(codec, path); codec 2376 sound/pci/hda/hda_generic.c update_automute_all(codec); codec 2384 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2385 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2395 sound/pci/hda/hda_generic.c set_multi_io(codec, i, i < ch); codec 2411 sound/pci/hda/hda_generic.c static int create_multi_channel_mode(struct hda_codec *codec) codec 2413 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2431 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2432 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2437 sound/pci/hda/hda_generic.c static void update_aamix_paths(struct hda_codec *codec, bool do_mix, codec 2441 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2444 sound/pci/hda/hda_generic.c nomix_path = snd_hda_get_path_from_idx(codec, nomix_path_idx); codec 2445 sound/pci/hda/hda_generic.c mix_path = snd_hda_get_path_from_idx(codec, mix_path_idx); codec 2457 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, nomix_path, false, true); codec 2458 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, mix_path, true, true); codec 2459 sound/pci/hda/hda_generic.c path_power_down_sync(codec, nomix_path); codec 2461 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, mix_path, false, false); codec 2462 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, nomix_path, true, false); codec 2463 sound/pci/hda/hda_generic.c path_power_down_sync(codec, mix_path); codec 2468 sound/pci/hda/hda_generic.c static void update_output_paths(struct hda_codec *codec, int num_outs, codec 2471 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2476 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, paths[i]); codec 2478 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, codec 2486 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2487 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2495 sound/pci/hda/hda_generic.c update_aamix_paths(codec, val, spec->out_paths[0], codec 2498 sound/pci/hda/hda_generic.c update_aamix_paths(codec, val, spec->hp_paths[0], codec 2501 sound/pci/hda/hda_generic.c update_aamix_paths(codec, val, spec->speaker_paths[0], codec 2505 sound/pci/hda/hda_generic.c update_output_paths(codec, cfg->line_outs, spec->out_paths); codec 2507 sound/pci/hda/hda_generic.c update_output_paths(codec, cfg->hp_outs, spec->hp_paths); codec 2509 sound/pci/hda/hda_generic.c update_output_paths(codec, cfg->speaker_outs, codec 2523 sound/pci/hda/hda_generic.c static int create_loopback_mixing_ctl(struct hda_codec *codec) codec 2525 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2539 sound/pci/hda/hda_generic.c static void call_update_outputs(struct hda_codec *codec); codec 2542 sound/pci/hda/hda_generic.c static void update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) codec 2544 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2553 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, pin); codec 2563 sound/pci/hda/hda_generic.c val = snd_hda_get_default_vref(codec, pin); codec 2569 sound/pci/hda/hda_generic.c unsigned int vref_val = snd_hda_get_default_vref(codec, vref_pin); codec 2571 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, vref_pin, codec 2580 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, val, true); codec 2581 sound/pci/hda/hda_generic.c call_hp_automute(codec, NULL); codec 2586 sound/pci/hda/hda_generic.c static int create_hp_mic(struct hda_codec *codec) codec 2588 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2602 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, cfg->inputs[0].pin); codec 2620 sound/pci/hda/hda_generic.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_IN)) codec 2631 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable shared I/O jack on NID 0x%x\n", nid); codec 2639 sound/pci/hda/hda_generic.c static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin); codec 2654 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2656 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) == PIN_HP) codec 2666 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2671 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) == val) codec 2673 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); codec 2684 sound/pci/hda/hda_generic.c static bool find_kctl_name(struct hda_codec *codec, const char *name, int idx) codec 2686 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2697 sound/pci/hda/hda_generic.c static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, codec 2700 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2703 sound/pci/hda/hda_generic.c snd_hda_get_pin_label(codec, pin, &spec->autocfg, name, name_len, &idx); codec 2706 sound/pci/hda/hda_generic.c for (; find_kctl_name(codec, name, idx); idx++) codec 2710 sound/pci/hda/hda_generic.c static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) codec 2712 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2714 sound/pci/hda/hda_generic.c unsigned int pincap = snd_hda_query_pin_caps(codec, pin); codec 2721 sound/pci/hda/hda_generic.c static int create_out_jack_modes(struct hda_codec *codec, int num_pins, codec 2724 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2731 sound/pci/hda/hda_generic.c if (get_out_jack_num_items(codec, pin) > 1) { codec 2734 sound/pci/hda/hda_generic.c get_jack_mode_name(codec, pin, name, sizeof(name)); codec 2758 sound/pci/hda/hda_generic.c static unsigned int get_vref_caps(struct hda_codec *codec, hda_nid_t pin) codec 2762 sound/pci/hda/hda_generic.c pincap = snd_hda_query_pin_caps(codec, pin); codec 2801 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2803 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2816 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2818 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2821 sound/pci/hda/hda_generic.c idx = snd_hda_codec_get_pin_target(codec, nid) & AC_PINCTL_VREFEN; codec 2829 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2831 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2834 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, nid); codec 2841 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); codec 2852 sound/pci/hda/hda_generic.c static int get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) codec 2854 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2857 sound/pci/hda/hda_generic.c nitems = hweight32(get_vref_caps(codec, pin)); codec 2861 sound/pci/hda/hda_generic.c static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) codec 2863 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 2872 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, pin); codec 2877 sound/pci/hda/hda_generic.c if (get_in_jack_num_items(codec, pin) <= 1) codec 2880 sound/pci/hda/hda_generic.c get_jack_mode_name(codec, pin, name, sizeof(name)); codec 2894 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2896 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); codec 2897 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); codec 2915 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2925 sound/pci/hda/hda_generic.c static int get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) codec 2927 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); codec 2928 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); codec 2929 sound/pci/hda/hda_generic.c unsigned int val = snd_hda_codec_get_pin_target(codec, nid); codec 2938 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2949 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2952 sound/pci/hda/hda_generic.c get_cur_hp_mic_jack_mode(codec, nid); codec 2959 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2961 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); codec 2962 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); codec 2965 sound/pci/hda/hda_generic.c oldval = get_cur_hp_mic_jack_mode(codec, nid); codec 2978 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); codec 2979 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, nid); codec 2983 sound/pci/hda/hda_generic.c val = snd_hda_get_default_vref(codec, nid) | PIN_IN; codec 2985 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); codec 2986 sound/pci/hda/hda_generic.c call_hp_automute(codec, NULL); codec 2998 sound/pci/hda/hda_generic.c static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) codec 3000 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3034 sound/pci/hda/hda_generic.c static bool look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, codec 3042 sound/pci/hda/hda_generic.c idx = snd_hda_get_conn_index(codec, mix_nid, pin, true); codec 3047 sound/pci/hda/hda_generic.c if (nid_has_volume(codec, mix_nid, HDA_INPUT)) codec 3049 sound/pci/hda/hda_generic.c if (nid_has_mute(codec, mix_nid, HDA_INPUT)) codec 3055 sound/pci/hda/hda_generic.c num_conns = snd_hda_get_conn_list(codec, mix_nid, &list); codec 3059 sound/pci/hda/hda_generic.c if (!*mix_val && nid_has_volume(codec, nid, HDA_OUTPUT) && codec 3060 sound/pci/hda/hda_generic.c !is_ctl_associated(codec, nid, HDA_OUTPUT, 0, NID_PATH_VOL_CTL)) codec 3062 sound/pci/hda/hda_generic.c if (!*mute_val && nid_has_mute(codec, nid, HDA_OUTPUT) && codec 3063 sound/pci/hda/hda_generic.c !is_ctl_associated(codec, nid, HDA_OUTPUT, 0, NID_PATH_MUTE_CTL)) codec 3070 sound/pci/hda/hda_generic.c static int new_analog_input(struct hda_codec *codec, int input_idx, codec 3074 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3079 sound/pci/hda/hda_generic.c if (!look_for_mix_leaf_ctls(codec, mix_nid, pin, &mix_val, &mute_val)) codec 3082 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, mix_nid, 0); codec 3085 sound/pci/hda/hda_generic.c print_nid_path(codec, "loopback", path); codec 3086 sound/pci/hda/hda_generic.c spec->loopback_paths[input_idx] = snd_hda_get_path_idx(codec, path); codec 3111 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, spec->mixer_nid, codec 3114 sound/pci/hda/hda_generic.c print_nid_path(codec, "loopback-merge", path); codec 3119 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); codec 3126 sound/pci/hda/hda_generic.c static int is_input_pin(struct hda_codec *codec, hda_nid_t nid) codec 3128 sound/pci/hda/hda_generic.c unsigned int pincap = snd_hda_query_pin_caps(codec, nid); codec 3133 sound/pci/hda/hda_generic.c static int fill_adc_nids(struct hda_codec *codec) codec 3135 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3141 sound/pci/hda/hda_generic.c for_each_hda_codec_node(nid, codec) { codec 3142 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); codec 3163 sound/pci/hda/hda_generic.c static int check_dyn_adc_switch(struct hda_codec *codec) codec 3165 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3194 sound/pci/hda/hda_generic.c codec_dbg(codec, "enabling ADC switching\n"); codec 3205 sound/pci/hda/hda_generic.c invalidate_nid_path(codec, codec 3219 sound/pci/hda/hda_generic.c codec_dbg(codec, "reducing to a single ADC\n"); codec 3231 sound/pci/hda/hda_generic.c static int parse_capture_source(struct hda_codec *codec, hda_nid_t pin, codec 3235 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3245 sound/pci/hda/hda_generic.c if (!is_reachable_path(codec, pin, adc)) codec 3247 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, adc, anchor); codec 3250 sound/pci/hda/hda_generic.c print_nid_path(codec, "input", path); codec 3252 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); codec 3258 sound/pci/hda/hda_generic.c snd_hda_add_imux_item(codec, imux, label, cfg_idx, NULL); codec 3273 sound/pci/hda/hda_generic.c static int fill_input_pin_labels(struct hda_codec *codec) codec 3275 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3284 sound/pci/hda/hda_generic.c if (!is_input_pin(codec, pin)) codec 3287 sound/pci/hda/hda_generic.c label = hda_get_autocfg_input_label(codec, cfg, i); codec 3306 sound/pci/hda/hda_generic.c static int create_input_ctls(struct hda_codec *codec) codec 3308 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3315 sound/pci/hda/hda_generic.c num_adcs = fill_adc_nids(codec); codec 3319 sound/pci/hda/hda_generic.c err = fill_input_pin_labels(codec); codec 3327 sound/pci/hda/hda_generic.c if (!is_input_pin(codec, pin)) codec 3332 sound/pci/hda/hda_generic.c val |= snd_hda_get_default_vref(codec, pin); codec 3334 sound/pci/hda/hda_generic.c !snd_hda_codec_get_pin_target(codec, pin)) codec 3335 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, val, false); codec 3338 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, pin, mixer)) { codec 3339 sound/pci/hda/hda_generic.c err = new_analog_input(codec, i, pin, codec 3348 sound/pci/hda/hda_generic.c err = parse_capture_source(codec, pin, i, num_adcs, codec 3354 sound/pci/hda/hda_generic.c err = create_in_jack_mode(codec, pin); codec 3362 sound/pci/hda/hda_generic.c err = parse_capture_source(codec, mixer, CFG_IDX_MIX, num_adcs, codec 3379 sound/pci/hda/hda_generic.c static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) codec 3381 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3392 sound/pci/hda/hda_generic.c return snd_hda_get_path_from_idx(codec, spec->input_paths[imux_idx][adc_idx]); codec 3395 sound/pci/hda/hda_generic.c static int mux_select(struct hda_codec *codec, unsigned int adc_idx, codec 3401 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3402 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3409 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3410 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3421 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3423 sound/pci/hda/hda_generic.c return mux_select(codec, adc_idx, codec 3447 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3448 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3455 sound/pci/hda/hda_generic.c mutex_lock(&codec->control_mutex); codec 3457 sound/pci/hda/hda_generic.c path = get_input_path(codec, adc_idx, i); codec 3465 sound/pci/hda/hda_generic.c mutex_unlock(&codec->control_mutex); codec 3467 sound/pci/hda/hda_generic.c spec->cap_sync_hook(codec, kcontrol, ucontrol); codec 3516 sound/pci/hda/hda_generic.c static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) codec 3528 sound/pci/hda/hda_generic.c if (nid_has_volume(codec, nid, HDA_OUTPUT)) codec 3531 sound/pci/hda/hda_generic.c else if (nid_has_volume(codec, nid, HDA_INPUT)) { codec 3533 sound/pci/hda/hda_generic.c if (!depth && codec->single_adc_amp) codec 3540 sound/pci/hda/hda_generic.c if (nid_has_mute(codec, nid, HDA_OUTPUT)) codec 3543 sound/pci/hda/hda_generic.c else if (nid_has_mute(codec, nid, HDA_INPUT)) { codec 3545 sound/pci/hda/hda_generic.c if (!depth && codec->single_adc_amp) codec 3555 sound/pci/hda/hda_generic.c static bool is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) codec 3557 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3569 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pincfg(codec, nid); codec 3579 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3580 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3588 sound/pci/hda/hda_generic.c spec->cap_sync_hook(codec, kcontrol, ucontrol); codec 3593 sound/pci/hda/hda_generic.c static int add_single_cap_ctl(struct hda_codec *codec, const char *label, codec 3597 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3639 sound/pci/hda/hda_generic.c static int create_single_cap_vol_ctl(struct hda_codec *codec, int idx, codec 3644 sound/pci/hda/hda_generic.c err = add_single_cap_ctl(codec, NULL, idx, false, vol_ctl, inv_dmic); codec 3647 sound/pci/hda/hda_generic.c err = add_single_cap_ctl(codec, NULL, idx, true, sw_ctl, inv_dmic); codec 3654 sound/pci/hda/hda_generic.c static int create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, codec 3657 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3680 sound/pci/hda/hda_generic.c static unsigned int get_first_cap_ctl(struct hda_codec *codec, int idx, int type) codec 3686 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, idx); codec 3693 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, i); codec 3701 sound/pci/hda/hda_generic.c static int create_multi_cap_vol_ctl(struct hda_codec *codec) codec 3703 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3714 sound/pci/hda/hda_generic.c inv_dmic = is_inv_dmic_pin(codec, spec->imux_pins[i]); codec 3717 sound/pci/hda/hda_generic.c err = add_single_cap_ctl(codec, codec 3721 sound/pci/hda/hda_generic.c get_first_cap_ctl(codec, i, type), codec 3730 sound/pci/hda/hda_generic.c static int create_capture_mixers(struct hda_codec *codec) codec 3732 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3760 sound/pci/hda/hda_generic.c path = get_input_path(codec, n, i); codec 3763 sound/pci/hda/hda_generic.c parse_capvol_in_path(codec, path); codec 3768 sound/pci/hda/hda_generic.c if (!same_amp_caps(codec, vol, codec 3776 sound/pci/hda/hda_generic.c if (!same_amp_caps(codec, sw, codec 3780 sound/pci/hda/hda_generic.c if (is_inv_dmic_pin(codec, spec->imux_pins[i])) codec 3785 sound/pci/hda/hda_generic.c err = create_single_cap_vol_ctl(codec, n, vol, sw, codec 3788 sound/pci/hda/hda_generic.c err = create_bind_cap_vol_ctl(codec, n, vol, sw); codec 3790 sound/pci/hda/hda_generic.c err = create_multi_cap_vol_ctl(codec); codec 3803 sound/pci/hda/hda_generic.c static bool check_boost_vol(struct hda_codec *codec, hda_nid_t nid, codec 3808 sound/pci/hda/hda_generic.c if (!nid_has_volume(codec, nid, dir) || codec 3809 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || codec 3810 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) codec 3813 sound/pci/hda/hda_generic.c step = (query_amp_caps(codec, nid, dir) & AC_AMPCAP_STEP_SIZE) codec 3821 sound/pci/hda/hda_generic.c static unsigned int look_for_boost_amp(struct hda_codec *codec, codec 3832 sound/pci/hda/hda_generic.c if (depth && check_boost_vol(codec, nid, HDA_OUTPUT, 0)) { codec 3835 sound/pci/hda/hda_generic.c } else if (check_boost_vol(codec, nid, HDA_INPUT, codec 3846 sound/pci/hda/hda_generic.c static int parse_mic_boost(struct hda_codec *codec) codec 3848 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3870 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, i); codec 3874 sound/pci/hda/hda_generic.c val = look_for_boost_amp(codec, path); codec 3900 sound/pci/hda/hda_generic.c static void call_micmute_led_update(struct hda_codec *codec) codec 3902 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3925 sound/pci/hda/hda_generic.c spec->micmute_led.update(codec); codec 3928 sound/pci/hda/hda_generic.c static void update_micmute_led(struct hda_codec *codec, codec 3932 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3936 sound/pci/hda/hda_generic.c spec->micmute_led.old_hook(codec, kcontrol, ucontrol); codec 3948 sound/pci/hda/hda_generic.c call_micmute_led_update(codec); codec 3965 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3966 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3975 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3976 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 3985 sound/pci/hda/hda_generic.c call_micmute_led_update(codec); codec 4009 sound/pci/hda/hda_generic.c int snd_hda_gen_add_micmute_led(struct hda_codec *codec, codec 4012 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4027 sound/pci/hda/hda_generic.c static void call_ledtrig_micmute(struct hda_codec *codec) codec 4029 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4046 sound/pci/hda/hda_generic.c void snd_hda_gen_fixup_micmute_led(struct hda_codec *codec, codec 4051 sound/pci/hda/hda_generic.c snd_hda_gen_add_micmute_led(codec, call_ledtrig_micmute); codec 4059 sound/pci/hda/hda_generic.c static void parse_digital(struct hda_codec *codec) codec 4061 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4070 sound/pci/hda/hda_generic.c dig_nid = look_for_dac(codec, pin, true); codec 4073 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dig_nid, pin, 0); codec 4076 sound/pci/hda/hda_generic.c print_nid_path(codec, "digout", path); codec 4079 sound/pci/hda/hda_generic.c spec->digout_paths[i] = snd_hda_get_path_idx(codec, path); codec 4080 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, PIN_OUT, false); codec 4095 sound/pci/hda/hda_generic.c for_each_hda_codec_node(dig_nid, codec) { codec 4096 sound/pci/hda/hda_generic.c unsigned int wcaps = get_wcaps(codec, dig_nid); codec 4101 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, dig_nid, 0); codec 4103 sound/pci/hda/hda_generic.c print_nid_path(codec, "digin", path); codec 4107 sound/pci/hda/hda_generic.c spec->digin_path = snd_hda_get_path_idx(codec, path); codec 4108 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, PIN_IN, false); codec 4120 sound/pci/hda/hda_generic.c static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur); codec 4123 sound/pci/hda/hda_generic.c static int mux_select(struct hda_codec *codec, unsigned int adc_idx, codec 4126 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4139 sound/pci/hda/hda_generic.c old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); codec 4143 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, old_path, false, false); codec 4148 sound/pci/hda/hda_generic.c update_hp_mic(codec, adc_idx, false); codec 4151 sound/pci/hda/hda_generic.c dyn_adc_pcm_resetup(codec, idx); codec 4153 sound/pci/hda/hda_generic.c path = get_input_path(codec, adc_idx, idx); codec 4158 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, true, false); codec 4160 sound/pci/hda/hda_generic.c spec->cap_sync_hook(codec, NULL, NULL); codec 4161 sound/pci/hda/hda_generic.c path_power_down_sync(codec, old_path); codec 4170 sound/pci/hda/hda_generic.c static hda_nid_t set_path_power(struct hda_codec *codec, hda_nid_t nid, codec 4173 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4192 sound/pci/hda/hda_generic.c last = path_power_update(codec, path, true); codec 4202 sound/pci/hda/hda_generic.c static bool detect_pin_state(struct hda_codec *codec, hda_nid_t pin) codec 4204 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, pin)) codec 4206 sound/pci/hda/hda_generic.c return snd_hda_jack_detect_state(codec, pin) != HDA_JACK_NOT_PRESENT; codec 4215 sound/pci/hda/hda_generic.c static hda_nid_t set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, codec 4220 sound/pci/hda/hda_generic.c if (!codec->power_save_node) codec 4223 sound/pci/hda/hda_generic.c on = detect_pin_state(codec, pin); codec 4227 sound/pci/hda/hda_generic.c return set_path_power(codec, pin, on, -1); codec 4230 sound/pci/hda/hda_generic.c static void pin_power_callback(struct hda_codec *codec, codec 4235 sound/pci/hda/hda_generic.c sync_power_state_change(codec, codec 4236 sound/pci/hda/hda_generic.c set_pin_power_jack(codec, jack->nid, on)); codec 4240 sound/pci/hda/hda_generic.c static void pin_power_up_callback(struct hda_codec *codec, codec 4243 sound/pci/hda/hda_generic.c pin_power_callback(codec, jack, true); codec 4247 sound/pci/hda/hda_generic.c static void pin_power_down_callback(struct hda_codec *codec, codec 4250 sound/pci/hda/hda_generic.c pin_power_callback(codec, jack, false); codec 4254 sound/pci/hda/hda_generic.c static void add_pin_power_ctls(struct hda_codec *codec, int num_pins, codec 4262 sound/pci/hda/hda_generic.c if (is_jack_detectable(codec, pins[i])) codec 4263 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, pins[i], cb); codec 4265 sound/pci/hda/hda_generic.c set_path_power(codec, pins[i], true, -1); codec 4272 sound/pci/hda/hda_generic.c static void add_all_pin_power_ctls(struct hda_codec *codec, bool on) codec 4274 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4278 sound/pci/hda/hda_generic.c if (!codec->power_save_node) codec 4280 sound/pci/hda/hda_generic.c add_pin_power_ctls(codec, cfg->line_outs, cfg->line_out_pins, on); codec 4282 sound/pci/hda/hda_generic.c add_pin_power_ctls(codec, cfg->hp_outs, cfg->hp_pins, on); codec 4284 sound/pci/hda/hda_generic.c add_pin_power_ctls(codec, cfg->speaker_outs, cfg->speaker_pins, on); codec 4286 sound/pci/hda/hda_generic.c add_pin_power_ctls(codec, 1, &cfg->inputs[i].pin, on); codec 4290 sound/pci/hda/hda_generic.c static void sync_pin_power_ctls(struct hda_codec *codec, int num_pins, codec 4296 sound/pci/hda/hda_generic.c if (is_jack_detectable(codec, pins[i])) codec 4297 sound/pci/hda/hda_generic.c set_pin_power_jack(codec, pins[i], -1); codec 4301 sound/pci/hda/hda_generic.c static void sync_all_pin_power_ctls(struct hda_codec *codec) codec 4303 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4307 sound/pci/hda/hda_generic.c if (!codec->power_save_node) codec 4309 sound/pci/hda/hda_generic.c sync_pin_power_ctls(codec, cfg->line_outs, cfg->line_out_pins); codec 4311 sound/pci/hda/hda_generic.c sync_pin_power_ctls(codec, cfg->hp_outs, cfg->hp_pins); codec 4313 sound/pci/hda/hda_generic.c sync_pin_power_ctls(codec, cfg->speaker_outs, cfg->speaker_pins); codec 4315 sound/pci/hda/hda_generic.c sync_pin_power_ctls(codec, 1, &cfg->inputs[i].pin); codec 4319 sound/pci/hda/hda_generic.c static int add_fake_paths(struct hda_codec *codec, hda_nid_t nid, codec 4322 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4329 sound/pci/hda/hda_generic.c if (get_nid_path(codec, nid, pins[i], 0)) codec 4344 sound/pci/hda/hda_generic.c static int add_fake_beep_paths(struct hda_codec *codec) codec 4346 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4351 sound/pci/hda/hda_generic.c if (!codec->power_save_node || !nid) codec 4353 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->line_outs, cfg->line_out_pins); codec 4357 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->hp_outs, cfg->hp_pins); codec 4362 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->speaker_outs, codec 4373 sound/pci/hda/hda_generic.c set_path_power(beep->codec, beep->nid, -1, on); codec 4381 sound/pci/hda/hda_generic.c int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) codec 4383 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4404 sound/pci/hda/hda_generic.c static bool detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) codec 4414 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) & AC_PINCTL_IN_EN) codec 4416 sound/pci/hda/hda_generic.c if (snd_hda_jack_detect_state(codec, nid) == HDA_JACK_PRESENT) codec 4423 sound/pci/hda/hda_generic.c static void do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, codec 4426 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4435 sound/pci/hda/hda_generic.c oldval = snd_hda_codec_get_pin_target(codec, nid); codec 4443 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, paths[i]); codec 4469 sound/pci/hda/hda_generic.c update_pin_ctl(codec, nid, val); codec 4472 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, !mute); codec 4473 sound/pci/hda/hda_generic.c if (codec->power_save_node) { codec 4476 sound/pci/hda/hda_generic.c on = detect_pin_state(codec, nid); codec 4477 sound/pci/hda/hda_generic.c set_path_power(codec, nid, on, -1); codec 4488 sound/pci/hda/hda_generic.c void snd_hda_gen_update_outputs(struct hda_codec *codec) codec 4490 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4502 sound/pci/hda/hda_generic.c do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins), codec 4515 sound/pci/hda/hda_generic.c do_automute(codec, ARRAY_SIZE(spec->autocfg.speaker_pins), codec 4530 sound/pci/hda/hda_generic.c do_automute(codec, ARRAY_SIZE(spec->autocfg.line_out_pins), codec 4535 sound/pci/hda/hda_generic.c static void call_update_outputs(struct hda_codec *codec) codec 4537 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4539 sound/pci/hda/hda_generic.c spec->automute_hook(codec); codec 4541 sound/pci/hda/hda_generic.c snd_hda_gen_update_outputs(codec); codec 4544 sound/pci/hda/hda_generic.c if (spec->auto_mute_via_amp && !codec->bus->shutdown) codec 4553 sound/pci/hda/hda_generic.c void snd_hda_gen_hp_automute(struct hda_codec *codec, codec 4556 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4566 sound/pci/hda/hda_generic.c spec->hp_jack_present = detect_jacks(codec, num_pins, pins); codec 4569 sound/pci/hda/hda_generic.c call_update_outputs(codec); codec 4578 sound/pci/hda/hda_generic.c void snd_hda_gen_line_automute(struct hda_codec *codec, codec 4581 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4590 sound/pci/hda/hda_generic.c detect_jacks(codec, ARRAY_SIZE(spec->autocfg.line_out_pins), codec 4594 sound/pci/hda/hda_generic.c call_update_outputs(codec); codec 4603 sound/pci/hda/hda_generic.c void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, codec 4606 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4615 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, pin) & AC_PINCTL_OUT_EN) codec 4617 sound/pci/hda/hda_generic.c if (snd_hda_jack_detect_state(codec, pin) == HDA_JACK_PRESENT) { codec 4618 sound/pci/hda/hda_generic.c mux_select(codec, 0, spec->am_entry[i].idx); codec 4622 sound/pci/hda/hda_generic.c mux_select(codec, 0, spec->am_entry[0].idx); codec 4627 sound/pci/hda/hda_generic.c static void call_hp_automute(struct hda_codec *codec, codec 4630 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4632 sound/pci/hda/hda_generic.c spec->hp_automute_hook(codec, jack); codec 4634 sound/pci/hda/hda_generic.c snd_hda_gen_hp_automute(codec, jack); codec 4637 sound/pci/hda/hda_generic.c static void call_line_automute(struct hda_codec *codec, codec 4640 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4642 sound/pci/hda/hda_generic.c spec->line_automute_hook(codec, jack); codec 4644 sound/pci/hda/hda_generic.c snd_hda_gen_line_automute(codec, jack); codec 4647 sound/pci/hda/hda_generic.c static void call_mic_autoswitch(struct hda_codec *codec, codec 4650 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4652 sound/pci/hda/hda_generic.c spec->mic_autoswitch_hook(codec, jack); codec 4654 sound/pci/hda/hda_generic.c snd_hda_gen_mic_autoswitch(codec, jack); codec 4658 sound/pci/hda/hda_generic.c static void update_automute_all(struct hda_codec *codec) codec 4660 sound/pci/hda/hda_generic.c call_hp_automute(codec, NULL); codec 4661 sound/pci/hda/hda_generic.c call_line_automute(codec, NULL); codec 4662 sound/pci/hda/hda_generic.c call_mic_autoswitch(codec, NULL); codec 4671 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 4672 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4685 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 4686 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4700 sound/pci/hda/hda_generic.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 4701 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4734 sound/pci/hda/hda_generic.c call_update_outputs(codec); codec 4746 sound/pci/hda/hda_generic.c static int add_automute_mode_enum(struct hda_codec *codec) codec 4748 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4759 sound/pci/hda/hda_generic.c static int check_auto_mute_availability(struct hda_codec *codec) codec 4761 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4794 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) codec 4796 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable HP auto-muting on NID 0x%x\n", nid); codec 4797 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, nid, codec 4806 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) codec 4808 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable Line-Out auto-muting on NID 0x%x\n", nid); codec 4809 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, nid, codec 4824 sound/pci/hda/hda_generic.c err = add_automute_mode_enum(codec); codec 4832 sound/pci/hda/hda_generic.c static bool auto_mic_check_imux(struct hda_codec *codec) codec 4834 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4849 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, codec 4866 sound/pci/hda/hda_generic.c static int check_auto_mic_availability(struct hda_codec *codec) codec 4868 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4881 sound/pci/hda/hda_generic.c attr = snd_hda_codec_get_pincfg(codec, nid); codec 4898 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) codec 4920 sound/pci/hda/hda_generic.c if (!auto_mic_check_imux(codec)) codec 4926 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable auto-mic switch on NID 0x%x/0x%x/0x%x\n", codec 4941 sound/pci/hda/hda_generic.c unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec, codec 4945 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 4947 sound/pci/hda/hda_generic.c if (!spec->power_down_unused && !codec->power_save_node) codec 4949 sound/pci/hda/hda_generic.c if (power_state != AC_PWRST_D0 || nid == codec->core.afg) codec 4951 sound/pci/hda/hda_generic.c if (get_wcaps_type(get_wcaps(codec, nid)) >= AC_WID_POWER) codec 4953 sound/pci/hda/hda_generic.c if (is_active_nid_for_any(codec, nid)) codec 4960 sound/pci/hda/hda_generic.c static void mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) codec 4966 sound/pci/hda/hda_generic.c nums = snd_hda_get_conn_list(codec, mix, &conn); codec 4967 sound/pci/hda/hda_generic.c has_amp = nid_has_mute(codec, mix, HDA_INPUT); codec 4970 sound/pci/hda/hda_generic.c update_amp(codec, mix, HDA_INPUT, i, codec 4972 sound/pci/hda/hda_generic.c else if (nid_has_volume(codec, conn[i], HDA_OUTPUT)) codec 4973 sound/pci/hda/hda_generic.c update_amp(codec, conn[i], HDA_OUTPUT, 0, codec 4986 sound/pci/hda/hda_generic.c void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) codec 4988 sound/pci/hda/hda_generic.c if (codec->power_save_node) codec 4989 sound/pci/hda/hda_generic.c set_path_power(codec, nid, -1, on); codec 5002 sound/pci/hda/hda_generic.c int snd_hda_gen_parse_auto_config(struct hda_codec *codec, codec 5005 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5008 sound/pci/hda/hda_generic.c parse_user_hints(codec); codec 5023 sound/pci/hda/hda_generic.c fill_all_dac_nids(codec); codec 5049 sound/pci/hda/hda_generic.c err = parse_output_paths(codec); codec 5052 sound/pci/hda/hda_generic.c err = create_multi_channel_mode(codec); codec 5055 sound/pci/hda/hda_generic.c err = create_multi_out_ctls(codec, cfg); codec 5058 sound/pci/hda/hda_generic.c err = create_hp_out_ctls(codec); codec 5061 sound/pci/hda/hda_generic.c err = create_speaker_out_ctls(codec); codec 5064 sound/pci/hda/hda_generic.c err = create_indep_hp_ctls(codec); codec 5067 sound/pci/hda/hda_generic.c err = create_loopback_mixing_ctl(codec); codec 5070 sound/pci/hda/hda_generic.c err = create_hp_mic(codec); codec 5073 sound/pci/hda/hda_generic.c err = create_input_ctls(codec); codec 5078 sound/pci/hda/hda_generic.c add_all_pin_power_ctls(codec, false); codec 5091 sound/pci/hda/hda_generic.c err = check_auto_mute_availability(codec); codec 5095 sound/pci/hda/hda_generic.c err = check_dyn_adc_switch(codec); codec 5099 sound/pci/hda/hda_generic.c err = check_auto_mic_availability(codec); codec 5107 sound/pci/hda/hda_generic.c err = parse_capture_source(codec, spec->mixer_nid, codec 5115 sound/pci/hda/hda_generic.c err = create_capture_mixers(codec); codec 5119 sound/pci/hda/hda_generic.c err = parse_mic_boost(codec); codec 5129 sound/pci/hda/hda_generic.c err = create_hp_mic_jack_mode(codec, spec->hp_mic_pin); codec 5136 sound/pci/hda/hda_generic.c err = create_out_jack_modes(codec, cfg->line_outs, codec 5142 sound/pci/hda/hda_generic.c err = create_out_jack_modes(codec, cfg->hp_outs, codec 5150 sound/pci/hda/hda_generic.c add_all_pin_power_ctls(codec, true); codec 5154 sound/pci/hda/hda_generic.c mute_all_mixer_nid(codec, spec->mixer_nid); codec 5157 sound/pci/hda/hda_generic.c parse_digital(codec); codec 5159 sound/pci/hda/hda_generic.c if (spec->power_down_unused || codec->power_save_node) { codec 5160 sound/pci/hda/hda_generic.c if (!codec->power_filter) codec 5161 sound/pci/hda/hda_generic.c codec->power_filter = snd_hda_gen_path_power_filter; codec 5162 sound/pci/hda/hda_generic.c if (!codec->patch_ops.stream_pm) codec 5163 sound/pci/hda/hda_generic.c codec->patch_ops.stream_pm = snd_hda_gen_stream_pm; codec 5167 sound/pci/hda/hda_generic.c err = snd_hda_attach_beep_device(codec, spec->beep_nid); codec 5170 sound/pci/hda/hda_generic.c if (codec->beep && codec->power_save_node) { codec 5171 sound/pci/hda/hda_generic.c err = add_fake_beep_paths(codec); codec 5174 sound/pci/hda/hda_generic.c codec->beep->power_hook = beep_power_hook; codec 5204 sound/pci/hda/hda_generic.c int snd_hda_gen_build_controls(struct hda_codec *codec) codec 5206 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5210 sound/pci/hda/hda_generic.c err = snd_hda_add_new_ctls(codec, spec->kctls.list); codec 5216 sound/pci/hda/hda_generic.c err = snd_hda_create_dig_out_ctls(codec, codec 5223 sound/pci/hda/hda_generic.c err = snd_hda_create_spdif_share_sw(codec, codec 5231 sound/pci/hda/hda_generic.c err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in_nid); codec 5238 sound/pci/hda/hda_generic.c !snd_hda_find_mixer_ctl(codec, "Master Playback Volume")) { codec 5239 sound/pci/hda/hda_generic.c err = snd_hda_add_vmaster(codec, "Master Playback Volume", codec 5246 sound/pci/hda/hda_generic.c !snd_hda_find_mixer_ctl(codec, "Master Playback Switch")) { codec 5247 sound/pci/hda/hda_generic.c err = __snd_hda_add_vmaster(codec, "Master Playback Switch", codec 5254 sound/pci/hda/hda_generic.c snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute, codec 5262 sound/pci/hda/hda_generic.c err = snd_hda_jack_add_kctls(codec, &spec->autocfg); codec 5276 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5280 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5282 sound/pci/hda/hda_generic.c spec->pcm_playback_hook(hinfo, codec, substream, action); codec 5286 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5290 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5292 sound/pci/hda/hda_generic.c spec->pcm_capture_hook(hinfo, codec, substream, action); codec 5299 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5302 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5306 sound/pci/hda/hda_generic.c err = snd_hda_multi_out_analog_open(codec, codec 5311 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5319 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5324 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5327 sound/pci/hda/hda_generic.c err = snd_hda_multi_out_analog_prepare(codec, &spec->multiout, codec 5330 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5336 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5339 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5342 sound/pci/hda/hda_generic.c err = snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); codec 5344 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5350 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5353 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5356 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5363 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5366 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_OPEN); codec 5371 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5376 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); codec 5377 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, codec 5383 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5386 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); codec 5387 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, codec 5393 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5396 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_CLOSE); codec 5401 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5404 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5412 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5419 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5422 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5425 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5432 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5437 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); codec 5438 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5444 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5447 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); codec 5448 sound/pci/hda/hda_generic.c call_pcm_playback_hook(hinfo, codec, substream, codec 5457 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5460 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5461 sound/pci/hda/hda_generic.c return snd_hda_multi_out_dig_open(codec, &spec->multiout); codec 5465 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5470 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5471 sound/pci/hda/hda_generic.c return snd_hda_multi_out_dig_prepare(codec, &spec->multiout, codec 5476 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5479 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5480 sound/pci/hda/hda_generic.c return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout); codec 5484 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5487 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5488 sound/pci/hda/hda_generic.c return snd_hda_multi_out_dig_close(codec, &spec->multiout); codec 5498 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5503 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5505 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number + 1], codec 5507 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, codec 5513 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5516 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5518 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, codec 5520 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, codec 5609 sound/pci/hda/hda_generic.c static bool dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) codec 5611 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5616 sound/pci/hda/hda_generic.c __snd_hda_codec_cleanup_stream(codec, spec->cur_adc, 1); codec 5618 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, new_adc, codec 5628 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5633 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5637 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, spec->cur_adc, stream_tag, 0, format); codec 5638 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_PREPARE); codec 5643 sound/pci/hda/hda_generic.c struct hda_codec *codec, codec 5646 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5647 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, spec->cur_adc); codec 5649 sound/pci/hda/hda_generic.c call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_CLEANUP); codec 5716 sound/pci/hda/hda_generic.c int snd_hda_gen_build_pcms(struct hda_codec *codec) codec 5718 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5727 sound/pci/hda/hda_generic.c " Analog", codec->core.chip_name); codec 5728 sound/pci/hda/hda_generic.c info = snd_hda_codec_pcm_new(codec, "%s", spec->stream_name_analog); codec 5758 sound/pci/hda/hda_generic.c " Digital", codec->core.chip_name); codec 5759 sound/pci/hda/hda_generic.c info = snd_hda_codec_pcm_new(codec, "%s", codec 5763 sound/pci/hda/hda_generic.c codec->slave_dig_outs = spec->multiout.slave_dig_outs; codec 5793 sound/pci/hda/hda_generic.c " Alt Analog", codec->core.chip_name); codec 5794 sound/pci/hda/hda_generic.c info = snd_hda_codec_pcm_new(codec, "%s", codec 5830 sound/pci/hda/hda_generic.c static void set_output_and_unmute(struct hda_codec *codec, int path_idx) codec 5835 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); codec 5839 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, pin); codec 5840 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, codec 5841 sound/pci/hda/hda_generic.c aamix_default(codec->spec)); codec 5842 sound/pci/hda/hda_generic.c set_pin_eapd(codec, pin, path->active); codec 5846 sound/pci/hda/hda_generic.c static void init_multi_out(struct hda_codec *codec) codec 5848 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5852 sound/pci/hda/hda_generic.c set_output_and_unmute(codec, spec->out_paths[i]); codec 5856 sound/pci/hda/hda_generic.c static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) codec 5861 sound/pci/hda/hda_generic.c set_output_and_unmute(codec, paths[i]); codec 5865 sound/pci/hda/hda_generic.c static void init_extra_out(struct hda_codec *codec) codec 5867 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5870 sound/pci/hda/hda_generic.c __init_extra_out(codec, spec->autocfg.hp_outs, spec->hp_paths); codec 5872 sound/pci/hda/hda_generic.c __init_extra_out(codec, spec->autocfg.speaker_outs, codec 5877 sound/pci/hda/hda_generic.c static void init_multi_io(struct hda_codec *codec) codec 5879 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5885 sound/pci/hda/hda_generic.c path = get_multiio_path(codec, i); codec 5890 sound/pci/hda/hda_generic.c snd_hda_codec_get_pin_target(codec, pin); codec 5891 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, codec 5896 sound/pci/hda/hda_generic.c static void init_aamix_paths(struct hda_codec *codec) codec 5898 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5904 sound/pci/hda/hda_generic.c update_aamix_paths(codec, spec->aamix_mode, spec->out_paths[0], codec 5907 sound/pci/hda/hda_generic.c update_aamix_paths(codec, spec->aamix_mode, spec->hp_paths[0], codec 5910 sound/pci/hda/hda_generic.c update_aamix_paths(codec, spec->aamix_mode, spec->speaker_paths[0], codec 5916 sound/pci/hda/hda_generic.c static void init_analog_input(struct hda_codec *codec) codec 5918 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5924 sound/pci/hda/hda_generic.c if (is_input_pin(codec, nid)) codec 5925 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, nid); codec 5929 sound/pci/hda/hda_generic.c resume_path_from_idx(codec, spec->loopback_paths[i]); codec 5930 sound/pci/hda/hda_generic.c resume_path_from_idx(codec, spec->loopback_merge_path); codec 5936 sound/pci/hda/hda_generic.c static void init_input_src(struct hda_codec *codec) codec 5938 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5950 sound/pci/hda/hda_generic.c path = get_input_path(codec, c, i); codec 5955 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, active, false); codec 5959 sound/pci/hda/hda_generic.c update_hp_mic(codec, c, true); codec 5963 sound/pci/hda/hda_generic.c spec->cap_sync_hook(codec, NULL, NULL); codec 5967 sound/pci/hda/hda_generic.c static void init_digital(struct hda_codec *codec) codec 5969 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 5974 sound/pci/hda/hda_generic.c set_output_and_unmute(codec, spec->digout_paths[i]); codec 5977 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, pin); codec 5978 sound/pci/hda/hda_generic.c resume_path_from_idx(codec, spec->digin_path); codec 5985 sound/pci/hda/hda_generic.c static void clear_unsol_on_unused_pins(struct hda_codec *codec) codec 5990 sound/pci/hda/hda_generic.c snd_array_for_each(&codec->init_pins, i, pin) { codec 5992 sound/pci/hda/hda_generic.c if (is_jack_detectable(codec, nid) && codec 5993 sound/pci/hda/hda_generic.c !snd_hda_jack_tbl_get(codec, nid)) codec 5994 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, nid, 0, codec 6005 sound/pci/hda/hda_generic.c int snd_hda_gen_init(struct hda_codec *codec) codec 6007 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 6010 sound/pci/hda/hda_generic.c spec->init_hook(codec); codec 6013 sound/pci/hda/hda_generic.c snd_hda_apply_verbs(codec); codec 6015 sound/pci/hda/hda_generic.c init_multi_out(codec); codec 6016 sound/pci/hda/hda_generic.c init_extra_out(codec); codec 6017 sound/pci/hda/hda_generic.c init_multi_io(codec); codec 6018 sound/pci/hda/hda_generic.c init_aamix_paths(codec); codec 6019 sound/pci/hda/hda_generic.c init_analog_input(codec); codec 6020 sound/pci/hda/hda_generic.c init_input_src(codec); codec 6021 sound/pci/hda/hda_generic.c init_digital(codec); codec 6023 sound/pci/hda/hda_generic.c clear_unsol_on_unused_pins(codec); codec 6025 sound/pci/hda/hda_generic.c sync_all_pin_power_ctls(codec); codec 6028 sound/pci/hda/hda_generic.c update_automute_all(codec); codec 6030 sound/pci/hda/hda_generic.c snd_hda_regmap_sync(codec); codec 6035 sound/pci/hda/hda_generic.c hda_call_check_power_status(codec, 0x01); codec 6046 sound/pci/hda/hda_generic.c void snd_hda_gen_free(struct hda_codec *codec) codec 6048 sound/pci/hda/hda_generic.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE); codec 6049 sound/pci/hda/hda_generic.c snd_hda_gen_spec_free(codec->spec); codec 6050 sound/pci/hda/hda_generic.c kfree(codec->spec); codec 6051 sound/pci/hda/hda_generic.c codec->spec = NULL; codec 6061 sound/pci/hda/hda_generic.c void snd_hda_gen_reboot_notify(struct hda_codec *codec) codec 6066 sound/pci/hda/hda_generic.c snd_hda_codec_set_power_to_all(codec, codec->core.afg, AC_PWRST_D3); codec 6067 sound/pci/hda/hda_generic.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 6081 sound/pci/hda/hda_generic.c int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) codec 6083 sound/pci/hda/hda_generic.c struct hda_gen_spec *spec = codec->spec; codec 6084 sound/pci/hda/hda_generic.c return snd_hda_check_amp_list_power(codec, &spec->loopback, nid); codec 6110 sound/pci/hda/hda_generic.c static int snd_hda_parse_generic_codec(struct hda_codec *codec) codec 6119 sound/pci/hda/hda_generic.c codec->spec = spec; codec 6121 sound/pci/hda/hda_generic.c err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); codec 6125 sound/pci/hda/hda_generic.c err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); codec 6129 sound/pci/hda/hda_generic.c codec->patch_ops = generic_patch_ops; codec 6133 sound/pci/hda/hda_generic.c snd_hda_gen_free(codec); codec 89 sound/pci/hda/hda_generic.h void (*update)(struct hda_codec *codec); codec 90 sound/pci/hda/hda_generic.h void (*old_hook)(struct hda_codec *codec, codec 280 sound/pci/hda/hda_generic.h void (*init_hook)(struct hda_codec *codec); codec 281 sound/pci/hda/hda_generic.h void (*automute_hook)(struct hda_codec *codec); codec 282 sound/pci/hda/hda_generic.h void (*cap_sync_hook)(struct hda_codec *codec, codec 291 sound/pci/hda/hda_generic.h struct hda_codec *codec, codec 295 sound/pci/hda/hda_generic.h struct hda_codec *codec, codec 300 sound/pci/hda/hda_generic.h void (*hp_automute_hook)(struct hda_codec *codec, codec 302 sound/pci/hda/hda_generic.h void (*line_automute_hook)(struct hda_codec *codec, codec 304 sound/pci/hda/hda_generic.h void (*mic_autoswitch_hook)(struct hda_codec *codec, codec 317 sound/pci/hda/hda_generic.h int snd_hda_gen_init(struct hda_codec *codec); codec 318 sound/pci/hda/hda_generic.h void snd_hda_gen_free(struct hda_codec *codec); codec 320 sound/pci/hda/hda_generic.h int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path); codec 321 sound/pci/hda/hda_generic.h struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx); codec 323 sound/pci/hda/hda_generic.h snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, codec 325 sound/pci/hda/hda_generic.h void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, codec 332 sound/pci/hda/hda_generic.h int snd_hda_gen_parse_auto_config(struct hda_codec *codec, codec 334 sound/pci/hda/hda_generic.h int snd_hda_gen_build_controls(struct hda_codec *codec); codec 335 sound/pci/hda/hda_generic.h int snd_hda_gen_build_pcms(struct hda_codec *codec); codec 336 sound/pci/hda/hda_generic.h void snd_hda_gen_reboot_notify(struct hda_codec *codec); codec 339 sound/pci/hda/hda_generic.h void snd_hda_gen_hp_automute(struct hda_codec *codec, codec 341 sound/pci/hda/hda_generic.h void snd_hda_gen_line_automute(struct hda_codec *codec, codec 343 sound/pci/hda/hda_generic.h void snd_hda_gen_mic_autoswitch(struct hda_codec *codec, codec 345 sound/pci/hda/hda_generic.h void snd_hda_gen_update_outputs(struct hda_codec *codec); codec 348 sound/pci/hda/hda_generic.h int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid); codec 350 sound/pci/hda/hda_generic.h unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec, codec 353 sound/pci/hda/hda_generic.h void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on); codec 354 sound/pci/hda/hda_generic.h int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin); codec 356 sound/pci/hda/hda_generic.h int snd_hda_gen_add_micmute_led(struct hda_codec *codec, codec 358 sound/pci/hda/hda_generic.h void snd_hda_gen_fixup_micmute_led(struct hda_codec *codec, codec 21 sound/pci/hda/hda_hwdep.c static int verb_write_ioctl(struct hda_codec *codec, codec 28 sound/pci/hda/hda_hwdep.c res = snd_hda_codec_read(codec, verb >> 24, 0, codec 35 sound/pci/hda/hda_hwdep.c static int get_wcap_ioctl(struct hda_codec *codec, codec 44 sound/pci/hda/hda_hwdep.c if (verb < codec->core.start_nid || codec 45 sound/pci/hda/hda_hwdep.c verb >= codec->core.start_nid + codec->core.num_nodes) { codec 48 sound/pci/hda/hda_hwdep.c verb -= codec->core.start_nid; codec 49 sound/pci/hda/hda_hwdep.c verb = array_index_nospec(verb, codec->core.num_nodes); codec 50 sound/pci/hda/hda_hwdep.c res = codec->wcaps[verb]; codec 63 sound/pci/hda/hda_hwdep.c struct hda_codec *codec = hw->private_data; codec 70 sound/pci/hda/hda_hwdep.c return verb_write_ioctl(codec, argp); codec 72 sound/pci/hda/hda_hwdep.c return get_wcap_ioctl(codec, argp); codec 94 sound/pci/hda/hda_hwdep.c int snd_hda_create_hwdep(struct hda_codec *codec) codec 100 sound/pci/hda/hda_hwdep.c sprintf(hwname, "HDA Codec %d", codec->addr); codec 101 sound/pci/hda/hda_hwdep.c err = snd_hwdep_new(codec->card, hwname, codec->addr, &hwdep); codec 104 sound/pci/hda/hda_hwdep.c codec->hwdep = hwdep; codec 105 sound/pci/hda/hda_hwdep.c sprintf(hwdep->name, "HDA Codec %d", codec->addr); codec 107 sound/pci/hda/hda_hwdep.c hwdep->private_data = codec; codec 118 sound/pci/hda/hda_hwdep.c dev_set_drvdata(&hwdep->dev, codec); codec 990 sound/pci/hda/hda_intel.c struct hda_codec *codec; codec 1004 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) codec 1005 sound/pci/hda/hda_intel.c if (status & (1 << codec->addr)) codec 1006 sound/pci/hda/hda_intel.c schedule_delayed_work(&codec->jackpoll_work, codec 1007 sound/pci/hda/hda_intel.c codec->jackpoll_interval); codec 1187 sound/pci/hda/hda_intel.c struct hda_codec *codec; codec 1210 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) { codec 1211 sound/pci/hda/hda_intel.c pm_runtime_suspend(hda_codec_dev(codec)); codec 1212 sound/pci/hda/hda_intel.c pm_runtime_disable(hda_codec_dev(codec)); codec 1228 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) { codec 1229 sound/pci/hda/hda_intel.c pm_runtime_enable(hda_codec_dev(codec)); codec 1230 sound/pci/hda/hda_intel.c pm_runtime_resume(hda_codec_dev(codec)); codec 1260 sound/pci/hda/hda_intel.c struct hda_codec *codec; codec 1263 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) codec 1264 sound/pci/hda/hda_intel.c codec->auto_runtime_pm = 1; codec 29 sound/pci/hda/hda_jack.c bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) codec 31 sound/pci/hda/hda_jack.c if (codec->no_jack_detect) codec 33 sound/pci/hda/hda_jack.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) codec 35 sound/pci/hda/hda_jack.c if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & codec 38 sound/pci/hda/hda_jack.c if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && codec 39 sound/pci/hda/hda_jack.c !codec->jackpoll_interval) codec 46 sound/pci/hda/hda_jack.c static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) codec 51 sound/pci/hda/hda_jack.c if (!codec->no_trigger_sense) { codec 52 sound/pci/hda/hda_jack.c pincap = snd_hda_query_pin_caps(codec, nid); codec 54 sound/pci/hda/hda_jack.c snd_hda_codec_read(codec, nid, 0, codec 57 sound/pci/hda/hda_jack.c val = snd_hda_codec_read(codec, nid, 0, codec 59 sound/pci/hda/hda_jack.c if (codec->inv_jack_detect) codec 70 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) codec 72 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = codec->jacktbl.list; codec 77 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) codec 90 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag) codec 92 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = codec->jacktbl.list; codec 97 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) codec 110 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) codec 112 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); codec 115 sound/pci/hda/hda_jack.c jack = snd_array_new(&codec->jacktbl); codec 120 sound/pci/hda/hda_jack.c jack->tag = codec->jacktbl.used; codec 124 sound/pci/hda/hda_jack.c void snd_hda_jack_tbl_clear(struct hda_codec *codec) codec 126 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = codec->jacktbl.list; codec 129 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) { codec 133 sound/pci/hda/hda_jack.c if (!codec->bus->shutdown && jack->jack) codec 134 sound/pci/hda/hda_jack.c snd_device_free(codec->card, jack->jack); codec 141 sound/pci/hda/hda_jack.c snd_array_free(&codec->jacktbl); codec 147 sound/pci/hda/hda_jack.c static void jack_detect_update(struct hda_codec *codec, codec 156 sound/pci/hda/hda_jack.c jack->pin_sense = read_pin_sense(codec, jack->nid); codec 159 sound/pci/hda/hda_jack.c if (jack->gating_jack && !snd_hda_jack_detect(codec, jack->gating_jack)) codec 167 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_get(codec, jack->gated_jack); codec 170 sound/pci/hda/hda_jack.c jack_detect_update(codec, gated); codec 182 sound/pci/hda/hda_jack.c void snd_hda_jack_set_dirty_all(struct hda_codec *codec) codec 184 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = codec->jacktbl.list; codec 187 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) codec 201 sound/pci/hda/hda_jack.c u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) codec 203 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); codec 205 sound/pci/hda/hda_jack.c jack_detect_update(codec, jack); codec 208 sound/pci/hda/hda_jack.c return read_pin_sense(codec, nid); codec 220 sound/pci/hda/hda_jack.c int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) codec 222 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); codec 225 sound/pci/hda/hda_jack.c else if (snd_hda_pin_sense(codec, nid) & AC_PINSENSE_PRESENCE) codec 243 sound/pci/hda/hda_jack.c snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, codec 250 sound/pci/hda/hda_jack.c jack = snd_hda_jack_tbl_new(codec, nid); codec 266 sound/pci/hda/hda_jack.c if (codec->jackpoll_interval > 0) codec 268 sound/pci/hda/hda_jack.c err = snd_hda_codec_write_cache(codec, nid, 0, codec 285 sound/pci/hda/hda_jack.c int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid) codec 287 sound/pci/hda/hda_jack.c return PTR_ERR_OR_ZERO(snd_hda_jack_detect_enable_callback(codec, nid, NULL)); codec 299 sound/pci/hda/hda_jack.c int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, codec 302 sound/pci/hda/hda_jack.c struct hda_jack_tbl *gated = snd_hda_jack_tbl_new(codec, gated_nid); codec 303 sound/pci/hda/hda_jack.c struct hda_jack_tbl *gating = snd_hda_jack_tbl_new(codec, gating_nid); codec 319 sound/pci/hda/hda_jack.c void snd_hda_jack_report_sync(struct hda_codec *codec) codec 325 sound/pci/hda/hda_jack.c jack = codec->jacktbl.list; codec 326 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) codec 328 sound/pci/hda/hda_jack.c jack_detect_update(codec, jack); codec 333 sound/pci/hda/hda_jack.c jack = codec->jacktbl.list; codec 334 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) codec 352 sound/pci/hda/hda_jack.c static int get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) codec 354 sound/pci/hda/hda_jack.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 390 sound/pci/hda/hda_jack.c int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, codec 398 sound/pci/hda/hda_jack.c jack = snd_hda_jack_tbl_new(codec, nid); codec 405 sound/pci/hda/hda_jack.c type = get_input_jack_type(codec, nid); codec 413 sound/pci/hda/hda_jack.c err = snd_jack_new(codec->card, name, type | buttons, codec 428 sound/pci/hda/hda_jack.c state = snd_hda_jack_detect(codec, nid); codec 435 sound/pci/hda/hda_jack.c static int add_jack_kctl(struct hda_codec *codec, hda_nid_t nid, codec 446 sound/pci/hda/hda_jack.c def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 451 sound/pci/hda/hda_jack.c !is_jack_detectable(codec, nid); codec 456 sound/pci/hda/hda_jack.c snd_hda_get_pin_label(codec, nid, cfg, name, sizeof(name), NULL); codec 460 sound/pci/hda/hda_jack.c err = snd_hda_jack_add_kctl(codec, nid, name, phantom_jack, 0, NULL); codec 465 sound/pci/hda/hda_jack.c return snd_hda_jack_detect_enable(codec, nid); codec 474 sound/pci/hda/hda_jack.c int snd_hda_jack_add_kctls(struct hda_codec *codec, codec 485 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, auto_cfg_hp_pins(cfg)[0], codec 488 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->inputs[i].pin, codec 491 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->inputs[i].pin, cfg, codec 498 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, *p, cfg, NULL); codec 505 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, *p, cfg, NULL); codec 512 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, *p, cfg, NULL); codec 517 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, *p, cfg, NULL); codec 521 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->dig_in_pin, cfg, NULL); codec 524 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->mono_out_pin, cfg, NULL); codec 531 sound/pci/hda/hda_jack.c static void call_jack_callback(struct hda_codec *codec, unsigned int res, codec 539 sound/pci/hda/hda_jack.c cb->func(codec, cb); codec 543 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_get(codec, jack->gated_jack); codec 548 sound/pci/hda/hda_jack.c cb->func(codec, cb); codec 559 sound/pci/hda/hda_jack.c void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res) codec 564 sound/pci/hda/hda_jack.c event = snd_hda_jack_tbl_get_from_tag(codec, tag); codec 569 sound/pci/hda/hda_jack.c call_jack_callback(codec, res, event); codec 570 sound/pci/hda/hda_jack.c snd_hda_jack_report_sync(codec); codec 581 sound/pci/hda/hda_jack.c void snd_hda_jack_poll_all(struct hda_codec *codec) codec 583 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = codec->jacktbl.list; codec 586 sound/pci/hda/hda_jack.c for (i = 0; i < codec->jacktbl.used; i++, jack++) { codec 591 sound/pci/hda/hda_jack.c jack_detect_update(codec, jack); codec 595 sound/pci/hda/hda_jack.c call_jack_callback(codec, 0, jack); codec 598 sound/pci/hda/hda_jack.c snd_hda_jack_report_sync(codec); codec 52 sound/pci/hda/hda_jack.h snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid); codec 54 sound/pci/hda/hda_jack.h snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag); codec 56 sound/pci/hda/hda_jack.h void snd_hda_jack_tbl_clear(struct hda_codec *codec); codec 58 sound/pci/hda/hda_jack.h void snd_hda_jack_set_dirty_all(struct hda_codec *codec); codec 60 sound/pci/hda/hda_jack.h int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid); codec 62 sound/pci/hda/hda_jack.h snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, codec 65 sound/pci/hda/hda_jack.h int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, codec 68 sound/pci/hda/hda_jack.h u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid); codec 75 sound/pci/hda/hda_jack.h int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid); codec 82 sound/pci/hda/hda_jack.h static inline bool snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) codec 84 sound/pci/hda/hda_jack.h return snd_hda_jack_detect_state(codec, nid) != HDA_JACK_NOT_PRESENT; codec 87 sound/pci/hda/hda_jack.h bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid); codec 89 sound/pci/hda/hda_jack.h int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, codec 92 sound/pci/hda/hda_jack.h int snd_hda_jack_add_kctls(struct hda_codec *codec, codec 95 sound/pci/hda/hda_jack.h void snd_hda_jack_report_sync(struct hda_codec *codec); codec 97 sound/pci/hda/hda_jack.h void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res); codec 99 sound/pci/hda/hda_jack.h void snd_hda_jack_poll_all(struct hda_codec *codec); codec 117 sound/pci/hda/hda_local.h #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ codec 118 sound/pci/hda/hda_local.h snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) codec 119 sound/pci/hda/hda_local.h int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, codec 121 sound/pci/hda/hda_local.h int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, codec 123 sound/pci/hda/hda_local.h int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, codec 125 sound/pci/hda/hda_local.h int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, codec 127 sound/pci/hda/hda_local.h void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, codec 129 sound/pci/hda/hda_local.h struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, codec 131 sound/pci/hda/hda_local.h int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, codec 135 sound/pci/hda/hda_local.h #define snd_hda_add_vmaster(codec, name, tlv, slaves, suffix) \ codec 136 sound/pci/hda/hda_local.h __snd_hda_add_vmaster(codec, name, tlv, slaves, suffix, true, NULL) codec 137 sound/pci/hda/hda_local.h int snd_hda_codec_reset(struct hda_codec *codec); codec 138 sound/pci/hda/hda_local.h void snd_hda_codec_register(struct hda_codec *codec); codec 139 sound/pci/hda/hda_local.h void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec); codec 141 sound/pci/hda/hda_local.h #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) codec 157 sound/pci/hda/hda_local.h struct hda_codec *codec; codec 160 sound/pci/hda/hda_local.h int snd_hda_add_vmaster_hook(struct hda_codec *codec, codec 173 sound/pci/hda/hda_local.h int snd_hda_create_dig_out_ctls(struct hda_codec *codec, codec 176 sound/pci/hda/hda_local.h #define snd_hda_create_spdif_out_ctls(codec, anid, cnid) \ codec 177 sound/pci/hda/hda_local.h snd_hda_create_dig_out_ctls(codec, anid, cnid, HDA_PCM_TYPE_SPDIF) codec 178 sound/pci/hda/hda_local.h int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid); codec 195 sound/pci/hda/hda_local.h int snd_hda_input_mux_put(struct hda_codec *codec, codec 199 sound/pci/hda/hda_local.h int snd_hda_add_imux_item(struct hda_codec *codec, codec 233 sound/pci/hda/hda_local.h int snd_hda_create_spdif_share_sw(struct hda_codec *codec, codec 235 sound/pci/hda/hda_local.h int snd_hda_multi_out_dig_open(struct hda_codec *codec, codec 237 sound/pci/hda/hda_local.h int snd_hda_multi_out_dig_close(struct hda_codec *codec, codec 239 sound/pci/hda/hda_local.h int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, codec 244 sound/pci/hda/hda_local.h int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, codec 246 sound/pci/hda/hda_local.h int snd_hda_multi_out_analog_open(struct hda_codec *codec, codec 250 sound/pci/hda/hda_local.h int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, codec 255 sound/pci/hda/hda_local.h int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, codec 262 sound/pci/hda/hda_local.h int snd_hda_codec_proc_new(struct hda_codec *codec); codec 264 sound/pci/hda/hda_local.h static inline int snd_hda_codec_proc_new(struct hda_codec *codec) { return 0; } codec 273 sound/pci/hda/hda_local.h int snd_hda_add_new_ctls(struct hda_codec *codec, codec 298 sound/pci/hda/hda_local.h void (*func)(struct hda_codec *codec, codec 305 sound/pci/hda/hda_local.h unsigned int codec; /* Codec vendor/device ID */ codec 317 sound/pci/hda/hda_local.h { .codec = _codec,\ codec 326 sound/pci/hda/hda_local.h { .codec = _codec,\ codec 355 sound/pci/hda/hda_local.h int snd_hda_add_verbs(struct hda_codec *codec, const struct hda_verb *list); codec 356 sound/pci/hda/hda_local.h void snd_hda_apply_verbs(struct hda_codec *codec); codec 357 sound/pci/hda/hda_local.h void snd_hda_apply_pincfgs(struct hda_codec *codec, codec 359 sound/pci/hda/hda_local.h void snd_hda_apply_fixup(struct hda_codec *codec, int action); codec 360 sound/pci/hda/hda_local.h void snd_hda_pick_fixup(struct hda_codec *codec, codec 364 sound/pci/hda/hda_local.h void snd_hda_pick_pin_fixup(struct hda_codec *codec, codec 400 sound/pci/hda/hda_local.h unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin); codec 401 sound/pci/hda/hda_local.h unsigned int snd_hda_correct_pin_ctl(struct hda_codec *codec, codec 403 sound/pci/hda/hda_local.h int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, codec 422 sound/pci/hda/hda_local.h snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) codec 424 sound/pci/hda/hda_local.h return _snd_hda_set_pin_ctl(codec, pin, val, false); codec 436 sound/pci/hda/hda_local.h snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, codec 439 sound/pci/hda/hda_local.h return _snd_hda_set_pin_ctl(codec, pin, val, true); codec 442 sound/pci/hda/hda_local.h int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid); codec 443 sound/pci/hda/hda_local.h int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, codec 446 sound/pci/hda/hda_local.h #define for_each_hda_codec_node(nid, codec) \ codec 447 sound/pci/hda/hda_local.h for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) codec 452 sound/pci/hda/hda_local.h static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) codec 454 sound/pci/hda/hda_local.h if (nid < codec->core.start_nid || codec 455 sound/pci/hda/hda_local.h nid >= codec->core.start_nid + codec->core.num_nodes) codec 457 sound/pci/hda/hda_local.h return codec->wcaps[nid - codec->core.start_nid]; codec 478 sound/pci/hda/hda_local.h static inline void snd_hda_override_wcaps(struct hda_codec *codec, codec 481 sound/pci/hda/hda_local.h if (nid >= codec->core.start_nid && codec 482 sound/pci/hda/hda_local.h nid < codec->core.start_nid + codec->core.num_nodes) codec 483 sound/pci/hda/hda_local.h codec->wcaps[nid - codec->core.start_nid] = val; codec 486 sound/pci/hda/hda_local.h u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction); codec 487 sound/pci/hda/hda_local.h int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, codec 501 sound/pci/hda/hda_local.h snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) codec 503 sound/pci/hda/hda_local.h return snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); codec 518 sound/pci/hda/hda_local.h snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, codec 521 sound/pci/hda/hda_local.h return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); codec 524 sound/pci/hda/hda_local.h bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, codec 527 sound/pci/hda/hda_local.h #define nid_has_mute(codec, nid, dir) \ codec 528 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE)) codec 529 sound/pci/hda/hda_local.h #define nid_has_volume(codec, nid, dir) \ codec 530 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS) codec 543 sound/pci/hda/hda_local.h int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, codec 545 sound/pci/hda/hda_local.h int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, codec 547 sound/pci/hda/hda_local.h void snd_hda_ctls_clear(struct hda_codec *codec); codec 553 sound/pci/hda/hda_local.h int snd_hda_create_hwdep(struct hda_codec *codec); codec 555 sound/pci/hda/hda_local.h static inline int snd_hda_create_hwdep(struct hda_codec *codec) { return 0; } codec 558 sound/pci/hda/hda_local.h void snd_hda_sysfs_init(struct hda_codec *codec); codec 559 sound/pci/hda/hda_local.h void snd_hda_sysfs_clear(struct hda_codec *codec); codec 564 sound/pci/hda/hda_local.h const char *snd_hda_get_hint(struct hda_codec *codec, const char *key); codec 565 sound/pci/hda/hda_local.h int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key); codec 566 sound/pci/hda/hda_local.h int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp); codec 569 sound/pci/hda/hda_local.h const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) codec 575 sound/pci/hda/hda_local.h int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) codec 581 sound/pci/hda/hda_local.h int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) codec 591 sound/pci/hda/hda_local.h void snd_hda_schedule_power_save(struct hda_codec *codec); codec 604 sound/pci/hda/hda_local.h int snd_hda_check_amp_list_power(struct hda_codec *codec, codec 610 sound/pci/hda/hda_local.h snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, codec 613 sound/pci/hda/hda_local.h return snd_hdac_check_power_state(&codec->core, nid, target_state); codec 616 sound/pci/hda/hda_local.h static inline unsigned int snd_hda_sync_power_state(struct hda_codec *codec, codec 620 sound/pci/hda/hda_local.h return snd_hdac_sync_power_state(&codec->core, nid, target_state); codec 622 sound/pci/hda/hda_local.h unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, codec 697 sound/pci/hda/hda_local.h int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid); codec 698 sound/pci/hda/hda_local.h int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, codec 700 sound/pci/hda/hda_local.h int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e, codec 702 sound/pci/hda/hda_local.h void snd_hdmi_show_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e); codec 706 sound/pci/hda/hda_local.h int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, codec 722 sound/pci/hda/hda_local.h #define codec_err(codec, fmt, args...) \ codec 723 sound/pci/hda/hda_local.h dev_err(hda_codec_dev(codec), fmt, ##args) codec 724 sound/pci/hda/hda_local.h #define codec_warn(codec, fmt, args...) \ codec 725 sound/pci/hda/hda_local.h dev_warn(hda_codec_dev(codec), fmt, ##args) codec 726 sound/pci/hda/hda_local.h #define codec_info(codec, fmt, args...) \ codec 727 sound/pci/hda/hda_local.h dev_info(hda_codec_dev(codec), fmt, ##args) codec 728 sound/pci/hda/hda_local.h #define codec_dbg(codec, fmt, args...) \ codec 729 sound/pci/hda/hda_local.h dev_dbg(hda_codec_dev(codec), fmt, ##args) codec 22 sound/pci/hda/hda_proc.c #define param_read(codec, nid, parm) \ codec 23 sound/pci/hda/hda_proc.c snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) codec 48 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 75 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 80 sound/pci/hda/hda_proc.c list_for_each_entry(cpcm, &codec->pcm_list_head, list) { codec 94 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, int dir) codec 97 sound/pci/hda/hda_proc.c caps = param_read(codec, nid, dir == HDA_OUTPUT ? codec 112 sound/pci/hda/hda_proc.c static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, codec 126 sound/pci/hda/hda_proc.c if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) codec 129 sound/pci/hda/hda_proc.c wcaps = snd_hda_param_read(codec, conn, AC_PAR_AUDIO_WIDGET_CAP); codec 134 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 141 sound/pci/hda/hda_proc.c stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); codec 146 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, codec 151 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, codec 200 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 202 sound/pci/hda/hda_proc.c unsigned int pcm = param_read(codec, nid, AC_PAR_PCM); codec 203 sound/pci/hda/hda_proc.c unsigned int stream = param_read(codec, nid, AC_PAR_STREAM); codec 305 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 313 sound/pci/hda/hda_proc.c caps = param_read(codec, nid, AC_PAR_PIN_CAP); codec 329 sound/pci/hda/hda_proc.c if ((codec->core.vendor_id >> 16) == 0x10ec) codec 363 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, codec 374 sound/pci/hda/hda_proc.c caps = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0); codec 401 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 406 sound/pci/hda/hda_proc.c pinctls = snd_hda_codec_read(codec, nid, 0, codec 439 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 441 sound/pci/hda/hda_proc.c unsigned int cap = param_read(codec, nid, AC_PAR_VOL_KNB_CAP); codec 444 sound/pci/hda/hda_proc.c cap = snd_hda_codec_read(codec, nid, 0, codec 451 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 454 sound/pci/hda/hda_proc.c int conv = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0); codec 461 sound/pci/hda/hda_proc.c int sdi = snd_hda_codec_read(codec, nid, 0, codec 469 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 471 sound/pci/hda/hda_proc.c unsigned int digi1 = snd_hda_codec_read(codec, nid, 0, codec 513 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 526 sound/pci/hda/hda_proc.c int sup = param_read(codec, nid, AC_PAR_POWER_STATE); codec 527 sound/pci/hda/hda_proc.c int pwr = snd_hda_codec_read(codec, nid, 0, codec 554 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 556 sound/pci/hda/hda_proc.c int unsol = snd_hda_codec_read(codec, nid, 0, codec 564 sound/pci/hda/hda_proc.c static inline bool can_dump_coef(struct hda_codec *codec) codec 569 sound/pci/hda/hda_proc.c default: return codec->dump_coef; codec 574 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 577 sound/pci/hda/hda_proc.c unsigned int proc_caps = param_read(codec, nid, AC_PAR_PROC_CAP); codec 582 sound/pci/hda/hda_proc.c if (!can_dump_coef(codec)) codec 587 sound/pci/hda/hda_proc.c oldindex = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_COEF_INDEX, 0); codec 590 sound/pci/hda/hda_proc.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, i); codec 591 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, codec 595 sound/pci/hda/hda_proc.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, oldindex); codec 599 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, codec 611 sound/pci/hda/hda_proc.c curr = snd_hda_codec_read(codec, nid, 0, codec 625 sound/pci/hda/hda_proc.c cache_len = snd_hda_get_conn_list(codec, nid, &list); codec 639 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 642 sound/pci/hda/hda_proc.c param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP); codec 655 sound/pci/hda/hda_proc.c enable = snd_hda_codec_read(codec, nid, 0, codec 657 sound/pci/hda/hda_proc.c direction = snd_hda_codec_read(codec, nid, 0, codec 659 sound/pci/hda/hda_proc.c wake = snd_hda_codec_read(codec, nid, 0, codec 661 sound/pci/hda/hda_proc.c unsol = snd_hda_codec_read(codec, nid, 0, codec 663 sound/pci/hda/hda_proc.c sticky = snd_hda_codec_read(codec, nid, 0, codec 665 sound/pci/hda/hda_proc.c data = snd_hda_codec_read(codec, nid, 0, codec 678 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->mixers); codec 679 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->nids); codec 683 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) codec 689 sound/pci/hda/hda_proc.c devlist_len = snd_hda_get_devices(codec, nid, dev_list, codec 695 sound/pci/hda/hda_proc.c curr = snd_hda_codec_read(codec, nid, 0, codec 712 sound/pci/hda/hda_proc.c static void print_codec_core_info(struct hdac_device *codec, codec 716 sound/pci/hda/hda_proc.c if (codec->vendor_name && codec->chip_name) codec 718 sound/pci/hda/hda_proc.c codec->vendor_name, codec->chip_name); codec 721 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Address: %d\n", codec->addr); codec 722 sound/pci/hda/hda_proc.c if (codec->afg) codec 724 sound/pci/hda/hda_proc.c codec->afg_function_id, codec->afg_unsol); codec 725 sound/pci/hda/hda_proc.c if (codec->mfg) codec 727 sound/pci/hda/hda_proc.c codec->mfg_function_id, codec->mfg_unsol); codec 728 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Vendor Id: 0x%08x\n", codec->vendor_id); codec 729 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Subsystem Id: 0x%08x\n", codec->subsystem_id); codec 730 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Revision Id: 0x%x\n", codec->revision_id); codec 732 sound/pci/hda/hda_proc.c if (codec->mfg) codec 733 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Modem Function Group: 0x%x\n", codec->mfg); codec 741 sound/pci/hda/hda_proc.c struct hda_codec *codec = entry->private_data; codec 745 sound/pci/hda/hda_proc.c print_codec_core_info(&codec->core, buffer); codec 746 sound/pci/hda/hda_proc.c fg = codec->core.afg; codec 749 sound/pci/hda/hda_proc.c snd_hda_power_up(codec); codec 751 sound/pci/hda/hda_proc.c print_pcm_caps(buffer, codec, fg); codec 753 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, fg, HDA_INPUT); codec 755 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, fg, HDA_OUTPUT); codec 757 sound/pci/hda/hda_proc.c print_power_state(buffer, codec, fg); codec 759 sound/pci/hda/hda_proc.c nodes = snd_hda_get_sub_nodes(codec, fg, &nid); codec 762 sound/pci/hda/hda_proc.c snd_hda_power_down(codec); codec 766 sound/pci/hda/hda_proc.c print_gpio(buffer, codec, fg); codec 767 sound/pci/hda/hda_proc.c if (codec->proc_widget_hook) codec 768 sound/pci/hda/hda_proc.c codec->proc_widget_hook(buffer, codec, fg); codec 772 sound/pci/hda/hda_proc.c param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP); codec 801 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->mixers); codec 802 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->nids); codec 803 sound/pci/hda/hda_proc.c print_nid_pcms(buffer, codec, nid); codec 812 sound/pci/hda/hda_proc.c conn_len = snd_hda_get_num_raw_conns(codec, nid); codec 819 sound/pci/hda/hda_proc.c if (snd_hda_get_raw_connections(codec, nid, conn, codec 827 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, nid, HDA_INPUT); codec 830 sound/pci/hda/hda_proc.c (codec->single_adc_amp && codec 832 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_INPUT, codec 835 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_INPUT, codec 840 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, nid, HDA_OUTPUT); codec 843 sound/pci/hda/hda_proc.c codec->pin_amp_workaround) codec 844 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_OUTPUT, codec 847 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_OUTPUT, codec 854 sound/pci/hda/hda_proc.c print_pin_caps(buffer, codec, nid, &supports_vref); codec 855 sound/pci/hda/hda_proc.c print_pin_ctls(buffer, codec, nid, supports_vref); codec 859 sound/pci/hda/hda_proc.c print_vol_knob(buffer, codec, nid); codec 863 sound/pci/hda/hda_proc.c print_audio_io(buffer, codec, nid, wid_type); codec 865 sound/pci/hda/hda_proc.c print_digital_conv(buffer, codec, nid); codec 868 sound/pci/hda/hda_proc.c print_pcm_caps(buffer, codec, nid); codec 874 sound/pci/hda/hda_proc.c print_unsol_cap(buffer, codec, nid); codec 877 sound/pci/hda/hda_proc.c print_power_state(buffer, codec, nid); codec 884 sound/pci/hda/hda_proc.c if (wid_type == AC_WID_PIN && codec->dp_mst) codec 885 sound/pci/hda/hda_proc.c print_device_list(buffer, codec, nid); codec 888 sound/pci/hda/hda_proc.c print_conn_list(buffer, codec, nid, wid_type, codec 892 sound/pci/hda/hda_proc.c print_proc_caps(buffer, codec, nid); codec 894 sound/pci/hda/hda_proc.c if (codec->proc_widget_hook) codec 895 sound/pci/hda/hda_proc.c codec->proc_widget_hook(buffer, codec, nid); codec 899 sound/pci/hda/hda_proc.c snd_hda_power_down(codec); codec 905 sound/pci/hda/hda_proc.c int snd_hda_codec_proc_new(struct hda_codec *codec) codec 909 sound/pci/hda/hda_proc.c snprintf(name, sizeof(name), "codec#%d", codec->core.addr); codec 910 sound/pci/hda/hda_proc.c return snd_card_ro_proc_new(codec->card, name, codec, print_codec_info); codec 34 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 35 sound/pci/hda/hda_sysfs.c snd_hda_update_power_acct(codec); codec 36 sound/pci/hda/hda_sysfs.c return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); codec 43 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 44 sound/pci/hda/hda_sysfs.c snd_hda_update_power_acct(codec); codec 45 sound/pci/hda/hda_sysfs.c return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); codec 57 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); \ codec 58 sound/pci/hda/hda_sysfs.c return sprintf(buf, "0x%x\n", codec->field); \ codec 66 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); \ codec 68 sound/pci/hda/hda_sysfs.c codec->field ? codec->field : ""); \ codec 80 sound/pci/hda/hda_sysfs.c static ssize_t pin_configs_show(struct hda_codec *codec, codec 86 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 91 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 99 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 100 sound/pci/hda/hda_sysfs.c return pin_configs_show(codec, &codec->init_pins, buf); codec 107 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 108 sound/pci/hda/hda_sysfs.c return pin_configs_show(codec, &codec->driver_pins, buf); codec 117 sound/pci/hda/hda_sysfs.c static int clear_codec(struct hda_codec *codec) codec 121 sound/pci/hda/hda_sysfs.c err = snd_hda_codec_reset(codec); codec 123 sound/pci/hda/hda_sysfs.c codec_err(codec, "The codec is being used, can't free.\n"); codec 126 sound/pci/hda/hda_sysfs.c snd_hda_sysfs_clear(codec); codec 130 sound/pci/hda/hda_sysfs.c static int reconfig_codec(struct hda_codec *codec) codec 134 sound/pci/hda/hda_sysfs.c snd_hda_power_up(codec); codec 135 sound/pci/hda/hda_sysfs.c codec_info(codec, "hda-codec: reconfiguring\n"); codec 136 sound/pci/hda/hda_sysfs.c err = snd_hda_codec_reset(codec); codec 138 sound/pci/hda/hda_sysfs.c codec_err(codec, codec 142 sound/pci/hda/hda_sysfs.c err = snd_hda_codec_configure(codec); codec 145 sound/pci/hda/hda_sysfs.c err = snd_card_register(codec->card); codec 147 sound/pci/hda/hda_sysfs.c snd_hda_power_down(codec); codec 171 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); \ codec 176 sound/pci/hda/hda_sysfs.c codec->field = val; \ codec 185 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); \ codec 189 sound/pci/hda/hda_sysfs.c kfree(codec->field); \ codec 190 sound/pci/hda/hda_sysfs.c codec->field = s; \ codec 206 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); \ codec 209 sound/pci/hda/hda_sysfs.c err = type##_codec(codec); \ codec 220 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 223 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 224 sound/pci/hda/hda_sysfs.c snd_array_for_each(&codec->init_verbs, i, v) { codec 229 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 233 sound/pci/hda/hda_sysfs.c static int parse_init_verbs(struct hda_codec *codec, const char *buf) codec 242 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 243 sound/pci/hda/hda_sysfs.c v = snd_array_new(&codec->init_verbs); codec 245 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 251 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 259 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 260 sound/pci/hda/hda_sysfs.c int err = parse_init_verbs(codec, buf); codec 270 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 273 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 274 sound/pci/hda/hda_sysfs.c snd_array_for_each(&codec->hints, i, hint) { codec 278 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 282 sound/pci/hda/hda_sysfs.c static struct hda_hint *get_hint(struct hda_codec *codec, const char *key) codec 287 sound/pci/hda/hda_sysfs.c snd_array_for_each(&codec->hints, i, hint) { codec 309 sound/pci/hda/hda_sysfs.c static int parse_hints(struct hda_codec *codec, const char *buf) codec 333 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 334 sound/pci/hda/hda_sysfs.c hint = get_hint(codec, key); codec 343 sound/pci/hda/hda_sysfs.c if (codec->hints.used >= MAX_HINTS) codec 346 sound/pci/hda/hda_sysfs.c hint = snd_array_new(&codec->hints); codec 354 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 364 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 365 sound/pci/hda/hda_sysfs.c int err = parse_hints(codec, buf); codec 375 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 376 sound/pci/hda/hda_sysfs.c return pin_configs_show(codec, &codec->user_pins, buf); codec 381 sound/pci/hda/hda_sysfs.c static int parse_user_pin_configs(struct hda_codec *codec, const char *buf) codec 389 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 390 sound/pci/hda/hda_sysfs.c err = snd_hda_add_pincfg(codec, &codec->user_pins, nid, cfg); codec 391 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 399 sound/pci/hda/hda_sysfs.c struct hda_codec *codec = dev_get_drvdata(dev); codec 400 sound/pci/hda/hda_sysfs.c int err = parse_user_pin_configs(codec, buf); codec 421 sound/pci/hda/hda_sysfs.c const char *snd_hda_get_hint(struct hda_codec *codec, const char *key) codec 423 sound/pci/hda/hda_sysfs.c struct hda_hint *hint = get_hint(codec, key); codec 437 sound/pci/hda/hda_sysfs.c int snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) codec 442 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 443 sound/pci/hda/hda_sysfs.c p = snd_hda_get_hint(codec, key); codec 458 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 473 sound/pci/hda/hda_sysfs.c int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) codec 479 sound/pci/hda/hda_sysfs.c mutex_lock(&codec->user_mutex); codec 480 sound/pci/hda/hda_sysfs.c p = snd_hda_get_hint(codec, key); codec 489 sound/pci/hda/hda_sysfs.c mutex_unlock(&codec->user_mutex); codec 544 sound/pci/hda/hda_sysfs.c struct hda_codec *codec; codec 548 sound/pci/hda/hda_sysfs.c list_for_each_codec(codec, bus) { codec 549 sound/pci/hda/hda_sysfs.c if ((vendorid <= 0 || codec->core.vendor_id == vendorid) && codec 550 sound/pci/hda/hda_sysfs.c (subid <= 0 || codec->core.subsystem_id == subid) && codec 551 sound/pci/hda/hda_sysfs.c codec->core.addr == caddr) { codec 552 sound/pci/hda/hda_sysfs.c *codecp = codec; codec 718 sound/pci/hda/hda_sysfs.c struct hda_codec *codec; codec 722 sound/pci/hda/hda_sysfs.c codec = NULL; codec 729 sound/pci/hda/hda_sysfs.c (codec || line_mode <= LINE_MODE_CODEC)) codec 730 sound/pci/hda/hda_sysfs.c patch_items[line_mode].parser(buf, bus, &codec); codec 774 sound/pci/hda/hda_sysfs.c void snd_hda_sysfs_init(struct hda_codec *codec) codec 776 sound/pci/hda/hda_sysfs.c mutex_init(&codec->user_mutex); codec 778 sound/pci/hda/hda_sysfs.c snd_array_init(&codec->init_verbs, sizeof(struct hda_verb), 32); codec 779 sound/pci/hda/hda_sysfs.c snd_array_init(&codec->hints, sizeof(struct hda_hint), 32); codec 780 sound/pci/hda/hda_sysfs.c snd_array_init(&codec->user_pins, sizeof(struct hda_pincfg), 16); codec 784 sound/pci/hda/hda_sysfs.c void snd_hda_sysfs_clear(struct hda_codec *codec) codec 791 sound/pci/hda/hda_sysfs.c snd_array_free(&codec->init_verbs); codec 793 sound/pci/hda/hda_sysfs.c snd_array_for_each(&codec->hints, i, hint) { codec 796 sound/pci/hda/hda_sysfs.c snd_array_free(&codec->hints); codec 797 sound/pci/hda/hda_sysfs.c snd_array_free(&codec->user_pins); codec 6 sound/pci/hda/hp_x360_helper.c static void alc295_fixup_hp_top_speakers(struct hda_codec *codec, codec 88 sound/pci/hda/hp_x360_helper.c snd_hda_apply_pincfgs(codec, pincfgs); codec 89 sound/pci/hda/hp_x360_helper.c alc295_fixup_disable_dac3(codec, fix, action); codec 92 sound/pci/hda/hp_x360_helper.c alc_process_coef_fw(codec, alc295_hp_speakers_coefs); codec 49 sound/pci/hda/patch_analog.c static int create_beep_ctls(struct hda_codec *codec) codec 51 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 60 sound/pci/hda/patch_analog.c kctl = snd_ctl_new1(knew, codec); codec 64 sound/pci/hda/patch_analog.c err = snd_hda_ctl_add(codec, 0, kctl); codec 71 sound/pci/hda/patch_analog.c #define create_beep_ctls(codec) 0 codec 75 sound/pci/hda/patch_analog.c static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, codec 78 sound/pci/hda/patch_analog.c if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) codec 79 sound/pci/hda/patch_analog.c snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, codec 80 sound/pci/hda/patch_analog.c !codec->inv_eapd ? 0x00 : 0x02); codec 81 sound/pci/hda/patch_analog.c if (snd_hda_query_pin_caps(codec, hp) & AC_PINCAP_EAPD) codec 82 sound/pci/hda/patch_analog.c snd_hda_codec_write(codec, hp, 0, AC_VERB_SET_EAPD_BTLENABLE, codec 83 sound/pci/hda/patch_analog.c !codec->inv_eapd ? 0x00 : 0x02); codec 86 sound/pci/hda/patch_analog.c static void ad198x_power_eapd(struct hda_codec *codec) codec 89 sound/pci/hda/patch_analog.c switch (codec->core.vendor_id) { codec 102 sound/pci/hda/patch_analog.c ad198x_power_eapd_write(codec, 0x12, 0x11); codec 106 sound/pci/hda/patch_analog.c ad198x_power_eapd_write(codec, 0x05, 0x06); codec 109 sound/pci/hda/patch_analog.c ad198x_power_eapd_write(codec, 0x1b, 0x1a); codec 114 sound/pci/hda/patch_analog.c static void ad198x_shutup(struct hda_codec *codec) codec 116 sound/pci/hda/patch_analog.c snd_hda_shutup_pins(codec); codec 117 sound/pci/hda/patch_analog.c ad198x_power_eapd(codec); codec 121 sound/pci/hda/patch_analog.c static int ad198x_suspend(struct hda_codec *codec) codec 123 sound/pci/hda/patch_analog.c ad198x_shutup(codec); codec 131 sound/pci/hda/patch_analog.c struct hda_codec *codec = private_data; codec 132 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 136 sound/pci/hda/patch_analog.c if (codec->inv_eapd) codec 138 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, spec->eapd_nid, 0, codec 147 sound/pci/hda/patch_analog.c static int ad198x_auto_build_controls(struct hda_codec *codec) codec 151 sound/pci/hda/patch_analog.c err = snd_hda_gen_build_controls(codec); codec 154 sound/pci/hda/patch_analog.c err = create_beep_ctls(codec); codec 174 sound/pci/hda/patch_analog.c static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) codec 176 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 180 sound/pci/hda/patch_analog.c codec->spdif_status_reset = 1; codec 181 sound/pci/hda/patch_analog.c codec->no_trigger_sense = 1; codec 182 sound/pci/hda/patch_analog.c codec->no_sticky_stream = 1; codec 188 sound/pci/hda/patch_analog.c err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); codec 191 sound/pci/hda/patch_analog.c err = snd_hda_gen_parse_auto_config(codec, cfg); codec 202 sound/pci/hda/patch_analog.c static int alloc_ad_spec(struct hda_codec *codec) codec 209 sound/pci/hda/patch_analog.c codec->spec = spec; codec 211 sound/pci/hda/patch_analog.c codec->patch_ops = ad198x_auto_patch_ops; codec 220 sound/pci/hda/patch_analog.c static void ad_fixup_inv_jack_detect(struct hda_codec *codec, codec 223 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 226 sound/pci/hda/patch_analog.c codec->inv_jack_detect = 1; codec 234 sound/pci/hda/patch_analog.c static void ad1986a_fixup_eapd(struct hda_codec *codec, codec 237 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 240 sound/pci/hda/patch_analog.c codec->inv_eapd = 0; codec 247 sound/pci/hda/patch_analog.c static void ad1986a_fixup_eapd_mix_in(struct hda_codec *codec, codec 250 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 253 sound/pci/hda/patch_analog.c ad1986a_fixup_eapd(codec, fix, action); codec 388 sound/pci/hda/patch_analog.c static int patch_ad1986a(struct hda_codec *codec) codec 401 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 404 sound/pci/hda/patch_analog.c spec = codec->spec; codec 407 sound/pci/hda/patch_analog.c codec->inv_eapd = 1; codec 426 sound/pci/hda/patch_analog.c snd_hda_pick_fixup(codec, ad1986a_fixup_models, ad1986a_fixup_tbl, codec 428 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 430 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, false); codec 432 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 436 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 452 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 453 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 457 sound/pci/hda/patch_analog.c int num_conns = snd_hda_get_num_conns(codec, dig_out); codec 470 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 471 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 480 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 481 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 484 sound/pci/hda/patch_analog.c int num_conns = snd_hda_get_num_conns(codec, dig_out); codec 491 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, dig_out, 0, codec 504 sound/pci/hda/patch_analog.c static int ad1983_add_spdif_mux_ctl(struct hda_codec *codec) codec 506 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 512 sound/pci/hda/patch_analog.c num_conns = snd_hda_get_num_conns(codec, dig_out); codec 520 sound/pci/hda/patch_analog.c static int patch_ad1983(struct hda_codec *codec) codec 527 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 530 sound/pci/hda/patch_analog.c spec = codec->spec; codec 537 sound/pci/hda/patch_analog.c snd_hda_override_conn_list(codec, 0x0c, ARRAY_SIZE(conn_0c), conn_0c); codec 538 sound/pci/hda/patch_analog.c snd_hda_override_conn_list(codec, 0x0d, ARRAY_SIZE(conn_0d), conn_0d); codec 540 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, false); codec 543 sound/pci/hda/patch_analog.c err = ad1983_add_spdif_mux_ctl(codec); codec 549 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 558 sound/pci/hda/patch_analog.c static void ad1981_fixup_hp_eapd(struct hda_codec *codec, codec 561 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 572 sound/pci/hda/patch_analog.c static void ad1981_fixup_amp_override(struct hda_codec *codec, codec 576 sound/pci/hda/patch_analog.c snd_hda_override_amp_caps(codec, 0x11, HDA_INPUT, codec 610 sound/pci/hda/patch_analog.c static int patch_ad1981(struct hda_codec *codec) codec 615 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 618 sound/pci/hda/patch_analog.c spec = codec->spec; codec 624 sound/pci/hda/patch_analog.c snd_hda_pick_fixup(codec, NULL, ad1981_fixup_tbl, ad1981_fixups); codec 625 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 627 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, false); codec 630 sound/pci/hda/patch_analog.c err = ad1983_add_spdif_mux_ctl(codec); codec 634 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 639 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 732 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 736 sound/pci/hda/patch_analog.c int num_conns = snd_hda_get_num_conns(codec, 0x0b) + 1; codec 745 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 746 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 755 sound/pci/hda/patch_analog.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 756 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 759 sound/pci/hda/patch_analog.c int num_conns = snd_hda_get_num_conns(codec, 0x0b) + 1; codec 766 sound/pci/hda/patch_analog.c mutex_lock(&codec->control_mutex); codec 767 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, codec 770 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, false, true); codec 771 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, spec->smux_paths[val]); codec 773 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, true, true); codec 775 sound/pci/hda/patch_analog.c mutex_unlock(&codec->control_mutex); codec 787 sound/pci/hda/patch_analog.c static int ad1988_auto_init(struct hda_codec *codec) codec 789 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 792 sound/pci/hda/patch_analog.c err = snd_hda_gen_init(codec); codec 800 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]); codec 802 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, path->active, false); codec 808 sound/pci/hda/patch_analog.c static int ad1988_add_spdif_mux_ctl(struct hda_codec *codec) codec 810 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 844 sound/pci/hda/patch_analog.c get_wcaps_type(get_wcaps(codec, 0x1d)) != AC_WID_AUD_MIX) codec 847 sound/pci/hda/patch_analog.c num_conns = snd_hda_get_num_conns(codec, 0x0b) + 1; codec 858 sound/pci/hda/patch_analog.c spec->smux_paths[i] = snd_hda_get_path_idx(codec, path); codec 864 sound/pci/hda/patch_analog.c codec->patch_ops.init = ad1988_auto_init; codec 899 sound/pci/hda/patch_analog.c static int patch_ad1988(struct hda_codec *codec) codec 904 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 907 sound/pci/hda/patch_analog.c spec = codec->spec; codec 914 sound/pci/hda/patch_analog.c snd_hda_pick_fixup(codec, ad1988_fixup_models, NULL, ad1988_fixups); codec 915 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 917 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, true); codec 920 sound/pci/hda/patch_analog.c err = ad1988_add_spdif_mux_ctl(codec); codec 924 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 929 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 963 sound/pci/hda/patch_analog.c static void ad1884_fixup_amp_override(struct hda_codec *codec, codec 967 sound/pci/hda/patch_analog.c snd_hda_override_amp_caps(codec, 0x20, HDA_INPUT, codec 977 sound/pci/hda/patch_analog.c struct hda_codec *codec = private_data; codec 978 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 982 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, 0x01, 0, codec 987 sound/pci/hda/patch_analog.c static void ad1884_fixup_hp_eapd(struct hda_codec *codec, codec 990 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 996 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, 0x01, 0, codec 998 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, 0x01, 0, codec 1000 sound/pci/hda/patch_analog.c snd_hda_codec_write_cache(codec, 0x01, 0, codec 1012 sound/pci/hda/patch_analog.c static void ad1884_fixup_thinkpad(struct hda_codec *codec, codec 1015 sound/pci/hda/patch_analog.c struct ad198x_spec *spec = codec->spec; codec 1079 sound/pci/hda/patch_analog.c static int patch_ad1884(struct hda_codec *codec) codec 1084 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 1087 sound/pci/hda/patch_analog.c spec = codec->spec; codec 1094 sound/pci/hda/patch_analog.c snd_hda_pick_fixup(codec, NULL, ad1884_fixup_tbl, ad1884_fixups); codec 1095 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1097 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, true); codec 1100 sound/pci/hda/patch_analog.c err = ad1983_add_spdif_mux_ctl(codec); codec 1104 sound/pci/hda/patch_analog.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 1109 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 1125 sound/pci/hda/patch_analog.c static int patch_ad1882(struct hda_codec *codec) codec 1130 sound/pci/hda/patch_analog.c err = alloc_ad_spec(codec); codec 1133 sound/pci/hda/patch_analog.c spec = codec->spec; codec 1139 sound/pci/hda/patch_analog.c err = ad198x_parse_auto_config(codec, true); codec 1142 sound/pci/hda/patch_analog.c err = ad1988_add_spdif_mux_ctl(codec); codec 1148 sound/pci/hda/patch_analog.c snd_hda_gen_free(codec); codec 27 sound/pci/hda/patch_ca0110.c static int ca0110_parse_auto_config(struct hda_codec *codec) codec 29 sound/pci/hda/patch_ca0110.c struct hda_gen_spec *spec = codec->spec; codec 32 sound/pci/hda/patch_ca0110.c err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); codec 35 sound/pci/hda/patch_ca0110.c err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); codec 43 sound/pci/hda/patch_ca0110.c static int patch_ca0110(struct hda_codec *codec) codec 52 sound/pci/hda/patch_ca0110.c codec->spec = spec; codec 53 sound/pci/hda/patch_ca0110.c codec->patch_ops = ca0110_patch_ops; codec 56 sound/pci/hda/patch_ca0110.c codec->bus->needs_damn_long_delay = 1; codec 58 sound/pci/hda/patch_ca0110.c err = ca0110_parse_auto_config(codec); codec 65 sound/pci/hda/patch_ca0110.c snd_hda_gen_free(codec); codec 1025 sound/pci/hda/patch_ca0132.c struct hda_codec *codec; codec 1192 sound/pci/hda/patch_ca0132.c static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, codec 1196 sound/pci/hda/patch_ca0132.c response = snd_hda_codec_read(codec, nid, 0, verb, parm); codec 1202 sound/pci/hda/patch_ca0132.c static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, codec 1205 sound/pci/hda/patch_ca0132.c return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, codec 1209 sound/pci/hda/patch_ca0132.c static int codec_set_converter_stream_channel(struct hda_codec *codec, codec 1216 sound/pci/hda/patch_ca0132.c return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, codec 1221 sound/pci/hda/patch_ca0132.c static int chipio_send(struct hda_codec *codec, codec 1230 sound/pci/hda/patch_ca0132.c res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, codec 1243 sound/pci/hda/patch_ca0132.c static int chipio_write_address(struct hda_codec *codec, codec 1246 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1253 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_ADDRESS_LOW, codec 1258 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_ADDRESS_HIGH, codec 1270 sound/pci/hda/patch_ca0132.c static int chipio_write_data(struct hda_codec *codec, unsigned int data) codec 1272 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1276 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_DATA_LOW, data & 0xffff); codec 1280 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_DATA_HIGH, codec 1294 sound/pci/hda/patch_ca0132.c static int chipio_write_data_multiple(struct hda_codec *codec, codec 1301 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "chipio_write_data null ptr\n"); codec 1306 sound/pci/hda/patch_ca0132.c status = chipio_write_data(codec, *data++); codec 1315 sound/pci/hda/patch_ca0132.c static int chipio_read_data(struct hda_codec *codec, unsigned int *data) codec 1317 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1321 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_HIC_POST_READ, 0); codec 1325 sound/pci/hda/patch_ca0132.c res = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0); codec 1330 sound/pci/hda/patch_ca0132.c *data = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, codec 1346 sound/pci/hda/patch_ca0132.c static int chipio_write(struct hda_codec *codec, codec 1349 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1355 sound/pci/hda/patch_ca0132.c err = chipio_write_address(codec, chip_addx); codec 1359 sound/pci/hda/patch_ca0132.c err = chipio_write_data(codec, data); codec 1372 sound/pci/hda/patch_ca0132.c static int chipio_write_no_mutex(struct hda_codec *codec, codec 1379 sound/pci/hda/patch_ca0132.c err = chipio_write_address(codec, chip_addx); codec 1383 sound/pci/hda/patch_ca0132.c err = chipio_write_data(codec, data); codec 1395 sound/pci/hda/patch_ca0132.c static int chipio_write_multiple(struct hda_codec *codec, codec 1400 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1404 sound/pci/hda/patch_ca0132.c status = chipio_write_address(codec, chip_addx); codec 1408 sound/pci/hda/patch_ca0132.c status = chipio_write_data_multiple(codec, data, count); codec 1419 sound/pci/hda/patch_ca0132.c static int chipio_read(struct hda_codec *codec, codec 1422 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1428 sound/pci/hda/patch_ca0132.c err = chipio_write_address(codec, chip_addx); codec 1432 sound/pci/hda/patch_ca0132.c err = chipio_read_data(codec, data); codec 1444 sound/pci/hda/patch_ca0132.c static void chipio_set_control_flag(struct hda_codec *codec, codec 1453 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1460 sound/pci/hda/patch_ca0132.c static void chipio_set_control_param(struct hda_codec *codec, codec 1463 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1468 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1472 sound/pci/hda/patch_ca0132.c if (chipio_send(codec, VENDOR_CHIPIO_STATUS, 0) == 0) { codec 1473 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1476 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1487 sound/pci/hda/patch_ca0132.c static void chipio_set_control_param_no_mutex(struct hda_codec *codec, codec 1494 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1497 sound/pci/hda/patch_ca0132.c if (chipio_send(codec, VENDOR_CHIPIO_STATUS, 0) == 0) { codec 1498 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1501 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1511 sound/pci/hda/patch_ca0132.c static void chipio_set_stream_source_dest(struct hda_codec *codec, codec 1514 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1516 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1518 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1525 sound/pci/hda/patch_ca0132.c static void chipio_set_stream_channels(struct hda_codec *codec, codec 1528 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1530 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1537 sound/pci/hda/patch_ca0132.c static void chipio_set_stream_control(struct hda_codec *codec, codec 1540 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1542 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1550 sound/pci/hda/patch_ca0132.c static void chipio_set_conn_rate_no_mutex(struct hda_codec *codec, codec 1553 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1555 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, codec 1562 sound/pci/hda/patch_ca0132.c static void chipio_set_conn_rate(struct hda_codec *codec, codec 1565 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_CONN_POINT_ID, connid); codec 1566 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_CONN_POINT_SAMPLE_RATE, codec 1575 sound/pci/hda/patch_ca0132.c static void chipio_8051_write_direct(struct hda_codec *codec, codec 1581 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, verb, addr); codec 1587 sound/pci/hda/patch_ca0132.c static void chipio_enable_clocks(struct hda_codec *codec) codec 1589 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1592 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1594 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1596 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1598 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1600 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1602 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 1610 sound/pci/hda/patch_ca0132.c static int dspio_send(struct hda_codec *codec, unsigned int reg, codec 1618 sound/pci/hda/patch_ca0132.c res = snd_hda_codec_read(codec, WIDGET_DSP_CTRL, 0, reg, data); codec 1630 sound/pci/hda/patch_ca0132.c static void dspio_write_wait(struct hda_codec *codec) codec 1636 sound/pci/hda/patch_ca0132.c status = snd_hda_codec_read(codec, WIDGET_DSP_CTRL, 0, codec 1648 sound/pci/hda/patch_ca0132.c static int dspio_write(struct hda_codec *codec, unsigned int scp_data) codec 1650 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1653 sound/pci/hda/patch_ca0132.c dspio_write_wait(codec); codec 1656 sound/pci/hda/patch_ca0132.c status = dspio_send(codec, VENDOR_DSPIO_SCP_WRITE_DATA_LOW, codec 1661 sound/pci/hda/patch_ca0132.c status = dspio_send(codec, VENDOR_DSPIO_SCP_WRITE_DATA_HIGH, codec 1667 sound/pci/hda/patch_ca0132.c status = snd_hda_codec_read(codec, WIDGET_DSP_CTRL, 0, codec 1679 sound/pci/hda/patch_ca0132.c static int dspio_write_multiple(struct hda_codec *codec, codec 1690 sound/pci/hda/patch_ca0132.c status = dspio_write(codec, *buffer++); codec 1699 sound/pci/hda/patch_ca0132.c static int dspio_read(struct hda_codec *codec, unsigned int *data) codec 1703 sound/pci/hda/patch_ca0132.c status = dspio_send(codec, VENDOR_DSPIO_SCP_POST_READ_DATA, 0); codec 1707 sound/pci/hda/patch_ca0132.c status = dspio_send(codec, VENDOR_DSPIO_STATUS, 0); codec 1712 sound/pci/hda/patch_ca0132.c *data = snd_hda_codec_read(codec, WIDGET_DSP_CTRL, 0, codec 1718 sound/pci/hda/patch_ca0132.c static int dspio_read_multiple(struct hda_codec *codec, unsigned int *buffer, codec 1732 sound/pci/hda/patch_ca0132.c status = dspio_read(codec, buffer++); codec 1741 sound/pci/hda/patch_ca0132.c status = dspio_read(codec, &dummy); codec 1811 sound/pci/hda/patch_ca0132.c static void dspio_clear_response_queue(struct hda_codec *codec) codec 1819 sound/pci/hda/patch_ca0132.c status = dspio_read(codec, &dummy); codec 1823 sound/pci/hda/patch_ca0132.c static int dspio_get_response_data(struct hda_codec *codec) codec 1825 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1829 sound/pci/hda/patch_ca0132.c if (dspio_read(codec, &data) < 0) codec 1836 sound/pci/hda/patch_ca0132.c dspio_read_multiple(codec, spec->scp_resp_data, codec 1847 sound/pci/hda/patch_ca0132.c static int dspio_send_scp_message(struct hda_codec *codec, codec 1854 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 1893 sound/pci/hda/patch_ca0132.c status = dspio_write_multiple(codec, (unsigned int *)send_buf, codec 1936 sound/pci/hda/patch_ca0132.c static int dspio_scp(struct hda_codec *codec, codec 1953 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_scp get but has no buffer\n"); codec 1958 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_scp bad resp buf len parms\n"); codec 1971 sound/pci/hda/patch_ca0132.c status = dspio_send_scp_message(codec, (unsigned char *)&scp_send, codec 1976 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_scp: send scp msg failed\n"); codec 1995 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "reply too long for buf\n"); codec 1998 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "RetLen and HdrLen .NE.\n"); codec 2001 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "NULL reply\n"); codec 2008 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "reply ill-formed or errflag set\n"); codec 2018 sound/pci/hda/patch_ca0132.c static int dspio_set_param(struct hda_codec *codec, int mod_id, codec 2021 sound/pci/hda/patch_ca0132.c return dspio_scp(codec, mod_id, src_id, req, SCP_SET, data, len, NULL, codec 2025 sound/pci/hda/patch_ca0132.c static int dspio_set_uint_param(struct hda_codec *codec, int mod_id, codec 2028 sound/pci/hda/patch_ca0132.c return dspio_set_param(codec, mod_id, 0x20, req, &data, codec 2032 sound/pci/hda/patch_ca0132.c static int dspio_set_uint_param_no_source(struct hda_codec *codec, int mod_id, codec 2035 sound/pci/hda/patch_ca0132.c return dspio_set_param(codec, mod_id, 0x00, req, &data, codec 2042 sound/pci/hda/patch_ca0132.c static int dspio_alloc_dma_chan(struct hda_codec *codec, unsigned int *dma_chan) codec 2047 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dspio_alloc_dma_chan() -- begin\n"); codec 2048 sound/pci/hda/patch_ca0132.c status = dspio_scp(codec, MASTERCONTROL, 0x20, codec 2053 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_alloc_dma_chan: SCP Failed\n"); codec 2058 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "no free dma channels to allocate\n"); codec 2062 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_alloc_dma_chan: chan=%d\n", *dma_chan); codec 2063 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dspio_alloc_dma_chan() -- complete\n"); codec 2071 sound/pci/hda/patch_ca0132.c static int dspio_free_dma_chan(struct hda_codec *codec, unsigned int dma_chan) codec 2076 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dspio_free_dma_chan() -- begin\n"); codec 2077 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_free_dma_chan: chan=%d\n", dma_chan); codec 2079 sound/pci/hda/patch_ca0132.c status = dspio_scp(codec, MASTERCONTROL, 0x20, codec 2084 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspio_free_dma_chan: SCP Failed\n"); codec 2088 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dspio_free_dma_chan() -- complete\n"); codec 2096 sound/pci/hda/patch_ca0132.c static int dsp_set_run_state(struct hda_codec *codec) codec 2102 sound/pci/hda/patch_ca0132.c err = chipio_read(codec, DSP_DBGCNTL_INST_OFFSET, &dbg_ctrl_reg); codec 2112 sound/pci/hda/patch_ca0132.c err = chipio_write(codec, DSP_DBGCNTL_INST_OFFSET, codec 2119 sound/pci/hda/patch_ca0132.c err = chipio_write(codec, DSP_DBGCNTL_INST_OFFSET, codec 2131 sound/pci/hda/patch_ca0132.c static int dsp_reset(struct hda_codec *codec) codec 2136 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dsp_reset\n"); codec 2138 sound/pci/hda/patch_ca0132.c res = dspio_send(codec, VENDOR_DSPIO_DSP_INIT, 0); codec 2143 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dsp_reset timeout\n"); codec 2174 sound/pci/hda/patch_ca0132.c static bool dsp_is_dma_active(struct hda_codec *codec, unsigned int dma_chan) codec 2178 sound/pci/hda/patch_ca0132.c chipio_read(codec, DSPDMAC_CHNLSTART_INST_OFFSET, &dma_chnlstart_reg); codec 2184 sound/pci/hda/patch_ca0132.c static int dsp_dma_setup_common(struct hda_codec *codec, codec 2196 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_setup_common() -- Begin ---------\n"); codec 2199 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dma chan num invalid\n"); codec 2203 sound/pci/hda/patch_ca0132.c if (dsp_is_dma_active(codec, dma_chan)) { codec 2204 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dma already active\n"); codec 2211 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "invalid chip addr\n"); codec 2218 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup_common() start reg pgm\n"); codec 2221 sound/pci/hda/patch_ca0132.c status = chipio_read(codec, DSPDMAC_CHNLPROP_INST_OFFSET, codec 2225 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "read CHNLPROP Reg fail\n"); codec 2228 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dsp_dma_setup_common() Read CHNLPROP\n"); codec 2238 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_CHNLPROP_INST_OFFSET, chnl_prop); codec 2240 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write CHNLPROP Reg fail\n"); codec 2243 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup_common() Write CHNLPROP\n"); codec 2246 sound/pci/hda/patch_ca0132.c status = chipio_read(codec, DSPDMAC_ACTIVE_INST_OFFSET, codec 2250 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "read ACTIVE Reg fail\n"); codec 2253 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dsp_dma_setup_common() Read ACTIVE\n"); codec 2259 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_ACTIVE_INST_OFFSET, active); codec 2261 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write ACTIVE Reg fail\n"); codec 2265 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup_common() Write ACTIVE\n"); codec 2267 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_AUDCHSEL_INST_OFFSET(dma_chan), codec 2270 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write AUDCHSEL Reg fail\n"); codec 2273 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup_common() Write AUDCHSEL\n"); codec 2275 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_IRQCNT_INST_OFFSET(dma_chan), codec 2278 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write IRQCNT Reg fail\n"); codec 2281 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup_common() Write IRQCNT\n"); codec 2283 sound/pci/hda/patch_ca0132.c codec_dbg(codec, codec 2289 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_setup_common() -- Complete ------\n"); codec 2297 sound/pci/hda/patch_ca0132.c static int dsp_dma_setup(struct hda_codec *codec, codec 2315 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_setup() -- Begin ---------\n"); codec 2318 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "count too big\n"); codec 2324 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "invalid chip addr\n"); codec 2328 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup() start reg pgm\n"); codec 2342 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_DMACFG_INST_OFFSET(dma_chan), codec 2345 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write DMACFG Reg fail\n"); codec 2348 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup() Write DMACFG\n"); codec 2353 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_DSPADROFS_INST_OFFSET(dma_chan), codec 2356 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write DSPADROFS Reg fail\n"); codec 2359 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup() Write DSPADROFS\n"); codec 2367 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, codec 2370 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write XFRCNT Reg fail\n"); codec 2373 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_dma_setup() Write XFRCNT\n"); codec 2375 sound/pci/hda/patch_ca0132.c codec_dbg(codec, codec 2380 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_setup() -- Complete ---------\n"); codec 2388 sound/pci/hda/patch_ca0132.c static int dsp_dma_start(struct hda_codec *codec, codec 2394 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_start() -- Begin ---------\n"); codec 2397 sound/pci/hda/patch_ca0132.c status = chipio_read(codec, codec 2401 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "read CHNLSTART reg fail\n"); codec 2404 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_start() Read CHNLSTART\n"); codec 2410 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_CHNLSTART_INST_OFFSET, codec 2413 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write CHNLSTART reg fail\n"); codec 2416 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_start() -- Complete ---------\n"); codec 2424 sound/pci/hda/patch_ca0132.c static int dsp_dma_stop(struct hda_codec *codec, codec 2430 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_stop() -- Begin ---------\n"); codec 2433 sound/pci/hda/patch_ca0132.c status = chipio_read(codec, codec 2437 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "read CHNLSTART reg fail\n"); codec 2440 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_stop() Read CHNLSTART\n"); codec 2445 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, DSPDMAC_CHNLSTART_INST_OFFSET, codec 2448 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "write CHNLSTART reg fail\n"); codec 2451 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "-- dsp_dma_stop() -- Complete ---------\n"); codec 2467 sound/pci/hda/patch_ca0132.c static int dsp_allocate_router_ports(struct hda_codec *codec, codec 2477 sound/pci/hda/patch_ca0132.c status = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0); codec 2485 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 2489 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 2493 sound/pci/hda/patch_ca0132.c status = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0); codec 2497 sound/pci/hda/patch_ca0132.c res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, codec 2508 sound/pci/hda/patch_ca0132.c static int dsp_free_router_ports(struct hda_codec *codec) codec 2512 sound/pci/hda/patch_ca0132.c status = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0); codec 2516 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 2520 sound/pci/hda/patch_ca0132.c status = chipio_send(codec, VENDOR_CHIPIO_STATUS, 0); codec 2528 sound/pci/hda/patch_ca0132.c static int dsp_allocate_ports(struct hda_codec *codec, codec 2534 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_allocate_ports() -- begin\n"); codec 2537 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "bad rate multiple\n"); codec 2541 sound/pci/hda/patch_ca0132.c status = dsp_allocate_router_ports(codec, num_chans, codec 2544 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_allocate_ports() -- complete\n"); codec 2549 sound/pci/hda/patch_ca0132.c static int dsp_allocate_ports_format(struct hda_codec *codec, codec 2561 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "bad rate multiple\n"); codec 2567 sound/pci/hda/patch_ca0132.c status = dsp_allocate_ports(codec, num_chans, rate_multi, port_map); codec 2575 sound/pci/hda/patch_ca0132.c static int dsp_free_ports(struct hda_codec *codec) codec 2579 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_free_ports() -- begin\n"); codec 2581 sound/pci/hda/patch_ca0132.c status = dsp_free_router_ports(codec); codec 2583 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "free router ports fail\n"); codec 2586 sound/pci/hda/patch_ca0132.c codec_dbg(codec, " dsp_free_ports() -- complete\n"); codec 2595 sound/pci/hda/patch_ca0132.c struct hda_codec *codec; codec 2607 sound/pci/hda/patch_ca0132.c static int dma_convert_to_hda_format(struct hda_codec *codec, codec 2628 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = dma->codec; codec 2629 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 2633 sound/pci/hda/patch_ca0132.c snd_hda_codec_load_dsp_cleanup(codec, dma->dmab); codec 2635 sound/pci/hda/patch_ca0132.c status = snd_hda_codec_load_dsp_prepare(codec, codec 2660 sound/pci/hda/patch_ca0132.c snd_hda_codec_load_dsp_trigger(dma->codec, cmd); codec 2692 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = dma->codec->spec; codec 2743 sound/pci/hda/patch_ca0132.c static int dspxfr_hci_write(struct hda_codec *codec, codec 2751 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "hci_write invalid params\n"); codec 2758 sound/pci/hda/patch_ca0132.c status = chipio_write(codec, data[0], data[1]); codec 2760 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "hci_write chipio failed\n"); codec 2784 sound/pci/hda/patch_ca0132.c static int dspxfr_one_seg(struct hda_codec *codec, codec 2820 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "hci_write\n"); codec 2821 sound/pci/hda/patch_ca0132.c return dspxfr_hci_write(codec, hci_write); codec 2825 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Invalid Params\n"); codec 2834 sound/pci/hda/patch_ca0132.c return hci_write ? dspxfr_hci_write(codec, hci_write) : 0; codec 2841 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Invalid chip_addx Params\n"); codec 2851 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dma_engine buffer NULL\n"); codec 2864 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "frmsz zero\n"); codec 2872 sound/pci/hda/patch_ca0132.c codec_dbg(codec, codec 2879 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspxfr_one_seg:failed\n"); codec 2893 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspxfr (seg loop)cnt=%u rs=%u remainder=%u\n", codec 2897 sound/pci/hda/patch_ca0132.c status = dsp_dma_stop(codec, dma_chan, ovly); codec 2900 sound/pci/hda/patch_ca0132.c status = dsp_dma_setup_common(codec, chip_addx, codec 2907 sound/pci/hda/patch_ca0132.c status = dsp_dma_setup(codec, chip_addx, codec 2911 sound/pci/hda/patch_ca0132.c status = dsp_dma_start(codec, dma_chan, ovly); codec 2914 sound/pci/hda/patch_ca0132.c if (!dsp_is_dma_active(codec, dma_chan)) { codec 2915 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspxfr:DMA did not start\n"); codec 2922 sound/pci/hda/patch_ca0132.c status = chipio_write_multiple(codec, codec 2931 sound/pci/hda/patch_ca0132.c status = dspxfr_hci_write(codec, hci_write); codec 2939 sound/pci/hda/patch_ca0132.c dma_active = dsp_is_dma_active(codec, dma_chan); codec 2947 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "+++++ DMA complete\n"); codec 2960 sound/pci/hda/patch_ca0132.c status = chipio_write_multiple(codec, chip_addx_remainder, codec 2980 sound/pci/hda/patch_ca0132.c static int dspxfr_image(struct hda_codec *codec, codec 2987 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3009 sound/pci/hda/patch_ca0132.c dma_engine->codec = codec; codec 3010 sound/pci/hda/patch_ca0132.c dma_convert_to_hda_format(codec, sample_rate, channels, &hda_format); codec 3017 sound/pci/hda/patch_ca0132.c status = codec_set_converter_format(codec, WIDGET_CHIP_CTRL, codec 3021 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "set converter format fail\n"); codec 3025 sound/pci/hda/patch_ca0132.c status = snd_hda_codec_load_dsp_prepare(codec, codec 3034 sound/pci/hda/patch_ca0132.c status = dspio_alloc_dma_chan(codec, &dma_chan); codec 3036 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "alloc dmachan fail\n"); codec 3043 sound/pci/hda/patch_ca0132.c status = dsp_allocate_ports_format(codec, hda_format, codec 3046 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "alloc ports fail\n"); codec 3051 sound/pci/hda/patch_ca0132.c status = codec_set_converter_stream_channel(codec, codec 3054 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "set stream chan fail\n"); codec 3060 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "FLS check fail\n"); codec 3064 sound/pci/hda/patch_ca0132.c status = dspxfr_one_seg(codec, fls_data, reloc, codec 3078 sound/pci/hda/patch_ca0132.c status = dsp_free_ports(codec); codec 3083 sound/pci/hda/patch_ca0132.c status = codec_set_converter_stream_channel(codec, codec 3088 sound/pci/hda/patch_ca0132.c dspio_free_dma_chan(codec, dma_chan); codec 3091 sound/pci/hda/patch_ca0132.c snd_hda_codec_load_dsp_cleanup(codec, dma_engine->dmab); codec 3101 sound/pci/hda/patch_ca0132.c static void dspload_post_setup(struct hda_codec *codec) codec 3103 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3104 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "---- dspload_post_setup ------\n"); codec 3107 sound/pci/hda/patch_ca0132.c chipio_write(codec, XRAM_XRAM_INST_OFFSET(0x18), 0x08080080); codec 3108 sound/pci/hda/patch_ca0132.c chipio_write(codec, XRAM_XRAM_INST_OFFSET(0x19), 0x3f800000); codec 3111 sound/pci/hda/patch_ca0132.c chipio_write(codec, XRAM_XRAM_INST_OFFSET(0x29), 0x00000002); codec 3133 sound/pci/hda/patch_ca0132.c static int dspload_image(struct hda_codec *codec, codec 3144 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "---- dspload_image begin ------\n"); codec 3161 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Ready to program DMA\n"); codec 3163 sound/pci/hda/patch_ca0132.c status = dsp_reset(codec); codec 3168 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dsp_reset() complete\n"); codec 3169 sound/pci/hda/patch_ca0132.c status = dspxfr_image(codec, fls, reloc, sample_rate, channels, codec 3175 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "dspxfr_image() complete\n"); codec 3177 sound/pci/hda/patch_ca0132.c dspload_post_setup(codec); codec 3178 sound/pci/hda/patch_ca0132.c status = dsp_set_run_state(codec); codec 3181 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "LOAD FINISHED\n"); codec 3188 sound/pci/hda/patch_ca0132.c static bool dspload_is_loaded(struct hda_codec *codec) codec 3193 sound/pci/hda/patch_ca0132.c status = chipio_read(codec, 0x40004, &data); codec 3200 sound/pci/hda/patch_ca0132.c #define dspload_is_loaded(codec) false codec 3203 sound/pci/hda/patch_ca0132.c static bool dspload_wait_loaded(struct hda_codec *codec) codec 3208 sound/pci/hda/patch_ca0132.c if (dspload_is_loaded(codec)) { codec 3209 sound/pci/hda/patch_ca0132.c codec_info(codec, "ca0132 DSP downloaded and running\n"); codec 3215 sound/pci/hda/patch_ca0132.c codec_err(codec, "ca0132 failed to download DSP\n"); codec 3234 sound/pci/hda/patch_ca0132.c static void ca0113_mmio_gpio_set(struct hda_codec *codec, unsigned int gpio_pin, codec 3237 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3254 sound/pci/hda/patch_ca0132.c static void ca0113_mmio_command_set(struct hda_codec *codec, unsigned int group, codec 3257 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3293 sound/pci/hda/patch_ca0132.c static void ca0113_mmio_command_set_type2(struct hda_codec *codec, codec 3296 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3333 sound/pci/hda/patch_ca0132.c static void ca0132_gpio_init(struct hda_codec *codec) codec 3335 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3340 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00); codec 3341 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x53); codec 3342 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x790, 0x23); codec 3345 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00); codec 3346 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x5B); codec 3355 sound/pci/hda/patch_ca0132.c static void ca0132_gpio_setup(struct hda_codec *codec) codec 3357 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3361 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3363 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3365 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3367 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3371 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3373 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3375 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 3425 sound/pci/hda/patch_ca0132.c static void r3di_gpio_mic_set(struct hda_codec *codec, codec 3431 sound/pci/hda/patch_ca0132.c cur_gpio = snd_hda_codec_read(codec, 0x01, 0, AC_VERB_GET_GPIO_DATA, 0); codec 3441 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 3445 sound/pci/hda/patch_ca0132.c static void r3di_gpio_out_set(struct hda_codec *codec, codec 3451 sound/pci/hda/patch_ca0132.c cur_gpio = snd_hda_codec_read(codec, 0x01, 0, AC_VERB_GET_GPIO_DATA, 0); codec 3461 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 3465 sound/pci/hda/patch_ca0132.c static void r3di_gpio_dsp_status_set(struct hda_codec *codec, codec 3471 sound/pci/hda/patch_ca0132.c cur_gpio = snd_hda_codec_read(codec, 0x01, 0, AC_VERB_GET_GPIO_DATA, 0); codec 3476 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 3483 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 3490 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 3498 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3503 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3505 sound/pci/hda/patch_ca0132.c snd_hda_codec_setup_stream(codec, spec->dacs[0], stream_tag, 0, format); codec 3511 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3514 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3524 sound/pci/hda/patch_ca0132.c snd_hda_codec_cleanup_stream(codec, spec->dacs[0]); codec 3530 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3533 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3558 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3561 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3562 sound/pci/hda/patch_ca0132.c return snd_hda_multi_out_dig_open(codec, &spec->multiout); codec 3566 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3571 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3572 sound/pci/hda/patch_ca0132.c return snd_hda_multi_out_dig_prepare(codec, &spec->multiout, codec 3577 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3580 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3581 sound/pci/hda/patch_ca0132.c return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout); codec 3585 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3588 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3589 sound/pci/hda/patch_ca0132.c return snd_hda_multi_out_dig_close(codec, &spec->multiout); codec 3596 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3601 sound/pci/hda/patch_ca0132.c snd_hda_codec_setup_stream(codec, hinfo->nid, codec 3608 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3611 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3616 sound/pci/hda/patch_ca0132.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); codec 3621 sound/pci/hda/patch_ca0132.c struct hda_codec *codec, codec 3624 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3834 sound/pci/hda/patch_ca0132.c static int tuning_ctl_set(struct hda_codec *codec, hda_nid_t nid, codec 3843 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 3844 sound/pci/hda/patch_ca0132.c dspio_set_param(codec, ca0132_tuning_ctls[i].mid, 0x20, codec 3847 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 3855 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3856 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3881 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3882 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3895 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, voice_focus_vals_lookup, idx); codec 3916 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3917 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3930 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, mic_svm_vals_lookup, idx); codec 3951 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 3952 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 3965 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, equalizer_vals_lookup, idx); codec 3973 sound/pci/hda/patch_ca0132.c static int add_tuning_control(struct hda_codec *codec, codec 4010 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); codec 4013 sound/pci/hda/patch_ca0132.c static int add_tuning_ctls(struct hda_codec *codec) codec 4019 sound/pci/hda/patch_ca0132.c err = add_tuning_control(codec, codec 4031 sound/pci/hda/patch_ca0132.c static void ca0132_init_tuning_defaults(struct hda_codec *codec) codec 4033 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4053 sound/pci/hda/patch_ca0132.c static int ca0132_select_out(struct hda_codec *codec) codec 4055 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4062 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_select_out\n"); codec 4064 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 4069 sound/pci/hda/patch_ca0132.c jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_hp); codec 4080 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_select_out speaker\n"); codec 4083 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, 0x80, 0x04, tmp); codec 4088 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, 0x8f, 0x00, tmp); codec 4093 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[1], 0, codec 4095 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4097 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4099 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4103 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0, codec 4105 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[1], codec 4108 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0, codec 4110 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[0], codec 4113 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_select_out hp\n"); codec 4116 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, 0x80, 0x04, tmp); codec 4121 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, 0x8f, 0x00, tmp); codec 4126 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4128 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4130 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[1], 0, codec 4132 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4136 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0, codec 4138 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[0], codec 4141 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0, codec 4143 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[1], codec 4148 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 4153 sound/pci/hda/patch_ca0132.c static int ae5_headphone_gain_set(struct hda_codec *codec, long val); codec 4154 sound/pci/hda/patch_ca0132.c static int zxr_headphone_gain_set(struct hda_codec *codec, long val); codec 4155 sound/pci/hda/patch_ca0132.c static int ca0132_effects_set(struct hda_codec *codec, hda_nid_t nid, long val); codec 4157 sound/pci/hda/patch_ca0132.c static void ae5_mmio_select_out(struct hda_codec *codec) codec 4159 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4163 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, codec 4173 sound/pci/hda/patch_ca0132.c static void ca0132_alt_select_out_quirk_handler(struct hda_codec *codec) codec 4175 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4182 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 7, false); codec 4183 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 4, true); codec 4184 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, true); codec 4185 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x18); codec 4188 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 2, true); codec 4189 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 3, true); codec 4190 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, false); codec 4191 sound/pci/hda/patch_ca0132.c zxr_headphone_gain_set(codec, 0); codec 4192 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4195 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4196 sound/pci/hda/patch_ca0132.c r3di_gpio_out_set(codec, R3DI_LINE_OUT); codec 4199 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4200 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, true); codec 4203 sound/pci/hda/patch_ca0132.c ae5_mmio_select_out(codec); codec 4204 sound/pci/hda/patch_ca0132.c ae5_headphone_gain_set(codec, 2); codec 4206 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x29, tmp); codec 4207 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x2a, tmp); codec 4208 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0xa4); codec 4209 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b03c, 0x00000012); codec 4218 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 7, true); codec 4219 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 4, true); codec 4220 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, false); codec 4221 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x12); codec 4224 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 2, false); codec 4225 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 3, false); codec 4226 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, true); codec 4227 sound/pci/hda/patch_ca0132.c zxr_headphone_gain_set(codec, spec->zxr_gain_set); codec 4228 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x21); codec 4231 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x21); codec 4232 sound/pci/hda/patch_ca0132.c r3di_gpio_out_set(codec, R3DI_HEADPHONE_OUT); codec 4235 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x21); codec 4236 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0x1, false); codec 4239 sound/pci/hda/patch_ca0132.c ae5_mmio_select_out(codec); codec 4240 sound/pci/hda/patch_ca0132.c ae5_headphone_gain_set(codec, codec 4243 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x29, tmp); codec 4244 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x2a, tmp); codec 4245 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0xa1); codec 4246 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b03c, 0x00000012); codec 4255 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 7, false); codec 4256 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 4, true); codec 4257 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, true); codec 4258 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x18); codec 4261 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 2, true); codec 4262 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 3, true); codec 4263 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, false); codec 4264 sound/pci/hda/patch_ca0132.c zxr_headphone_gain_set(codec, 0); codec 4265 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4268 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4269 sound/pci/hda/patch_ca0132.c r3di_gpio_out_set(codec, R3DI_LINE_OUT); codec 4272 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, true); codec 4273 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0x24); codec 4276 sound/pci/hda/patch_ca0132.c ae5_mmio_select_out(codec); codec 4277 sound/pci/hda/patch_ca0132.c ae5_headphone_gain_set(codec, 2); codec 4279 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x29, tmp); codec 4280 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x2a, tmp); codec 4281 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0d, 0xa4); codec 4282 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b03c, 0x00000012); codec 4301 sound/pci/hda/patch_ca0132.c static int ca0132_alt_select_out(struct hda_codec *codec) codec 4303 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4313 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s\n", __func__); codec 4315 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 4325 sound/pci/hda/patch_ca0132.c jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_hp) || codec 4326 sound/pci/hda/patch_ca0132.c snd_hda_jack_detect(codec, spec->unsol_tag_front_hp); codec 4337 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, 0x96, 0x3A, tmp); codec 4341 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out_quirk_handler(codec); codec 4345 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s speaker\n", __func__); codec 4348 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0, codec 4350 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[1], codec 4353 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0, codec 4355 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[0], codec 4358 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4363 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x04, FLOAT_ONE); codec 4365 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x04, FLOAT_EIGHT); codec 4368 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s hp\n", __func__); codec 4370 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4374 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0, codec 4376 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[0], codec 4381 sound/pci/hda/patch_ca0132.c if (snd_hda_jack_detect(codec, spec->unsol_tag_front_hp)) codec 4383 sound/pci/hda/patch_ca0132.c else if (snd_hda_jack_detect(codec, spec->unsol_tag_hp)) codec 4386 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, headphone_nid, 0, codec 4388 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, headphone_nid, codec 4392 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x04, FLOAT_ONE); codec 4394 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x04, FLOAT_ZERO); codec 4397 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s surround\n", __func__); codec 4400 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0, codec 4402 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[0], codec 4405 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0, codec 4407 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[1], codec 4410 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->out_pins[0], 0, codec 4413 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[2], 0, codec 4415 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[2], codec 4418 sound/pci/hda/patch_ca0132.c pin_ctl = snd_hda_codec_read(codec, spec->out_pins[3], 0, codec 4420 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, spec->out_pins[3], codec 4423 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x04, FLOAT_EIGHT); codec 4434 sound/pci/hda/patch_ca0132.c ca0132_effects_set(codec, X_BASS, codec 4439 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, codec 4449 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 4461 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(spec->codec); codec 4463 sound/pci/hda/patch_ca0132.c ca0132_select_out(spec->codec); codec 4465 sound/pci/hda/patch_ca0132.c jack = snd_hda_jack_tbl_get(spec->codec, spec->unsol_tag_hp); codec 4468 sound/pci/hda/patch_ca0132.c snd_hda_jack_report_sync(spec->codec); codec 4472 sound/pci/hda/patch_ca0132.c static void ca0132_set_dmic(struct hda_codec *codec, int enable); codec 4473 sound/pci/hda/patch_ca0132.c static int ca0132_mic_boost_set(struct hda_codec *codec, long val); codec 4474 sound/pci/hda/patch_ca0132.c static void resume_mic1(struct hda_codec *codec, unsigned int oldval); codec 4475 sound/pci/hda/patch_ca0132.c static int stop_mic1(struct hda_codec *codec); codec 4476 sound/pci/hda/patch_ca0132.c static int ca0132_cvoice_switch_set(struct hda_codec *codec); codec 4477 sound/pci/hda/patch_ca0132.c static int ca0132_alt_mic_boost_set(struct hda_codec *codec, long val); codec 4482 sound/pci/hda/patch_ca0132.c static int ca0132_set_vipsource(struct hda_codec *codec, int val) codec 4484 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4493 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_VIP_SOURCE, 0); codec 4494 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 4495 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 4500 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4502 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x05, tmp); codec 4504 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_16_000); codec 4505 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_16_000); codec 4510 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4512 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x05, tmp); codec 4514 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_VIP_SOURCE, val); codec 4520 sound/pci/hda/patch_ca0132.c static int ca0132_alt_set_vipsource(struct hda_codec *codec, int val) codec 4522 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4528 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s\n", __func__); codec 4530 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 4531 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 4536 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: off.", __func__); codec 4537 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_VIP_SOURCE, 0); codec 4540 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x05, tmp); codec 4542 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 4543 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 4545 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 4557 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4560 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: on.", __func__); codec 4561 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_16_000); codec 4562 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_16_000); codec 4564 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_16_000); codec 4570 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4573 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x05, tmp); codec 4576 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_VIP_SOURCE, val); codec 4579 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 4580 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 4591 sound/pci/hda/patch_ca0132.c static int ca0132_select_mic(struct hda_codec *codec) codec 4593 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4597 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_select_mic\n"); codec 4599 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 4604 sound/pci/hda/patch_ca0132.c jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_amic1); codec 4616 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_DMIC, SR_32_000); codec 4617 sound/pci/hda/patch_ca0132.c ca0132_set_dmic(codec, 1); codec 4618 sound/pci/hda/patch_ca0132.c ca0132_mic_boost_set(codec, 0); codec 4620 sound/pci/hda/patch_ca0132.c ca0132_effects_set(codec, VOICE_FOCUS, codec 4625 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_DMIC, SR_96_000); codec 4626 sound/pci/hda/patch_ca0132.c ca0132_set_dmic(codec, 0); codec 4627 sound/pci/hda/patch_ca0132.c ca0132_mic_boost_set(codec, spec->cur_mic_boost); codec 4629 sound/pci/hda/patch_ca0132.c ca0132_effects_set(codec, VOICE_FOCUS, 0); codec 4632 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 4643 sound/pci/hda/patch_ca0132.c static int ca0132_alt_select_in(struct hda_codec *codec) codec 4645 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4648 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s\n", __func__); codec 4650 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 4652 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 4653 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 4662 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 4669 sound/pci/hda/patch_ca0132.c r3di_gpio_mic_set(codec, R3DI_REAR_MIC); codec 4673 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x28, 0x00); codec 4681 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 4682 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 4684 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 4686 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4688 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 4689 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 4692 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x0000000C); codec 4693 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x0000000C); codec 4696 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x0000000C); codec 4697 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x000000CC); codec 4700 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x0000000C); codec 4701 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x0000004C); codec 4706 sound/pci/hda/patch_ca0132.c ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val); codec 4709 sound/pci/hda/patch_ca0132.c ca0132_mic_boost_set(codec, 0); codec 4713 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 4716 sound/pci/hda/patch_ca0132.c r3di_gpio_mic_set(codec, R3DI_REAR_MIC); codec 4719 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x28, 0x00); codec 4725 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 4726 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 4728 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 4731 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4736 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x00000000); codec 4737 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x00000000); codec 4742 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 4743 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 4749 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, true); codec 4750 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, false); codec 4754 sound/pci/hda/patch_ca0132.c r3di_gpio_mic_set(codec, R3DI_FRONT_MIC); codec 4758 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x28, 0x3f); codec 4766 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 4767 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 4769 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 4771 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4773 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 4774 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 4778 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x0000000C); codec 4779 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x000000CC); codec 4782 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B098, 0x0000000C); codec 4783 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18B09C, 0x0000004C); codec 4788 sound/pci/hda/patch_ca0132.c ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val); codec 4791 sound/pci/hda/patch_ca0132.c ca0132_cvoice_switch_set(codec); codec 4793 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 4800 sound/pci/hda/patch_ca0132.c static bool ca0132_is_vnode_effective(struct hda_codec *codec, codec 4804 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4828 sound/pci/hda/patch_ca0132.c static int ca0132_voicefx_set(struct hda_codec *codec, int enable) codec 4830 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4841 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, ca0132_voicefx.mid, codec 4850 sound/pci/hda/patch_ca0132.c static int ca0132_effects_set(struct hda_codec *codec, hda_nid_t nid, long val) codec 4852 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4893 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 4912 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x47, 0x00, tmp); codec 4921 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_effect_set: nid=0x%x, val=%ld\n", codec 4925 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, ca0132_effects[idx].mid, codec 4937 sound/pci/hda/patch_ca0132.c static int ca0132_pe_switch_set(struct hda_codec *codec) codec 4939 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4943 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_pe_switch_set: val=%ld\n", codec 4947 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(codec); codec 4953 sound/pci/hda/patch_ca0132.c ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]); codec 4959 sound/pci/hda/patch_ca0132.c static int stop_mic1(struct hda_codec *codec) codec 4961 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4962 sound/pci/hda/patch_ca0132.c unsigned int oldval = snd_hda_codec_read(codec, spec->adcs[0], 0, codec 4965 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->adcs[0], 0, codec 4972 sound/pci/hda/patch_ca0132.c static void resume_mic1(struct hda_codec *codec, unsigned int oldval) codec 4974 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4977 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->adcs[0], 0, codec 4985 sound/pci/hda/patch_ca0132.c static int ca0132_cvoice_switch_set(struct hda_codec *codec) codec 4987 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 4992 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_cvoice_switch_set: val=%ld\n", codec 4999 sound/pci/hda/patch_ca0132.c ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]); codec 5002 sound/pci/hda/patch_ca0132.c ret |= ca0132_voicefx_set(codec, (spec->voicefx_val ? 1 : 0)); codec 5005 sound/pci/hda/patch_ca0132.c oldval = stop_mic1(codec); codec 5007 sound/pci/hda/patch_ca0132.c ret |= ca0132_alt_set_vipsource(codec, 1); codec 5009 sound/pci/hda/patch_ca0132.c ret |= ca0132_set_vipsource(codec, 1); codec 5010 sound/pci/hda/patch_ca0132.c resume_mic1(codec, oldval); codec 5014 sound/pci/hda/patch_ca0132.c static int ca0132_mic_boost_set(struct hda_codec *codec, long val) codec 5016 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5020 sound/pci/hda/patch_ca0132.c ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0, codec 5023 sound/pci/hda/patch_ca0132.c ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0, codec 5029 sound/pci/hda/patch_ca0132.c static int ca0132_alt_mic_boost_set(struct hda_codec *codec, long val) codec 5031 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5034 sound/pci/hda/patch_ca0132.c ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0, codec 5039 sound/pci/hda/patch_ca0132.c static int ae5_headphone_gain_set(struct hda_codec *codec, long val) codec 5044 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x11 + i, codec 5053 sound/pci/hda/patch_ca0132.c static int zxr_headphone_gain_set(struct hda_codec *codec, long val) codec 5055 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, val); codec 5063 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5068 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5076 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(codec); codec 5078 sound/pci/hda/patch_ca0132.c ca0132_select_out(codec); codec 5087 sound/pci/hda/patch_ca0132.c ca0132_select_mic(codec); codec 5093 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(codec); codec 5095 sound/pci/hda/patch_ca0132.c ca0132_select_out(codec); codec 5100 sound/pci/hda/patch_ca0132.c ca0132_select_mic(codec); codec 5105 sound/pci/hda/patch_ca0132.c effective = ca0132_is_vnode_effective(codec, nid, &shared_nid); codec 5111 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 5117 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 5131 sound/pci/hda/patch_ca0132.c static int ca0132_alt_slider_ctl_set(struct hda_codec *codec, hda_nid_t nid, codec 5145 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 5151 sound/pci/hda/patch_ca0132.c dspio_set_param(codec, ca0132_effects[i].mid, 0x20, codec 5160 sound/pci/hda/patch_ca0132.c dspio_set_param(codec, ca0132_effects[i].mid, 0x20, codec 5165 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 5173 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5174 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5184 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5185 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5227 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5228 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5240 sound/pci/hda/patch_ca0132.c ca0132_alt_slider_ctl_set(codec, nid, float_xbass_xover_lookup, idx); codec 5248 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5249 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5262 sound/pci/hda/patch_ca0132.c ca0132_alt_slider_ctl_set(codec, nid, float_zero_to_one_lookup, idx); codec 5295 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5296 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5305 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5306 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5313 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_alt_mic_boost: boost=%d\n", codec 5319 sound/pci/hda/patch_ca0132.c ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val); codec 5349 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5350 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5359 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5360 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5367 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ae5_headphone_gain: boost=%d\n", codec 5373 sound/pci/hda/patch_ca0132.c ae5_headphone_gain_set(codec, spec->ae5_headphone_gain_val); codec 5402 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5403 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5412 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5413 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5420 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ae5_sound_filter: %s\n", codec 5425 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set_type2(codec, 0x48, 0x07, codec 5452 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5453 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5462 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5463 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5470 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_alt_input_select: sel=%d, preset=%s\n", codec 5475 sound/pci/hda/patch_ca0132.c ca0132_alt_select_in(codec); codec 5497 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5498 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5507 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5508 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5516 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_alt_output_select: sel=%d, preset=%s\n", codec 5524 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(codec); codec 5553 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5554 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5563 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5564 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5573 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_alt_svm_setting: sel=%d, preset=%s\n", codec 5593 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, ca0132_effects[idx].mid, codec 5617 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5618 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5627 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5628 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5636 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: sel=%d, preset=%s\n", __func__, sel, codec 5643 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, ca0132_alt_eq_enum.mid, codec 5674 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5675 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5684 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5685 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5692 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_voicefx_put: sel=%d, preset=%s\n", codec 5700 sound/pci/hda/patch_ca0132.c err = dspio_set_uint_param(codec, ca0132_voicefx.mid, codec 5710 sound/pci/hda/patch_ca0132.c ca0132_voicefx_set(codec, (sel ? 1 : 0)); codec 5719 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5720 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5756 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5757 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5763 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_switch_put: nid=0x%x, val=%ld\n", codec 5766 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 5784 sound/pci/hda/patch_ca0132.c changed = ca0132_pe_switch_set(codec); codec 5791 sound/pci/hda/patch_ca0132.c changed = ca0132_cvoice_switch_set(codec); codec 5799 sound/pci/hda/patch_ca0132.c changed = ca0132_effects_set(codec, nid, *valp); codec 5808 sound/pci/hda/patch_ca0132.c changed = ca0132_mic_boost_set(codec, *valp); codec 5812 sound/pci/hda/patch_ca0132.c changed = ca0132_mic_boost_set(codec, *valp); codec 5821 sound/pci/hda/patch_ca0132.c changed = zxr_headphone_gain_set(codec, *valp); codec 5829 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 5841 sound/pci/hda/patch_ca0132.c static void ca0132_alt_dsp_volume_put(struct hda_codec *codec, hda_nid_t nid) codec 5843 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5854 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 5861 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 5866 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 5874 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5875 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5886 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 5891 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 5896 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 5901 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 5912 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5913 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5933 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5934 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 5953 sound/pci/hda/patch_ca0132.c effective = ca0132_is_vnode_effective(codec, nid, &shared_nid); codec 5958 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 5959 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 5965 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 5966 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 5980 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 5981 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6007 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 6008 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_volume_put(codec, vnid); codec 6009 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 6011 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 6012 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 6020 sound/pci/hda/patch_ca0132.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 6021 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6032 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 6037 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 6042 sound/pci/hda/patch_ca0132.c mutex_lock(&codec->control_mutex); codec 6047 sound/pci/hda/patch_ca0132.c mutex_unlock(&codec->control_mutex); codec 6056 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_effect_slider(struct hda_codec *codec, hda_nid_t nid, codec 6083 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); codec 6091 sound/pci/hda/patch_ca0132.c static int add_fx_switch(struct hda_codec *codec, hda_nid_t nid, codec 6094 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6107 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); codec 6110 sound/pci/hda/patch_ca0132.c static int add_voicefx(struct hda_codec *codec) codec 6118 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, VOICEFX, snd_ctl_new1(&knew, codec)); codec 6122 sound/pci/hda/patch_ca0132.c static int add_ca0132_alt_eq_presets(struct hda_codec *codec) codec 6130 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, EQ_PRESET_ENUM, codec 6131 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6139 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_svm_enum(struct hda_codec *codec) codec 6147 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, SMART_VOLUME_ENUM, codec 6148 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6156 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_output_enum(struct hda_codec *codec) codec 6164 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, OUTPUT_SOURCE_ENUM, codec 6165 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6173 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_input_enum(struct hda_codec *codec) codec 6181 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, INPUT_SOURCE_ENUM, codec 6182 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6189 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_mic_boost_enum(struct hda_codec *codec) codec 6197 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, MIC_BOOST_ENUM, codec 6198 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6207 sound/pci/hda/patch_ca0132.c static int ae5_add_headphone_gain_enum(struct hda_codec *codec) codec 6215 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, AE5_HEADPHONE_GAIN_ENUM, codec 6216 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6224 sound/pci/hda/patch_ca0132.c static int ae5_add_sound_filter_enum(struct hda_codec *codec) codec 6232 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, AE5_SOUND_FILTER_ENUM, codec 6233 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6236 sound/pci/hda/patch_ca0132.c static int zxr_add_headphone_gain_switch(struct hda_codec *codec) codec 6242 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, ZXR_HEADPHONE_GAIN, codec 6243 sound/pci/hda/patch_ca0132.c snd_ctl_new1(&knew, codec)); codec 6273 sound/pci/hda/patch_ca0132.c static void ca0132_alt_add_chmap_ctls(struct hda_codec *codec) codec 6278 sound/pci/hda/patch_ca0132.c list_for_each_entry(pcm, &codec->pcm_list_head, list) { codec 6290 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "snd_pcm_add_chmap_ctls failed!"); codec 6366 sound/pci/hda/patch_ca0132.c static int ca0132_build_controls(struct hda_codec *codec) codec 6368 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6374 sound/pci/hda/patch_ca0132.c err = snd_hda_add_new_ctls(codec, spec->mixers[i]); codec 6380 sound/pci/hda/patch_ca0132.c snd_hda_set_vmaster_tlv(codec, spec->dacs[0], HDA_OUTPUT, codec 6382 sound/pci/hda/patch_ca0132.c snd_hda_add_vmaster(codec, "Master Playback Volume", codec 6385 sound/pci/hda/patch_ca0132.c err = __snd_hda_add_vmaster(codec, "Master Playback Switch", codec 6405 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, ca0132_effects[i].nid, codec 6417 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_svm_enum(codec); codec 6421 sound/pci/hda/patch_ca0132.c err = add_ca0132_alt_eq_presets(codec); codec 6425 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, PLAY_ENHANCEMENT, codec 6430 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, CRYSTAL_VOICE, codec 6437 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_effect_slider(codec, codec 6445 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_effect_slider(codec, XBASS_XOVER, codec 6451 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, PLAY_ENHANCEMENT, codec 6456 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, CRYSTAL_VOICE, codec 6461 sound/pci/hda/patch_ca0132.c err = add_voicefx(codec); codec 6471 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_output_enum(codec); codec 6474 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_mic_boost_enum(codec); codec 6482 sound/pci/hda/patch_ca0132.c err = ca0132_alt_add_input_enum(codec); codec 6489 sound/pci/hda/patch_ca0132.c err = ae5_add_headphone_gain_enum(codec); codec 6492 sound/pci/hda/patch_ca0132.c err = ae5_add_sound_filter_enum(codec); codec 6498 sound/pci/hda/patch_ca0132.c err = zxr_add_headphone_gain_switch(codec); codec 6503 sound/pci/hda/patch_ca0132.c add_tuning_ctls(codec); codec 6506 sound/pci/hda/patch_ca0132.c err = snd_hda_jack_add_kctls(codec, &spec->autocfg); codec 6511 sound/pci/hda/patch_ca0132.c err = snd_hda_create_spdif_out_ctls(codec, spec->dig_out, codec 6515 sound/pci/hda/patch_ca0132.c err = snd_hda_create_spdif_share_sw(codec, &spec->multiout); codec 6522 sound/pci/hda/patch_ca0132.c err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in); codec 6528 sound/pci/hda/patch_ca0132.c ca0132_alt_add_chmap_ctls(codec); codec 6533 sound/pci/hda/patch_ca0132.c static int dbpro_build_controls(struct hda_codec *codec) codec 6535 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6539 sound/pci/hda/patch_ca0132.c err = snd_hda_create_spdif_out_ctls(codec, spec->dig_out, codec 6546 sound/pci/hda/patch_ca0132.c err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in); codec 6597 sound/pci/hda/patch_ca0132.c static int ca0132_build_pcms(struct hda_codec *codec) codec 6599 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6602 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 Analog"); codec 6620 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 Analog Mic-In2"); codec 6629 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 What U Hear"); codec 6639 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 Digital"); codec 6657 sound/pci/hda/patch_ca0132.c static int dbpro_build_pcms(struct hda_codec *codec) codec 6659 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6662 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 Alt Analog"); codec 6673 sound/pci/hda/patch_ca0132.c info = snd_hda_codec_pcm_new(codec, "CA0132 Digital"); codec 6691 sound/pci/hda/patch_ca0132.c static void init_output(struct hda_codec *codec, hda_nid_t pin, hda_nid_t dac) codec 6694 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, pin, PIN_HP); codec 6695 sound/pci/hda/patch_ca0132.c if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) codec 6696 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pin, 0, codec 6700 sound/pci/hda/patch_ca0132.c if (dac && (get_wcaps(codec, dac) & AC_WCAP_OUT_AMP)) codec 6701 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, dac, 0, codec 6705 sound/pci/hda/patch_ca0132.c static void init_input(struct hda_codec *codec, hda_nid_t pin, hda_nid_t adc) codec 6708 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, pin, PIN_VREF80); codec 6709 sound/pci/hda/patch_ca0132.c if (get_wcaps(codec, pin) & AC_WCAP_IN_AMP) codec 6710 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pin, 0, codec 6714 sound/pci/hda/patch_ca0132.c if (adc && (get_wcaps(codec, adc) & AC_WCAP_IN_AMP)) { codec 6715 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, adc, 0, AC_VERB_SET_AMP_GAIN_MUTE, codec 6719 sound/pci/hda/patch_ca0132.c snd_hda_codec_amp_stereo(codec, adc, HDA_INPUT, 0, codec 6721 sound/pci/hda/patch_ca0132.c snd_hda_codec_amp_stereo(codec, adc, HDA_INPUT, 0, codec 6726 sound/pci/hda/patch_ca0132.c static void refresh_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir) codec 6730 sound/pci/hda/patch_ca0132.c caps = snd_hda_param_read(codec, nid, dir == HDA_OUTPUT ? codec 6732 sound/pci/hda/patch_ca0132.c snd_hda_override_amp_caps(codec, nid, dir, caps); codec 6738 sound/pci/hda/patch_ca0132.c static void ca0132_set_dmic(struct hda_codec *codec, int enable) codec 6740 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6745 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_set_dmic: enable=%d\n", enable); codec 6747 sound/pci/hda/patch_ca0132.c oldval = stop_mic1(codec); codec 6748 sound/pci/hda/patch_ca0132.c ca0132_set_vipsource(codec, 0); codec 6752 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 6756 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->input_pins[0], 0, codec 6760 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DMIC, 1); codec 6764 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 6769 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->input_pins[0], 0, codec 6773 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DMIC, 0); codec 6775 sound/pci/hda/patch_ca0132.c ca0132_set_vipsource(codec, 1); codec 6776 sound/pci/hda/patch_ca0132.c resume_mic1(codec, oldval); codec 6782 sound/pci/hda/patch_ca0132.c static void ca0132_init_dmic(struct hda_codec *codec) codec 6784 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6797 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->input_pins[0], 0, codec 6807 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->input_pins[0], 0, codec 6823 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, spec->input_pins[0], 0, codec 6830 sound/pci/hda/patch_ca0132.c static void ca0132_init_analog_mic2(struct hda_codec *codec) codec 6832 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6835 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6837 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6839 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6841 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6843 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6845 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 6850 sound/pci/hda/patch_ca0132.c static void ca0132_refresh_widget_caps(struct hda_codec *codec) codec 6852 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6855 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_refresh_widget_caps.\n"); codec 6856 sound/pci/hda/patch_ca0132.c snd_hda_codec_update_widgets(codec); codec 6859 sound/pci/hda/patch_ca0132.c refresh_amp_caps(codec, spec->dacs[i], HDA_OUTPUT); codec 6862 sound/pci/hda/patch_ca0132.c refresh_amp_caps(codec, spec->out_pins[i], HDA_OUTPUT); codec 6865 sound/pci/hda/patch_ca0132.c refresh_amp_caps(codec, spec->adcs[i], HDA_INPUT); codec 6866 sound/pci/hda/patch_ca0132.c refresh_amp_caps(codec, spec->input_pins[i], HDA_INPUT); codec 6874 sound/pci/hda/patch_ca0132.c static void ca0132_alt_create_dummy_stream(struct hda_codec *codec) codec 6876 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6882 sound/pci/hda/patch_ca0132.c snd_hda_codec_setup_stream(codec, spec->dacs[0], spec->dsp_stream_id, codec 6885 sound/pci/hda/patch_ca0132.c snd_hda_codec_cleanup_stream(codec, spec->dacs[0]); codec 6891 sound/pci/hda/patch_ca0132.c static void ca0132_alt_init_analog_mics(struct hda_codec *codec) codec 6893 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6897 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 6898 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 6900 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 6904 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 6907 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN2, SR_96_000); codec 6908 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT2, SR_96_000); codec 6910 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0F, SR_96_000); codec 6912 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x01, tmp); codec 6921 sound/pci/hda/patch_ca0132.c static void sbz_connect_streams(struct hda_codec *codec) codec 6923 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6927 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Connect Streams entered, mutex locked and loaded.\n"); codec 6929 sound/pci/hda/patch_ca0132.c chipio_set_stream_channels(codec, 0x0C, 6); codec 6930 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 1); codec 6933 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x18a020, 0x00000043); codec 6936 sound/pci/hda/patch_ca0132.c chipio_set_stream_source_dest(codec, 0x14, 0x48, 0x91); codec 6937 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate_no_mutex(codec, 0x48, SR_96_000); codec 6938 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate_no_mutex(codec, 0x91, SR_96_000); codec 6939 sound/pci/hda/patch_ca0132.c chipio_set_stream_channels(codec, 0x14, 2); codec 6940 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x14, 1); codec 6942 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Connect Streams exited, mutex released.\n"); codec 6953 sound/pci/hda/patch_ca0132.c static void sbz_chipio_startup_data(struct hda_codec *codec) codec 6955 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 6958 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Startup Data entered, mutex locked and loaded.\n"); codec 6961 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190060, 0x0001f8c0); codec 6962 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190064, 0x0001f9c1); codec 6963 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190068, 0x0001fac6); codec 6964 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19006c, 0x0001fbc7); codec 6966 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19042c, 0x00000001); codec 6968 sound/pci/hda/patch_ca0132.c chipio_set_stream_channels(codec, 0x0C, 6); codec 6969 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 1); codec 6972 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190030, 0x0001e0c0); codec 6973 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190034, 0x0001e1c1); codec 6974 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190038, 0x0001e4c2); codec 6975 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19003c, 0x0001e5c3); codec 6976 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190040, 0x0001e2c4); codec 6977 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190044, 0x0001e3c5); codec 6978 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190048, 0x0001e8c6); codec 6979 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19004c, 0x0001e9c7); codec 6980 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190050, 0x0001ecc8); codec 6981 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190054, 0x0001edc9); codec 6982 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190058, 0x0001eaca); codec 6983 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19005c, 0x0001ebcb); codec 6985 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190038, 0x000140c2); codec 6986 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19003c, 0x000141c3); codec 6987 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190040, 0x000150c4); codec 6988 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190044, 0x000151c5); codec 6989 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190050, 0x000142c8); codec 6990 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190054, 0x000143c9); codec 6991 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x190058, 0x000152ca); codec 6992 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19005c, 0x000153cb); codec 6994 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x19042c, 0x00000001); codec 6996 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Startup Data exited, mutex released.\n"); codec 7004 sound/pci/hda/patch_ca0132.c static void ca0132_alt_dsp_scp_startup(struct hda_codec *codec) codec 7006 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7018 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7020 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0A, tmp); codec 7022 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0B, tmp); codec 7024 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7026 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7028 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7033 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0A, tmp); codec 7035 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0B, tmp); codec 7037 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7039 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7041 sound/pci/hda/patch_ca0132.c dspio_set_uint_param_no_source(codec, 0x80, 0x0C, tmp); codec 7050 sound/pci/hda/patch_ca0132.c static void ca0132_alt_dsp_initial_mic_setup(struct hda_codec *codec) codec 7052 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7055 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 7056 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 7058 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 7059 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 7062 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 7064 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 7065 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 7069 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b098, 0x0000000c); codec 7070 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b09C, 0x0000000c); codec 7073 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b098, 0x0000000c); codec 7074 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b09c, 0x0000004c); codec 7081 sound/pci/hda/patch_ca0132.c static void ae5_post_dsp_register_set(struct hda_codec *codec) codec 7083 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7085 sound/pci/hda/patch_ca0132.c chipio_8051_write_direct(codec, 0x93, 0x10); codec 7086 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7088 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7104 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2b, 0x3f); codec 7105 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2d, 0x3f); codec 7106 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83); codec 7109 sound/pci/hda/patch_ca0132.c static void ae5_post_dsp_param_setup(struct hda_codec *codec) codec 7116 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 3, 0); codec 7121 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ASI_96KHZ, 1); codec 7123 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, 0x724, 0x83); codec 7124 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_ASI, 0); codec 7126 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7128 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7130 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7134 sound/pci/hda/patch_ca0132.c static void ae5_post_dsp_pll_setup(struct hda_codec *codec) codec 7136 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7138 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7141 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7143 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7146 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7148 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7151 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7153 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7156 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7158 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7162 sound/pci/hda/patch_ca0132.c static void ae5_post_dsp_stream_setup(struct hda_codec *codec) codec 7164 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7168 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, 0x725, 0x81); codec 7170 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate_no_mutex(codec, 0x70, SR_96_000); codec 7172 sound/pci/hda/patch_ca0132.c chipio_set_stream_channels(codec, 0x0C, 6); codec 7173 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 1); codec 7175 sound/pci/hda/patch_ca0132.c chipio_set_stream_source_dest(codec, 0x5, 0x43, 0x0); codec 7177 sound/pci/hda/patch_ca0132.c chipio_set_stream_source_dest(codec, 0x18, 0x9, 0xd0); codec 7178 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate_no_mutex(codec, 0xd0, SR_96_000); codec 7179 sound/pci/hda/patch_ca0132.c chipio_set_stream_channels(codec, 0x18, 6); codec 7180 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x18, 1); codec 7182 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, CONTROL_PARAM_ASI, 4); codec 7184 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7186 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 7189 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x01, 0x80); codec 7194 sound/pci/hda/patch_ca0132.c static void ae5_post_dsp_startup_data(struct hda_codec *codec) codec 7196 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7200 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x189000, 0x0001f101); codec 7201 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x189004, 0x0001f101); codec 7202 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x189024, 0x00014004); codec 7203 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x189028, 0x0002000f); codec 7205 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x0a, 0x05); codec 7206 sound/pci/hda/patch_ca0132.c chipio_set_control_param_no_mutex(codec, CONTROL_PARAM_ASI, 7); codec 7207 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x0b, 0x12); codec 7208 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x04, 0x00); codec 7209 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x06, 0x48); codec 7210 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x0a, 0x05); codec 7211 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83); codec 7212 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x0f, 0x00); codec 7213 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x10, 0x00); codec 7214 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, true); codec 7215 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, true); codec 7216 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x80); codec 7218 sound/pci/hda/patch_ca0132.c chipio_write_no_mutex(codec, 0x18b03c, 0x00000012); codec 7220 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x0f, 0x00); codec 7221 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x10, 0x00); codec 7229 sound/pci/hda/patch_ca0132.c static void ca0132_setup_defaults(struct hda_codec *codec) codec 7231 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7243 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, ca0132_effects[idx].mid, codec 7251 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x3C, tmp); codec 7254 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x8f, 0x01, tmp); codec 7258 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x00, tmp); codec 7259 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x01, tmp); codec 7263 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x05, tmp); codec 7267 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x31, 0x00, tmp); codec 7274 sound/pci/hda/patch_ca0132.c static void r3d_setup_defaults(struct hda_codec *codec) codec 7276 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7284 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_scp_startup(codec); codec 7285 sound/pci/hda/patch_ca0132.c ca0132_alt_init_analog_mics(codec); codec 7289 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x3C, tmp); codec 7293 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x31, 0x00, tmp); codec 7294 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_WUH, SR_48_000); codec 7297 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x32, 0x00, tmp); codec 7300 sound/pci/hda/patch_ca0132.c r3di_gpio_dsp_status_set(codec, R3DI_DSP_DOWNLOADED); codec 7306 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 7318 sound/pci/hda/patch_ca0132.c static void sbz_setup_defaults(struct hda_codec *codec) codec 7320 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7328 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_scp_startup(codec); codec 7329 sound/pci/hda/patch_ca0132.c ca0132_alt_init_analog_mics(codec); codec 7330 sound/pci/hda/patch_ca0132.c sbz_connect_streams(codec); codec 7331 sound/pci/hda/patch_ca0132.c sbz_chipio_startup_data(codec); codec 7333 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 7334 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 7341 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x37, 0x08, tmp); codec 7342 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x37, 0x10, tmp); codec 7346 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x3C, tmp); codec 7350 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x31, 0x00, tmp); codec 7351 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_WUH, SR_48_000); codec 7354 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x32, 0x00, tmp); codec 7356 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_initial_mic_setup(codec); codec 7362 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 7369 sound/pci/hda/patch_ca0132.c ca0132_alt_create_dummy_stream(codec); codec 7375 sound/pci/hda/patch_ca0132.c static void ae5_setup_defaults(struct hda_codec *codec) codec 7377 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7385 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_scp_startup(codec); codec 7386 sound/pci/hda/patch_ca0132.c ca0132_alt_init_analog_mics(codec); codec 7387 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 1); codec 7388 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 1); codec 7392 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x29, tmp); codec 7393 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x2a, tmp); codec 7394 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x0d, tmp); codec 7395 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x80, 0x0e, tmp); codec 7397 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2e, 0x3f); codec 7398 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 7399 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00); codec 7403 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x37, 0x08, tmp); codec 7404 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x37, 0x10, tmp); codec 7408 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x96, 0x3C, tmp); codec 7412 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x31, 0x00, tmp); codec 7413 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_WUH, SR_48_000); codec 7416 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, 0x32, 0x00, tmp); codec 7418 sound/pci/hda/patch_ca0132.c ca0132_alt_dsp_initial_mic_setup(codec); codec 7419 sound/pci/hda/patch_ca0132.c ae5_post_dsp_register_set(codec); codec 7420 sound/pci/hda/patch_ca0132.c ae5_post_dsp_param_setup(codec); codec 7421 sound/pci/hda/patch_ca0132.c ae5_post_dsp_pll_setup(codec); codec 7422 sound/pci/hda/patch_ca0132.c ae5_post_dsp_stream_setup(codec); codec 7423 sound/pci/hda/patch_ca0132.c ae5_post_dsp_startup_data(codec); codec 7429 sound/pci/hda/patch_ca0132.c dspio_set_uint_param(codec, codec 7436 sound/pci/hda/patch_ca0132.c ca0132_alt_create_dummy_stream(codec); codec 7442 sound/pci/hda/patch_ca0132.c static void ca0132_init_flags(struct hda_codec *codec) codec 7444 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7447 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DSP_96KHZ, 1); codec 7448 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DAC_96KHZ, 1); codec 7449 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ADC_B_96KHZ, 1); codec 7450 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ADC_C_96KHZ, 1); codec 7451 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_SRC_RATE_96KHZ, 1); codec 7452 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_IDLE_ENABLE, 0); codec 7453 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_SPDIF2OUT, 0); codec 7454 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7456 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7459 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_IDLE_ENABLE, 0); codec 7460 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7462 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7464 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7466 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, codec 7468 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ADC_C_HIGH_PASS, 1); codec 7475 sound/pci/hda/patch_ca0132.c static void ca0132_init_params(struct hda_codec *codec) codec 7477 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7480 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_WUH, SR_48_000); codec 7481 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x0B, SR_48_000); codec 7482 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_SPDIF1_SOURCE, 0); codec 7483 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0, 0); codec 7484 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_VIP_SOURCE, 0); codec 7487 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_PORTA_160OHM_GAIN, 6); codec 7488 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_PORTD_160OHM_GAIN, 6); codec 7491 sound/pci/hda/patch_ca0132.c static void ca0132_set_dsp_msr(struct hda_codec *codec, bool is96k) codec 7493 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DSP_96KHZ, is96k); codec 7494 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_DAC_96KHZ, is96k); codec 7495 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_SRC_RATE_96KHZ, is96k); codec 7496 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_SRC_CLOCK_196MHZ, is96k); codec 7497 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ADC_B_96KHZ, is96k); codec 7498 sound/pci/hda/patch_ca0132.c chipio_set_control_flag(codec, CONTROL_FLAG_ADC_C_96KHZ, is96k); codec 7500 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICIN1, SR_96_000); codec 7501 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_MICOUT1, SR_96_000); codec 7502 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, MEM_CONNID_WUH, SR_48_000); codec 7505 sound/pci/hda/patch_ca0132.c static bool ca0132_download_dsp_images(struct hda_codec *codec) codec 7508 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7521 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) codec 7522 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Desktop firmware not found."); codec 7524 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Desktop firmware selected."); codec 7528 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) codec 7529 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Recon3Di alt firmware not detected."); codec 7531 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Recon3Di firmware selected."); codec 7541 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Default firmware selected."); codec 7543 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) codec 7548 sound/pci/hda/patch_ca0132.c if (dspload_image(codec, dsp_os_image, 0, 0, true, 0)) { codec 7549 sound/pci/hda/patch_ca0132.c codec_err(codec, "ca0132 DSP load image failed\n"); codec 7553 sound/pci/hda/patch_ca0132.c dsp_loaded = dspload_wait_loaded(codec); codec 7561 sound/pci/hda/patch_ca0132.c static void ca0132_download_dsp(struct hda_codec *codec) codec 7563 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7572 sound/pci/hda/patch_ca0132.c chipio_enable_clocks(codec); codec 7576 sound/pci/hda/patch_ca0132.c if (!ca0132_download_dsp_images(codec)) codec 7584 sound/pci/hda/patch_ca0132.c ca0132_set_dsp_msr(codec, true); codec 7587 sound/pci/hda/patch_ca0132.c static void ca0132_process_dsp_response(struct hda_codec *codec, codec 7590 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7592 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "ca0132_process_dsp_response\n"); codec 7593 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 7595 sound/pci/hda/patch_ca0132.c if (dspio_get_response_data(codec) >= 0) codec 7599 sound/pci/hda/patch_ca0132.c dspio_clear_response_queue(codec); codec 7600 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 7603 sound/pci/hda/patch_ca0132.c static void hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb) codec 7605 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7611 sound/pci/hda/patch_ca0132.c tbl = snd_hda_jack_tbl_get(codec, cb->nid); codec 7617 sound/pci/hda/patch_ca0132.c static void amic_callback(struct hda_codec *codec, struct hda_jack_callback *cb) codec 7619 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7622 sound/pci/hda/patch_ca0132.c ca0132_alt_select_in(codec); codec 7624 sound/pci/hda/patch_ca0132.c ca0132_select_mic(codec); codec 7627 sound/pci/hda/patch_ca0132.c static void ca0132_init_unsol(struct hda_codec *codec) codec 7629 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7630 sound/pci/hda/patch_ca0132.c snd_hda_jack_detect_enable_callback(codec, spec->unsol_tag_hp, hp_callback); codec 7631 sound/pci/hda/patch_ca0132.c snd_hda_jack_detect_enable_callback(codec, spec->unsol_tag_amic1, codec 7633 sound/pci/hda/patch_ca0132.c snd_hda_jack_detect_enable_callback(codec, UNSOL_TAG_DSP, codec 7637 sound/pci/hda/patch_ca0132.c snd_hda_jack_detect_enable_callback(codec, codec 7716 sound/pci/hda/patch_ca0132.c static void ca0132_init_chip(struct hda_codec *codec) codec 7718 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7771 sound/pci/hda/patch_ca0132.c ca0132_init_tuning_defaults(codec); codec 7779 sound/pci/hda/patch_ca0132.c static void r3di_gpio_shutdown(struct hda_codec *codec) codec 7781 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 0x00); codec 7787 sound/pci/hda/patch_ca0132.c static void sbz_region2_exit(struct hda_codec *codec) codec 7789 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7797 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 7798 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, false); codec 7799 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 4, true); codec 7800 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, false); codec 7801 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 7, false); codec 7804 sound/pci/hda/patch_ca0132.c static void sbz_set_pin_ctl_default(struct hda_codec *codec) codec 7809 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x11, 0, codec 7813 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pins[i], 0, codec 7817 sound/pci/hda/patch_ca0132.c static void ca0132_clear_unsolicited(struct hda_codec *codec) codec 7823 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pins[i], 0, codec 7829 sound/pci/hda/patch_ca0132.c static void sbz_gpio_shutdown_commands(struct hda_codec *codec, int dir, codec 7833 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 7836 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 7840 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, codec 7844 sound/pci/hda/patch_ca0132.c static void zxr_dbpro_power_state_shutdown(struct hda_codec *codec) codec 7850 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pins[i], 0, codec 7854 sound/pci/hda/patch_ca0132.c static void sbz_exit_chip(struct hda_codec *codec) codec 7856 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 7857 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 7860 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, -1); codec 7861 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, 0x05); codec 7862 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, 0x01); codec 7864 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x14, 0); codec 7865 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 0); codec 7867 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x41, SR_192_000); codec 7868 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x91, SR_192_000); codec 7870 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18a020, 0x00000083); codec 7872 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, 0x03); codec 7873 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, 0x07); codec 7874 sound/pci/hda/patch_ca0132.c sbz_gpio_shutdown_commands(codec, 0x07, 0x07, 0x06); codec 7876 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 0); codec 7878 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, 0x0D, 0x24); codec 7880 sound/pci/hda/patch_ca0132.c ca0132_clear_unsolicited(codec); codec 7881 sound/pci/hda/patch_ca0132.c sbz_set_pin_ctl_default(codec); codec 7883 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x0B, 0, codec 7886 sound/pci/hda/patch_ca0132.c sbz_region2_exit(codec); codec 7889 sound/pci/hda/patch_ca0132.c static void r3d_exit_chip(struct hda_codec *codec) codec 7891 sound/pci/hda/patch_ca0132.c ca0132_clear_unsolicited(codec); codec 7892 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00); codec 7893 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x5b); codec 7896 sound/pci/hda/patch_ca0132.c static void ae5_exit_chip(struct hda_codec *codec) codec 7898 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 7899 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 7901 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x32, 0x3f); codec 7902 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83); codec 7903 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83); codec 7904 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x30, 0x00); codec 7905 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2b, 0x00); codec 7906 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2d, 0x00); codec 7907 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 7908 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 1, false); codec 7910 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00); codec 7911 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x53); codec 7913 sound/pci/hda/patch_ca0132.c chipio_set_control_param(codec, CONTROL_PARAM_ASI, 0); codec 7915 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x18, 0); codec 7916 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0c, 0); codec 7918 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x724, 0x83); codec 7921 sound/pci/hda/patch_ca0132.c static void zxr_exit_chip(struct hda_codec *codec) codec 7923 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x03, 0); codec 7924 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x04, 0); codec 7925 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x14, 0); codec 7926 sound/pci/hda/patch_ca0132.c chipio_set_stream_control(codec, 0x0C, 0); codec 7928 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x41, SR_192_000); codec 7929 sound/pci/hda/patch_ca0132.c chipio_set_conn_rate(codec, 0x91, SR_192_000); codec 7931 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18a020, 0x00000083); codec 7933 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00); codec 7934 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x53); codec 7936 sound/pci/hda/patch_ca0132.c ca0132_clear_unsolicited(codec); codec 7937 sound/pci/hda/patch_ca0132.c sbz_set_pin_ctl_default(codec); codec 7938 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x0B, 0, AC_VERB_SET_EAPD_BTLENABLE, 0x00); codec 7940 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, false); codec 7941 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 2, false); codec 7942 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 3, false); codec 7943 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, false); codec 7944 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 4, true); codec 7945 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 0, true); codec 7946 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 5, true); codec 7947 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 2, false); codec 7948 sound/pci/hda/patch_ca0132.c ca0113_mmio_gpio_set(codec, 3, false); codec 7951 sound/pci/hda/patch_ca0132.c static void ca0132_exit_chip(struct hda_codec *codec) codec 7955 sound/pci/hda/patch_ca0132.c if (dspload_is_loaded(codec)) codec 7956 sound/pci/hda/patch_ca0132.c dsp_reset(codec); codec 7967 sound/pci/hda/patch_ca0132.c static void sbz_dsp_startup_check(struct hda_codec *codec) codec 7969 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 7982 sound/pci/hda/patch_ca0132.c chipio_read(codec, cur_address, &dsp_data_check[i]); codec 7990 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "Startup Check: %d ", failure); codec 7992 sound/pci/hda/patch_ca0132.c codec_info(codec, "DSP not initialized properly. Attempting to fix."); codec 7999 sound/pci/hda/patch_ca0132.c codec_info(codec, "Reloading... Tries left: %d", reload); codec 8000 sound/pci/hda/patch_ca0132.c sbz_exit_chip(codec); codec 8002 sound/pci/hda/patch_ca0132.c codec->patch_ops.init(codec); codec 8005 sound/pci/hda/patch_ca0132.c chipio_read(codec, cur_address, &dsp_data_check[i]); codec 8016 sound/pci/hda/patch_ca0132.c codec_info(codec, "DSP fixed."); codec 8021 sound/pci/hda/patch_ca0132.c codec_info(codec, "DSP failed to initialize properly. Either try a full shutdown or a suspend to clear the internal memory."); codec 8032 sound/pci/hda/patch_ca0132.c static void ca0132_alt_vol_setup(struct hda_codec *codec) codec 8034 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x02, 0, 0x797, 0x00); codec 8035 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x02, 0, 0x798, 0x00); codec 8036 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x03, 0, 0x797, 0x00); codec 8037 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x03, 0, 0x798, 0x00); codec 8038 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x04, 0, 0x797, 0x00); codec 8039 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x04, 0, 0x798, 0x00); codec 8040 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x07, 0, 0x797, 0x00); codec 8041 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x07, 0, 0x798, 0x00); codec 8047 sound/pci/hda/patch_ca0132.c static void sbz_pre_dsp_setup(struct hda_codec *codec) codec 8049 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8054 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b0a4, 0x000000c2); codec 8056 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x11, 0, codec 8060 sound/pci/hda/patch_ca0132.c static void r3d_pre_dsp_setup(struct hda_codec *codec) codec 8062 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b0a4, 0x000000c2); codec 8064 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8066 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8068 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8071 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x11, 0, codec 8075 sound/pci/hda/patch_ca0132.c static void r3di_pre_dsp_setup(struct hda_codec *codec) codec 8077 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b0a4, 0x000000c2); codec 8079 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8081 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8083 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8086 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8088 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8090 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8092 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8095 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x11, 0, codec 8104 sound/pci/hda/patch_ca0132.c static void ca0132_mmio_init(struct hda_codec *codec) codec 8106 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8184 sound/pci/hda/patch_ca0132.c static void ae5_register_set(struct hda_codec *codec) codec 8186 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8188 sound/pci/hda/patch_ca0132.c chipio_8051_write_direct(codec, 0x93, 0x10); codec 8189 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8191 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8207 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x2d, 0x3f); codec 8209 sound/pci/hda/patch_ca0132.c chipio_8051_write_direct(codec, 0x90, 0x00); codec 8210 sound/pci/hda/patch_ca0132.c chipio_8051_write_direct(codec, 0x90, 0x10); codec 8212 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83); codec 8214 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b0a4, 0x000000c2); codec 8216 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x7ff, 0x00); codec 8217 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, 0x01, 0, 0x7ff, 0x00); codec 8225 sound/pci/hda/patch_ca0132.c static void ca0132_alt_init(struct hda_codec *codec) codec 8227 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8229 sound/pci/hda/patch_ca0132.c ca0132_alt_vol_setup(codec); codec 8233 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "SBZ alt_init"); codec 8234 sound/pci/hda/patch_ca0132.c ca0132_gpio_init(codec); codec 8235 sound/pci/hda/patch_ca0132.c sbz_pre_dsp_setup(codec); codec 8236 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8237 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->desktop_init_verbs); codec 8240 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "R3DI alt_init"); codec 8241 sound/pci/hda/patch_ca0132.c ca0132_gpio_init(codec); codec 8242 sound/pci/hda/patch_ca0132.c ca0132_gpio_setup(codec); codec 8243 sound/pci/hda/patch_ca0132.c r3di_gpio_dsp_status_set(codec, R3DI_DSP_DOWNLOADING); codec 8244 sound/pci/hda/patch_ca0132.c r3di_pre_dsp_setup(codec); codec 8245 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8246 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, 0x6FF, 0xC4); codec 8249 sound/pci/hda/patch_ca0132.c r3d_pre_dsp_setup(codec); codec 8250 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8251 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->desktop_init_verbs); codec 8254 sound/pci/hda/patch_ca0132.c ca0132_gpio_init(codec); codec 8255 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8257 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8259 sound/pci/hda/patch_ca0132.c chipio_write(codec, 0x18b030, 0x00000020); codec 8260 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8261 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->desktop_init_verbs); codec 8262 sound/pci/hda/patch_ca0132.c ca0113_mmio_command_set(codec, 0x30, 0x32, 0x3f); codec 8265 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8266 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->desktop_init_verbs); codec 8273 sound/pci/hda/patch_ca0132.c static int ca0132_init(struct hda_codec *codec) codec 8275 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8291 sound/pci/hda/patch_ca0132.c dsp_loaded = dspload_is_loaded(codec); codec 8297 sound/pci/hda/patch_ca0132.c sbz_dsp_startup_check(codec); codec 8307 sound/pci/hda/patch_ca0132.c ca0132_mmio_init(codec); codec 8309 sound/pci/hda/patch_ca0132.c snd_hda_power_up_pm(codec); codec 8312 sound/pci/hda/patch_ca0132.c ae5_register_set(codec); codec 8314 sound/pci/hda/patch_ca0132.c ca0132_init_unsol(codec); codec 8315 sound/pci/hda/patch_ca0132.c ca0132_init_params(codec); codec 8316 sound/pci/hda/patch_ca0132.c ca0132_init_flags(codec); codec 8318 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->base_init_verbs); codec 8321 sound/pci/hda/patch_ca0132.c ca0132_alt_init(codec); codec 8323 sound/pci/hda/patch_ca0132.c ca0132_download_dsp(codec); codec 8325 sound/pci/hda/patch_ca0132.c ca0132_refresh_widget_caps(codec); codec 8330 sound/pci/hda/patch_ca0132.c r3d_setup_defaults(codec); codec 8334 sound/pci/hda/patch_ca0132.c sbz_setup_defaults(codec); codec 8337 sound/pci/hda/patch_ca0132.c ae5_setup_defaults(codec); codec 8340 sound/pci/hda/patch_ca0132.c ca0132_setup_defaults(codec); codec 8341 sound/pci/hda/patch_ca0132.c ca0132_init_analog_mic2(codec); codec 8342 sound/pci/hda/patch_ca0132.c ca0132_init_dmic(codec); codec 8347 sound/pci/hda/patch_ca0132.c init_output(codec, spec->out_pins[i], spec->dacs[0]); codec 8349 sound/pci/hda/patch_ca0132.c init_output(codec, cfg->dig_out_pins[0], spec->dig_out); codec 8352 sound/pci/hda/patch_ca0132.c init_input(codec, spec->input_pins[i], spec->adcs[i]); codec 8354 sound/pci/hda/patch_ca0132.c init_input(codec, cfg->dig_in_pin, spec->dig_in); codec 8357 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->chip_init_verbs); codec 8358 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8360 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, WIDGET_CHIP_CTRL, 0, codec 8365 sound/pci/hda/patch_ca0132.c ca0132_gpio_setup(codec); codec 8367 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->spec_init_verbs); codec 8369 sound/pci/hda/patch_ca0132.c ca0132_alt_select_out(codec); codec 8370 sound/pci/hda/patch_ca0132.c ca0132_alt_select_in(codec); codec 8372 sound/pci/hda/patch_ca0132.c ca0132_select_out(codec); codec 8373 sound/pci/hda/patch_ca0132.c ca0132_select_mic(codec); codec 8376 sound/pci/hda/patch_ca0132.c snd_hda_jack_report_sync(codec); codec 8384 sound/pci/hda/patch_ca0132.c ca0132_pe_switch_set(codec); codec 8387 sound/pci/hda/patch_ca0132.c snd_hda_power_down_pm(codec); codec 8392 sound/pci/hda/patch_ca0132.c static int dbpro_init(struct hda_codec *codec) codec 8394 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8398 sound/pci/hda/patch_ca0132.c init_output(codec, cfg->dig_out_pins[0], spec->dig_out); codec 8399 sound/pci/hda/patch_ca0132.c init_input(codec, cfg->dig_in_pin, spec->dig_in); codec 8402 sound/pci/hda/patch_ca0132.c init_input(codec, spec->input_pins[i], spec->adcs[i]); codec 8407 sound/pci/hda/patch_ca0132.c static void ca0132_free(struct hda_codec *codec) codec 8409 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8412 sound/pci/hda/patch_ca0132.c snd_hda_power_up(codec); codec 8415 sound/pci/hda/patch_ca0132.c sbz_exit_chip(codec); codec 8418 sound/pci/hda/patch_ca0132.c zxr_exit_chip(codec); codec 8421 sound/pci/hda/patch_ca0132.c r3d_exit_chip(codec); codec 8424 sound/pci/hda/patch_ca0132.c ae5_exit_chip(codec); codec 8427 sound/pci/hda/patch_ca0132.c r3di_gpio_shutdown(codec); codec 8433 sound/pci/hda/patch_ca0132.c snd_hda_sequence_write(codec, spec->base_exit_verbs); codec 8434 sound/pci/hda/patch_ca0132.c ca0132_exit_chip(codec); codec 8436 sound/pci/hda/patch_ca0132.c snd_hda_power_down(codec); codec 8439 sound/pci/hda/patch_ca0132.c pci_iounmap(codec->bus->pci, spec->mem_base); codec 8442 sound/pci/hda/patch_ca0132.c kfree(codec->spec); codec 8445 sound/pci/hda/patch_ca0132.c static void dbpro_free(struct hda_codec *codec) codec 8447 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8449 sound/pci/hda/patch_ca0132.c zxr_dbpro_power_state_shutdown(codec); codec 8452 sound/pci/hda/patch_ca0132.c kfree(codec->spec); codec 8455 sound/pci/hda/patch_ca0132.c static void ca0132_reboot_notify(struct hda_codec *codec) codec 8457 sound/pci/hda/patch_ca0132.c codec->patch_ops.free(codec); codec 8461 sound/pci/hda/patch_ca0132.c static int ca0132_suspend(struct hda_codec *codec) codec 8463 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8489 sound/pci/hda/patch_ca0132.c static void ca0132_config(struct hda_codec *codec) codec 8491 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8507 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_ALIENWARE applied.\n", __func__); codec 8508 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, alienware_pincfgs); codec 8511 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_SBZ applied.\n", __func__); codec 8512 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, sbz_pincfgs); codec 8515 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_ZXR applied.\n", __func__); codec 8516 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, zxr_pincfgs); codec 8519 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_R3D applied.\n", __func__); codec 8520 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, r3d_pincfgs); codec 8523 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_R3DI applied.\n", __func__); codec 8524 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, r3di_pincfgs); codec 8527 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "%s: QUIRK_AE5 applied.\n", __func__); codec 8528 sound/pci/hda/patch_ca0132.c snd_hda_apply_pincfgs(codec, ae5_pincfgs); codec 8684 sound/pci/hda/patch_ca0132.c static int ca0132_prepare_verbs(struct hda_codec *codec) codec 8688 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8733 sound/pci/hda/patch_ca0132.c static void sbz_detect_quirk(struct hda_codec *codec) codec 8735 sound/pci/hda/patch_ca0132.c struct ca0132_spec *spec = codec->spec; codec 8737 sound/pci/hda/patch_ca0132.c switch (codec->core.subsystem_id) { codec 8750 sound/pci/hda/patch_ca0132.c static int patch_ca0132(struct hda_codec *codec) codec 8756 sound/pci/hda/patch_ca0132.c codec_dbg(codec, "patch_ca0132\n"); codec 8761 sound/pci/hda/patch_ca0132.c codec->spec = spec; codec 8762 sound/pci/hda/patch_ca0132.c spec->codec = codec; codec 8765 sound/pci/hda/patch_ca0132.c quirk = snd_pci_quirk_lookup(codec->bus->pci, ca0132_quirks); codec 8771 sound/pci/hda/patch_ca0132.c sbz_detect_quirk(codec); codec 8774 sound/pci/hda/patch_ca0132.c codec->patch_ops = dbpro_patch_ops; codec 8776 sound/pci/hda/patch_ca0132.c codec->patch_ops = ca0132_patch_ops; codec 8778 sound/pci/hda/patch_ca0132.c codec->pcm_format_first = 1; codec 8779 sound/pci/hda/patch_ca0132.c codec->no_sticky_stream = 1; codec 8789 sound/pci/hda/patch_ca0132.c snd_hda_codec_set_name(codec, "Sound Blaster Z"); codec 8793 sound/pci/hda/patch_ca0132.c snd_hda_codec_set_name(codec, "Sound Blaster ZxR"); codec 8799 sound/pci/hda/patch_ca0132.c snd_hda_codec_set_name(codec, "Recon3D"); codec 8803 sound/pci/hda/patch_ca0132.c snd_hda_codec_set_name(codec, "Recon3Di"); codec 8807 sound/pci/hda/patch_ca0132.c snd_hda_codec_set_name(codec, "Sound BlasterX AE-5"); codec 8838 sound/pci/hda/patch_ca0132.c spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20); codec 8840 sound/pci/hda/patch_ca0132.c codec_warn(codec, "pci_iomap failed! Setting quirk to QUIRK_NONE."); codec 8851 sound/pci/hda/patch_ca0132.c ca0132_init_chip(codec); codec 8853 sound/pci/hda/patch_ca0132.c ca0132_config(codec); codec 8855 sound/pci/hda/patch_ca0132.c err = ca0132_prepare_verbs(codec); codec 8859 sound/pci/hda/patch_ca0132.c err = snd_hda_parse_pin_def_config(codec, &spec->autocfg, NULL); codec 8866 sound/pci/hda/patch_ca0132.c ca0132_free(codec); codec 129 sound/pci/hda/patch_cirrus.c static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) codec 131 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 132 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, spec->vendor_nid, 0, codec 134 sound/pci/hda/patch_cirrus.c return snd_hda_codec_read(codec, spec->vendor_nid, 0, codec 138 sound/pci/hda/patch_cirrus.c static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, codec 141 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 142 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, spec->vendor_nid, 0, codec 144 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, spec->vendor_nid, 0, codec 154 sound/pci/hda/patch_cirrus.c static void cs_automute(struct hda_codec *codec) codec 156 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 161 sound/pci/hda/patch_cirrus.c snd_hda_gen_update_outputs(codec); codec 170 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, codec 175 sound/pci/hda/patch_cirrus.c static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) codec 178 sound/pci/hda/patch_cirrus.c val = snd_hda_codec_get_pincfg(codec, nid); codec 182 sound/pci/hda/patch_cirrus.c static void init_input_coef(struct hda_codec *codec) codec 184 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 189 sound/pci/hda/patch_cirrus.c coef = cs_vendor_coef_get(codec, IDX_BEEP_CFG); codec 190 sound/pci/hda/patch_cirrus.c if (is_active_pin(codec, CS_DMIC2_PIN_NID)) codec 192 sound/pci/hda/patch_cirrus.c if (is_active_pin(codec, CS_DMIC1_PIN_NID)) codec 198 sound/pci/hda/patch_cirrus.c cs_vendor_coef_set(codec, IDX_BEEP_CFG, coef); codec 281 sound/pci/hda/patch_cirrus.c static void init_digital_coef(struct hda_codec *codec) codec 287 sound/pci/hda/patch_cirrus.c if (is_active_pin(codec, CS_DIG_OUT2_PIN_NID)) codec 292 sound/pci/hda/patch_cirrus.c cs_vendor_coef_set(codec, IDX_SPDIF_CTL, coef); codec 295 sound/pci/hda/patch_cirrus.c static int cs_init(struct hda_codec *codec) codec 297 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 301 sound/pci/hda/patch_cirrus.c snd_hda_sequence_write(codec, cs_errata_init_verbs); codec 302 sound/pci/hda/patch_cirrus.c snd_hda_sequence_write(codec, cs_coef_init_verbs); codec 304 sound/pci/hda/patch_cirrus.c snd_hda_sequence_write(codec, cs4208_coef_init_verbs); codec 307 sound/pci/hda/patch_cirrus.c snd_hda_gen_init(codec); codec 310 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, codec 312 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DIRECTION, codec 314 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, codec 319 sound/pci/hda/patch_cirrus.c init_input_coef(codec); codec 320 sound/pci/hda/patch_cirrus.c init_digital_coef(codec); codec 326 sound/pci/hda/patch_cirrus.c static int cs_build_controls(struct hda_codec *codec) codec 330 sound/pci/hda/patch_cirrus.c err = snd_hda_gen_build_controls(codec); codec 333 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_BUILD); codec 347 sound/pci/hda/patch_cirrus.c static int cs_parse_auto_config(struct hda_codec *codec) codec 349 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 353 sound/pci/hda/patch_cirrus.c err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); codec 357 sound/pci/hda/patch_cirrus.c err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); codec 368 sound/pci/hda/patch_cirrus.c snd_hda_gen_fix_pin_power(codec, codec 494 sound/pci/hda/patch_cirrus.c static void cs420x_fixup_gpio_13(struct hda_codec *codec, codec 498 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 506 sound/pci/hda/patch_cirrus.c static void cs420x_fixup_gpio_23(struct hda_codec *codec, codec 510 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 570 sound/pci/hda/patch_cirrus.c static struct cs_spec *cs_alloc_spec(struct hda_codec *codec, int vendor_nid) codec 577 sound/pci/hda/patch_cirrus.c codec->spec = spec; codec 579 sound/pci/hda/patch_cirrus.c codec->power_save_node = 1; codec 585 sound/pci/hda/patch_cirrus.c static int patch_cs420x(struct hda_codec *codec) codec 590 sound/pci/hda/patch_cirrus.c spec = cs_alloc_spec(codec, CS420X_VENDOR_NID); codec 594 sound/pci/hda/patch_cirrus.c codec->patch_ops = cs_patch_ops; codec 596 sound/pci/hda/patch_cirrus.c codec->single_adc_amp = 1; codec 598 sound/pci/hda/patch_cirrus.c snd_hda_pick_fixup(codec, cs420x_models, cs420x_fixup_tbl, codec 600 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 602 sound/pci/hda/patch_cirrus.c err = cs_parse_auto_config(codec); codec 606 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 611 sound/pci/hda/patch_cirrus.c cs_free(codec); codec 650 sound/pci/hda/patch_cirrus.c static void cs4208_fixup_gpio0(struct hda_codec *codec, codec 654 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 665 sound/pci/hda/patch_cirrus.c static void cs4208_fixup_mac(struct hda_codec *codec, codec 671 sound/pci/hda/patch_cirrus.c codec->fixup_id = HDA_FIXUP_ID_NOT_SET; codec 672 sound/pci/hda/patch_cirrus.c snd_hda_pick_fixup(codec, NULL, cs4208_mac_fixup_tbl, cs4208_fixups); codec 673 sound/pci/hda/patch_cirrus.c if (codec->fixup_id == HDA_FIXUP_ID_NOT_SET) codec 674 sound/pci/hda/patch_cirrus.c codec->fixup_id = CS4208_GPIO0; /* default fixup */ codec 675 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, action); codec 679 sound/pci/hda/patch_cirrus.c static void cs4208_fixup_macmini(struct hda_codec *codec, codec 690 sound/pci/hda/patch_cirrus.c codec->inv_jack_detect = 1; codec 692 sound/pci/hda/patch_cirrus.c snd_hda_apply_pincfgs(codec, pincfgs); codec 699 sound/pci/hda/patch_cirrus.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 700 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 704 sound/pci/hda/patch_cirrus.c snd_hda_set_pin_ctl_cache(codec, pin, pinctl); codec 709 sound/pci/hda/patch_cirrus.c static void cs4208_fixup_spdif_switch(struct hda_codec *codec, codec 713 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 718 sound/pci/hda/patch_cirrus.c kctl = snd_hda_find_mixer_ctl(codec, "IEC958 Playback Switch"); codec 756 sound/pci/hda/patch_cirrus.c static void cs4208_fix_amp_caps(struct hda_codec *codec, hda_nid_t adc) codec 760 sound/pci/hda/patch_cirrus.c caps = query_amp_caps(codec, adc, HDA_INPUT); codec 763 sound/pci/hda/patch_cirrus.c snd_hda_override_amp_caps(codec, adc, HDA_INPUT, caps); codec 766 sound/pci/hda/patch_cirrus.c static int patch_cs4208(struct hda_codec *codec) codec 771 sound/pci/hda/patch_cirrus.c spec = cs_alloc_spec(codec, CS4208_VENDOR_NID); codec 775 sound/pci/hda/patch_cirrus.c codec->patch_ops = cs_patch_ops; codec 780 sound/pci/hda/patch_cirrus.c snd_hda_pick_fixup(codec, cs4208_models, cs4208_fixup_tbl, codec 782 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 784 sound/pci/hda/patch_cirrus.c snd_hda_override_wcaps(codec, 0x18, codec 785 sound/pci/hda/patch_cirrus.c get_wcaps(codec, 0x18) | AC_WCAP_STEREO); codec 786 sound/pci/hda/patch_cirrus.c cs4208_fix_amp_caps(codec, 0x18); codec 787 sound/pci/hda/patch_cirrus.c cs4208_fix_amp_caps(codec, 0x1b); codec 788 sound/pci/hda/patch_cirrus.c cs4208_fix_amp_caps(codec, 0x1c); codec 790 sound/pci/hda/patch_cirrus.c err = cs_parse_auto_config(codec); codec 794 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 799 sound/pci/hda/patch_cirrus.c cs_free(codec); codec 848 sound/pci/hda/patch_cirrus.c static void cs421x_fixup_sense_b(struct hda_codec *codec, codec 851 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 947 sound/pci/hda/patch_cirrus.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 950 sound/pci/hda/patch_cirrus.c cs_vendor_coef_get(codec, CS421X_IDX_SPK_CTL) & 0x0003; codec 957 sound/pci/hda/patch_cirrus.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 961 sound/pci/hda/patch_cirrus.c cs_vendor_coef_get(codec, CS421X_IDX_SPK_CTL); codec 969 sound/pci/hda/patch_cirrus.c cs_vendor_coef_set(codec, CS421X_IDX_SPK_CTL, coef); codec 986 sound/pci/hda/patch_cirrus.c static void cs4210_pinmux_init(struct hda_codec *codec) codec 988 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 992 sound/pci/hda/patch_cirrus.c coef = cs_vendor_coef_get(codec, CS421X_IDX_DEV_CFG); codec 1004 sound/pci/hda/patch_cirrus.c cs_vendor_coef_set(codec, CS421X_IDX_DEV_CFG, coef); codec 1007 sound/pci/hda/patch_cirrus.c is_active_pin(codec, CS421X_DMIC_PIN_NID)) { codec 1012 sound/pci/hda/patch_cirrus.c def_conf = snd_hda_codec_get_pincfg(codec, CS421X_DMIC_PIN_NID); codec 1015 sound/pci/hda/patch_cirrus.c snd_hda_codec_set_pincfg(codec, CS421X_DMIC_PIN_NID, def_conf); codec 1019 sound/pci/hda/patch_cirrus.c static void cs4210_spdif_automute(struct hda_codec *codec, codec 1022 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 1031 sound/pci/hda/patch_cirrus.c spdif_present = snd_hda_jack_detect(codec, spdif_pin); codec 1037 sound/pci/hda/patch_cirrus.c snd_hda_set_pin_ctl(codec, spdif_pin, spdif_present ? PIN_OUT : 0); codec 1039 sound/pci/hda/patch_cirrus.c cs_automute(codec); codec 1042 sound/pci/hda/patch_cirrus.c static void parse_cs421x_digital(struct hda_codec *codec) codec 1044 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 1050 sound/pci/hda/patch_cirrus.c if (get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) { codec 1052 sound/pci/hda/patch_cirrus.c snd_hda_jack_detect_enable_callback(codec, nid, codec 1058 sound/pci/hda/patch_cirrus.c static int cs421x_init(struct hda_codec *codec) codec 1060 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 1063 sound/pci/hda/patch_cirrus.c snd_hda_sequence_write(codec, cs421x_coef_init_verbs); codec 1064 sound/pci/hda/patch_cirrus.c snd_hda_sequence_write(codec, cs421x_coef_init_verbs_A1_silicon_fixes); codec 1065 sound/pci/hda/patch_cirrus.c cs4210_pinmux_init(codec); codec 1068 sound/pci/hda/patch_cirrus.c snd_hda_gen_init(codec); codec 1071 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_MASK, codec 1073 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DIRECTION, codec 1075 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, codec 1079 sound/pci/hda/patch_cirrus.c init_input_coef(codec); codec 1081 sound/pci/hda/patch_cirrus.c cs4210_spdif_automute(codec, NULL); codec 1086 sound/pci/hda/patch_cirrus.c static void fix_volume_caps(struct hda_codec *codec, hda_nid_t dac) codec 1091 sound/pci/hda/patch_cirrus.c caps = query_amp_caps(codec, dac, HDA_OUTPUT); codec 1095 sound/pci/hda/patch_cirrus.c snd_hda_override_amp_caps(codec, dac, HDA_OUTPUT, caps); codec 1098 sound/pci/hda/patch_cirrus.c static int cs421x_parse_auto_config(struct hda_codec *codec) codec 1100 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 1104 sound/pci/hda/patch_cirrus.c fix_volume_caps(codec, dac); codec 1106 sound/pci/hda/patch_cirrus.c err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); codec 1110 sound/pci/hda/patch_cirrus.c err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); codec 1114 sound/pci/hda/patch_cirrus.c parse_cs421x_digital(codec); codec 1131 sound/pci/hda/patch_cirrus.c static int cs421x_suspend(struct hda_codec *codec) codec 1133 sound/pci/hda/patch_cirrus.c struct cs_spec *spec = codec->spec; codec 1136 sound/pci/hda/patch_cirrus.c snd_hda_shutup_pins(codec); codec 1138 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, CS4210_DAC_NID, 0, codec 1140 sound/pci/hda/patch_cirrus.c snd_hda_codec_write(codec, CS4210_ADC_NID, 0, codec 1144 sound/pci/hda/patch_cirrus.c coef = cs_vendor_coef_get(codec, CS421X_IDX_DEV_CFG); codec 1146 sound/pci/hda/patch_cirrus.c cs_vendor_coef_set(codec, CS421X_IDX_DEV_CFG, coef); codec 1164 sound/pci/hda/patch_cirrus.c static int patch_cs4210(struct hda_codec *codec) codec 1169 sound/pci/hda/patch_cirrus.c spec = cs_alloc_spec(codec, CS4210_VENDOR_NID); codec 1173 sound/pci/hda/patch_cirrus.c codec->patch_ops = cs421x_patch_ops; codec 1176 sound/pci/hda/patch_cirrus.c snd_hda_pick_fixup(codec, cs421x_models, cs421x_fixup_tbl, codec 1178 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1185 sound/pci/hda/patch_cirrus.c cs4210_pinmux_init(codec); codec 1187 sound/pci/hda/patch_cirrus.c err = cs421x_parse_auto_config(codec); codec 1191 sound/pci/hda/patch_cirrus.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 1196 sound/pci/hda/patch_cirrus.c cs_free(codec); codec 1200 sound/pci/hda/patch_cirrus.c static int patch_cs4213(struct hda_codec *codec) codec 1205 sound/pci/hda/patch_cirrus.c spec = cs_alloc_spec(codec, CS4213_VENDOR_NID); codec 1209 sound/pci/hda/patch_cirrus.c codec->patch_ops = cs421x_patch_ops; codec 1211 sound/pci/hda/patch_cirrus.c err = cs421x_parse_auto_config(codec); codec 1218 sound/pci/hda/patch_cirrus.c cs_free(codec); codec 35 sound/pci/hda/patch_cmedia.c static int patch_cmi9880(struct hda_codec *codec) codec 45 sound/pci/hda/patch_cmedia.c codec->spec = spec; codec 46 sound/pci/hda/patch_cmedia.c codec->patch_ops = cmi_auto_patch_ops; codec 50 sound/pci/hda/patch_cmedia.c err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); codec 53 sound/pci/hda/patch_cmedia.c err = snd_hda_gen_parse_auto_config(codec, cfg); codec 60 sound/pci/hda/patch_cmedia.c snd_hda_gen_free(codec); codec 64 sound/pci/hda/patch_cmedia.c static int patch_cmi8888(struct hda_codec *codec) codec 74 sound/pci/hda/patch_cmedia.c codec->spec = spec; codec 75 sound/pci/hda/patch_cmedia.c codec->patch_ops = cmi_auto_patch_ops; codec 84 sound/pci/hda/patch_cmedia.c err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); codec 87 sound/pci/hda/patch_cmedia.c err = snd_hda_gen_parse_auto_config(codec, cfg); codec 91 sound/pci/hda/patch_cmedia.c if (get_defcfg_device(snd_hda_codec_get_pincfg(codec, 0x10)) == codec 105 sound/pci/hda/patch_cmedia.c snd_hda_gen_free(codec); codec 74 sound/pci/hda/patch_conexant.c static int cx_auto_parse_beep(struct hda_codec *codec) codec 76 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 79 sound/pci/hda/patch_conexant.c for_each_hda_codec_node(nid, codec) codec 80 sound/pci/hda/patch_conexant.c if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) codec 85 sound/pci/hda/patch_conexant.c #define cx_auto_parse_beep(codec) 0 codec 93 sound/pci/hda/patch_conexant.c static void cx_auto_parse_eapd(struct hda_codec *codec) codec 95 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 98 sound/pci/hda/patch_conexant.c for_each_hda_codec_node(nid, codec) { codec 99 sound/pci/hda/patch_conexant.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) codec 101 sound/pci/hda/patch_conexant.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) codec 118 sound/pci/hda/patch_conexant.c static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, codec 123 sound/pci/hda/patch_conexant.c if (snd_hda_query_pin_caps(codec, pins[i]) & AC_PINCAP_EAPD) codec 124 sound/pci/hda/patch_conexant.c snd_hda_codec_write(codec, pins[i], 0, codec 133 sound/pci/hda/patch_conexant.c struct hda_codec *codec = private_data; codec 134 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 136 sound/pci/hda/patch_conexant.c cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, enabled); codec 142 sound/pci/hda/patch_conexant.c struct hda_codec *codec = private_data; codec 143 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 145 sound/pci/hda/patch_conexant.c snd_hda_codec_write(codec, spec->mute_led_eapd, 0, codec 150 sound/pci/hda/patch_conexant.c static int cx_auto_init(struct hda_codec *codec) codec 152 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 153 sound/pci/hda/patch_conexant.c snd_hda_gen_init(codec); codec 155 sound/pci/hda/patch_conexant.c cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, true); codec 157 sound/pci/hda/patch_conexant.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); codec 162 sound/pci/hda/patch_conexant.c static void cx_auto_reboot_notify(struct hda_codec *codec) codec 164 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 168 sound/pci/hda/patch_conexant.c cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, false); codec 169 sound/pci/hda/patch_conexant.c snd_hda_gen_reboot_notify(codec); codec 172 sound/pci/hda/patch_conexant.c static void cx_auto_free(struct hda_codec *codec) codec 174 sound/pci/hda/patch_conexant.c cx_auto_reboot_notify(codec); codec 175 sound/pci/hda/patch_conexant.c snd_hda_gen_free(codec); codec 223 sound/pci/hda/patch_conexant.c static void cxt_fixup_stereo_dmic(struct hda_codec *codec, codec 226 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 230 sound/pci/hda/patch_conexant.c static void cxt5066_increase_mic_boost(struct hda_codec *codec, codec 236 sound/pci/hda/patch_conexant.c snd_hda_override_amp_caps(codec, 0x17, HDA_OUTPUT, codec 243 sound/pci/hda/patch_conexant.c static void cxt_update_headset_mode(struct hda_codec *codec) codec 248 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 260 sound/pci/hda/patch_conexant.c snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x7c); /* enable merged mode for analog int-mic */ codec 263 sound/pci/hda/patch_conexant.c snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x54); /* disable merged mode for analog int-mic */ codec 264 sound/pci/hda/patch_conexant.c spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); codec 267 sound/pci/hda/patch_conexant.c snd_hda_gen_update_outputs(codec); codec 270 sound/pci/hda/patch_conexant.c static void cxt_update_headset_mode_hook(struct hda_codec *codec, codec 274 sound/pci/hda/patch_conexant.c cxt_update_headset_mode(codec); codec 277 sound/pci/hda/patch_conexant.c static void cxt_fixup_headphone_mic(struct hda_codec *codec, codec 280 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 285 sound/pci/hda/patch_conexant.c snd_hdac_regmap_add_vendor_verb(&codec->core, 0x410); codec 293 sound/pci/hda/patch_conexant.c cxt_update_headset_mode(codec); codec 298 sound/pci/hda/patch_conexant.c static void cxt_fixup_headset_mic(struct hda_codec *codec, codec 301 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 319 sound/pci/hda/patch_conexant.c #define update_mic_pin(codec, nid, val) \ codec 320 sound/pci/hda/patch_conexant.c snd_hda_codec_write_cache(codec, nid, 0, \ codec 332 sound/pci/hda/patch_conexant.c static void olpc_xo_update_mic_boost(struct hda_codec *codec) codec 334 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 341 sound/pci/hda/patch_conexant.c val |= snd_hda_codec_amp_read(codec, 0x17, ch, HDA_OUTPUT, 0); codec 342 sound/pci/hda/patch_conexant.c snd_hda_codec_write(codec, 0x17, 0, codec 347 sound/pci/hda/patch_conexant.c static void olpc_xo_update_mic_pins(struct hda_codec *codec) codec 349 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 360 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1e, 0); codec 361 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, spec->dc_mode_path, false, false); codec 370 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1a, spec->recording ? codec 371 sound/pci/hda/patch_conexant.c snd_hda_codec_get_pin_target(codec, 0x1a) : 0); codec 372 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1b, spec->recording ? codec 373 sound/pci/hda/patch_conexant.c snd_hda_codec_get_pin_target(codec, 0x1b) : 0); codec 375 sound/pci/hda/patch_conexant.c path = snd_hda_get_path_from_idx(codec, cur_input); codec 377 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, path, true, false); codec 380 sound/pci/hda/patch_conexant.c path = snd_hda_get_path_from_idx(codec, cur_input); codec 382 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, path, false, false); codec 393 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1a, val); codec 394 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1b, 0); codec 396 sound/pci/hda/patch_conexant.c update_mic_pin(codec, 0x1e, spec->recording ? PIN_IN : 0); codec 397 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, spec->dc_mode_path, true, false); codec 402 sound/pci/hda/patch_conexant.c static void olpc_xo_automic(struct hda_codec *codec, codec 405 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 409 sound/pci/hda/patch_conexant.c snd_hda_gen_mic_autoswitch(codec, jack); codec 410 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_pins(codec); codec 412 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_boost(codec); codec 417 sound/pci/hda/patch_conexant.c struct hda_codec *codec, codec 421 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 429 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_pins(codec); codec 433 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_pins(codec); codec 441 sound/pci/hda/patch_conexant.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 442 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 450 sound/pci/hda/patch_conexant.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 451 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 458 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_pins(codec); codec 459 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_boost(codec); codec 466 sound/pci/hda/patch_conexant.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 467 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 481 sound/pci/hda/patch_conexant.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 482 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 494 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_pins(codec); codec 522 sound/pci/hda/patch_conexant.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 523 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 526 sound/pci/hda/patch_conexant.c olpc_xo_update_mic_boost(codec); codec 530 sound/pci/hda/patch_conexant.c static void cxt_fixup_olpc_xo(struct hda_codec *codec, codec 533 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 542 sound/pci/hda/patch_conexant.c spec->dc_mode_path = snd_hda_add_new_path(codec, 0x1e, 0x14, 0); codec 544 sound/pci/hda/patch_conexant.c snd_hda_add_new_ctls(codec, olpc_xo_mixers); codec 550 sound/pci/hda/patch_conexant.c snd_hda_codec_set_pin_target(codec, 0x1a, PIN_VREF50); codec 561 sound/pci/hda/patch_conexant.c static void cxt_fixup_mute_led_eapd(struct hda_codec *codec, codec 564 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 577 sound/pci/hda/patch_conexant.c static void cxt_fixup_cap_mix_amp(struct hda_codec *codec, codec 580 sound/pci/hda/patch_conexant.c snd_hda_override_amp_caps(codec, 0x17, HDA_INPUT, codec 591 sound/pci/hda/patch_conexant.c static void cxt_fixup_cap_mix_amp_5047(struct hda_codec *codec, codec 594 sound/pci/hda/patch_conexant.c snd_hda_override_amp_caps(codec, 0x10, HDA_INPUT, codec 601 sound/pci/hda/patch_conexant.c static void cxt_fixup_hp_gate_mic_jack(struct hda_codec *codec, codec 609 sound/pci/hda/patch_conexant.c snd_hda_jack_set_gating_jack(codec, 0x19, 0x16); codec 613 sound/pci/hda/patch_conexant.c static void cxt_update_gpio_led(struct hda_codec *codec, unsigned int mask, codec 616 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 626 sound/pci/hda/patch_conexant.c codec_dbg(codec, "mask:%d enabled:%d gpio_led:%d\n", codec 629 sound/pci/hda/patch_conexant.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, codec 636 sound/pci/hda/patch_conexant.c struct hda_codec *codec = private_data; codec 637 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 639 sound/pci/hda/patch_conexant.c cxt_update_gpio_led(codec, spec->gpio_mute_led_mask, !enabled); codec 643 sound/pci/hda/patch_conexant.c static void cxt_gpio_micmute_update(struct hda_codec *codec) codec 645 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 647 sound/pci/hda/patch_conexant.c cxt_update_gpio_led(codec, spec->gpio_mic_led_mask, codec 652 sound/pci/hda/patch_conexant.c static void cxt_fixup_mute_led_gpio(struct hda_codec *codec, codec 655 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 668 sound/pci/hda/patch_conexant.c snd_hda_gen_add_micmute_led(codec, cxt_gpio_micmute_update); codec 670 sound/pci/hda/patch_conexant.c snd_hda_add_verbs(codec, gpio_init); codec 672 sound/pci/hda/patch_conexant.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, codec 960 sound/pci/hda/patch_conexant.c static void add_cx5051_fake_mutes(struct hda_codec *codec) codec 962 sound/pci/hda/patch_conexant.c struct conexant_spec *spec = codec->spec; codec 969 sound/pci/hda/patch_conexant.c snd_hda_override_amp_caps(codec, *p, HDA_OUTPUT, codec 971 sound/pci/hda/patch_conexant.c query_amp_caps(codec, *p, HDA_OUTPUT)); codec 975 sound/pci/hda/patch_conexant.c static int patch_conexant_auto(struct hda_codec *codec) codec 980 sound/pci/hda/patch_conexant.c codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); codec 986 sound/pci/hda/patch_conexant.c codec->spec = spec; codec 987 sound/pci/hda/patch_conexant.c codec->patch_ops = cx_auto_patch_ops; codec 989 sound/pci/hda/patch_conexant.c cx_auto_parse_eapd(codec); codec 994 sound/pci/hda/patch_conexant.c switch (codec->core.vendor_id) { codec 996 sound/pci/hda/patch_conexant.c codec->single_adc_amp = 1; codec 999 sound/pci/hda/patch_conexant.c snd_hda_pick_fixup(codec, cxt5045_fixup_models, codec 1003 sound/pci/hda/patch_conexant.c codec->pin_amp_workaround = 1; codec 1006 sound/pci/hda/patch_conexant.c snd_hda_pick_fixup(codec, cxt5047_fixup_models, codec 1010 sound/pci/hda/patch_conexant.c add_cx5051_fake_mutes(codec); codec 1011 sound/pci/hda/patch_conexant.c codec->pin_amp_workaround = 1; codec 1012 sound/pci/hda/patch_conexant.c snd_hda_pick_fixup(codec, cxt5051_fixup_models, codec 1016 sound/pci/hda/patch_conexant.c codec->power_save_node = 1; codec 1019 sound/pci/hda/patch_conexant.c codec->pin_amp_workaround = 1; codec 1020 sound/pci/hda/patch_conexant.c snd_hda_pick_fixup(codec, cxt5066_fixup_models, codec 1031 sound/pci/hda/patch_conexant.c switch (codec->core.subsystem_id >> 16) { codec 1037 sound/pci/hda/patch_conexant.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1039 sound/pci/hda/patch_conexant.c err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, codec 1044 sound/pci/hda/patch_conexant.c err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); codec 1048 sound/pci/hda/patch_conexant.c err = cx_auto_parse_beep(codec); codec 1056 sound/pci/hda/patch_conexant.c if (!codec->bus->core.sync_write) { codec 1057 sound/pci/hda/patch_conexant.c codec_info(codec, codec 1059 sound/pci/hda/patch_conexant.c codec->bus->core.sync_write = 1; codec 1060 sound/pci/hda/patch_conexant.c codec->bus->allow_bus_reset = 1; codec 1063 sound/pci/hda/patch_conexant.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 1068 sound/pci/hda/patch_conexant.c cx_auto_free(codec); codec 41 sound/pci/hda/patch_hdmi.c #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) codec 42 sound/pci/hda/patch_hdmi.c #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) codec 43 sound/pci/hda/patch_hdmi.c #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) codec 44 sound/pci/hda/patch_hdmi.c #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) codec 45 sound/pci/hda/patch_hdmi.c #define is_kabylake(codec) ((codec)->core.vendor_id == 0x8086280b) codec 46 sound/pci/hda/patch_hdmi.c #define is_geminilake(codec) (((codec)->core.vendor_id == 0x8086280d) || \ codec 47 sound/pci/hda/patch_hdmi.c ((codec)->core.vendor_id == 0x80862800)) codec 48 sound/pci/hda/patch_hdmi.c #define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c) codec 49 sound/pci/hda/patch_hdmi.c #define is_icelake(codec) ((codec)->core.vendor_id == 0x8086280f) codec 50 sound/pci/hda/patch_hdmi.c #define is_tigerlake(codec) ((codec)->core.vendor_id == 0x80862812) codec 51 sound/pci/hda/patch_hdmi.c #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ codec 52 sound/pci/hda/patch_hdmi.c || is_skylake(codec) || is_broxton(codec) \ codec 53 sound/pci/hda/patch_hdmi.c || is_kabylake(codec) || is_geminilake(codec) \ codec 54 sound/pci/hda/patch_hdmi.c || is_cannonlake(codec) || is_icelake(codec) \ codec 55 sound/pci/hda/patch_hdmi.c || is_tigerlake(codec)) codec 56 sound/pci/hda/patch_hdmi.c #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882) codec 57 sound/pci/hda/patch_hdmi.c #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883) codec 58 sound/pci/hda/patch_hdmi.c #define is_valleyview_plus(codec) (is_valleyview(codec) || is_cherryview(codec)) codec 87 sound/pci/hda/patch_hdmi.c struct hda_codec *codec; codec 106 sound/pci/hda/patch_hdmi.c int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, codec 109 sound/pci/hda/patch_hdmi.c void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, codec 113 sound/pci/hda/patch_hdmi.c int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, bool hbr); codec 115 sound/pci/hda/patch_hdmi.c int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid, codec 118 sound/pci/hda/patch_hdmi.c void (*pin_cvt_fixup)(struct hda_codec *codec, codec 130 sound/pci/hda/patch_hdmi.c struct hda_codec *codec; codec 189 sound/pci/hda/patch_hdmi.c static inline bool codec_has_acomp(struct hda_codec *codec) codec 191 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 195 sound/pci/hda/patch_hdmi.c #define codec_has_acomp(codec) false codec 243 sound/pci/hda/patch_hdmi.c static int pin_id_to_pin_index(struct hda_codec *codec, codec 246 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 264 sound/pci/hda/patch_hdmi.c codec_warn(codec, "HDMI: pin nid %d not registered\n", pin_nid); codec 268 sound/pci/hda/patch_hdmi.c static int hinfo_to_pcm_index(struct hda_codec *codec, codec 271 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 278 sound/pci/hda/patch_hdmi.c codec_warn(codec, "HDMI: hinfo %p not registered\n", hinfo); codec 282 sound/pci/hda/patch_hdmi.c static int hinfo_to_pin_index(struct hda_codec *codec, codec 285 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 296 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "HDMI: hinfo %p not registered\n", hinfo); codec 314 sound/pci/hda/patch_hdmi.c static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) codec 316 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 323 sound/pci/hda/patch_hdmi.c codec_warn(codec, "HDMI: cvt nid %d not registered\n", cvt_nid); codec 330 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 331 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 357 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 358 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 401 sound/pci/hda/patch_hdmi.c static int hdmi_create_eld_ctl(struct hda_codec *codec, int pcm_idx, codec 405 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 408 sound/pci/hda/patch_hdmi.c kctl = snd_ctl_new1(&eld_bytes_ctl, codec); codec 417 sound/pci/hda/patch_hdmi.c err = snd_hda_ctl_add(codec, 0, kctl); codec 426 sound/pci/hda/patch_hdmi.c static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, codec 431 sound/pci/hda/patch_hdmi.c val = snd_hda_codec_read(codec, pin_nid, 0, codec 439 sound/pci/hda/patch_hdmi.c static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, codec 446 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, AC_VERB_SET_HDMI_DIP_INDEX, val); codec 449 sound/pci/hda/patch_hdmi.c static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, codec 452 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, AC_VERB_SET_HDMI_DIP_DATA, val); codec 455 sound/pci/hda/patch_hdmi.c static void hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) codec 457 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 461 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, pin_nid) & AC_WCAP_OUT_AMP) codec 462 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 474 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 506 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = per_pin->codec; codec 510 sound/pci/hda/patch_hdmi.c snprintf(name, sizeof(name), "eld#%d.%d", codec->addr, index); codec 511 sound/pci/hda/patch_hdmi.c err = snd_card_proc_new(codec->card, name, &entry); codec 525 sound/pci/hda/patch_hdmi.c if (!per_pin->codec->bus->shutdown) { codec 548 sound/pci/hda/patch_hdmi.c static void hdmi_start_infoframe_trans(struct hda_codec *codec, codec 551 sound/pci/hda/patch_hdmi.c hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0); codec 552 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, AC_VERB_SET_HDMI_DIP_XMIT, codec 559 sound/pci/hda/patch_hdmi.c static void hdmi_stop_infoframe_trans(struct hda_codec *codec, codec 562 sound/pci/hda/patch_hdmi.c hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0); codec 563 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, AC_VERB_SET_HDMI_DIP_XMIT, codec 567 sound/pci/hda/patch_hdmi.c static void hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) codec 573 sound/pci/hda/patch_hdmi.c size = snd_hdmi_get_eld_size(codec, pin_nid); codec 574 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "HDMI: ELD buf size is %d\n", size); codec 577 sound/pci/hda/patch_hdmi.c size = snd_hda_codec_read(codec, pin_nid, 0, codec 579 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "HDMI: DIP GP[%d] buf size is %d\n", i, size); codec 584 sound/pci/hda/patch_hdmi.c static void hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) codec 591 sound/pci/hda/patch_hdmi.c size = snd_hda_codec_read(codec, pin_nid, 0, codec 596 sound/pci/hda/patch_hdmi.c hdmi_set_dip_index(codec, pin_nid, i, 0x0); codec 598 sound/pci/hda/patch_hdmi.c hdmi_write_dip_byte(codec, pin_nid, 0x0); codec 599 sound/pci/hda/patch_hdmi.c hdmi_get_dip_index(codec, pin_nid, &pi, &bi); codec 601 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "dip index %d: %d != %d\n", codec 606 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 627 sound/pci/hda/patch_hdmi.c static void hdmi_fill_audio_infoframe(struct hda_codec *codec, codec 633 sound/pci/hda/patch_hdmi.c hdmi_debug_dip_size(codec, pin_nid); codec 634 sound/pci/hda/patch_hdmi.c hdmi_clear_dip_buffers(codec, pin_nid); /* be paranoid */ codec 636 sound/pci/hda/patch_hdmi.c hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0); codec 638 sound/pci/hda/patch_hdmi.c hdmi_write_dip_byte(codec, pin_nid, dip[i]); codec 641 sound/pci/hda/patch_hdmi.c static bool hdmi_infoframe_uptodate(struct hda_codec *codec, hda_nid_t pin_nid, codec 647 sound/pci/hda/patch_hdmi.c if (snd_hda_codec_read(codec, pin_nid, 0, AC_VERB_GET_HDMI_DIP_XMIT, 0) codec 651 sound/pci/hda/patch_hdmi.c hdmi_set_dip_index(codec, pin_nid, 0x0, 0x0); codec 653 sound/pci/hda/patch_hdmi.c val = snd_hda_codec_read(codec, pin_nid, 0, codec 662 sound/pci/hda/patch_hdmi.c static void hdmi_pin_setup_infoframe(struct hda_codec *codec, codec 688 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "HDMI: unknown connection type at pin %d\n", codec 698 sound/pci/hda/patch_hdmi.c if (!hdmi_infoframe_uptodate(codec, pin_nid, ai.bytes, codec 700 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 704 sound/pci/hda/patch_hdmi.c hdmi_stop_infoframe_trans(codec, pin_nid); codec 705 sound/pci/hda/patch_hdmi.c hdmi_fill_audio_infoframe(codec, pin_nid, codec 707 sound/pci/hda/patch_hdmi.c hdmi_start_infoframe_trans(codec, pin_nid); codec 711 sound/pci/hda/patch_hdmi.c static void hdmi_setup_audio_infoframe(struct hda_codec *codec, codec 715 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 727 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, pin_nid) & AC_WCAP_OUT_AMP) codec 728 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 734 sound/pci/hda/patch_hdmi.c ca = snd_hdac_channel_allocation(&codec->core, codec 740 sound/pci/hda/patch_hdmi.c chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid, codec 751 sound/pci/hda/patch_hdmi.c spec->ops.pin_setup_infoframe(codec, pin_nid, ca, active_channels, codec 763 sound/pci/hda/patch_hdmi.c static void check_presence_and_report(struct hda_codec *codec, hda_nid_t nid, codec 766 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 767 sound/pci/hda/patch_hdmi.c int pin_idx = pin_id_to_pin_index(codec, nid, dev_id); codec 773 sound/pci/hda/patch_hdmi.c snd_hda_jack_report_sync(codec); codec 777 sound/pci/hda/patch_hdmi.c static void jack_callback(struct hda_codec *codec, codec 781 sound/pci/hda/patch_hdmi.c if (codec_has_acomp(codec)) codec 785 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, jack->nid, 0); codec 788 sound/pci/hda/patch_hdmi.c static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res) codec 800 sound/pci/hda/patch_hdmi.c jack = snd_hda_jack_tbl_get_from_tag(codec, tag); codec 805 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 807 sound/pci/hda/patch_hdmi.c codec->addr, jack->nid, dev_entry, !!(res & AC_UNSOL_RES_IA), codec 811 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, jack->nid, 0); codec 814 sound/pci/hda/patch_hdmi.c static void hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res) codec 821 sound/pci/hda/patch_hdmi.c codec_info(codec, codec 823 sound/pci/hda/patch_hdmi.c codec->addr, codec 837 sound/pci/hda/patch_hdmi.c static void hdmi_unsol_event(struct hda_codec *codec, unsigned int res) codec 842 sound/pci/hda/patch_hdmi.c if (codec_has_acomp(codec)) codec 845 sound/pci/hda/patch_hdmi.c if (!snd_hda_jack_tbl_get_from_tag(codec, tag)) { codec 846 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "Unexpected HDMI event tag 0x%x\n", tag); codec 851 sound/pci/hda/patch_hdmi.c hdmi_intrinsic_event(codec, res); codec 853 sound/pci/hda/patch_hdmi.c hdmi_non_intrinsic_event(codec, res); codec 856 sound/pci/hda/patch_hdmi.c static void haswell_verify_D0(struct hda_codec *codec, codec 864 sound/pci/hda/patch_hdmi.c if (!snd_hda_check_power_state(codec, cvt_nid, AC_PWRST_D0)) codec 865 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, cvt_nid, 0, AC_VERB_SET_POWER_STATE, AC_PWRST_D0); codec 867 sound/pci/hda/patch_hdmi.c if (!snd_hda_check_power_state(codec, nid, AC_PWRST_D0)) { codec 868 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_POWER_STATE, codec 871 sound/pci/hda/patch_hdmi.c pwr = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_POWER_STATE, 0); codec 873 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "Haswell HDMI audio: Power for pin 0x%x is now D%d\n", nid, pwr); codec 885 sound/pci/hda/patch_hdmi.c static int hdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, codec 890 sound/pci/hda/patch_hdmi.c if (snd_hda_query_pin_caps(codec, pin_nid) & AC_PINCAP_HBR) { codec 891 sound/pci/hda/patch_hdmi.c pinctl = snd_hda_codec_read(codec, pin_nid, 0, codec 903 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 910 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 919 sound/pci/hda/patch_hdmi.c static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, codec 922 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 926 sound/pci/hda/patch_hdmi.c err = spec->ops.pin_hbr_setup(codec, pin_nid, is_hbr_format(format)); codec 929 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "hdmi_setup_stream: HBR is not supported\n"); codec 933 sound/pci/hda/patch_hdmi.c if (is_haswell_plus(codec)) { codec 940 sound/pci/hda/patch_hdmi.c param = snd_hda_codec_read(codec, cvt_nid, 0, codec 949 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, cvt_nid, 0, codec 953 sound/pci/hda/patch_hdmi.c snd_hda_codec_setup_stream(codec, cvt_nid, stream_tag, 0, format); codec 962 sound/pci/hda/patch_hdmi.c static int hdmi_choose_cvt(struct hda_codec *codec, codec 965 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1009 sound/pci/hda/patch_hdmi.c static void intel_verify_pin_cvt_connect(struct hda_codec *codec, codec 1016 sound/pci/hda/patch_hdmi.c curr = snd_hda_codec_read(codec, pin_nid, 0, codec 1019 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, pin_nid, 0, codec 1047 sound/pci/hda/patch_hdmi.c static void intel_not_share_assigned_cvt(struct hda_codec *codec, codec 1051 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1081 sound/pci/hda/patch_hdmi.c dev_num = snd_hda_get_num_devices(codec, per_pin->pin_nid) + 1; codec 1093 sound/pci/hda/patch_hdmi.c dev_id_saved = snd_hda_get_dev_select(codec, nid); codec 1094 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, per_pin->dev_id); codec 1095 sound/pci/hda/patch_hdmi.c curr = snd_hda_codec_read(codec, nid, 0, codec 1098 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, dev_id_saved); codec 1109 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 1112 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, nid, 0, codec 1118 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, dev_id_saved); codec 1123 sound/pci/hda/patch_hdmi.c static void intel_not_share_assigned_cvt_nid(struct hda_codec *codec, codec 1127 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1136 sound/pci/hda/patch_hdmi.c intel_not_share_assigned_cvt(codec, pin_nid, dev_id, mux_idx); codec 1140 sound/pci/hda/patch_hdmi.c static void pin_cvt_fixup(struct hda_codec *codec, codec 1144 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1147 sound/pci/hda/patch_hdmi.c spec->ops.pin_cvt_fixup(codec, per_pin, cvt_nid); codec 1154 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 1157 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1163 sound/pci/hda/patch_hdmi.c pcm_idx = hinfo_to_pcm_index(codec, hinfo); codec 1167 sound/pci/hda/patch_hdmi.c err = hdmi_choose_cvt(codec, -1, &cvt_idx); codec 1175 sound/pci/hda/patch_hdmi.c pin_cvt_fixup(codec, NULL, per_cvt->cvt_nid); codec 1202 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 1205 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1214 sound/pci/hda/patch_hdmi.c pcm_idx = hinfo_to_pcm_index(codec, hinfo); codec 1219 sound/pci/hda/patch_hdmi.c pin_idx = hinfo_to_pin_index(codec, hinfo); codec 1230 sound/pci/hda/patch_hdmi.c err = hdmi_pcm_open_no_pin(hinfo, codec, substream); codec 1235 sound/pci/hda/patch_hdmi.c err = hdmi_choose_cvt(codec, pin_idx, &cvt_idx); codec 1249 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, per_cvt->cvt_nid) & AC_WCAP_STRIPE) codec 1252 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, per_pin->pin_nid, per_pin->dev_id); codec 1253 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, per_pin->pin_nid, 0, codec 1258 sound/pci/hda/patch_hdmi.c pin_cvt_fixup(codec, per_pin, 0); codec 1260 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_assign(codec, pcm_idx, per_cvt->cvt_nid); codec 1277 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_unassign(codec, pcm_idx); codec 1299 sound/pci/hda/patch_hdmi.c static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) codec 1301 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1305 sound/pci/hda/patch_hdmi.c if (!(get_wcaps(codec, pin_nid) & AC_WCAP_CONN_LIST)) { codec 1306 sound/pci/hda/patch_hdmi.c codec_warn(codec, codec 1308 sound/pci/hda/patch_hdmi.c pin_nid, get_wcaps(codec, pin_nid)); codec 1313 sound/pci/hda/patch_hdmi.c per_pin->num_mux_nids = snd_hda_get_connections(codec, pin_nid, codec 1385 sound/pci/hda/patch_hdmi.c static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid); codec 1390 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = per_pin->codec; codec 1414 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, per_pin->pin_nid, codec 1416 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, per_pin->pin_nid, 0, codec 1420 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_assign(codec, per_pin->pcm_idx, hinfo->nid); codec 1422 sound/pci/hda/patch_hdmi.c non_pcm = check_non_pcm_per_cvt(codec, hinfo->nid); codec 1428 sound/pci/hda/patch_hdmi.c hdmi_setup_audio_infoframe(codec, per_pin, non_pcm); codec 1435 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_unassign(per_pin->codec, per_pin->pcm_idx); codec 1447 sound/pci/hda/patch_hdmi.c static bool update_eld(struct hda_codec *codec, codec 1452 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1475 sound/pci/hda/patch_hdmi.c snd_hdmi_show_eld(codec, &eld->info); codec 1502 sound/pci/hda/patch_hdmi.c pin_cvt_fixup(codec, per_pin, 0); codec 1503 sound/pci/hda/patch_hdmi.c hdmi_setup_audio_infoframe(codec, per_pin, per_pin->non_pcm); codec 1507 sound/pci/hda/patch_hdmi.c snd_ctl_notify(codec->card, codec 1519 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = per_pin->codec; codec 1520 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1535 sound/pci/hda/patch_hdmi.c present = snd_hda_pin_sense(codec, pin_nid); codec 1544 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 1546 sound/pci/hda/patch_hdmi.c codec->addr, pin_nid, eld->monitor_present, eld->eld_valid); codec 1549 sound/pci/hda/patch_hdmi.c if (spec->ops.pin_get_eld(codec, pin_nid, eld->eld_buffer, codec 1553 sound/pci/hda/patch_hdmi.c if (snd_hdmi_parse_eld(codec, &eld->info, eld->eld_buffer, codec 1564 sound/pci/hda/patch_hdmi.c update_eld(codec, per_pin, eld); codec 1568 sound/pci/hda/patch_hdmi.c jack = snd_hda_jack_tbl_get(codec, pin_nid); codec 1578 sound/pci/hda/patch_hdmi.c static struct snd_jack *pin_idx_to_jack(struct hda_codec *codec, codec 1581 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1599 sound/pci/hda/patch_hdmi.c jack_tbl = snd_hda_jack_tbl_get(codec, per_pin->pin_nid); codec 1607 sound/pci/hda/patch_hdmi.c static void sync_eld_via_acomp(struct hda_codec *codec, codec 1610 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1618 sound/pci/hda/patch_hdmi.c size = snd_hdac_acomp_get_eld(&codec->core, per_pin->pin_nid, codec 1623 sound/pci/hda/patch_hdmi.c if (snd_hdmi_parse_eld(codec, &eld->info, codec 1639 sound/pci/hda/patch_hdmi.c jack = pin_idx_to_jack(codec, per_pin); codec 1640 sound/pci/hda/patch_hdmi.c changed = update_eld(codec, per_pin, eld); codec 1642 sound/pci/hda/patch_hdmi.c jack = pin_idx_to_jack(codec, per_pin); codec 1652 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = per_pin->codec; codec 1656 sound/pci/hda/patch_hdmi.c if (!codec_has_acomp(codec)) { codec 1657 sound/pci/hda/patch_hdmi.c ret = snd_hda_power_up_pm(codec); codec 1658 sound/pci/hda/patch_hdmi.c if (ret < 0 && pm_runtime_suspended(hda_codec_dev(codec))) { codec 1659 sound/pci/hda/patch_hdmi.c snd_hda_power_down_pm(codec); codec 1663 sound/pci/hda/patch_hdmi.c snd_hda_power_down_pm(codec); codec 1665 sound/pci/hda/patch_hdmi.c sync_eld_via_acomp(codec, per_pin); codec 1676 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = per_pin->codec; codec 1677 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1680 sound/pci/hda/patch_hdmi.c jack = snd_hda_jack_tbl_get(codec, per_pin->pin_nid); codec 1689 sound/pci/hda/patch_hdmi.c snd_hda_jack_report_sync(per_pin->codec); codec 1693 sound/pci/hda/patch_hdmi.c static void intel_haswell_fixup_connect_list(struct hda_codec *codec, codec 1696 sound/pci/hda/patch_hdmi.c static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid) codec 1698 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1705 sound/pci/hda/patch_hdmi.c caps = snd_hda_query_pin_caps(codec, pin_nid); codec 1713 sound/pci/hda/patch_hdmi.c config = snd_hda_codec_get_pincfg(codec, pin_nid); codec 1721 sound/pci/hda/patch_hdmi.c if (is_haswell_plus(codec)) { codec 1733 sound/pci/hda/patch_hdmi.c } else if (spec->dyn_pcm_assign && codec->dp_mst) { codec 1734 sound/pci/hda/patch_hdmi.c dev_num = snd_hda_get_num_devices(codec, pin_nid) + 1; codec 1769 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, pin_nid, i); codec 1770 sound/pci/hda/patch_hdmi.c if (is_haswell_plus(codec)) codec 1771 sound/pci/hda/patch_hdmi.c intel_haswell_fixup_connect_list(codec, pin_nid); codec 1772 sound/pci/hda/patch_hdmi.c err = hdmi_read_pin_conn(codec, pin_idx); codec 1782 sound/pci/hda/patch_hdmi.c static int hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) codec 1784 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1789 sound/pci/hda/patch_hdmi.c chans = get_wcaps(codec, cvt_nid); codec 1804 sound/pci/hda/patch_hdmi.c err = snd_hda_query_supported_pcm(codec, cvt_nid, codec 1818 sound/pci/hda/patch_hdmi.c static int hdmi_parse_codec(struct hda_codec *codec) codec 1823 sound/pci/hda/patch_hdmi.c nodes = snd_hda_get_sub_nodes(codec, codec->core.afg, &nid); codec 1825 sound/pci/hda/patch_hdmi.c codec_warn(codec, "HDMI: failed to get afg sub nodes\n"); codec 1833 sound/pci/hda/patch_hdmi.c caps = get_wcaps(codec, nid); codec 1841 sound/pci/hda/patch_hdmi.c hdmi_add_cvt(codec, nid); codec 1844 sound/pci/hda/patch_hdmi.c hdmi_add_pin(codec, nid); codec 1854 sound/pci/hda/patch_hdmi.c static bool check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) codec 1859 sound/pci/hda/patch_hdmi.c mutex_lock(&codec->spdif_mutex); codec 1860 sound/pci/hda/patch_hdmi.c spdif = snd_hda_spdif_out_of_nid(codec, cvt_nid); codec 1865 sound/pci/hda/patch_hdmi.c mutex_unlock(&codec->spdif_mutex); codec 1869 sound/pci/hda/patch_hdmi.c mutex_unlock(&codec->spdif_mutex); codec 1878 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 1884 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1894 sound/pci/hda/patch_hdmi.c pin_idx = hinfo_to_pin_index(codec, hinfo); codec 1900 sound/pci/hda/patch_hdmi.c pin_cvt_fixup(codec, NULL, cvt_nid); codec 1901 sound/pci/hda/patch_hdmi.c snd_hda_codec_setup_stream(codec, cvt_nid, codec 1921 sound/pci/hda/patch_hdmi.c pin_cvt_fixup(codec, per_pin, 0); codec 1925 sound/pci/hda/patch_hdmi.c if (codec_has_acomp(codec)) codec 1926 sound/pci/hda/patch_hdmi.c snd_hdac_sync_audio_rate(&codec->core, pin_nid, per_pin->dev_id, codec 1929 sound/pci/hda/patch_hdmi.c non_pcm = check_non_pcm_per_cvt(codec, cvt_nid); codec 1934 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, cvt_nid) & AC_WCAP_STRIPE) { codec 1935 sound/pci/hda/patch_hdmi.c stripe = snd_hdac_get_stream_stripe_ctl(&codec->bus->core, codec 1937 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, cvt_nid, 0, codec 1942 sound/pci/hda/patch_hdmi.c hdmi_setup_audio_infoframe(codec, per_pin, non_pcm); codec 1945 sound/pci/hda/patch_hdmi.c pinctl = snd_hda_codec_read(codec, pin_nid, 0, codec 1947 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 1953 sound/pci/hda/patch_hdmi.c err = spec->ops.setup_stream(codec, cvt_nid, pin_nid, codec 1961 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 1964 sound/pci/hda/patch_hdmi.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); codec 1969 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 1972 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 1980 sound/pci/hda/patch_hdmi.c pcm_idx = hinfo_to_pcm_index(codec, hinfo); codec 1983 sound/pci/hda/patch_hdmi.c cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); codec 1995 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_unassign(codec, pcm_idx); codec 1997 sound/pci/hda/patch_hdmi.c pin_idx = hinfo_to_pin_index(codec, hinfo); codec 2008 sound/pci/hda/patch_hdmi.c pinctl = snd_hda_codec_read(codec, per_pin->pin_nid, 0, codec 2010 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, per_pin->pin_nid, 0, codec 2038 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 2039 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2051 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 2052 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2065 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 2066 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2075 sound/pci/hda/patch_hdmi.c hdmi_setup_audio_infoframe(codec, per_pin, per_pin->non_pcm); codec 2081 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 2082 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2088 sound/pci/hda/patch_hdmi.c static int generic_hdmi_build_pcms(struct hda_codec *codec) codec 2090 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2103 sound/pci/hda/patch_hdmi.c info = snd_hda_codec_pcm_new(codec, "HDMI %d", idx); codec 2131 sound/pci/hda/patch_hdmi.c static int add_hdmi_jack_kctl(struct hda_codec *codec, codec 2139 sound/pci/hda/patch_hdmi.c err = snd_jack_new(codec->card, name, SND_JACK_AVOUT, &jack, codec 2150 sound/pci/hda/patch_hdmi.c static int generic_hdmi_build_jack(struct hda_codec *codec, int pcm_idx) codec 2153 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2164 sound/pci/hda/patch_hdmi.c return add_hdmi_jack_kctl(codec, spec, pcm_idx, hdmi_str); codec 2172 sound/pci/hda/patch_hdmi.c phantom_jack = !is_jack_detectable(codec, per_pin->pin_nid); codec 2176 sound/pci/hda/patch_hdmi.c ret = snd_hda_jack_add_kctl(codec, per_pin->pin_nid, hdmi_str, codec 2180 sound/pci/hda/patch_hdmi.c jack = snd_hda_jack_tbl_get(codec, per_pin->pin_nid); codec 2190 sound/pci/hda/patch_hdmi.c static int generic_hdmi_build_controls(struct hda_codec *codec) codec 2192 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2203 sound/pci/hda/patch_hdmi.c err = generic_hdmi_build_jack(codec, pcm_idx); codec 2211 sound/pci/hda/patch_hdmi.c err = snd_hda_create_dig_out_ctls(codec, codec 2217 sound/pci/hda/patch_hdmi.c err = snd_hda_create_dig_out_ctls(codec, codec 2224 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_unassign(codec, pcm_idx); codec 2229 sound/pci/hda/patch_hdmi.c err = hdmi_create_eld_ctl(codec, pcm_idx, dev); codec 2258 sound/pci/hda/patch_hdmi.c static int generic_hdmi_init_per_pins(struct hda_codec *codec) codec 2260 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2266 sound/pci/hda/patch_hdmi.c per_pin->codec = codec; codec 2274 sound/pci/hda/patch_hdmi.c static int generic_hdmi_init(struct hda_codec *codec) codec 2276 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2280 sound/pci/hda/patch_hdmi.c spec->use_jack_detect = !codec->jackpoll_interval; codec 2286 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, pin_nid, dev_id); codec 2287 sound/pci/hda/patch_hdmi.c hdmi_init_pin(codec, pin_nid); codec 2288 sound/pci/hda/patch_hdmi.c if (codec_has_acomp(codec)) codec 2291 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable(codec, pin_nid); codec 2293 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable_callback(codec, pin_nid, codec 2312 sound/pci/hda/patch_hdmi.c static void generic_spec_free(struct hda_codec *codec) codec 2314 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2319 sound/pci/hda/patch_hdmi.c codec->spec = NULL; codec 2321 sound/pci/hda/patch_hdmi.c codec->dp_mst = false; codec 2324 sound/pci/hda/patch_hdmi.c static void generic_hdmi_free(struct hda_codec *codec) codec 2326 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2330 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_exit(&codec->bus->core); codec 2331 sound/pci/hda/patch_hdmi.c } else if (codec_has_acomp(codec)) { codec 2332 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_register_notifier(&codec->bus->core, NULL); codec 2333 sound/pci/hda/patch_hdmi.c codec->relaxed_resume = 0; codec 2346 sound/pci/hda/patch_hdmi.c snd_device_free(codec->card, codec 2352 sound/pci/hda/patch_hdmi.c generic_spec_free(codec); codec 2356 sound/pci/hda/patch_hdmi.c static int generic_hdmi_resume(struct hda_codec *codec) codec 2358 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2361 sound/pci/hda/patch_hdmi.c codec->patch_ops.init(codec); codec 2362 sound/pci/hda/patch_hdmi.c snd_hda_regmap_sync(codec); codec 2391 sound/pci/hda/patch_hdmi.c static int alloc_generic_hdmi(struct hda_codec *codec) codec 2399 sound/pci/hda/patch_hdmi.c spec->codec = codec; codec 2404 sound/pci/hda/patch_hdmi.c snd_hdac_register_chmap_ops(&codec->core, &spec->chmap); codec 2411 sound/pci/hda/patch_hdmi.c codec->spec = spec; codec 2414 sound/pci/hda/patch_hdmi.c codec->patch_ops = generic_hdmi_patch_ops; codec 2420 sound/pci/hda/patch_hdmi.c static int patch_generic_hdmi(struct hda_codec *codec) codec 2424 sound/pci/hda/patch_hdmi.c err = alloc_generic_hdmi(codec); codec 2428 sound/pci/hda/patch_hdmi.c err = hdmi_parse_codec(codec); codec 2430 sound/pci/hda/patch_hdmi.c generic_spec_free(codec); codec 2434 sound/pci/hda/patch_hdmi.c generic_hdmi_init_per_pins(codec); codec 2443 sound/pci/hda/patch_hdmi.c static void reprogram_jack_detect(struct hda_codec *codec, hda_nid_t nid, codec 2448 sound/pci/hda/patch_hdmi.c tbl = snd_hda_jack_tbl_get(codec, nid); codec 2454 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, nid, 0, codec 2461 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable(codec, nid); codec 2475 sound/pci/hda/patch_hdmi.c spec->codec->relaxed_resume = use_acomp; codec 2479 sound/pci/hda/patch_hdmi.c reprogram_jack_detect(spec->codec, codec 2516 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = audio_ptr; codec 2517 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2518 sound/pci/hda/patch_hdmi.c hda_nid_t pin_nid = spec->port2pin(codec, port); codec 2522 sound/pci/hda/patch_hdmi.c if (get_wcaps_type(get_wcaps(codec, pin_nid)) != AC_WID_PIN) codec 2527 sound/pci/hda/patch_hdmi.c if (snd_power_get_state(codec->card) != SNDRV_CTL_POWER_D0) codec 2530 sound/pci/hda/patch_hdmi.c if (snd_hdac_is_in_pm(&codec->core)) codec 2533 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, pin_nid, dev_id); codec 2537 sound/pci/hda/patch_hdmi.c static void setup_drm_audio_ops(struct hda_codec *codec, codec 2540 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2542 sound/pci/hda/patch_hdmi.c spec->drm_audio_ops.audio_ptr = codec; codec 2555 sound/pci/hda/patch_hdmi.c static void generic_acomp_init(struct hda_codec *codec, codec 2559 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2562 sound/pci/hda/patch_hdmi.c codec_info(codec, "audio component disabled by module option\n"); codec 2567 sound/pci/hda/patch_hdmi.c setup_drm_audio_ops(codec, ops); codec 2568 sound/pci/hda/patch_hdmi.c if (!snd_hdac_acomp_init(&codec->bus->core, &spec->drm_audio_ops, codec 2571 sound/pci/hda/patch_hdmi.c codec->bus->keep_power = 0; codec 2579 sound/pci/hda/patch_hdmi.c static void intel_haswell_fixup_connect_list(struct hda_codec *codec, codec 2582 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2586 sound/pci/hda/patch_hdmi.c nconns = snd_hda_get_connections(codec, nid, conns, ARRAY_SIZE(conns)); codec 2592 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "hdmi: haswell: override pin connection 0x%x\n", nid); codec 2593 sound/pci/hda/patch_hdmi.c snd_hda_override_conn_list(codec, nid, spec->num_cvts, spec->cvt_nids); codec 2601 sound/pci/hda/patch_hdmi.c static void intel_haswell_enable_all_pins(struct hda_codec *codec, codec 2605 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2607 sound/pci/hda/patch_hdmi.c vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, codec 2613 sound/pci/hda/patch_hdmi.c vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, codec 2619 sound/pci/hda/patch_hdmi.c snd_hda_codec_update_widgets(codec); codec 2622 sound/pci/hda/patch_hdmi.c static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) codec 2625 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2627 sound/pci/hda/patch_hdmi.c vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, codec 2634 sound/pci/hda/patch_hdmi.c snd_hdac_regmap_add_vendor_verb(&codec->core, INTEL_SET_VENDOR_VERB); codec 2635 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, spec->vendor_nid, 0, codec 2642 sound/pci/hda/patch_hdmi.c static void haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, codec 2646 sound/pci/hda/patch_hdmi.c intel_haswell_enable_all_pins(codec, false); codec 2647 sound/pci/hda/patch_hdmi.c intel_haswell_fixup_enable_dp12(codec); codec 2650 sound/pci/hda/patch_hdmi.c snd_hda_codec_read(codec, fg, 0, AC_VERB_SET_POWER_STATE, power_state); codec 2651 sound/pci/hda/patch_hdmi.c snd_hda_codec_set_power_to_all(codec, fg, power_state); codec 2665 sound/pci/hda/patch_hdmi.c static int intel_base_nid(struct hda_codec *codec) codec 2667 sound/pci/hda/patch_hdmi.c switch (codec->core.vendor_id) { codec 2679 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = audio_ptr; codec 2680 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2684 sound/pci/hda/patch_hdmi.c base_nid = intel_base_nid(codec); codec 2700 sound/pci/hda/patch_hdmi.c codec_info(codec, "Can't find the HDMI/DP port for pin %d\n", pin_nid); codec 2704 sound/pci/hda/patch_hdmi.c static int intel_port2pin(struct hda_codec *codec, int port) codec 2706 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2713 sound/pci/hda/patch_hdmi.c return port + intel_base_nid(codec) - 1; codec 2723 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = audio_ptr; codec 2727 sound/pci/hda/patch_hdmi.c pin_nid = intel_port2pin(codec, port); codec 2733 sound/pci/hda/patch_hdmi.c if (snd_power_get_state(codec->card) != SNDRV_CTL_POWER_D0) codec 2736 sound/pci/hda/patch_hdmi.c if (snd_hdac_is_in_pm(&codec->core)) codec 2739 sound/pci/hda/patch_hdmi.c snd_hdac_i915_set_bclk(&codec->bus->core); codec 2740 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, pin_nid, dev_id); codec 2749 sound/pci/hda/patch_hdmi.c static void register_i915_notifier(struct hda_codec *codec) codec 2751 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2755 sound/pci/hda/patch_hdmi.c setup_drm_audio_ops(codec, &intel_audio_ops); codec 2756 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_register_notifier(&codec->bus->core, codec 2759 sound/pci/hda/patch_hdmi.c codec->relaxed_resume = 1; codec 2763 sound/pci/hda/patch_hdmi.c static int i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, codec 2766 sound/pci/hda/patch_hdmi.c haswell_verify_D0(codec, cvt_nid, pin_nid); codec 2767 sound/pci/hda/patch_hdmi.c return hdmi_setup_stream(codec, cvt_nid, pin_nid, stream_tag, format); codec 2771 sound/pci/hda/patch_hdmi.c static void i915_pin_cvt_fixup(struct hda_codec *codec, codec 2776 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, per_pin->pin_nid, codec 2778 sound/pci/hda/patch_hdmi.c intel_verify_pin_cvt_connect(codec, per_pin); codec 2779 sound/pci/hda/patch_hdmi.c intel_not_share_assigned_cvt(codec, per_pin->pin_nid, codec 2782 sound/pci/hda/patch_hdmi.c intel_not_share_assigned_cvt_nid(codec, 0, 0, cvt_nid); codec 2787 sound/pci/hda/patch_hdmi.c static int alloc_intel_hdmi(struct hda_codec *codec) codec 2792 sound/pci/hda/patch_hdmi.c if (!codec->bus->core.audio_component) { codec 2793 sound/pci/hda/patch_hdmi.c codec_info(codec, "No i915 binding for Intel HDMI/DP codec\n"); codec 2795 sound/pci/hda/patch_hdmi.c codec->probe_id = HDA_CODEC_ID_SKIP_PROBE; codec 2799 sound/pci/hda/patch_hdmi.c err = alloc_generic_hdmi(codec); codec 2803 sound/pci/hda/patch_hdmi.c codec->patch_ops.unsol_event = NULL; codec 2808 sound/pci/hda/patch_hdmi.c static int parse_intel_hdmi(struct hda_codec *codec) codec 2813 sound/pci/hda/patch_hdmi.c err = hdmi_parse_codec(codec); codec 2817 sound/pci/hda/patch_hdmi.c generic_spec_free(codec); codec 2821 sound/pci/hda/patch_hdmi.c generic_hdmi_init_per_pins(codec); codec 2822 sound/pci/hda/patch_hdmi.c register_i915_notifier(codec); codec 2827 sound/pci/hda/patch_hdmi.c static int intel_hsw_common_init(struct hda_codec *codec, hda_nid_t vendor_nid, codec 2833 sound/pci/hda/patch_hdmi.c err = alloc_intel_hdmi(codec); codec 2836 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 2837 sound/pci/hda/patch_hdmi.c codec->dp_mst = true; codec 2843 sound/pci/hda/patch_hdmi.c intel_haswell_enable_all_pins(codec, true); codec 2844 sound/pci/hda/patch_hdmi.c intel_haswell_fixup_enable_dp12(codec); codec 2846 sound/pci/hda/patch_hdmi.c codec->display_power_control = 1; codec 2848 sound/pci/hda/patch_hdmi.c codec->patch_ops.set_power_state = haswell_set_power_state; codec 2849 sound/pci/hda/patch_hdmi.c codec->depop_delay = 0; codec 2850 sound/pci/hda/patch_hdmi.c codec->auto_runtime_pm = 1; codec 2855 sound/pci/hda/patch_hdmi.c return parse_intel_hdmi(codec); codec 2858 sound/pci/hda/patch_hdmi.c static int patch_i915_hsw_hdmi(struct hda_codec *codec) codec 2860 sound/pci/hda/patch_hdmi.c return intel_hsw_common_init(codec, 0x08, NULL, 0); codec 2863 sound/pci/hda/patch_hdmi.c static int patch_i915_glk_hdmi(struct hda_codec *codec) codec 2865 sound/pci/hda/patch_hdmi.c return intel_hsw_common_init(codec, 0x0b, NULL, 0); codec 2868 sound/pci/hda/patch_hdmi.c static int patch_i915_icl_hdmi(struct hda_codec *codec) codec 2876 sound/pci/hda/patch_hdmi.c return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map)); codec 2879 sound/pci/hda/patch_hdmi.c static int patch_i915_tgl_hdmi(struct hda_codec *codec) codec 2887 sound/pci/hda/patch_hdmi.c return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map)); codec 2892 sound/pci/hda/patch_hdmi.c static int patch_i915_byt_hdmi(struct hda_codec *codec) codec 2897 sound/pci/hda/patch_hdmi.c err = alloc_intel_hdmi(codec); codec 2900 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 2905 sound/pci/hda/patch_hdmi.c codec->display_power_control = 1; codec 2907 sound/pci/hda/patch_hdmi.c codec->depop_delay = 0; codec 2908 sound/pci/hda/patch_hdmi.c codec->auto_runtime_pm = 1; codec 2912 sound/pci/hda/patch_hdmi.c return parse_intel_hdmi(codec); codec 2916 sound/pci/hda/patch_hdmi.c static int patch_i915_cpt_hdmi(struct hda_codec *codec) codec 2920 sound/pci/hda/patch_hdmi.c err = alloc_intel_hdmi(codec); codec 2923 sound/pci/hda/patch_hdmi.c return parse_intel_hdmi(codec); codec 2930 sound/pci/hda/patch_hdmi.c static int simple_playback_build_pcms(struct hda_codec *codec) codec 2932 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2939 sound/pci/hda/patch_hdmi.c chans = get_wcaps(codec, per_cvt->cvt_nid); codec 2942 sound/pci/hda/patch_hdmi.c info = snd_hda_codec_pcm_new(codec, "HDMI 0"); codec 2957 sound/pci/hda/patch_hdmi.c static void simple_hdmi_unsol_event(struct hda_codec *codec, codec 2960 sound/pci/hda/patch_hdmi.c snd_hda_jack_set_dirty_all(codec); codec 2961 sound/pci/hda/patch_hdmi.c snd_hda_jack_report_sync(codec); codec 2969 sound/pci/hda/patch_hdmi.c static int simple_playback_build_controls(struct hda_codec *codec) codec 2971 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2976 sound/pci/hda/patch_hdmi.c err = snd_hda_create_dig_out_ctls(codec, per_cvt->cvt_nid, codec 2981 sound/pci/hda/patch_hdmi.c return simple_hdmi_build_jack(codec, 0); codec 2984 sound/pci/hda/patch_hdmi.c static int simple_playback_init(struct hda_codec *codec) codec 2986 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 2990 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin, 0, codec 2993 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) codec 2994 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin, 0, AC_VERB_SET_AMP_GAIN_MUTE, codec 2996 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable(codec, pin); codec 3000 sound/pci/hda/patch_hdmi.c static void simple_playback_free(struct hda_codec *codec) codec 3002 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3061 sound/pci/hda/patch_hdmi.c static int nvhdmi_7x_init_2ch(struct hda_codec *codec) codec 3063 sound/pci/hda/patch_hdmi.c snd_hda_sequence_write(codec, nvhdmi_basic_init_7x_2ch); codec 3067 sound/pci/hda/patch_hdmi.c static int nvhdmi_7x_init_8ch(struct hda_codec *codec) codec 3069 sound/pci/hda/patch_hdmi.c snd_hda_sequence_write(codec, nvhdmi_basic_init_7x_8ch); codec 3094 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3097 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3100 sound/pci/hda/patch_hdmi.c switch (codec->preset->vendor_id) { codec 3123 sound/pci/hda/patch_hdmi.c return snd_hda_multi_out_dig_open(codec, &spec->multiout); codec 3127 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3130 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3131 sound/pci/hda/patch_hdmi.c return snd_hda_multi_out_dig_close(codec, &spec->multiout); codec 3135 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3140 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3141 sound/pci/hda/patch_hdmi.c return snd_hda_multi_out_dig_prepare(codec, &spec->multiout, codec 3164 sound/pci/hda/patch_hdmi.c static int patch_simple_hdmi(struct hda_codec *codec, codec 3175 sound/pci/hda/patch_hdmi.c spec->codec = codec; codec 3176 sound/pci/hda/patch_hdmi.c codec->spec = spec; codec 3187 sound/pci/hda/patch_hdmi.c simple_playback_free(codec); codec 3194 sound/pci/hda/patch_hdmi.c codec->patch_ops = simple_hdmi_patch_ops; codec 3199 sound/pci/hda/patch_hdmi.c static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, codec 3224 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, 0x1, 0, codec 3227 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, 0x1, 0, codec 3233 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3236 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3239 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nvhdmi_master_con_nid_7x, codec 3243 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nvhdmi_con_nids_7x[i], 0, codec 3246 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nvhdmi_con_nids_7x[i], 0, codec 3252 sound/pci/hda/patch_hdmi.c nvhdmi_8ch_7x_set_info_frame_parameters(codec, 8); codec 3254 sound/pci/hda/patch_hdmi.c return snd_hda_multi_out_dig_close(codec, &spec->multiout); codec 3258 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3266 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3270 sound/pci/hda/patch_hdmi.c mutex_lock(&codec->spdif_mutex); codec 3272 sound/pci/hda/patch_hdmi.c spdif = snd_hda_spdif_out_of_nid(codec, per_cvt->cvt_nid); codec 3279 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) codec 3280 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3287 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nvhdmi_master_con_nid_7x, 0, codec 3291 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nvhdmi_master_con_nid_7x, 0, codec 3296 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && (spdif->ctls & AC_DIG1_ENABLE)) { codec 3297 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3302 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3317 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && codec 3319 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3325 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3331 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3338 sound/pci/hda/patch_hdmi.c if (codec->spdif_status_reset && codec 3340 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3345 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, codec 3352 sound/pci/hda/patch_hdmi.c nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs); codec 3354 sound/pci/hda/patch_hdmi.c mutex_unlock(&codec->spdif_mutex); codec 3373 sound/pci/hda/patch_hdmi.c static int patch_nvhdmi_2ch(struct hda_codec *codec) codec 3376 sound/pci/hda/patch_hdmi.c int err = patch_simple_hdmi(codec, nvhdmi_master_con_nid_7x, codec 3381 sound/pci/hda/patch_hdmi.c codec->patch_ops.init = nvhdmi_7x_init_2ch; codec 3383 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 3390 sound/pci/hda/patch_hdmi.c static int nvhdmi_7x_8ch_build_pcms(struct hda_codec *codec) codec 3392 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3393 sound/pci/hda/patch_hdmi.c int err = simple_playback_build_pcms(codec); codec 3401 sound/pci/hda/patch_hdmi.c static int nvhdmi_7x_8ch_build_controls(struct hda_codec *codec) codec 3403 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3408 sound/pci/hda/patch_hdmi.c err = simple_playback_build_controls(codec); codec 3419 sound/pci/hda/patch_hdmi.c switch (codec->preset->vendor_id) { codec 3432 sound/pci/hda/patch_hdmi.c static int patch_nvhdmi_8ch_7x(struct hda_codec *codec) codec 3435 sound/pci/hda/patch_hdmi.c int err = patch_nvhdmi_2ch(codec); codec 3438 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 3441 sound/pci/hda/patch_hdmi.c codec->patch_ops.init = nvhdmi_7x_init_8ch; codec 3442 sound/pci/hda/patch_hdmi.c codec->patch_ops.build_pcms = nvhdmi_7x_8ch_build_pcms; codec 3443 sound/pci/hda/patch_hdmi.c codec->patch_ops.build_controls = nvhdmi_7x_8ch_build_controls; codec 3447 sound/pci/hda/patch_hdmi.c nvhdmi_8ch_7x_set_info_frame_parameters(codec, 8); codec 3480 sound/pci/hda/patch_hdmi.c static int patch_nvhdmi(struct hda_codec *codec) codec 3485 sound/pci/hda/patch_hdmi.c err = patch_generic_hdmi(codec); codec 3489 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 3496 sound/pci/hda/patch_hdmi.c codec->link_down_at_suspend = 1; codec 3543 sound/pci/hda/patch_hdmi.c static void tegra_hdmi_set_format(struct hda_codec *codec, unsigned int format) codec 3548 sound/pci/hda/patch_hdmi.c value = snd_hda_codec_read(codec, NVIDIA_AFG_NID, 0, codec 3553 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, NVIDIA_AFG_NID, 0, codec 3556 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, NVIDIA_AFG_NID, 0, codec 3561 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, NVIDIA_AFG_NID, 0, codec 3580 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, NVIDIA_AFG_NID, 0, codec 3585 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3592 sound/pci/hda/patch_hdmi.c err = generic_hdmi_playback_pcm_prepare(hinfo, codec, stream_tag, codec 3598 sound/pci/hda/patch_hdmi.c tegra_hdmi_set_format(codec, format); codec 3604 sound/pci/hda/patch_hdmi.c struct hda_codec *codec, codec 3608 sound/pci/hda/patch_hdmi.c tegra_hdmi_set_format(codec, 0); codec 3610 sound/pci/hda/patch_hdmi.c return generic_hdmi_playback_pcm_cleanup(hinfo, codec, substream); codec 3613 sound/pci/hda/patch_hdmi.c static struct hda_pcm *hda_find_pcm_by_type(struct hda_codec *codec, int type) codec 3615 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3628 sound/pci/hda/patch_hdmi.c static int tegra_hdmi_build_pcms(struct hda_codec *codec) codec 3634 sound/pci/hda/patch_hdmi.c err = generic_hdmi_build_pcms(codec); codec 3638 sound/pci/hda/patch_hdmi.c pcm = hda_find_pcm_by_type(codec, HDA_PCM_TYPE_HDMI); codec 3653 sound/pci/hda/patch_hdmi.c static int patch_tegra_hdmi(struct hda_codec *codec) codec 3657 sound/pci/hda/patch_hdmi.c err = patch_generic_hdmi(codec); codec 3661 sound/pci/hda/patch_hdmi.c codec->patch_ops.build_pcms = tegra_hdmi_build_pcms; codec 3670 sound/pci/hda/patch_hdmi.c #define is_amdhdmi_rev3_or_later(codec) \ codec 3671 sound/pci/hda/patch_hdmi.c ((codec)->core.vendor_id == 0x1002aa01 && \ codec 3672 sound/pci/hda/patch_hdmi.c ((codec)->core.revision_id & 0xff00) >= 0x0300) codec 3673 sound/pci/hda/patch_hdmi.c #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) codec 3713 sound/pci/hda/patch_hdmi.c static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, codec 3717 sound/pci/hda/patch_hdmi.c return snd_hdmi_get_eld_ati(codec, nid, buf, eld_size, codec 3718 sound/pci/hda/patch_hdmi.c is_amdhdmi_rev3_or_later(codec)); codec 3721 sound/pci/hda/patch_hdmi.c static void atihdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int ca, codec 3724 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, ATI_VERB_SET_CHANNEL_ALLOCATION, ca); codec 3795 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 3802 sound/pci/hda/patch_hdmi.c if (!has_amd_full_remap_support(codec)) { codec 3825 sound/pci/hda/patch_hdmi.c return snd_hda_codec_write(codec, pin_nid, 0, verb, ati_channel_setup); codec 3831 sound/pci/hda/patch_hdmi.c struct hda_codec *codec = container_of(hdac, struct hda_codec, core); codec 3840 sound/pci/hda/patch_hdmi.c if (!has_amd_full_remap_support(codec)) { codec 3850 sound/pci/hda/patch_hdmi.c ati_channel_setup = snd_hda_codec_read(codec, pin_nid, 0, verb, 0); codec 3913 sound/pci/hda/patch_hdmi.c static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, codec 3918 sound/pci/hda/patch_hdmi.c hbr_ctl = snd_hda_codec_read(codec, pin_nid, 0, ATI_VERB_GET_HBR_CONTROL, 0); codec 3925 sound/pci/hda/patch_hdmi.c codec_dbg(codec, codec 3932 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin_nid, 0, codec 3942 sound/pci/hda/patch_hdmi.c static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, codec 3946 sound/pci/hda/patch_hdmi.c if (is_amdhdmi_rev3_or_later(codec)) { codec 3952 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, cvt_nid, 0, ATI_VERB_SET_RAMP_RATE, ramp_rate); codec 3955 sound/pci/hda/patch_hdmi.c return hdmi_setup_stream(codec, cvt_nid, pin_nid, stream_tag, format); codec 3959 sound/pci/hda/patch_hdmi.c static int atihdmi_init(struct hda_codec *codec) codec 3961 sound/pci/hda/patch_hdmi.c struct hdmi_spec *spec = codec->spec; codec 3964 sound/pci/hda/patch_hdmi.c err = generic_hdmi_init(codec); codec 3973 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, per_pin->pin_nid, 0, ATI_VERB_SET_DOWNMIX_INFO, 0); codec 3976 sound/pci/hda/patch_hdmi.c if (has_amd_full_remap_support(codec)) codec 3977 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, per_pin->pin_nid, 0, codec 3993 sound/pci/hda/patch_hdmi.c static int atihdmi_port2pin(struct hda_codec *codec, int port) codec 4005 sound/pci/hda/patch_hdmi.c static int patch_atihdmi(struct hda_codec *codec) codec 4011 sound/pci/hda/patch_hdmi.c err = patch_generic_hdmi(codec); codec 4016 sound/pci/hda/patch_hdmi.c codec->patch_ops.init = atihdmi_init; codec 4018 sound/pci/hda/patch_hdmi.c spec = codec->spec; codec 4028 sound/pci/hda/patch_hdmi.c if (!has_amd_full_remap_support(codec)) { codec 4051 sound/pci/hda/patch_hdmi.c codec->link_down_at_suspend = 1; codec 4053 sound/pci/hda/patch_hdmi.c generic_acomp_init(codec, &atihdmi_audio_ops, atihdmi_port2pin); codec 4062 sound/pci/hda/patch_hdmi.c static int patch_via_hdmi(struct hda_codec *codec) codec 4064 sound/pci/hda/patch_hdmi.c return patch_simple_hdmi(codec, VIAHDMI_CVT_NID, VIAHDMI_PIN_NID); codec 104 sound/pci/hda/patch_realtek.c void (*init_hook)(struct hda_codec *codec); codec 106 sound/pci/hda/patch_realtek.c void (*power_hook)(struct hda_codec *codec); codec 108 sound/pci/hda/patch_realtek.c void (*shutup)(struct hda_codec *codec); codec 109 sound/pci/hda/patch_realtek.c void (*reboot_notify)(struct hda_codec *codec); codec 132 sound/pci/hda/patch_realtek.c static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, codec 137 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); codec 138 sound/pci/hda/patch_realtek.c val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); codec 142 sound/pci/hda/patch_realtek.c #define alc_read_coef_idx(codec, coef_idx) \ codec 143 sound/pci/hda/patch_realtek.c alc_read_coefex_idx(codec, 0x20, coef_idx) codec 145 sound/pci/hda/patch_realtek.c static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, codec 148 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); codec 149 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PROC_COEF, coef_val); codec 152 sound/pci/hda/patch_realtek.c #define alc_write_coef_idx(codec, coef_idx, coef_val) \ codec 153 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, 0x20, coef_idx, coef_val) codec 155 sound/pci/hda/patch_realtek.c static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, codec 159 sound/pci/hda/patch_realtek.c unsigned int val = alc_read_coefex_idx(codec, nid, coef_idx); codec 162 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, nid, coef_idx, codec 166 sound/pci/hda/patch_realtek.c #define alc_update_coef_idx(codec, coef_idx, mask, bits_set) \ codec 167 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x20, coef_idx, mask, bits_set) codec 170 sound/pci/hda/patch_realtek.c static unsigned int alc_get_coef0(struct hda_codec *codec) codec 172 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 175 sound/pci/hda/patch_realtek.c spec->coef0 = alc_read_coef_idx(codec, 0); codec 193 sound/pci/hda/patch_realtek.c static void alc_process_coef_fw(struct hda_codec *codec, codec 198 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, fw->nid, fw->idx, fw->val); codec 200 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, fw->nid, fw->idx, codec 210 sound/pci/hda/patch_realtek.c static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) codec 212 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 219 sound/pci/hda/patch_realtek.c static void alc_write_gpio_data(struct hda_codec *codec) codec 221 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 223 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, codec 227 sound/pci/hda/patch_realtek.c static void alc_update_gpio_data(struct hda_codec *codec, unsigned int mask, codec 230 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 238 sound/pci/hda/patch_realtek.c alc_write_gpio_data(codec); codec 241 sound/pci/hda/patch_realtek.c static void alc_write_gpio(struct hda_codec *codec) codec 243 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 248 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 250 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 254 sound/pci/hda/patch_realtek.c alc_write_gpio_data(codec); codec 257 sound/pci/hda/patch_realtek.c static void alc_fixup_gpio(struct hda_codec *codec, int action, codec 261 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, mask); codec 264 sound/pci/hda/patch_realtek.c static void alc_fixup_gpio1(struct hda_codec *codec, codec 267 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, 0x01); codec 270 sound/pci/hda/patch_realtek.c static void alc_fixup_gpio2(struct hda_codec *codec, codec 273 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, 0x02); codec 276 sound/pci/hda/patch_realtek.c static void alc_fixup_gpio3(struct hda_codec *codec, codec 279 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, 0x03); codec 282 sound/pci/hda/patch_realtek.c static void alc_fixup_gpio4(struct hda_codec *codec, codec 285 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, 0x04); codec 293 sound/pci/hda/patch_realtek.c static void alc_fix_pll(struct hda_codec *codec) codec 295 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 298 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, spec->pll_nid, spec->pll_coef_idx, codec 302 sound/pci/hda/patch_realtek.c static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, codec 305 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 309 sound/pci/hda/patch_realtek.c alc_fix_pll(codec); codec 313 sound/pci/hda/patch_realtek.c static void alc_update_knob_master(struct hda_codec *codec, codec 320 sound/pci/hda/patch_realtek.c kctl = snd_hda_find_mixer_ctl(codec, "Master Playback Volume"); codec 326 sound/pci/hda/patch_realtek.c val = snd_hda_codec_read(codec, jack->nid, 0, codec 335 sound/pci/hda/patch_realtek.c static void alc880_unsol_event(struct hda_codec *codec, unsigned int res) codec 339 sound/pci/hda/patch_realtek.c snd_hda_jack_unsol_event(codec, res >> 2); codec 343 sound/pci/hda/patch_realtek.c static void alc_fill_eapd_coef(struct hda_codec *codec) codec 347 sound/pci/hda/patch_realtek.c coef = alc_get_coef0(codec); codec 349 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 351 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 0, 1<<5); codec 355 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 0, 1<<13); codec 359 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0xd, 0, 1<<14); codec 361 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4, 1<<15, 0); codec 363 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x10, 1<<9, 0); codec 369 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4, 1<<15, 0); codec 374 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); codec 393 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x10, 1<<9, 0); codec 396 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0xe, 0, 1<<0); codec 399 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0xa, 1<<13, 0); codec 408 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x10, 1<<15, 0); codec 412 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4, 1<<10, 0); /* EAPD Ctrl */ codec 421 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0xd, 0, 1<<14); /* EAPD Ctrl */ codec 425 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x19, 1<<13, 0); codec 428 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 3<<13, 0); codec 431 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4, 1<<10, 0); codec 435 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 1<<5, 0); codec 438 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 1<<5, 0); codec 445 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 1<<1, 0); codec 451 sound/pci/hda/patch_realtek.c static void alc888_coef_init(struct hda_codec *codec) codec 453 sound/pci/hda/patch_realtek.c switch (alc_get_coef0(codec) & 0x00f0) { codec 458 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 7, 0, 0x2030); /* Turn EAPD to High */ codec 464 sound/pci/hda/patch_realtek.c static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) codec 466 sound/pci/hda/patch_realtek.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) codec 468 sound/pci/hda/patch_realtek.c if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD) codec 469 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE, codec 474 sound/pci/hda/patch_realtek.c static void alc_auto_setup_eapd(struct hda_codec *codec, bool on) codec 482 sound/pci/hda/patch_realtek.c set_eapd(codec, *p, on); codec 485 sound/pci/hda/patch_realtek.c static int find_ext_mic_pin(struct hda_codec *codec); codec 487 sound/pci/hda/patch_realtek.c static void alc_headset_mic_no_shutup(struct hda_codec *codec) codec 490 sound/pci/hda/patch_realtek.c int mic_pin = find_ext_mic_pin(codec); codec 496 sound/pci/hda/patch_realtek.c if (codec->bus->shutdown) codec 499 sound/pci/hda/patch_realtek.c snd_array_for_each(&codec->init_pins, i, pin) { codec 502 sound/pci/hda/patch_realtek.c snd_hda_codec_read(codec, pin->nid, 0, codec 506 sound/pci/hda/patch_realtek.c codec->pins_shutup = 1; codec 509 sound/pci/hda/patch_realtek.c static void alc_shutup_pins(struct hda_codec *codec) codec 511 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 513 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 518 sound/pci/hda/patch_realtek.c alc_headset_mic_no_shutup(codec); codec 522 sound/pci/hda/patch_realtek.c snd_hda_shutup_pins(codec); codec 530 sound/pci/hda/patch_realtek.c static void alc_eapd_shutup(struct hda_codec *codec) codec 532 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 534 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 537 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 541 sound/pci/hda/patch_realtek.c static void alc_auto_init_amp(struct hda_codec *codec, int type) codec 543 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, true); codec 544 sound/pci/hda/patch_realtek.c alc_write_gpio(codec); codec 547 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 549 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x1a, 7, 0, 0x2010); codec 555 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 7, 0, 0x2030); codec 558 sound/pci/hda/patch_realtek.c alc888_coef_init(codec); codec 584 sound/pci/hda/patch_realtek.c static void alc_fixup_sku_ignore(struct hda_codec *codec, codec 587 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 594 sound/pci/hda/patch_realtek.c static void alc_fixup_no_depop_delay(struct hda_codec *codec, codec 597 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 601 sound/pci/hda/patch_realtek.c codec->depop_delay = 0; codec 605 sound/pci/hda/patch_realtek.c static int alc_auto_parse_customize_define(struct hda_codec *codec) codec 609 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 620 sound/pci/hda/patch_realtek.c if (!codec->bus->pci) codec 622 sound/pci/hda/patch_realtek.c ass = codec->core.subsystem_id & 0xffff; codec 623 sound/pci/hda/patch_realtek.c if (ass != codec->bus->pci->subsystem_device && (ass & 1)) codec 627 sound/pci/hda/patch_realtek.c if (codec->core.vendor_id == 0x10ec0260) codec 629 sound/pci/hda/patch_realtek.c ass = snd_hda_codec_get_pincfg(codec, nid); codec 632 sound/pci/hda/patch_realtek.c codec_info(codec, "%s: SKU not ready 0x%08x\n", codec 633 sound/pci/hda/patch_realtek.c codec->core.chip_name, ass); codec 657 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: Nid=0x%x sku_cfg=0x%08x\n", codec 659 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: port_connectivity=0x%x\n", codec 661 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: enable_pcbeep=0x%x\n", spec->cdefine.enable_pcbeep); codec 662 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: check_sum=0x%08x\n", spec->cdefine.check_sum); codec 663 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: customization=0x%08x\n", spec->cdefine.customization); codec 664 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: external_amp=0x%x\n", spec->cdefine.external_amp); codec 665 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: platform_type=0x%x\n", spec->cdefine.platform_type); codec 666 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: swap=0x%x\n", spec->cdefine.swap); codec 667 sound/pci/hda/patch_realtek.c codec_dbg(codec, "SKU: override=0x%x\n", spec->cdefine.override); codec 696 sound/pci/hda/patch_realtek.c static int alc_subsystem_id(struct hda_codec *codec, const hda_nid_t *ports) codec 700 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 709 sound/pci/hda/patch_realtek.c ass = codec->core.subsystem_id & 0xffff; codec 710 sound/pci/hda/patch_realtek.c if (codec->bus->pci && codec 711 sound/pci/hda/patch_realtek.c ass != codec->bus->pci->subsystem_device && (ass & 1)) codec 724 sound/pci/hda/patch_realtek.c if (codec->core.vendor_id == 0x10ec0260) codec 726 sound/pci/hda/patch_realtek.c ass = snd_hda_codec_get_pincfg(codec, nid); codec 727 sound/pci/hda/patch_realtek.c codec_dbg(codec, codec 744 sound/pci/hda/patch_realtek.c codec_dbg(codec, "realtek: Enabling init ASM_ID=0x%04x CODEC_ID=%08x\n", codec 745 sound/pci/hda/patch_realtek.c ass & 0xffff, codec->core.vendor_id); codec 757 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x01); codec 760 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x02); codec 763 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x03); codec 798 sound/pci/hda/patch_realtek.c static void alc_ssid_check(struct hda_codec *codec, const hda_nid_t *ports) codec 800 sound/pci/hda/patch_realtek.c if (!alc_subsystem_id(codec, ports)) { codec 801 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 803 sound/pci/hda/patch_realtek.c codec_dbg(codec, codec 813 sound/pci/hda/patch_realtek.c static void alc_fixup_inv_dmic(struct hda_codec *codec, codec 816 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 822 sound/pci/hda/patch_realtek.c static int alc_build_controls(struct hda_codec *codec) codec 826 sound/pci/hda/patch_realtek.c err = snd_hda_gen_build_controls(codec); codec 830 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_BUILD); codec 839 sound/pci/hda/patch_realtek.c static void alc_pre_init(struct hda_codec *codec) codec 841 sound/pci/hda/patch_realtek.c alc_fill_eapd_coef(codec); codec 844 sound/pci/hda/patch_realtek.c #define is_s3_resume(codec) \ codec 845 sound/pci/hda/patch_realtek.c ((codec)->core.dev.power.power_state.event == PM_EVENT_RESUME) codec 846 sound/pci/hda/patch_realtek.c #define is_s4_resume(codec) \ codec 847 sound/pci/hda/patch_realtek.c ((codec)->core.dev.power.power_state.event == PM_EVENT_RESTORE) codec 849 sound/pci/hda/patch_realtek.c static int alc_init(struct hda_codec *codec) codec 851 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 854 sound/pci/hda/patch_realtek.c if (is_s4_resume(codec)) codec 855 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 858 sound/pci/hda/patch_realtek.c spec->init_hook(codec); codec 861 sound/pci/hda/patch_realtek.c snd_hda_gen_init(codec); codec 862 sound/pci/hda/patch_realtek.c alc_fix_pll(codec); codec 863 sound/pci/hda/patch_realtek.c alc_auto_init_amp(codec, spec->init_amp); codec 864 sound/pci/hda/patch_realtek.c snd_hda_apply_verbs(codec); /* apply verbs here after own init */ codec 866 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); codec 871 sound/pci/hda/patch_realtek.c static inline void alc_shutup(struct hda_codec *codec) codec 873 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 875 sound/pci/hda/patch_realtek.c if (!snd_hda_get_bool_hint(codec, "shutup")) codec 879 sound/pci/hda/patch_realtek.c spec->shutup(codec); codec 881 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 884 sound/pci/hda/patch_realtek.c static void alc_reboot_notify(struct hda_codec *codec) codec 886 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 889 sound/pci/hda/patch_realtek.c spec->reboot_notify(codec); codec 891 sound/pci/hda/patch_realtek.c alc_shutup(codec); codec 897 sound/pci/hda/patch_realtek.c static void alc_power_eapd(struct hda_codec *codec) codec 899 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 902 sound/pci/hda/patch_realtek.c static int alc_suspend(struct hda_codec *codec) codec 904 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 905 sound/pci/hda/patch_realtek.c alc_shutup(codec); codec 907 sound/pci/hda/patch_realtek.c spec->power_hook(codec); codec 913 sound/pci/hda/patch_realtek.c static int alc_resume(struct hda_codec *codec) codec 915 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 919 sound/pci/hda/patch_realtek.c codec->patch_ops.init(codec); codec 920 sound/pci/hda/patch_realtek.c snd_hda_regmap_sync(codec); codec 921 sound/pci/hda/patch_realtek.c hda_call_check_power_status(codec, 0x01); codec 943 sound/pci/hda/patch_realtek.c #define alc_codec_rename(codec, name) snd_hda_codec_set_name(codec, name) codec 1014 sound/pci/hda/patch_realtek.c static int alc_codec_rename_from_preset(struct hda_codec *codec) codec 1020 sound/pci/hda/patch_realtek.c if (p->vendor_id != codec->core.vendor_id) codec 1022 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & p->coef_mask) == p->coef_bits) codec 1023 sound/pci/hda/patch_realtek.c return alc_codec_rename(codec, p->name); codec 1026 sound/pci/hda/patch_realtek.c if (!codec->bus->pci) codec 1029 sound/pci/hda/patch_realtek.c if (q->codec_vendor_id != codec->core.vendor_id) codec 1031 sound/pci/hda/patch_realtek.c if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) codec 1034 sound/pci/hda/patch_realtek.c q->pci_subdevice == codec->bus->pci->subsystem_device) codec 1035 sound/pci/hda/patch_realtek.c return alc_codec_rename(codec, q->name); codec 1087 sound/pci/hda/patch_realtek.c static inline int has_cdefine_beep(struct hda_codec *codec) codec 1089 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1091 sound/pci/hda/patch_realtek.c q = snd_pci_quirk_lookup(codec->bus->pci, beep_white_list); codec 1098 sound/pci/hda/patch_realtek.c #define has_cdefine_beep(codec) 0 codec 1105 sound/pci/hda/patch_realtek.c static int alc_parse_auto_config(struct hda_codec *codec, codec 1109 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1113 sound/pci/hda/patch_realtek.c err = snd_hda_parse_pin_defcfg(codec, cfg, ignore_nids, codec 1119 sound/pci/hda/patch_realtek.c alc_ssid_check(codec, ssid_nids); codec 1121 sound/pci/hda/patch_realtek.c err = snd_hda_gen_parse_auto_config(codec, cfg); codec 1129 sound/pci/hda/patch_realtek.c static int alc_alloc_spec(struct hda_codec *codec, hda_nid_t mixer_nid) codec 1136 sound/pci/hda/patch_realtek.c codec->spec = spec; codec 1140 sound/pci/hda/patch_realtek.c codec->single_adc_amp = 1; codec 1142 sound/pci/hda/patch_realtek.c codec->spdif_status_reset = 1; codec 1143 sound/pci/hda/patch_realtek.c codec->patch_ops = alc_patch_ops; codec 1145 sound/pci/hda/patch_realtek.c err = alc_codec_rename_from_preset(codec); codec 1153 sound/pci/hda/patch_realtek.c static int alc880_parse_auto_config(struct hda_codec *codec) codec 1157 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc880_ignore, alc880_ssids); codec 1192 sound/pci/hda/patch_realtek.c static void alc880_fixup_vol_knob(struct hda_codec *codec, codec 1196 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x21, codec 1575 sound/pci/hda/patch_realtek.c static int patch_alc880(struct hda_codec *codec) codec 1580 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 1584 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 1588 sound/pci/hda/patch_realtek.c codec->patch_ops.unsol_event = alc880_unsol_event; codec 1590 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 1592 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc880_fixup_models, alc880_fixup_tbl, codec 1594 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1597 sound/pci/hda/patch_realtek.c err = alc880_parse_auto_config(codec); codec 1607 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 1612 sound/pci/hda/patch_realtek.c alc_free(codec); codec 1620 sound/pci/hda/patch_realtek.c static int alc260_parse_auto_config(struct hda_codec *codec) codec 1624 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc260_ignore, alc260_ssids); codec 1644 sound/pci/hda/patch_realtek.c static void alc260_gpio1_automute(struct hda_codec *codec) codec 1646 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1648 sound/pci/hda/patch_realtek.c alc_update_gpio_data(codec, 0x01, spec->gen.hp_jack_present); codec 1651 sound/pci/hda/patch_realtek.c static void alc260_fixup_gpio1_toggle(struct hda_codec *codec, codec 1654 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1663 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x0f, codec 1665 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x01); codec 1669 sound/pci/hda/patch_realtek.c static void alc260_fixup_kn1(struct hda_codec *codec, codec 1672 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1691 sound/pci/hda/patch_realtek.c snd_hda_apply_pincfgs(codec, pincfgs); codec 1697 sound/pci/hda/patch_realtek.c static void alc260_fixup_fsc_s7020(struct hda_codec *codec, codec 1700 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1705 sound/pci/hda/patch_realtek.c static void alc260_fixup_fsc_s7020_jwse(struct hda_codec *codec, codec 1708 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1824 sound/pci/hda/patch_realtek.c static int patch_alc260(struct hda_codec *codec) codec 1829 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x07); codec 1833 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 1843 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 1845 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc260_fixup_models, alc260_fixup_tbl, codec 1847 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1850 sound/pci/hda/patch_realtek.c err = alc260_parse_auto_config(codec); codec 1860 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 1865 sound/pci/hda/patch_realtek.c alc_free(codec); codec 1924 sound/pci/hda/patch_realtek.c static void alc889_fixup_coef(struct hda_codec *codec, codec 1929 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 7, 0, 0x2030); codec 1933 sound/pci/hda/patch_realtek.c static void alc885_fixup_macpro_gpio(struct hda_codec *codec, codec 1936 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1939 sound/pci/hda/patch_realtek.c alc_fixup_gpio3(codec, fix, action); codec 1946 sound/pci/hda/patch_realtek.c static void alc889_fixup_dac_route(struct hda_codec *codec, codec 1953 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); codec 1954 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn1), conn1); codec 1955 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x18, ARRAY_SIZE(conn2), conn2); codec 1956 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x1a, ARRAY_SIZE(conn2), conn2); codec 1960 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn), conn); codec 1961 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn), conn); codec 1962 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x18, ARRAY_SIZE(conn), conn); codec 1963 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x1a, ARRAY_SIZE(conn), conn); codec 1968 sound/pci/hda/patch_realtek.c static void alc889_fixup_mbp_vref(struct hda_codec *codec, codec 1972 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1978 sound/pci/hda/patch_realtek.c unsigned int val = snd_hda_codec_get_pincfg(codec, nids[i]); codec 1981 sound/pci/hda/patch_realtek.c val = snd_hda_codec_get_pin_target(codec, nids[i]); codec 1983 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl(codec, nids[i], val); codec 1989 sound/pci/hda/patch_realtek.c static void alc889_fixup_mac_pins(struct hda_codec *codec, codec 1992 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 1997 sound/pci/hda/patch_realtek.c val = snd_hda_codec_get_pin_target(codec, nids[i]); codec 1999 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl(codec, nids[i], val); codec 2005 sound/pci/hda/patch_realtek.c static void alc889_fixup_imac91_vref(struct hda_codec *codec, codec 2011 sound/pci/hda/patch_realtek.c alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); codec 2015 sound/pci/hda/patch_realtek.c static void alc889_fixup_mba11_vref(struct hda_codec *codec, codec 2021 sound/pci/hda/patch_realtek.c alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); codec 2025 sound/pci/hda/patch_realtek.c static void alc889_fixup_mba21_vref(struct hda_codec *codec, codec 2031 sound/pci/hda/patch_realtek.c alc889_fixup_mac_pins(codec, nids, ARRAY_SIZE(nids)); codec 2038 sound/pci/hda/patch_realtek.c static void alc882_fixup_no_primary_hp(struct hda_codec *codec, codec 2041 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 2048 sound/pci/hda/patch_realtek.c static void alc_fixup_bass_chmap(struct hda_codec *codec, codec 2054 sound/pci/hda/patch_realtek.c static void alc_fixup_dual_codecs(struct hda_codec *codec, codec 2057 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 2069 sound/pci/hda/patch_realtek.c codec->force_pin_prefix = 1; codec 2072 sound/pci/hda/patch_realtek.c static void rename_ctl(struct hda_codec *codec, const char *oldname, codec 2077 sound/pci/hda/patch_realtek.c kctl = snd_hda_find_mixer_ctl(codec, oldname); codec 2082 sound/pci/hda/patch_realtek.c static void alc1220_fixup_gb_dual_codecs(struct hda_codec *codec, codec 2086 sound/pci/hda/patch_realtek.c alc_fixup_dual_codecs(codec, fix, action); codec 2090 sound/pci/hda/patch_realtek.c strcpy(codec->card->longname, "HDAudio-Gigabyte-ALC1220DualCodecs"); codec 2094 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Capture Volume", codec 2095 sound/pci/hda/patch_realtek.c codec->addr == 0 ? codec 2098 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Capture Switch", codec 2099 sound/pci/hda/patch_realtek.c codec->addr == 0 ? codec 2106 sound/pci/hda/patch_realtek.c static void alc1220_fixup_clevo_p950(struct hda_codec *codec, codec 2115 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x7, 0, 0x3c3); codec 2119 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); codec 2120 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x1b, ARRAY_SIZE(conn1), conn1); codec 2123 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec, codec 2126 sound/pci/hda/patch_realtek.c static void alc1220_fixup_clevo_pb51ed(struct hda_codec *codec, codec 2130 sound/pci/hda/patch_realtek.c alc1220_fixup_clevo_p950(codec, fix, action); codec 2131 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode_no_hp_mic(codec, fix, action); codec 2526 sound/pci/hda/patch_realtek.c static int alc882_parse_auto_config(struct hda_codec *codec) codec 2530 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc882_ignore, alc882_ssids); codec 2535 sound/pci/hda/patch_realtek.c static int patch_alc882(struct hda_codec *codec) codec 2540 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 2544 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 2546 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 2555 sound/pci/hda/patch_realtek.c alc_fix_pll_init(codec, 0x20, 0x0a, 10); codec 2559 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 2561 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc882_fixup_models, alc882_fixup_tbl, codec 2563 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 2565 sound/pci/hda/patch_realtek.c alc_auto_parse_customize_define(codec); codec 2567 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 2571 sound/pci/hda/patch_realtek.c err = alc882_parse_auto_config(codec); codec 2581 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 2586 sound/pci/hda/patch_realtek.c alc_free(codec); codec 2594 sound/pci/hda/patch_realtek.c static int alc262_parse_auto_config(struct hda_codec *codec) codec 2598 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc262_ignore, alc262_ssids); codec 2713 sound/pci/hda/patch_realtek.c static int patch_alc262(struct hda_codec *codec) codec 2718 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 2722 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 2731 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x1a, 7, 0, 0x80); codec 2733 sound/pci/hda/patch_realtek.c alc_fix_pll_init(codec, 0x20, 0x0a, 10); codec 2735 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 2737 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc262_fixup_models, alc262_fixup_tbl, codec 2739 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 2741 sound/pci/hda/patch_realtek.c alc_auto_parse_customize_define(codec); codec 2743 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 2747 sound/pci/hda/patch_realtek.c err = alc262_parse_auto_config(codec); codec 2757 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 2762 sound/pci/hda/patch_realtek.c alc_free(codec); codec 2773 sound/pci/hda/patch_realtek.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2777 sound/pci/hda/patch_realtek.c mutex_lock(&codec->control_mutex); codec 2786 sound/pci/hda/patch_realtek.c mutex_unlock(&codec->control_mutex); codec 2858 sound/pci/hda/patch_realtek.c static int alc268_parse_auto_config(struct hda_codec *codec) codec 2861 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, NULL, alc268_ssids); codec 2866 sound/pci/hda/patch_realtek.c static int patch_alc268(struct hda_codec *codec) codec 2872 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0); codec 2876 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 2877 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 2882 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 2884 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc268_fixup_models, alc268_fixup_tbl, alc268_fixups); codec 2885 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 2888 sound/pci/hda/patch_realtek.c err = alc268_parse_auto_config(codec); codec 2901 sound/pci/hda/patch_realtek.c snd_hda_add_verbs(codec, alc268_beep_init_verbs); codec 2902 sound/pci/hda/patch_realtek.c if (!query_amp_caps(codec, 0x1d, HDA_INPUT)) codec 2904 sound/pci/hda/patch_realtek.c snd_hda_override_amp_caps(codec, 0x1d, HDA_INPUT, codec 2911 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 2916 sound/pci/hda/patch_realtek.c alc_free(codec); codec 2959 sound/pci/hda/patch_realtek.c static int alc269_parse_auto_config(struct hda_codec *codec) codec 2964 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 2997 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc269_ignore, ssids); codec 3008 sound/pci/hda/patch_realtek.c static void alc_headset_btn_callback(struct hda_codec *codec, codec 3030 sound/pci/hda/patch_realtek.c static void alc_disable_headset_jack_key(struct hda_codec *codec) codec 3032 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3037 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 3044 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x48, 0x0); codec 3045 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 0x0045, 0x0); codec 3046 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x44, 0x0045 << 8, 0x0); codec 3050 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x48, 0x0); codec 3051 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 0x0045, 0x0); codec 3056 sound/pci/hda/patch_realtek.c static void alc_enable_headset_jack_key(struct hda_codec *codec) codec 3058 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3063 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 3070 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x48, 0xd011); codec 3071 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 0x007f, 0x0045); codec 3072 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x44, 0x007f << 8, 0x0045 << 8); codec 3076 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x48, 0xd011); codec 3077 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 0x007f, 0x0045); codec 3082 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_jack(struct hda_codec *codec, codec 3085 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3090 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x55, codec 3092 sound/pci/hda/patch_realtek.c snd_hda_jack_add_kctl(codec, 0x55, "Headset Jack", false, codec 3096 sound/pci/hda/patch_realtek.c alc_enable_headset_jack_key(codec); codec 3101 sound/pci/hda/patch_realtek.c static void alc269vb_toggle_power_output(struct hda_codec *codec, int power_up) codec 3103 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x04, 1 << 11, power_up ? (1 << 11) : 0); codec 3106 sound/pci/hda/patch_realtek.c static void alc269_shutup(struct hda_codec *codec) codec 3108 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3111 sound/pci/hda/patch_realtek.c alc269vb_toggle_power_output(codec, 0); codec 3113 sound/pci/hda/patch_realtek.c (alc_get_coef0(codec) & 0x00ff) == 0x018) { codec 3116 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3152 sound/pci/hda/patch_realtek.c static void alc282_restore_default_value(struct hda_codec *codec) codec 3154 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc282_coefs); codec 3157 sound/pci/hda/patch_realtek.c static void alc282_init(struct hda_codec *codec) codec 3159 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3164 sound/pci/hda/patch_realtek.c alc282_restore_default_value(codec); codec 3168 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3169 sound/pci/hda/patch_realtek.c coef78 = alc_read_coef_idx(codec, 0x78); codec 3173 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x78, 0x9004); codec 3178 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3184 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3191 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x78, coef78); codec 3194 sound/pci/hda/patch_realtek.c static void alc282_shutup(struct hda_codec *codec) codec 3196 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3202 sound/pci/hda/patch_realtek.c alc269_shutup(codec); codec 3206 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3207 sound/pci/hda/patch_realtek.c coef78 = alc_read_coef_idx(codec, 0x78); codec 3208 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x78, 0x9004); codec 3213 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3220 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3226 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 3227 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3228 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x78, coef78); codec 3268 sound/pci/hda/patch_realtek.c static void alc283_restore_default_value(struct hda_codec *codec) codec 3270 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc283_coefs); codec 3273 sound/pci/hda/patch_realtek.c static void alc283_init(struct hda_codec *codec) codec 3275 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3279 sound/pci/hda/patch_realtek.c alc283_restore_default_value(codec); codec 3285 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3289 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x43, 0x9004); codec 3291 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3297 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3304 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x46, 3 << 12, 0); codec 3306 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x43, 0x9614); codec 3309 sound/pci/hda/patch_realtek.c static void alc283_shutup(struct hda_codec *codec) codec 3311 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3316 sound/pci/hda/patch_realtek.c alc269_shutup(codec); codec 3320 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3322 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x43, 0x9004); codec 3325 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x06, 0x2100); codec 3327 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3334 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3337 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x46, 0, 3 << 12); codec 3341 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 3342 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3343 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x43, 0x9614); codec 3346 sound/pci/hda/patch_realtek.c static void alc256_init(struct hda_codec *codec) codec 3348 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3357 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3362 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ codec 3364 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x03, 1<<1, 1<<1); codec 3365 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 3<<2, 3<<2); codec 3366 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 7<<4, 0); codec 3367 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x3b, 1<<15, 0); codec 3368 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x0e, 7<<6, 7<<6); codec 3372 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3378 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3384 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x46, 3 << 12, 0); codec 3385 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ codec 3386 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */ codec 3387 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15); codec 3394 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x36, 0x5757); codec 3397 sound/pci/hda/patch_realtek.c static void alc256_shutup(struct hda_codec *codec) codec 3399 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3406 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3411 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3419 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x46, 0, 3 << 12); codec 3422 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3428 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 3429 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3432 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x03, 1<<1, 0); codec 3433 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 7<<4, 7<<4); codec 3434 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 3<<2, 0); codec 3435 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x3b, 1<<15, 1<<15); codec 3436 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x0e, 7<<6, 0); codec 3441 sound/pci/hda/patch_realtek.c static void alc225_init(struct hda_codec *codec) codec 3443 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3451 sound/pci/hda/patch_realtek.c hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3452 sound/pci/hda/patch_realtek.c hp2_pin_sense = snd_hda_jack_detect(codec, 0x16); codec 3457 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ codec 3459 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 0x0f << 2, 3<<2); codec 3460 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x0e, 7<<6, 7<<6); codec 3461 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x33, 1<<11, 0); codec 3466 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3469 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x16, 0, codec 3476 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3479 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x16, 0, codec 3485 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 3 << 10, 0); codec 3486 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ codec 3489 sound/pci/hda/patch_realtek.c static void alc225_shutup(struct hda_codec *codec) codec 3491 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3498 sound/pci/hda/patch_realtek.c alc_disable_headset_jack_key(codec); codec 3500 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 0, 3 << 10); codec 3502 sound/pci/hda/patch_realtek.c hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3503 sound/pci/hda/patch_realtek.c hp2_pin_sense = snd_hda_jack_detect(codec, 0x16); codec 3509 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3512 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x16, 0, codec 3519 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3522 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x16, 0, codec 3528 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 3529 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3532 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x08, 0x0f << 2, 0x0c << 2); codec 3533 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x0e, 7<<6, 0); codec 3534 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x33, 1<<11, 1<<11); codec 3535 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 3<<4, 2<<4); codec 3539 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 3 << 10, 0); codec 3540 sound/pci/hda/patch_realtek.c alc_enable_headset_jack_key(codec); codec 3543 sound/pci/hda/patch_realtek.c static void alc_default_init(struct hda_codec *codec) codec 3545 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3554 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3559 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3565 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3572 sound/pci/hda/patch_realtek.c static void alc_default_shutup(struct hda_codec *codec) codec 3574 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3579 sound/pci/hda/patch_realtek.c alc269_shutup(codec); codec 3583 sound/pci/hda/patch_realtek.c hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); codec 3588 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3595 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3601 sound/pci/hda/patch_realtek.c alc_auto_setup_eapd(codec, false); codec 3602 sound/pci/hda/patch_realtek.c alc_shutup_pins(codec); codec 3605 sound/pci/hda/patch_realtek.c static void alc294_hp_init(struct hda_codec *codec) codec 3607 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3614 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3620 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 3623 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x6f, 0x000f, 0);/* Set HP depop to manual mode */ codec 3624 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x58, 0x00, 0x8000, 0x8000); /* HP depop procedure start */ codec 3627 sound/pci/hda/patch_realtek.c val = alc_read_coefex_idx(codec, 0x58, 0x01); codec 3630 sound/pci/hda/patch_realtek.c val = alc_read_coefex_idx(codec, 0x58, 0x01); codec 3633 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x6f, 0x000f, 0x000b); codec 3637 sound/pci/hda/patch_realtek.c static void alc294_init(struct hda_codec *codec) codec 3639 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3643 sound/pci/hda/patch_realtek.c codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) { codec 3644 sound/pci/hda/patch_realtek.c alc294_hp_init(codec); codec 3647 sound/pci/hda/patch_realtek.c alc_default_init(codec); codec 3650 sound/pci/hda/patch_realtek.c static void alc5505_coef_set(struct hda_codec *codec, unsigned int index_reg, codec 3653 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_COEF_INDEX, index_reg >> 1); codec 3654 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_PROC_COEF, val & 0xffff); /* LSB */ codec 3655 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_PROC_COEF, val >> 16); /* MSB */ codec 3658 sound/pci/hda/patch_realtek.c static int alc5505_coef_get(struct hda_codec *codec, unsigned int index_reg) codec 3662 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_COEF_INDEX, index_reg >> 1); codec 3663 sound/pci/hda/patch_realtek.c val = snd_hda_codec_read(codec, 0x51, 0, AC_VERB_GET_PROC_COEF, 0) codec 3665 sound/pci/hda/patch_realtek.c val |= snd_hda_codec_read(codec, 0x51, 0, AC_VERB_GET_PROC_COEF, 0) codec 3670 sound/pci/hda/patch_realtek.c static void alc5505_dsp_halt(struct hda_codec *codec) codec 3674 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x3000, 0x000c); /* DSP CPU stop */ codec 3675 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x880c, 0x0008); /* DDR enter self refresh */ codec 3676 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61c0, 0x11110080); /* Clock control for PLL and CPU */ codec 3677 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6230, 0xfc0d4011); /* Disable Input OP */ codec 3678 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b4, 0x040a2b03); /* Stop PLL2 */ codec 3679 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b0, 0x00005b17); /* Stop PLL1 */ codec 3680 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x04133303); /* Stop PLL3 */ codec 3681 sound/pci/hda/patch_realtek.c val = alc5505_coef_get(codec, 0x6220); codec 3682 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6220, (val | 0x3000)); /* switch Ringbuffer clock to DBUS clock */ codec 3685 sound/pci/hda/patch_realtek.c static void alc5505_dsp_back_from_halt(struct hda_codec *codec) codec 3687 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x04133302); codec 3688 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b0, 0x00005b16); codec 3689 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b4, 0x040a2b02); codec 3690 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6230, 0xf80d4011); codec 3691 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6220, 0x2002010f); codec 3692 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x880c, 0x00000004); codec 3695 sound/pci/hda/patch_realtek.c static void alc5505_dsp_init(struct hda_codec *codec) codec 3699 sound/pci/hda/patch_realtek.c alc5505_dsp_halt(codec); codec 3700 sound/pci/hda/patch_realtek.c alc5505_dsp_back_from_halt(codec); codec 3701 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b0, 0x5b14); /* PLL1 control */ codec 3702 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b0, 0x5b16); codec 3703 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b4, 0x04132b00); /* PLL2 control */ codec 3704 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b4, 0x04132b02); codec 3705 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x041f3300); /* PLL3 control*/ codec 3706 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x041f3302); codec 3707 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x51, 0, AC_VERB_SET_CODEC_RESET, 0); /* Function reset */ codec 3708 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x041b3302); codec 3709 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x04173302); codec 3710 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b8, 0x04163302); codec 3711 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x8800, 0x348b328b); /* DRAM control */ codec 3712 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x8808, 0x00020022); /* DRAM control */ codec 3713 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x8818, 0x00000400); /* DRAM control */ codec 3715 sound/pci/hda/patch_realtek.c val = alc5505_coef_get(codec, 0x6200) >> 16; /* Read revision ID */ codec 3717 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6220, 0x2002010f); /* I/O PAD Configuration */ codec 3719 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x6220, 0x6002018f); codec 3721 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61ac, 0x055525f0); /**/ codec 3722 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61c0, 0x12230080); /* Clock control */ codec 3723 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61b4, 0x040e2b02); /* PLL2 control */ codec 3724 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x61bc, 0x010234f8); /* OSC Control */ codec 3725 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x880c, 0x00000004); /* DRAM Function control */ codec 3726 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x880c, 0x00000003); codec 3727 sound/pci/hda/patch_realtek.c alc5505_coef_set(codec, 0x880c, 0x00000010); codec 3730 sound/pci/hda/patch_realtek.c alc5505_dsp_halt(codec); codec 3735 sound/pci/hda/patch_realtek.c #define alc5505_dsp_suspend(codec) do { } while (0) /* NOP */ codec 3736 sound/pci/hda/patch_realtek.c #define alc5505_dsp_resume(codec) do { } while (0) /* NOP */ codec 3738 sound/pci/hda/patch_realtek.c #define alc5505_dsp_suspend(codec) alc5505_dsp_halt(codec) codec 3739 sound/pci/hda/patch_realtek.c #define alc5505_dsp_resume(codec) alc5505_dsp_back_from_halt(codec) codec 3743 sound/pci/hda/patch_realtek.c static int alc269_suspend(struct hda_codec *codec) codec 3745 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3748 sound/pci/hda/patch_realtek.c alc5505_dsp_suspend(codec); codec 3749 sound/pci/hda/patch_realtek.c return alc_suspend(codec); codec 3752 sound/pci/hda/patch_realtek.c static int alc269_resume(struct hda_codec *codec) codec 3754 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3757 sound/pci/hda/patch_realtek.c alc269vb_toggle_power_output(codec, 0); codec 3759 sound/pci/hda/patch_realtek.c (alc_get_coef0(codec) & 0x00ff) == 0x018) { codec 3763 sound/pci/hda/patch_realtek.c codec->patch_ops.init(codec); codec 3766 sound/pci/hda/patch_realtek.c alc269vb_toggle_power_output(codec, 1); codec 3768 sound/pci/hda/patch_realtek.c (alc_get_coef0(codec) & 0x00ff) == 0x017) { codec 3772 sound/pci/hda/patch_realtek.c snd_hda_regmap_sync(codec); codec 3773 sound/pci/hda/patch_realtek.c hda_call_check_power_status(codec, 0x01); codec 3780 sound/pci/hda/patch_realtek.c alc_write_gpio_data(codec); codec 3783 sound/pci/hda/patch_realtek.c alc5505_dsp_resume(codec); codec 3789 sound/pci/hda/patch_realtek.c static void alc269_fixup_pincfg_no_hp_to_lineout(struct hda_codec *codec, codec 3792 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3798 sound/pci/hda/patch_realtek.c static void alc269_fixup_pincfg_U7x7_headset_mic(struct hda_codec *codec, codec 3802 sound/pci/hda/patch_realtek.c unsigned int cfg_headphone = snd_hda_codec_get_pincfg(codec, 0x21); codec 3803 sound/pci/hda/patch_realtek.c unsigned int cfg_headset_mic = snd_hda_codec_get_pincfg(codec, 0x19); codec 3806 sound/pci/hda/patch_realtek.c snd_hda_codec_set_pincfg(codec, 0x19, codec 3811 sound/pci/hda/patch_realtek.c static void alc269_fixup_hweq(struct hda_codec *codec, codec 3815 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x1e, 0, 0x80); codec 3818 sound/pci/hda/patch_realtek.c static void alc269_fixup_headset_mic(struct hda_codec *codec, codec 3821 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3827 sound/pci/hda/patch_realtek.c static void alc271_fixup_dmic(struct hda_codec *codec, codec 3837 sound/pci/hda/patch_realtek.c if (strcmp(codec->core.chip_name, "ALC271X") && codec 3838 sound/pci/hda/patch_realtek.c strcmp(codec->core.chip_name, "ALC269VB")) codec 3840 sound/pci/hda/patch_realtek.c cfg = snd_hda_codec_get_pincfg(codec, 0x12); codec 3842 sound/pci/hda/patch_realtek.c snd_hda_sequence_write(codec, verbs); codec 3845 sound/pci/hda/patch_realtek.c static void alc269_fixup_pcm_44k(struct hda_codec *codec, codec 3848 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3860 sound/pci/hda/patch_realtek.c static void alc269_fixup_stereo_dmic(struct hda_codec *codec, codec 3869 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x07, 0, 0x80); codec 3872 sound/pci/hda/patch_realtek.c static void alc269_quanta_automute(struct hda_codec *codec) codec 3874 sound/pci/hda/patch_realtek.c snd_hda_gen_update_outputs(codec); codec 3876 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x0c, 0x680); codec 3877 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x0c, 0x480); codec 3880 sound/pci/hda/patch_realtek.c static void alc269_fixup_quanta_mute(struct hda_codec *codec, codec 3883 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3889 sound/pci/hda/patch_realtek.c static void alc269_x101_hp_automute_hook(struct hda_codec *codec, codec 3892 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3895 sound/pci/hda/patch_realtek.c snd_hda_gen_hp_automute(codec, jack); codec 3899 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x18, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, codec 3902 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x18, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, codec 3914 sound/pci/hda/patch_realtek.c static void alc298_huawei_mbx_stereo_seq(struct hda_codec *codec, codec 3918 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x0); codec 3919 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x26, 0xb000); codec 3922 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, AC_VERB_GET_PIN_SENSE, 0x0); codec 3924 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x6, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x80); codec 3925 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x26, 0xf000); codec 3926 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x23, initval->value_0x23); codec 3929 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x25, initval->value_0x25); codec 3931 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_COEF_INDEX, 0x26); codec 3932 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_PROC_COEF, 0xb010); codec 3935 sound/pci/hda/patch_realtek.c static void alc298_fixup_huawei_mbx_stereo(struct hda_codec *codec, codec 3959 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x00); codec 3960 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x06, 0, AC_VERB_SET_DIGI_CONVERT_3, 0x80); codec 3961 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x26, 0xf000); codec 3962 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x22, 0x31); codec 3963 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x23, 0x0b); codec 3964 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x25, 0x00); codec 3965 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_COEF_INDEX, 0x26); codec 3966 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_PROC_COEF, 0xb010); codec 3969 sound/pci/hda/patch_realtek.c alc298_huawei_mbx_stereo_seq(codec, seq, seq == dac_init); codec 3972 sound/pci/hda/patch_realtek.c static void alc269_fixup_x101_headset_mic(struct hda_codec *codec, codec 3975 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3986 sound/pci/hda/patch_realtek.c struct hda_codec *codec = private_data; codec 3987 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 3992 sound/pci/hda/patch_realtek.c pinval = snd_hda_codec_get_pin_target(codec, spec->mute_led_nid); codec 3997 sound/pci/hda/patch_realtek.c snd_hda_power_up_pm(codec); codec 3998 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, spec->mute_led_nid, pinval); codec 3999 sound/pci/hda/patch_realtek.c snd_hda_power_down_pm(codec); codec 4004 sound/pci/hda/patch_realtek.c static unsigned int led_power_filter(struct hda_codec *codec, codec 4008 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4015 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl(codec, nid, codec 4016 sound/pci/hda/patch_realtek.c snd_hda_codec_get_pin_target(codec, nid)); codec 4018 sound/pci/hda/patch_realtek.c return snd_hda_gen_path_power_filter(codec, nid, power_state); codec 4021 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_mute_led(struct hda_codec *codec, codec 4024 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4040 sound/pci/hda/patch_realtek.c codec->power_filter = led_power_filter; codec 4041 sound/pci/hda/patch_realtek.c codec_dbg(codec, codec 4048 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_mute_led_micx(struct hda_codec *codec, codec 4052 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4059 sound/pci/hda/patch_realtek.c codec->power_filter = led_power_filter; codec 4063 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_mute_led_mic1(struct hda_codec *codec, codec 4066 sound/pci/hda/patch_realtek.c alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x18); codec 4069 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_mute_led_mic2(struct hda_codec *codec, codec 4072 sound/pci/hda/patch_realtek.c alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x19); codec 4075 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_mute_led_mic3(struct hda_codec *codec, codec 4078 sound/pci/hda/patch_realtek.c alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1b); codec 4082 sound/pci/hda/patch_realtek.c static void alc_update_gpio_led(struct hda_codec *codec, unsigned int mask, codec 4085 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4089 sound/pci/hda/patch_realtek.c alc_update_gpio_data(codec, mask, !enabled); /* muted -> LED on */ codec 4095 sound/pci/hda/patch_realtek.c struct hda_codec *codec = private_data; codec 4096 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4098 sound/pci/hda/patch_realtek.c alc_update_gpio_led(codec, spec->gpio_mute_led_mask, enabled); codec 4102 sound/pci/hda/patch_realtek.c static void alc_gpio_micmute_update(struct hda_codec *codec) codec 4104 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4106 sound/pci/hda/patch_realtek.c alc_update_gpio_led(codec, spec->gpio_mic_led_mask, codec 4111 sound/pci/hda/patch_realtek.c static void alc_fixup_hp_gpio_led(struct hda_codec *codec, codec 4116 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4118 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, mute_mask | micmute_mask); codec 4128 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_gpio_micmute_update); codec 4132 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_gpio_led(struct hda_codec *codec, codec 4135 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10); codec 4138 sound/pci/hda/patch_realtek.c static void alc285_fixup_hp_gpio_led(struct hda_codec *codec, codec 4141 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x04, 0x00); codec 4144 sound/pci/hda/patch_realtek.c static void alc286_fixup_hp_gpio_led(struct hda_codec *codec, codec 4147 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x02, 0x20); codec 4151 sound/pci/hda/patch_realtek.c static void alc_cap_micmute_update(struct hda_codec *codec) codec 4153 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4158 sound/pci/hda/patch_realtek.c pinval = snd_hda_codec_get_pin_target(codec, spec->cap_mute_led_nid); codec 4164 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, spec->cap_mute_led_nid, pinval); codec 4167 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_gpio_mic1_led(struct hda_codec *codec, codec 4170 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4172 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x08, 0); codec 4180 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_cap_micmute_update); codec 4181 sound/pci/hda/patch_realtek.c codec->power_filter = led_power_filter; codec 4185 sound/pci/hda/patch_realtek.c static void alc280_fixup_hp_gpio4(struct hda_codec *codec, codec 4188 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4190 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x08, 0); codec 4193 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_cap_micmute_update); codec 4194 sound/pci/hda/patch_realtek.c codec->power_filter = led_power_filter; codec 4201 sound/pci/hda/patch_realtek.c struct hda_codec *codec = private_data; codec 4202 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4208 sound/pci/hda/patch_realtek.c enabled ? alc_update_coef_idx(codec, spec->mute_led_coef_idx, codec 4210 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, spec->mute_led_coef_idx, codec 4214 sound/pci/hda/patch_realtek.c static void alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec, codec 4218 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4231 sound/pci/hda/patch_realtek.c static void alc236_fixup_hp_mute_led_coefbit(struct hda_codec *codec, codec 4235 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4249 sound/pci/hda/patch_realtek.c static void alc_hp_cap_micmute_update(struct hda_codec *codec) codec 4251 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4254 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, spec->mic_led_coef_idx, codec 4257 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, spec->mic_led_coef_idx, codec 4261 sound/pci/hda/patch_realtek.c static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, codec 4264 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4271 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_hp_cap_micmute_update); codec 4275 sound/pci/hda/patch_realtek.c static void alc236_fixup_hp_coef_micmute_led(struct hda_codec *codec, codec 4278 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4285 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_hp_cap_micmute_update); codec 4289 sound/pci/hda/patch_realtek.c static void alc285_fixup_hp_mute_led(struct hda_codec *codec, codec 4292 sound/pci/hda/patch_realtek.c alc285_fixup_hp_mute_led_coefbit(codec, fix, action); codec 4293 sound/pci/hda/patch_realtek.c alc285_fixup_hp_coef_micmute_led(codec, fix, action); codec 4296 sound/pci/hda/patch_realtek.c static void alc236_fixup_hp_mute_led(struct hda_codec *codec, codec 4299 sound/pci/hda/patch_realtek.c alc236_fixup_hp_mute_led_coefbit(codec, fix, action); codec 4300 sound/pci/hda/patch_realtek.c alc236_fixup_hp_coef_micmute_led(codec, fix, action); codec 4304 sound/pci/hda/patch_realtek.c static void gpio2_mic_hotkey_event(struct hda_codec *codec, codec 4307 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4317 sound/pci/hda/patch_realtek.c static int alc_register_micmute_input_device(struct hda_codec *codec) codec 4319 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4324 sound/pci/hda/patch_realtek.c codec_err(codec, "Out of memory (input_allocate_device)\n"); codec 4339 sound/pci/hda/patch_realtek.c codec_err(codec, "input_register_device failed\n"); codec 4353 sound/pci/hda/patch_realtek.c static void alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec *codec, codec 4356 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4358 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10); codec 4361 sound/pci/hda/patch_realtek.c if (alc_register_micmute_input_device(codec) != 0) codec 4367 sound/pci/hda/patch_realtek.c snd_hda_codec_write_cache(codec, codec->core.afg, 0, codec 4369 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, codec->core.afg, codec 4387 sound/pci/hda/patch_realtek.c static void alc233_fixup_lenovo_line2_mic_hotkey(struct hda_codec *codec, codec 4390 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4392 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0, 0x04); codec 4395 sound/pci/hda/patch_realtek.c if (alc_register_micmute_input_device(codec) != 0) codec 4398 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x1b, codec 4417 sound/pci/hda/patch_realtek.c static void alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec, codec 4420 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 4422 sound/pci/hda/patch_realtek.c alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1a); codec 4425 sound/pci/hda/patch_realtek.c snd_hda_gen_add_micmute_led(codec, alc_cap_micmute_update); codec 4440 sound/pci/hda/patch_realtek.c static void alc_headset_mode_unplugged(struct hda_codec *codec) codec 4516 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 4518 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 4522 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0256); codec 4527 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0274); codec 4531 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0233); codec 4535 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 4538 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0298); codec 4539 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 4542 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0292); codec 4545 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 4548 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0668); codec 4556 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc225_pre_hsmode); codec 4557 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225); codec 4560 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); codec 4563 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack set to unplugged mode.\n"); codec 4567 sound/pci/hda/patch_realtek.c static void alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin, codec 4627 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 4629 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xc489); codec 4630 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4631 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 4632 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4636 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xc489); codec 4637 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4638 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0256); codec 4639 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4644 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0x4689); codec 4645 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4646 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0274); codec 4647 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4651 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xc429); codec 4652 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4653 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0233); codec 4654 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4659 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4660 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 4661 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4664 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4665 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0292); codec 4669 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xc429); codec 4670 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4671 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 4672 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4675 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x5, 0, 1<<14); codec 4679 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4680 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4683 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x11, 0x0001); codec 4684 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4685 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0688); codec 4686 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4694 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc225_pre_hsmode); codec 4695 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x31<<10); codec 4696 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); codec 4697 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225); codec 4698 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50); codec 4701 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack set to mic-in mode.\n"); codec 4704 sound/pci/hda/patch_realtek.c static void alc_headset_mode_default(struct hda_codec *codec) codec 4770 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 4777 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc225_pre_hsmode); codec 4778 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225); codec 4781 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 4785 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x1b, 0x0e4b); codec 4786 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xc089); codec 4788 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0256); codec 4793 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0274); codec 4797 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0233); codec 4802 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 4805 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0292); codec 4808 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 4811 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0688); codec 4814 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); codec 4817 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack set to headphone (default) mode.\n"); codec 4821 sound/pci/hda/patch_realtek.c static void alc_headset_mode_ctia(struct hda_codec *codec) codec 4877 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 4879 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 4883 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0256); codec 4888 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xd689); codec 4892 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0233); codec 4895 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x50); codec 4897 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0020); codec 4898 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); codec 4901 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010); codec 4902 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); codec 4908 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xd400); codec 4910 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 4913 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0292); codec 4916 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 4919 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0688); codec 4927 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x45); codec 4929 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225_2); codec 4931 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225_1); codec 4934 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); codec 4937 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack set to iPhone-style headset mode.\n"); codec 4941 sound/pci/hda/patch_realtek.c static void alc_headset_mode_omtp(struct hda_codec *codec) codec 4990 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 4992 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 4996 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0256); codec 5001 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xe689); codec 5005 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0233); codec 5008 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010);/* Headset output enable */ codec 5009 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xe400); codec 5014 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4f, 0xfcc0, 0xe400); codec 5016 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 5019 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0292); codec 5022 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 5025 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0688); codec 5033 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0225); codec 5036 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack set to Nokia-style headset mode.\n"); codec 5039 sound/pci/hda/patch_realtek.c static void alc_determine_headset_type(struct hda_codec *codec) codec 5043 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5082 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 5084 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 5086 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5091 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x1b, 0x0e4b); codec 5092 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x06, 0x6104); codec 5093 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, 0x57, 0x3, 0x09a3); codec 5095 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5098 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5101 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0255); codec 5103 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5106 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, 0x57, 0x3, 0x0da3); codec 5107 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0); codec 5109 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5112 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5118 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0274); codec 5120 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5125 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x45, 0xd029); codec 5127 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5131 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5134 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5138 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x50); codec 5140 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0020); codec 5141 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 5143 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x50); codec 5146 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x8e, 0x0070, 0x0010); codec 5147 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 5149 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x50); codec 5152 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0298); codec 5153 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5156 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5161 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0288); codec 5163 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x50); codec 5167 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x6b, 0xd429); codec 5169 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x6c); codec 5173 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0293); codec 5175 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5179 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, coef0688); codec 5181 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0xbe); codec 5190 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5193 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5196 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc225_pre_hsmode); codec 5197 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x67, 0xf000, 0x1000); codec 5198 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x45); codec 5200 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x34<<10); codec 5201 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 3<<8, 2<<8); codec 5203 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5206 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x45, 0x3f<<10, 0x34<<10); codec 5207 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x49, 3<<8, 1<<8); codec 5209 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x46); codec 5212 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 7<<6, 7<<6); codec 5213 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 3<<4, 3<<4); codec 5214 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x67, 0xf000, 0x3000); codec 5216 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5219 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x21, 0, codec 5227 sound/pci/hda/patch_realtek.c codec_dbg(codec, "Headset jack detected iPhone-style headset: %s\n", codec 5232 sound/pci/hda/patch_realtek.c static void alc_update_headset_mode(struct hda_codec *codec) codec 5234 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5241 sound/pci/hda/patch_realtek.c if (!snd_hda_jack_detect(codec, hp_pin)) codec 5251 sound/pci/hda/patch_realtek.c snd_hda_gen_update_outputs(codec); codec 5257 sound/pci/hda/patch_realtek.c alc_headset_mode_unplugged(codec); codec 5264 sound/pci/hda/patch_realtek.c alc_determine_headset_type(codec); codec 5266 sound/pci/hda/patch_realtek.c alc_headset_mode_ctia(codec); codec 5268 sound/pci/hda/patch_realtek.c alc_headset_mode_omtp(codec); codec 5272 sound/pci/hda/patch_realtek.c alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin); codec 5276 sound/pci/hda/patch_realtek.c alc_headset_mode_default(codec); codec 5281 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, hp_pin, codec 5284 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, spec->headphone_mic_pin, codec 5289 sound/pci/hda/patch_realtek.c snd_hda_gen_update_outputs(codec); codec 5292 sound/pci/hda/patch_realtek.c static void alc_update_headset_mode_hook(struct hda_codec *codec, codec 5296 sound/pci/hda/patch_realtek.c alc_update_headset_mode(codec); codec 5299 sound/pci/hda/patch_realtek.c static void alc_update_headset_jack_cb(struct hda_codec *codec, codec 5302 sound/pci/hda/patch_realtek.c snd_hda_gen_hp_automute(codec, jack); codec 5305 sound/pci/hda/patch_realtek.c static void alc_probe_headset_mode(struct hda_codec *codec) codec 5308 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5325 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode(struct hda_codec *codec, codec 5328 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5335 sound/pci/hda/patch_realtek.c alc_probe_headset_mode(codec); codec 5338 sound/pci/hda/patch_realtek.c if (is_s3_resume(codec) || is_s4_resume(codec)) { codec 5342 sound/pci/hda/patch_realtek.c alc_update_headset_mode(codec); codec 5347 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec, codec 5351 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5355 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5358 sound/pci/hda/patch_realtek.c static void alc255_set_default_jack_type(struct hda_codec *codec) codec 5377 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 5379 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc255fw); codec 5383 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc256fw); codec 5389 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_alc255(struct hda_codec *codec, codec 5393 sound/pci/hda/patch_realtek.c alc255_set_default_jack_type(codec); codec 5395 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5398 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec, codec 5402 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5404 sound/pci/hda/patch_realtek.c alc255_set_default_jack_type(codec); codec 5407 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5410 sound/pci/hda/patch_realtek.c static void alc288_update_headset_jack_cb(struct hda_codec *codec, codec 5413 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5415 sound/pci/hda/patch_realtek.c alc_update_headset_jack_cb(codec, jack); codec 5417 sound/pci/hda/patch_realtek.c alc_update_gpio_data(codec, 0x40, spec->gen.hp_jack_present); codec 5420 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_dell_alc288(struct hda_codec *codec, codec 5423 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5425 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5433 sound/pci/hda/patch_realtek.c static void alc_fixup_auto_mute_via_amp(struct hda_codec *codec, codec 5437 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5442 sound/pci/hda/patch_realtek.c static void alc_fixup_no_shutup(struct hda_codec *codec, codec 5446 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5451 sound/pci/hda/patch_realtek.c static void alc_fixup_disable_aamix(struct hda_codec *codec, codec 5455 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5462 sound/pci/hda/patch_realtek.c static void alc_fixup_tpt440_dock(struct hda_codec *codec, codec 5470 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5475 sound/pci/hda/patch_realtek.c codec->power_save_node = 0; /* avoid click noises */ codec 5476 sound/pci/hda/patch_realtek.c snd_hda_apply_pincfgs(codec, pincfgs); codec 5480 sound/pci/hda/patch_realtek.c static void alc_fixup_tpt470_dock(struct hda_codec *codec, codec 5488 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5492 sound/pci/hda/patch_realtek.c snd_hda_apply_pincfgs(codec, pincfgs); codec 5495 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x17, 0, codec 5498 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x19, 0, codec 5503 sound/pci/hda/patch_realtek.c static void alc_fixup_tpt470_dacs(struct hda_codec *codec, codec 5514 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5520 sound/pci/hda/patch_realtek.c static void alc_shutup_dell_xps13(struct hda_codec *codec) codec 5522 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5526 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, hp_pin, 0, codec 5531 sound/pci/hda/patch_realtek.c static void alc_fixup_dell_xps13(struct hda_codec *codec, codec 5534 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5543 sound/pci/hda/patch_realtek.c snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); codec 5558 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_alc662(struct hda_codec *codec, codec 5561 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5569 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_AMP_GAIN_MUTE, 0x7000); codec 5570 sound/pci/hda/patch_realtek.c snd_hda_override_wcaps(codec, 0x1b, get_wcaps(codec, 0x1b) & ~AC_WCAP_IN_AMP); codec 5572 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5575 sound/pci/hda/patch_realtek.c static void alc_fixup_headset_mode_alc668(struct hda_codec *codec, codec 5579 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xc4, 0x8000); codec 5580 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0xc2, ~0xfe, 0); codec 5581 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, 0x18, 0); codec 5583 sound/pci/hda/patch_realtek.c alc_fixup_headset_mode(codec, fix, action); codec 5587 sound/pci/hda/patch_realtek.c static int find_ext_mic_pin(struct hda_codec *codec) codec 5589 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5599 sound/pci/hda/patch_realtek.c defcfg = snd_hda_codec_get_pincfg(codec, nid); codec 5608 sound/pci/hda/patch_realtek.c static void alc271_hp_gate_mic_jack(struct hda_codec *codec, codec 5612 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5615 sound/pci/hda/patch_realtek.c int mic_pin = find_ext_mic_pin(codec); codec 5620 sound/pci/hda/patch_realtek.c snd_hda_jack_set_gating_jack(codec, mic_pin, hp_pin); codec 5624 sound/pci/hda/patch_realtek.c static void alc269_fixup_limit_int_mic_boost(struct hda_codec *codec, codec 5628 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5644 sound/pci/hda/patch_realtek.c defcfg = snd_hda_codec_get_pincfg(codec, nid); codec 5648 sound/pci/hda/patch_realtek.c snd_hda_override_amp_caps(codec, nid, HDA_INPUT, codec 5656 sound/pci/hda/patch_realtek.c static void alc283_hp_automute_hook(struct hda_codec *codec, codec 5659 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5663 sound/pci/hda/patch_realtek.c snd_hda_gen_hp_automute(codec, jack); codec 5668 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, codec 5672 sound/pci/hda/patch_realtek.c static void alc283_fixup_chromebook(struct hda_codec *codec, codec 5675 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5679 sound/pci/hda/patch_realtek.c snd_hda_override_wcaps(codec, 0x03, 0); codec 5686 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x06, 0x000c, 0); codec 5688 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x1a, 0, 1 << 4); codec 5693 sound/pci/hda/patch_realtek.c static void alc283_fixup_sense_combo_jack(struct hda_codec *codec, codec 5696 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5705 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x06, 0x000c, 0); codec 5711 sound/pci/hda/patch_realtek.c static void asus_tx300_automute(struct hda_codec *codec) codec 5713 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5714 sound/pci/hda/patch_realtek.c snd_hda_gen_update_outputs(codec); codec 5715 sound/pci/hda/patch_realtek.c if (snd_hda_jack_detect(codec, 0x1b)) codec 5719 sound/pci/hda/patch_realtek.c static void alc282_fixup_asus_tx300(struct hda_codec *codec, codec 5722 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5732 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x04); codec 5733 sound/pci/hda/patch_realtek.c snd_hda_apply_pincfgs(codec, dock_pins); codec 5736 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x1b, codec 5746 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Speaker Playback Switch", codec 5748 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Bass Speaker Playback Switch", codec 5754 sound/pci/hda/patch_realtek.c static void alc290_fixup_mono_speakers(struct hda_codec *codec, codec 5762 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x14, ARRAY_SIZE(conn1), conn1); codec 5763 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x15, ARRAY_SIZE(conn1), conn1); codec 5767 sound/pci/hda/patch_realtek.c static void alc298_fixup_speaker_volume(struct hda_codec *codec, codec 5779 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn1), conn1); codec 5784 sound/pci/hda/patch_realtek.c static void alc295_fixup_disable_dac3(struct hda_codec *codec, codec 5789 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); codec 5794 sound/pci/hda/patch_realtek.c static void alc285_fixup_speaker2_to_dac1(struct hda_codec *codec, codec 5799 sound/pci/hda/patch_realtek.c snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn); codec 5804 sound/pci/hda/patch_realtek.c static void alc280_hp_gpio4_automute_hook(struct hda_codec *codec, codec 5807 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5809 sound/pci/hda/patch_realtek.c snd_hda_gen_hp_automute(codec, jack); codec 5811 sound/pci/hda/patch_realtek.c alc_update_gpio_led(codec, 0x10, !spec->gen.hp_jack_present); codec 5820 sound/pci/hda/patch_realtek.c static void alc280_fixup_hp_9480m(struct hda_codec *codec, codec 5824 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5826 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x08, 0); codec 5835 sound/pci/hda/patch_realtek.c static void alc275_fixup_gpio4_off(struct hda_codec *codec, codec 5839 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5848 sound/pci/hda/patch_realtek.c static void alc233_alc662_fixup_lenovo_dual_codecs(struct hda_codec *codec, codec 5852 sound/pci/hda/patch_realtek.c alc_fixup_dual_codecs(codec, fix, action); codec 5856 sound/pci/hda/patch_realtek.c strcpy(codec->card->longname, "HDAudio-Lenovo-DualCodecs"); codec 5860 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Capture Volume", codec 5861 sound/pci/hda/patch_realtek.c codec->addr == 0 ? codec 5864 sound/pci/hda/patch_realtek.c rename_ctl(codec, "Capture Switch", codec 5865 sound/pci/hda/patch_realtek.c codec->addr == 0 ? codec 5872 sound/pci/hda/patch_realtek.c static void alc225_fixup_s3_pop_noise(struct hda_codec *codec, codec 5878 sound/pci/hda/patch_realtek.c codec->power_save_node = 1; codec 5882 sound/pci/hda/patch_realtek.c static void alc274_fixup_bind_dacs(struct hda_codec *codec, codec 5885 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5896 sound/pci/hda/patch_realtek.c codec->power_save_node = 0; codec 5900 sound/pci/hda/patch_realtek.c static void alc285_fixup_invalidate_dacs(struct hda_codec *codec, codec 5906 sound/pci/hda/patch_realtek.c snd_hda_override_wcaps(codec, 0x03, 0); codec 5909 sound/pci/hda/patch_realtek.c static void alc295_fixup_chromebook(struct hda_codec *codec, codec 5912 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 5919 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 5921 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 0x8000, 1 << 15); /* Reset HP JD */ codec 5922 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 0x8000, 0 << 15); codec 5925 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x1b, 0x8000, 1 << 15); /* Reset HP JD */ codec 5926 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x1b, 0x8000, 0 << 15); codec 5933 sound/pci/hda/patch_realtek.c static void alc_fixup_disable_mic_vref(struct hda_codec *codec, codec 5937 sound/pci/hda/patch_realtek.c snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); codec 5943 sound/pci/hda/patch_realtek.c static void alc_fixup_thinkpad_acpi(struct hda_codec *codec, codec 5946 sound/pci/hda/patch_realtek.c alc_fixup_no_shutup(codec, fix, action); /* reduce click noise */ codec 5947 sound/pci/hda/patch_realtek.c hda_fixup_thinkpad_acpi(codec, fix, action); codec 8187 sound/pci/hda/patch_realtek.c static void alc269_fill_coef(struct hda_codec *codec) codec 8189 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8195 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & 0x00ff) < 0x015) { codec 8196 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xf, 0x960b); codec 8197 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xe, 0x8817); codec 8200 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & 0x00ff) == 0x016) { codec 8201 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xf, 0x960b); codec 8202 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xe, 0x8814); codec 8205 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & 0x00ff) == 0x017) { codec 8207 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x04, 0, 1<<11); codec 8210 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & 0x00ff) == 0x018) { codec 8211 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0xd); codec 8214 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0xd, val | (1<<10)); codec 8216 sound/pci/hda/patch_realtek.c val = alc_read_coef_idx(codec, 0x17); codec 8219 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x17, val | (1<<7)); codec 8224 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4, 0, 1<<11); codec 8229 sound/pci/hda/patch_realtek.c static int patch_alc269(struct hda_codec *codec) codec 8234 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 8238 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 8240 sound/pci/hda/patch_realtek.c codec->power_save_node = 0; codec 8243 sound/pci/hda/patch_realtek.c codec->patch_ops.suspend = alc269_suspend; codec 8244 sound/pci/hda/patch_realtek.c codec->patch_ops.resume = alc269_resume; codec 8249 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 8252 sound/pci/hda/patch_realtek.c switch (alc_get_coef0(codec) & 0x00f0) { codec 8254 sound/pci/hda/patch_realtek.c if (codec->bus->pci && codec 8255 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_vendor == 0x1025 && codec 8257 sound/pci/hda/patch_realtek.c err = alc_codec_rename(codec, "ALC271X"); codec 8261 sound/pci/hda/patch_realtek.c if (codec->bus->pci && codec 8262 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_vendor == 0x17aa && codec 8263 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_device == 0x21f3) codec 8264 sound/pci/hda/patch_realtek.c err = alc_codec_rename(codec, "ALC3202"); codec 8271 sound/pci/hda/patch_realtek.c alc_fix_pll_init(codec, 0x20, 0x04, 15); codec 8277 sound/pci/hda/patch_realtek.c alc269_fill_coef(codec); codec 8351 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x6b, 0x0018, (1<<4) | (1<<3)); /* UAJ MIC Vref control by verb */ codec 8367 sound/pci/hda/patch_realtek.c alc_update_coef_idx(codec, 0x4a, 1 << 15, 0); /* Combo jack auto trigger control */ codec 8373 sound/pci/hda/patch_realtek.c if (snd_hda_codec_read(codec, 0x51, 0, AC_VERB_PARAMETERS, 0) == 0x10ec5505) { codec 8378 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 8380 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc269_fixup_models, codec 8382 sound/pci/hda/patch_realtek.c snd_hda_pick_pin_fixup(codec, alc269_pin_fixup_tbl, alc269_fixups, true); codec 8383 sound/pci/hda/patch_realtek.c snd_hda_pick_pin_fixup(codec, alc269_fallback_pin_fixup_tbl, alc269_fixups, false); codec 8384 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, NULL, alc269_fixup_vendor_tbl, codec 8386 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 8388 sound/pci/hda/patch_realtek.c alc_auto_parse_customize_define(codec); codec 8390 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 8394 sound/pci/hda/patch_realtek.c err = alc269_parse_auto_config(codec); codec 8404 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 8409 sound/pci/hda/patch_realtek.c alc_free(codec); codec 8417 sound/pci/hda/patch_realtek.c static int alc861_parse_auto_config(struct hda_codec *codec) codec 8421 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc861_ignore, alc861_ssids); codec 8434 sound/pci/hda/patch_realtek.c static void alc861_fixup_asus_amp_vref_0f(struct hda_codec *codec, codec 8437 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8442 sound/pci/hda/patch_realtek.c val = snd_hda_codec_get_pin_target(codec, 0x0f); codec 8446 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl(codec, 0x0f, val); codec 8451 sound/pci/hda/patch_realtek.c static void alc_fixup_no_jack_detect(struct hda_codec *codec, codec 8455 sound/pci/hda/patch_realtek.c codec->no_jack_detect = 1; codec 8507 sound/pci/hda/patch_realtek.c static int patch_alc861(struct hda_codec *codec) codec 8512 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x15); codec 8516 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 8517 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 8524 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 8526 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, NULL, alc861_fixup_tbl, alc861_fixups); codec 8527 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 8530 sound/pci/hda/patch_realtek.c err = alc861_parse_auto_config(codec); codec 8540 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 8545 sound/pci/hda/patch_realtek.c alc_free(codec); codec 8556 sound/pci/hda/patch_realtek.c static int alc861vd_parse_auto_config(struct hda_codec *codec) codec 8560 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc861vd_ignore, alc861vd_ssids); codec 8569 sound/pci/hda/patch_realtek.c static void alc861vd_fixup_dallas(struct hda_codec *codec, codec 8573 sound/pci/hda/patch_realtek.c snd_hda_override_pin_caps(codec, 0x18, 0x00000734); codec 8574 sound/pci/hda/patch_realtek.c snd_hda_override_pin_caps(codec, 0x19, 0x0000073c); codec 8579 sound/pci/hda/patch_realtek.c static void alc660vd_fixup_asus_gpio1(struct hda_codec *codec, codec 8582 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8586 sound/pci/hda/patch_realtek.c alc_fixup_gpio(codec, action, 0x01); codec 8609 sound/pci/hda/patch_realtek.c static int patch_alc861vd(struct hda_codec *codec) codec 8614 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 8618 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 8619 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 8624 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 8626 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, NULL, alc861vd_fixup_tbl, alc861vd_fixups); codec 8627 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 8630 sound/pci/hda/patch_realtek.c err = alc861vd_parse_auto_config(codec); codec 8640 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 8645 sound/pci/hda/patch_realtek.c alc_free(codec); codec 8665 sound/pci/hda/patch_realtek.c static int alc662_parse_auto_config(struct hda_codec *codec) codec 8672 sound/pci/hda/patch_realtek.c if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 || codec 8673 sound/pci/hda/patch_realtek.c codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 || codec 8674 sound/pci/hda/patch_realtek.c codec->core.vendor_id == 0x10ec0671) codec 8678 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, alc662_ignore, ssids); codec 8681 sound/pci/hda/patch_realtek.c static void alc272_fixup_mario(struct hda_codec *codec, codec 8686 sound/pci/hda/patch_realtek.c if (snd_hda_override_amp_caps(codec, 0x2, HDA_OUTPUT, codec 8691 sound/pci/hda/patch_realtek.c codec_warn(codec, "failed to override amp caps for NID 0x2\n"); codec 8704 sound/pci/hda/patch_realtek.c static void alc_fixup_bass_chmap(struct hda_codec *codec, codec 8708 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8714 sound/pci/hda/patch_realtek.c static unsigned int gpio_led_power_filter(struct hda_codec *codec, codec 8718 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8719 sound/pci/hda/patch_realtek.c if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) codec 8724 sound/pci/hda/patch_realtek.c static void alc662_fixup_led_gpio1(struct hda_codec *codec, codec 8727 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8729 sound/pci/hda/patch_realtek.c alc_fixup_hp_gpio_led(codec, action, 0x01, 0); codec 8732 sound/pci/hda/patch_realtek.c codec->power_filter = gpio_led_power_filter; codec 8736 sound/pci/hda/patch_realtek.c static void alc662_usi_automute_hook(struct hda_codec *codec, codec 8739 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8742 sound/pci/hda/patch_realtek.c snd_hda_gen_hp_automute(codec, jack); codec 8746 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, codec 8750 sound/pci/hda/patch_realtek.c static void alc662_fixup_usi_headset_mic(struct hda_codec *codec, codec 8753 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8760 sound/pci/hda/patch_realtek.c static void alc662_aspire_ethos_mute_speakers(struct hda_codec *codec, codec 8769 sound/pci/hda/patch_realtek.c if (snd_hda_jack_detect_state(codec, 0x1b) == HDA_JACK_PRESENT) { codec 8770 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, 0x15, 0); codec 8771 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, 0x18, 0); codec 8773 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, 0x15, PIN_OUT); codec 8774 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl_cache(codec, 0x18, PIN_OUT); codec 8778 sound/pci/hda/patch_realtek.c static void alc662_fixup_aspire_ethos_hp(struct hda_codec *codec, codec 8782 sound/pci/hda/patch_realtek.c if (!is_jack_detectable(codec, 0x1b)) codec 8787 sound/pci/hda/patch_realtek.c snd_hda_jack_detect_enable_callback(codec, 0x1b, codec 8790 sound/pci/hda/patch_realtek.c alc_setup_gpio(codec, 0x02); codec 8796 sound/pci/hda/patch_realtek.c alc662_aspire_ethos_mute_speakers(codec, NULL); codec 8801 sound/pci/hda/patch_realtek.c static void alc671_fixup_hp_headset_mic2(struct hda_codec *codec, codec 8804 sound/pci/hda/patch_realtek.c struct alc_spec *spec = codec->spec; codec 8816 sound/pci/hda/patch_realtek.c snd_hda_apply_pincfgs(codec, pincfgs); codec 8819 sound/pci/hda/patch_realtek.c alc_write_coef_idx(codec, 0x19, 0xa054); codec 8848 sound/pci/hda/patch_realtek.c static void alc668_restore_default_value(struct hda_codec *codec) codec 8850 sound/pci/hda/patch_realtek.c alc_process_coef_fw(codec, alc668_coefs); codec 9470 sound/pci/hda/patch_realtek.c static int patch_alc662(struct hda_codec *codec) codec 9475 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0x0b); codec 9479 sound/pci/hda/patch_realtek.c spec = codec->spec; codec 9486 sound/pci/hda/patch_realtek.c alc_fix_pll_init(codec, 0x20, 0x04, 15); codec 9488 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 9494 sound/pci/hda/patch_realtek.c alc_pre_init(codec); codec 9496 sound/pci/hda/patch_realtek.c snd_hda_pick_fixup(codec, alc662_fixup_models, codec 9498 sound/pci/hda/patch_realtek.c snd_hda_pick_pin_fixup(codec, alc662_pin_fixup_tbl, alc662_fixups, true); codec 9499 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 9501 sound/pci/hda/patch_realtek.c alc_auto_parse_customize_define(codec); codec 9503 sound/pci/hda/patch_realtek.c if (has_cdefine_beep(codec)) codec 9506 sound/pci/hda/patch_realtek.c if ((alc_get_coef0(codec) & (1 << 14)) && codec 9507 sound/pci/hda/patch_realtek.c codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && codec 9509 sound/pci/hda/patch_realtek.c err = alc_codec_rename(codec, "ALC272X"); codec 9515 sound/pci/hda/patch_realtek.c err = alc662_parse_auto_config(codec); codec 9520 sound/pci/hda/patch_realtek.c switch (codec->core.vendor_id) { codec 9538 sound/pci/hda/patch_realtek.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 9543 sound/pci/hda/patch_realtek.c alc_free(codec); codec 9551 sound/pci/hda/patch_realtek.c static int alc680_parse_auto_config(struct hda_codec *codec) codec 9553 sound/pci/hda/patch_realtek.c return alc_parse_auto_config(codec, NULL, NULL); codec 9558 sound/pci/hda/patch_realtek.c static int patch_alc680(struct hda_codec *codec) codec 9563 sound/pci/hda/patch_realtek.c err = alc_alloc_spec(codec, 0); codec 9568 sound/pci/hda/patch_realtek.c err = alc680_parse_auto_config(codec); codec 9570 sound/pci/hda/patch_realtek.c alc_free(codec); codec 64 sound/pci/hda/patch_si3054.c #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) codec 65 sound/pci/hda/patch_si3054.c #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) codec 66 sound/pci/hda/patch_si3054.c #define SET_REG_CACHE(codec,reg,val) \ codec 67 sound/pci/hda/patch_si3054.c snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) codec 88 sound/pci/hda/patch_si3054.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 91 sound/pci/hda/patch_si3054.c uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; codec 98 sound/pci/hda/patch_si3054.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 102 sound/pci/hda/patch_si3054.c SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); codec 104 sound/pci/hda/patch_si3054.c SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); codec 125 sound/pci/hda/patch_si3054.c static int si3054_build_controls(struct hda_codec *codec) codec 127 sound/pci/hda/patch_si3054.c return snd_hda_add_new_ctls(codec, si3054_modem_mixer); codec 136 sound/pci/hda/patch_si3054.c struct hda_codec *codec, codec 143 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate); codec 144 sound/pci/hda/patch_si3054.c val = GET_REG(codec, SI3054_LINE_LEVEL); codec 147 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_LEVEL, val); codec 149 sound/pci/hda/patch_si3054.c snd_hda_codec_setup_stream(codec, hinfo->nid, codec 155 sound/pci/hda/patch_si3054.c struct hda_codec *codec, codec 185 sound/pci/hda/patch_si3054.c static int si3054_build_pcms(struct hda_codec *codec) codec 189 sound/pci/hda/patch_si3054.c info = snd_hda_codec_pcm_new(codec, "Si3054 Modem"); codec 194 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; codec 195 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; codec 205 sound/pci/hda/patch_si3054.c static int si3054_init(struct hda_codec *codec) codec 207 sound/pci/hda/patch_si3054.c struct si3054_spec *spec = codec->spec; codec 211 sound/pci/hda/patch_si3054.c if (snd_hdac_regmap_add_vendor_verb(&codec->core, codec 215 sound/pci/hda/patch_si3054.c snd_hda_codec_write(codec, AC_NODE_ROOT, 0, AC_VERB_SET_CODEC_RESET, 0); codec 216 sound/pci/hda/patch_si3054.c snd_hda_codec_write(codec, codec->core.mfg, 0, AC_VERB_SET_STREAM_FORMAT, 0); codec 217 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_RATE, 9600); codec 218 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_LEVEL, SI3054_DTAG_MASK|SI3054_ATAG_MASK); codec 219 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_EXTENDED_MID, 0); codec 224 sound/pci/hda/patch_si3054.c val = GET_REG(codec, SI3054_EXTENDED_MID); codec 228 sound/pci/hda/patch_si3054.c codec_err(codec, "si3054: cannot initialize. EXT MID = %04x\n", val); codec 233 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_GPIO_POLARITY, 0xffff); codec 234 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_GPIO_CFG, 0x0); codec 235 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_MISC_AFE, 0); codec 236 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_CFG1,0x200); codec 238 sound/pci/hda/patch_si3054.c if((GET_REG(codec,SI3054_LINE_STATUS) & (1<<6)) == 0) { codec 239 sound/pci/hda/patch_si3054.c codec_dbg(codec, codec 241 sound/pci/hda/patch_si3054.c GET_REG(codec,SI3054_LINE_STATUS)); codec 244 sound/pci/hda/patch_si3054.c spec->international = GET_REG(codec, SI3054_CHIPID) & SI3054_CHIPID_INTERNATIONAL; codec 249 sound/pci/hda/patch_si3054.c static void si3054_free(struct hda_codec *codec) codec 251 sound/pci/hda/patch_si3054.c kfree(codec->spec); codec 265 sound/pci/hda/patch_si3054.c static int patch_si3054(struct hda_codec *codec) codec 270 sound/pci/hda/patch_si3054.c codec->spec = spec; codec 271 sound/pci/hda/patch_si3054.c codec->patch_ops = si3054_patch_ops; codec 241 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, codec 245 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 251 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, codec 255 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 271 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, hinfo->nid, 0, codec 276 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, hinfo->nid, 0, codec 288 sound/pci/hda/patch_sigmatel.c static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, codec 292 sound/pci/hda/patch_sigmatel.c hda_nid_t fg = codec->core.afg; codec 294 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "%s msk %x dir %x gpio %x\n", __func__, mask, dir_mask, data); codec 296 sound/pci/hda/patch_sigmatel.c gpiostate = snd_hda_codec_read(codec, fg, 0, codec 300 sound/pci/hda/patch_sigmatel.c gpiomask = snd_hda_codec_read(codec, fg, 0, codec 304 sound/pci/hda/patch_sigmatel.c gpiodir = snd_hda_codec_read(codec, fg, 0, codec 309 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, fg, 0, 0x7e7, 0); codec 311 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, fg, 0, codec 313 sound/pci/hda/patch_sigmatel.c snd_hda_codec_read(codec, fg, 0, codec 318 sound/pci/hda/patch_sigmatel.c snd_hda_codec_read(codec, fg, 0, codec 323 sound/pci/hda/patch_sigmatel.c static void stac_capture_led_update(struct hda_codec *codec) codec 325 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 331 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); codec 334 sound/pci/hda/patch_sigmatel.c static int stac_vrefout_set(struct hda_codec *codec, codec 339 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "%s, nid %x ctl %x\n", __func__, nid, new_vref); codec 340 sound/pci/hda/patch_sigmatel.c pinctl = snd_hda_codec_read(codec, nid, 0, codec 350 sound/pci/hda/patch_sigmatel.c error = snd_hda_set_pin_ctl_cache(codec, nid, pinctl); codec 359 sound/pci/hda/patch_sigmatel.c static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, codec 363 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg && power_state == AC_PWRST_D3) codec 365 sound/pci/hda/patch_sigmatel.c return snd_hda_gen_path_power_filter(codec, nid, power_state); codec 369 sound/pci/hda/patch_sigmatel.c static void stac_update_led_status(struct hda_codec *codec, int enabled) codec 371 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 386 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, codec 390 sound/pci/hda/patch_sigmatel.c stac_vrefout_set(codec, spec->vref_mute_led_nid, codec 402 sound/pci/hda/patch_sigmatel.c static void stac_update_outputs(struct hda_codec *codec) codec 404 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 408 sound/pci/hda/patch_sigmatel.c !(snd_hda_codec_read(codec, codec->core.afg, 0, codec 411 sound/pci/hda/patch_sigmatel.c snd_hda_gen_update_outputs(codec); codec 421 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, codec 427 sound/pci/hda/patch_sigmatel.c static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, codec 430 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 452 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 458 sound/pci/hda/patch_sigmatel.c static void jack_update_power(struct hda_codec *codec, codec 461 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 468 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, jack->nid, codec 469 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect(codec, jack->nid), codec 477 sound/pci/hda/patch_sigmatel.c if (!snd_hda_jack_tbl_get(codec, nid)) codec 479 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, codec 480 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect(codec, nid), codec 484 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 489 sound/pci/hda/patch_sigmatel.c static void stac_vref_event(struct hda_codec *codec, codec 494 sound/pci/hda/patch_sigmatel.c data = snd_hda_codec_read(codec, codec->core.afg, 0, codec 497 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, codec->core.afg, 0, 0x7e0, codec 504 sound/pci/hda/patch_sigmatel.c static void stac_init_power_map(struct hda_codec *codec) codec 506 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 511 sound/pci/hda/patch_sigmatel.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 515 sound/pci/hda/patch_sigmatel.c is_jack_detectable(codec, nid)) { codec 516 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect_enable_callback(codec, nid, codec 520 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, false, false); codec 522 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, true, false); codec 530 sound/pci/hda/patch_sigmatel.c static inline bool get_int_hint(struct hda_codec *codec, const char *key, codec 533 sound/pci/hda/patch_sigmatel.c return !snd_hda_get_int_hint(codec, key, valp); codec 537 sound/pci/hda/patch_sigmatel.c static void stac_store_hints(struct hda_codec *codec) codec 539 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 542 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { codec 546 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir)) codec 548 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "gpio_data", &spec->gpio_data)) codec 550 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask)) codec 552 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute)) codec 554 sound/pci/hda/patch_sigmatel.c val = snd_hda_get_bool_hint(codec, "eapd_switch"); codec 568 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 570 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 580 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 581 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 599 sound/pci/hda/patch_sigmatel.c dac_mode = snd_hda_codec_read(codec, codec->core.afg, 0, codec 604 sound/pci/hda/patch_sigmatel.c snd_hda_power_up(codec); codec 607 sound/pci/hda/patch_sigmatel.c snd_hda_power_down(codec); codec 611 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write_cache(codec, codec->core.afg, 0, codec 633 sound/pci/hda/patch_sigmatel.c static bool hp_bnb2011_with_dock(struct hda_codec *codec) codec 635 sound/pci/hda/patch_sigmatel.c if (codec->core.vendor_id != 0x111d7605 && codec 636 sound/pci/hda/patch_sigmatel.c codec->core.vendor_id != 0x111d76d1) codec 639 sound/pci/hda/patch_sigmatel.c switch (codec->core.subsystem_id) { codec 703 sound/pci/hda/patch_sigmatel.c static void set_hp_led_gpio(struct hda_codec *codec) codec 705 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 711 sound/pci/hda/patch_sigmatel.c gpio = snd_hda_param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP); codec 739 sound/pci/hda/patch_sigmatel.c static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity) codec 741 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 744 sound/pci/hda/patch_sigmatel.c if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) { codec 745 sound/pci/hda/patch_sigmatel.c get_int_hint(codec, "gpio_led_polarity", codec 755 sound/pci/hda/patch_sigmatel.c max_gpio = snd_hda_param_read(codec, codec->core.afg, codec 766 sound/pci/hda/patch_sigmatel.c set_hp_led_gpio(codec); codec 771 sound/pci/hda/patch_sigmatel.c set_hp_led_gpio(codec); codec 785 sound/pci/hda/patch_sigmatel.c if (!hp_blike_system(codec->core.subsystem_id) && codec 787 sound/pci/hda/patch_sigmatel.c set_hp_led_gpio(codec); codec 795 sound/pci/hda/patch_sigmatel.c static bool has_builtin_speaker(struct hda_codec *codec) codec 797 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 810 sound/pci/hda/patch_sigmatel.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid_pin[i]); codec 822 sound/pci/hda/patch_sigmatel.c static int stac_auto_create_beep_ctls(struct hda_codec *codec, codec 825 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 826 sound/pci/hda/patch_sigmatel.c u32 caps = query_amp_caps(codec, nid, HDA_OUTPUT); codec 869 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 870 sound/pci/hda/patch_sigmatel.c ucontrol->value.integer.value[0] = codec->beep->enabled; codec 877 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 878 sound/pci/hda/patch_sigmatel.c return snd_hda_enable_beep_device(codec, ucontrol->value.integer.value[0]); codec 889 sound/pci/hda/patch_sigmatel.c static int stac_beep_switch_ctl(struct hda_codec *codec) codec 891 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 906 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 907 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 914 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 915 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 925 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 926 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 929 sound/pci/hda/patch_sigmatel.c return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, codec 947 sound/pci/hda/patch_sigmatel.c static int stac_create_spdif_mux_ctls(struct hda_codec *codec) codec 949 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 958 sound/pci/hda/patch_sigmatel.c num_cons = snd_hda_get_num_conns(codec, cfg->dig_out_pins[0]); codec 967 sound/pci/hda/patch_sigmatel.c snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL); codec 1347 sound/pci/hda/patch_sigmatel.c static void stac9200_fixup_panasonic(struct hda_codec *codec, codec 1350 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 1775 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_ref(struct hda_codec *codec, codec 1778 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 1783 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, ref92hd73xx_pin_configs); codec 1787 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_dell(struct hda_codec *codec) codec 1789 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 1791 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, dell_m6_pin_configs); codec 1795 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_dell_eq(struct hda_codec *codec, codec 1798 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 1803 sound/pci/hda/patch_sigmatel.c stac92hd73xx_fixup_dell(codec); codec 1804 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, dell_eq_core_init); codec 1809 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_dell_m6_amic(struct hda_codec *codec, codec 1815 sound/pci/hda/patch_sigmatel.c stac92hd73xx_fixup_dell(codec); codec 1816 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x0b, 0x90A70170); codec 1820 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_dell_m6_dmic(struct hda_codec *codec, codec 1826 sound/pci/hda/patch_sigmatel.c stac92hd73xx_fixup_dell(codec); codec 1827 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x13, 0x90A60160); codec 1831 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_dell_m6_both(struct hda_codec *codec, codec 1837 sound/pci/hda/patch_sigmatel.c stac92hd73xx_fixup_dell(codec); codec 1838 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x0b, 0x90A70170); codec 1839 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x13, 0x90A60160); codec 1842 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_alienware_m17x(struct hda_codec *codec, codec 1845 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 1850 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, alienware_m17x_pin_configs); codec 1854 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_fixup_no_jd(struct hda_codec *codec, codec 1858 sound/pci/hda/patch_sigmatel.c codec->no_jack_detect = 1; codec 1862 sound/pci/hda/patch_sigmatel.c static void stac92hd73xx_disable_automute(struct hda_codec *codec, codec 1865 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2083 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp(struct hda_codec *codec, codec 2086 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2091 sound/pci/hda/patch_sigmatel.c if (hp_bnb2011_with_dock(codec)) { codec 2092 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0xa, 0x2101201f); codec 2093 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0xf, 0x2181205e); codec 2096 sound/pci/hda/patch_sigmatel.c if (find_mute_led_cfg(codec, spec->default_polarity)) codec 2097 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "mute LED gpio %d polarity %d\n", codec 2105 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp_zephyr(struct hda_codec *codec, codec 2111 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, hp_zephyr_pin_configs); codec 2112 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac92hd83xxx_hp_zephyr_init); codec 2115 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp_led(struct hda_codec *codec, codec 2118 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2124 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp_inv_led(struct hda_codec *codec, codec 2127 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2133 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp_mic_led(struct hda_codec *codec, codec 2136 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2142 sound/pci/hda/patch_sigmatel.c codec->core.power_caps &= ~AC_PWRST_CLKSTOP; codec 2147 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_hp_led_gpio10(struct hda_codec *codec, codec 2150 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2158 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_headset_jack(struct hda_codec *codec, codec 2161 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2167 sound/pci/hda/patch_sigmatel.c static void stac92hd83xxx_fixup_gpio10_eapd(struct hda_codec *codec, codec 2171 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2180 sound/pci/hda/patch_sigmatel.c static void hp_envy_ts_fixup_dac_bind(struct hda_codec *codec, codec 2184 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2939 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2940 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2948 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 2949 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 2957 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); codec 2968 sound/pci/hda/patch_sigmatel.c static int stac_add_hp_bass_switch(struct hda_codec *codec) codec 2970 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3042 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_ref(struct hda_codec *codec, codec 3045 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3050 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, ref92hd71bxx_pin_configs); codec 3054 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_hp_m4(struct hda_codec *codec, codec 3057 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3064 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write_cache(codec, codec->core.afg, 0, codec 3066 sound/pci/hda/patch_sigmatel.c jack = snd_hda_jack_detect_enable_callback(codec, codec->core.afg, codec 3074 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x0e, 0x01813040); codec 3077 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_hp_dv4(struct hda_codec *codec, codec 3080 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3087 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_hp_dv5(struct hda_codec *codec, codec 3094 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x0d, 0x90170010); codec 3099 sound/pci/hda/patch_sigmatel.c cap = snd_hda_param_read(codec, 0x1, AC_PAR_GPIO_CAP); codec 3102 sound/pci/hda/patch_sigmatel.c stac_add_hp_bass_switch(codec); codec 3107 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_hp_hdx(struct hda_codec *codec, codec 3110 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3117 sound/pci/hda/patch_sigmatel.c static bool is_hp_output(struct hda_codec *codec, hda_nid_t pin) codec 3119 sound/pci/hda/patch_sigmatel.c unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); codec 3127 sound/pci/hda/patch_sigmatel.c static void fixup_hp_headphone(struct hda_codec *codec, hda_nid_t pin) codec 3129 sound/pci/hda/patch_sigmatel.c unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); codec 3138 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, pin, pin_cfg); codec 3141 sound/pci/hda/patch_sigmatel.c static void stac92hd71bxx_fixup_hp(struct hda_codec *codec, codec 3144 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3152 sound/pci/hda/patch_sigmatel.c if (is_hp_output(codec, 0x0a) && is_hp_output(codec, 0x0f)) { codec 3153 sound/pci/hda/patch_sigmatel.c fixup_hp_headphone(codec, 0x0a); codec 3154 sound/pci/hda/patch_sigmatel.c fixup_hp_headphone(codec, 0x0f); codec 3157 sound/pci/hda/patch_sigmatel.c if (find_mute_led_cfg(codec, 1)) codec 3158 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "mute LED gpio %d polarity %d\n", codec 3504 sound/pci/hda/patch_sigmatel.c static void stac922x_fixup_intel_mac_auto(struct hda_codec *codec, codec 3511 sound/pci/hda/patch_sigmatel.c codec->fixup_id = HDA_FIXUP_ID_NOT_SET; codec 3512 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, NULL, stac922x_intel_mac_fixup_tbl, codec 3514 sound/pci/hda/patch_sigmatel.c if (codec->fixup_id != HDA_FIXUP_ID_NOT_SET) codec 3515 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, action); codec 3518 sound/pci/hda/patch_sigmatel.c static void stac922x_fixup_intel_mac_gpio(struct hda_codec *codec, codec 3522 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3810 sound/pci/hda/patch_sigmatel.c static void stac927x_fixup_ref_no_jd(struct hda_codec *codec, codec 3815 sound/pci/hda/patch_sigmatel.c codec->no_jack_detect = 1; codec 3818 sound/pci/hda/patch_sigmatel.c static void stac927x_fixup_ref(struct hda_codec *codec, codec 3821 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3824 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, ref927x_pin_configs); codec 3830 sound/pci/hda/patch_sigmatel.c static void stac927x_fixup_dell_dmic(struct hda_codec *codec, codec 3833 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3838 sound/pci/hda/patch_sigmatel.c if (codec->core.subsystem_id != 0x1028022f) { codec 3844 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, dell_3st_core_init); codec 3848 sound/pci/hda/patch_sigmatel.c static void stac927x_fixup_volknob(struct hda_codec *codec, codec 3851 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 3854 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac927x_volknob_core_init); codec 4084 sound/pci/hda/patch_sigmatel.c static void stac9205_fixup_ref(struct hda_codec *codec, codec 4087 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4090 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, ref9205_pin_configs); codec 4096 sound/pci/hda/patch_sigmatel.c static void stac9205_fixup_dell_m43(struct hda_codec *codec, codec 4099 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4103 sound/pci/hda/patch_sigmatel.c snd_hda_apply_pincfgs(codec, dell_9205_m43_pin_configs); codec 4106 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write_cache(codec, codec->core.afg, 0, codec 4108 sound/pci/hda/patch_sigmatel.c jack = snd_hda_jack_detect_enable_callback(codec, codec->core.afg, codec 4124 sound/pci/hda/patch_sigmatel.c static void stac9205_fixup_eapd(struct hda_codec *codec, codec 4127 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4213 sound/pci/hda/patch_sigmatel.c static void stac92hd95_fixup_hp_led(struct hda_codec *codec, codec 4216 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4221 sound/pci/hda/patch_sigmatel.c if (find_mute_led_cfg(codec, spec->default_polarity)) codec 4222 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "mute LED gpio %d polarity %d\n", codec 4255 sound/pci/hda/patch_sigmatel.c static int stac_parse_auto_config(struct hda_codec *codec) codec 4257 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4264 sound/pci/hda/patch_sigmatel.c err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); codec 4274 sound/pci/hda/patch_sigmatel.c err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); codec 4279 sound/pci/hda/patch_sigmatel.c err = snd_hda_gen_fix_pin_power(codec, spec->vref_mute_led_nid); codec 4286 sound/pci/hda/patch_sigmatel.c err = stac_auto_create_beep_ctls(codec, codec 4298 sound/pci/hda/patch_sigmatel.c err = stac_auto_create_beep_ctls(codec, nid); codec 4301 sound/pci/hda/patch_sigmatel.c if (codec->beep) { codec 4303 sound/pci/hda/patch_sigmatel.c codec->beep->linear_tone = spec->linear_tone_beep; codec 4305 sound/pci/hda/patch_sigmatel.c caps = query_amp_caps(codec, nid, HDA_OUTPUT); codec 4307 sound/pci/hda/patch_sigmatel.c err = stac_beep_switch_ctl(codec); codec 4319 sound/pci/hda/patch_sigmatel.c snd_hda_get_bool_hint(codec, "loopback") == 1) { codec 4322 sound/pci/hda/patch_sigmatel.c if (snd_hdac_regmap_add_vendor_verb(&codec->core, wr_verb)) codec 4329 sound/pci/hda/patch_sigmatel.c err = stac_create_spdif_mux_ctls(codec); codec 4334 sound/pci/hda/patch_sigmatel.c stac_init_power_map(codec); codec 4339 sound/pci/hda/patch_sigmatel.c static int stac_init(struct hda_codec *codec) codec 4341 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4345 sound/pci/hda/patch_sigmatel.c stac_store_hints(codec); codec 4353 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); codec 4355 sound/pci/hda/patch_sigmatel.c snd_hda_gen_init(codec); codec 4359 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, codec->core.afg, 0, codec 4368 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, codec 4377 sound/pci/hda/patch_sigmatel.c static void stac_shutup(struct hda_codec *codec) codec 4379 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4381 sound/pci/hda/patch_sigmatel.c snd_hda_shutup_pins(codec); codec 4384 sound/pci/hda/patch_sigmatel.c stac_gpio_set(codec, spec->gpio_mask, codec 4393 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) codec 4395 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) codec 4397 sound/pci/hda/patch_sigmatel.c snd_hda_codec_read(codec, nid, 0, codec 4402 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, codec 4406 sound/pci/hda/patch_sigmatel.c snd_hda_codec_read(codec, codec->core.afg, 0, verb, 0)); codec 4411 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) codec 4413 sound/pci/hda/patch_sigmatel.c stac92hd_proc_hook(buffer, codec, nid); codec 4414 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) codec 4415 sound/pci/hda/patch_sigmatel.c analog_loop_proc_hook(buffer, codec, 0xfa0); codec 4419 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) codec 4421 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) codec 4422 sound/pci/hda/patch_sigmatel.c analog_loop_proc_hook(buffer, codec, 0xfe0); codec 4426 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) codec 4428 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) codec 4429 sound/pci/hda/patch_sigmatel.c analog_loop_proc_hook(buffer, codec, 0xfeb); codec 4439 sound/pci/hda/patch_sigmatel.c static int stac_suspend(struct hda_codec *codec) codec 4441 sound/pci/hda/patch_sigmatel.c stac_shutup(codec); codec 4460 sound/pci/hda/patch_sigmatel.c static int alloc_stac_spec(struct hda_codec *codec) codec 4468 sound/pci/hda/patch_sigmatel.c codec->spec = spec; codec 4469 sound/pci/hda/patch_sigmatel.c codec->no_trigger_sense = 1; /* seems common with STAC/IDT codecs */ codec 4471 sound/pci/hda/patch_sigmatel.c codec->patch_ops = stac_patch_ops; codec 4475 sound/pci/hda/patch_sigmatel.c static int patch_stac9200(struct hda_codec *codec) codec 4480 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4484 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4488 sound/pci/hda/patch_sigmatel.c codec->power_filter = snd_hda_codec_eapd_power_filter; codec 4490 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac9200_eapd_init); codec 4492 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac9200_models, stac9200_fixup_tbl, codec 4494 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4496 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4498 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4502 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4507 sound/pci/hda/patch_sigmatel.c static int patch_stac925x(struct hda_codec *codec) codec 4512 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4516 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4520 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac925x_core_init); codec 4522 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac925x_models, stac925x_fixup_tbl, codec 4524 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4526 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4528 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4532 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4537 sound/pci/hda/patch_sigmatel.c static int patch_stac92hd73xx(struct hda_codec *codec) codec 4543 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4547 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4551 sound/pci/hda/patch_sigmatel.c if ((codec->core.vendor_id & 0xfffffff0) != 0x111d7670) codec 4552 sound/pci/hda/patch_sigmatel.c codec->power_save_node = 1; codec 4557 sound/pci/hda/patch_sigmatel.c num_dacs = snd_hda_get_num_conns(codec, 0x0a) - 1; codec 4559 sound/pci/hda/patch_sigmatel.c codec_warn(codec, codec 4593 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac92hd73xx_models, stac92hd73xx_fixup_tbl, codec 4595 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4598 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac92hd73xx_core_init); codec 4600 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4602 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4609 sound/pci/hda/patch_sigmatel.c if (spec->eapd_switch && !has_builtin_speaker(codec)) codec 4612 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac92hd7x_proc_hook; codec 4614 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4619 sound/pci/hda/patch_sigmatel.c static void stac_setup_gpio(struct hda_codec *codec) codec 4621 sound/pci/hda/patch_sigmatel.c struct sigmatel_spec *spec = codec->spec; codec 4630 sound/pci/hda/patch_sigmatel.c codec->power_filter = stac_vref_led_power_filter; codec 4639 sound/pci/hda/patch_sigmatel.c snd_hda_gen_add_micmute_led(codec, stac_capture_led_update); codec 4643 sound/pci/hda/patch_sigmatel.c static int patch_stac92hd83xxx(struct hda_codec *codec) codec 4648 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4653 sound/pci/hda/patch_sigmatel.c codec->core.power_caps &= ~AC_PWRST_EPSS; codec 4655 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4656 sound/pci/hda/patch_sigmatel.c codec->power_save_node = 1; codec 4667 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac92hd83xxx_core_init); codec 4669 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac92hd83xxx_models, stac92hd83xxx_fixup_tbl, codec 4671 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4673 sound/pci/hda/patch_sigmatel.c stac_setup_gpio(codec); codec 4675 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4677 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4681 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac92hd_proc_hook; codec 4683 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4692 sound/pci/hda/patch_sigmatel.c static int patch_stac92hd95(struct hda_codec *codec) codec 4697 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4702 sound/pci/hda/patch_sigmatel.c codec->core.power_caps &= ~AC_PWRST_EPSS; codec 4704 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4705 sound/pci/hda/patch_sigmatel.c codec->power_save_node = 1; codec 4715 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac92hd95_models, stac92hd95_fixup_tbl, codec 4717 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4719 sound/pci/hda/patch_sigmatel.c stac_setup_gpio(codec); codec 4721 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4723 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4727 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac92hd_proc_hook; codec 4729 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4734 sound/pci/hda/patch_sigmatel.c static int patch_stac92hd71bxx(struct hda_codec *codec) codec 4740 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4744 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4758 sound/pci/hda/patch_sigmatel.c switch (codec->core.vendor_id) { codec 4764 sound/pci/hda/patch_sigmatel.c if ((codec->core.revision_id & 0xf) == 0 || codec 4765 sound/pci/hda/patch_sigmatel.c (codec->core.revision_id & 0xf) == 1) codec 4770 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x0f, 0x40f000f0); codec 4771 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, 0x19, 0x40f000f3); codec 4774 sound/pci/hda/patch_sigmatel.c if ((codec->core.revision_id & 0xf) == 1) codec 4780 sound/pci/hda/patch_sigmatel.c if (get_wcaps_type(get_wcaps(codec, 0x28)) == AC_WID_VOL_KNB) codec 4781 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac92hd71bxx_core_init); codec 4783 sound/pci/hda/patch_sigmatel.c if (get_wcaps(codec, 0xa) & AC_WCAP_IN_AMP) { codec 4786 sound/pci/hda/patch_sigmatel.c snd_hda_codec_amp_init_stereo(codec, *p, HDA_INPUT, 0, codec 4799 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac92hd71bxx_models, stac92hd71bxx_fixup_tbl, codec 4801 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4803 sound/pci/hda/patch_sigmatel.c stac_setup_gpio(codec); codec 4805 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4807 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4811 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac92hd7x_proc_hook; codec 4813 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4818 sound/pci/hda/patch_sigmatel.c static int patch_stac922x(struct hda_codec *codec) codec 4823 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4827 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4831 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac922x_core_init); codec 4834 sound/pci/hda/patch_sigmatel.c snd_hda_override_amp_caps(codec, 0x12, HDA_OUTPUT, codec 4840 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac922x_models, stac922x_fixup_tbl, codec 4842 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4844 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4846 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4850 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4860 sound/pci/hda/patch_sigmatel.c static int patch_stac927x(struct hda_codec *codec) codec 4865 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4869 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4886 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac927x_models, stac927x_fixup_tbl, codec 4888 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4891 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac927x_core_init); codec 4893 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4895 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4899 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac927x_proc_hook; codec 4911 sound/pci/hda/patch_sigmatel.c codec->bus->needs_damn_long_delay = 1; codec 4913 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 4918 sound/pci/hda/patch_sigmatel.c static int patch_stac9205(struct hda_codec *codec) codec 4923 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 4927 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 4934 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac9205_core_init); codec 4947 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac9205_models, stac9205_fixup_tbl, codec 4949 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 4951 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 4953 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 4957 sound/pci/hda/patch_sigmatel.c codec->proc_widget_hook = stac9205_proc_hook; codec 4959 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 5005 sound/pci/hda/patch_sigmatel.c static int patch_stac9872(struct hda_codec *codec) codec 5010 sound/pci/hda/patch_sigmatel.c err = alloc_stac_spec(codec); codec 5014 sound/pci/hda/patch_sigmatel.c spec = codec->spec; codec 5018 sound/pci/hda/patch_sigmatel.c snd_hda_add_verbs(codec, stac9872_core_init); codec 5020 sound/pci/hda/patch_sigmatel.c snd_hda_pick_fixup(codec, stac9872_models, stac9872_fixup_tbl, codec 5022 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 5024 sound/pci/hda/patch_sigmatel.c err = stac_parse_auto_config(codec); codec 5026 sound/pci/hda/patch_sigmatel.c stac_free(codec); codec 5030 sound/pci/hda/patch_sigmatel.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE); codec 92 sound/pci/hda/patch_via.c static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); codec 94 sound/pci/hda/patch_via.c struct hda_codec *codec, codec 100 sound/pci/hda/patch_via.c static struct via_spec *via_new_spec(struct hda_codec *codec) codec 108 sound/pci/hda/patch_via.c codec->spec = spec; codec 110 sound/pci/hda/patch_via.c spec->codec_type = get_codec_type(codec); codec 118 sound/pci/hda/patch_via.c codec->power_save_node = 1; codec 120 sound/pci/hda/patch_via.c codec->patch_ops = via_patch_ops; codec 124 sound/pci/hda/patch_via.c static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) codec 126 sound/pci/hda/patch_via.c u32 vendor_id = codec->core.vendor_id; codec 142 sound/pci/hda/patch_via.c if (snd_hda_param_read(codec, 0x16, AC_PAR_CONNLIST_LEN) == 0x7) codec 176 sound/pci/hda/patch_via.c static void analog_low_current_mode(struct hda_codec *codec); codec 177 sound/pci/hda/patch_via.c static bool is_aa_path_mute(struct hda_codec *codec); codec 179 sound/pci/hda/patch_via.c #define hp_detect_with_aa(codec) \ codec 180 sound/pci/hda/patch_via.c (snd_hda_get_bool_hint(codec, "analog_loopback_hp_detect") == 1 && \ codec 181 sound/pci/hda/patch_via.c !is_aa_path_mute(codec)) codec 183 sound/pci/hda/patch_via.c static void vt1708_stop_hp_work(struct hda_codec *codec) codec 185 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 189 sound/pci/hda/patch_via.c snd_hda_codec_write(codec, 0x1, 0, 0xf81, 1); codec 190 sound/pci/hda/patch_via.c codec->jackpoll_interval = 0; codec 191 sound/pci/hda/patch_via.c cancel_delayed_work_sync(&codec->jackpoll_work); codec 196 sound/pci/hda/patch_via.c static void vt1708_update_hp_work(struct hda_codec *codec) codec 198 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 203 sound/pci/hda/patch_via.c codec->jackpoll_interval = msecs_to_jiffies(100); codec 204 sound/pci/hda/patch_via.c snd_hda_codec_write(codec, 0x1, 0, 0xf81, 0); codec 205 sound/pci/hda/patch_via.c schedule_delayed_work(&codec->jackpoll_work, 0); codec 208 sound/pci/hda/patch_via.c } else if (!hp_detect_with_aa(codec)) codec 209 sound/pci/hda/patch_via.c vt1708_stop_hp_work(codec); codec 221 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 222 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 231 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 232 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 239 sound/pci/hda/patch_via.c analog_low_current_mode(codec); codec 276 sound/pci/hda/patch_via.c static int auto_parse_beep(struct hda_codec *codec) codec 278 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 281 sound/pci/hda/patch_via.c for_each_hda_codec_node(nid, codec) codec 282 sound/pci/hda/patch_via.c if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) codec 287 sound/pci/hda/patch_via.c #define auto_parse_beep(codec) 0 codec 291 sound/pci/hda/patch_via.c static bool is_aa_path_mute(struct hda_codec *codec) codec 293 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 302 sound/pci/hda/patch_via.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, codec 312 sound/pci/hda/patch_via.c static void __analog_low_current_mode(struct hda_codec *codec, bool force) codec 314 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 318 sound/pci/hda/patch_via.c if (!codec->power_save_node) codec 321 sound/pci/hda/patch_via.c enable = is_aa_path_mute(codec) && !spec->gen.active_streams; codec 358 sound/pci/hda/patch_via.c snd_hda_codec_write(codec, codec->core.afg, 0, verb, parm); codec 361 sound/pci/hda/patch_via.c static void analog_low_current_mode(struct hda_codec *codec) codec 363 sound/pci/hda/patch_via.c return __analog_low_current_mode(codec, false); codec 367 sound/pci/hda/patch_via.c struct hda_codec *codec, codec 371 sound/pci/hda/patch_via.c analog_low_current_mode(codec); codec 372 sound/pci/hda/patch_via.c vt1708_update_hp_work(codec); codec 375 sound/pci/hda/patch_via.c static void via_free(struct hda_codec *codec) codec 377 sound/pci/hda/patch_via.c vt1708_stop_hp_work(codec); codec 378 sound/pci/hda/patch_via.c snd_hda_gen_free(codec); codec 382 sound/pci/hda/patch_via.c static int via_suspend(struct hda_codec *codec) codec 384 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 385 sound/pci/hda/patch_via.c vt1708_stop_hp_work(codec); codec 389 sound/pci/hda/patch_via.c snd_hda_shutup_pins(codec); codec 394 sound/pci/hda/patch_via.c static int via_resume(struct hda_codec *codec) codec 398 sound/pci/hda/patch_via.c codec->patch_ops.init(codec); codec 399 sound/pci/hda/patch_via.c snd_hda_regmap_sync(codec); codec 405 sound/pci/hda/patch_via.c static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) codec 407 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 408 sound/pci/hda/patch_via.c analog_low_current_mode(codec); codec 409 sound/pci/hda/patch_via.c vt1708_update_hp_work(codec); codec 410 sound/pci/hda/patch_via.c return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid); codec 417 sound/pci/hda/patch_via.c static int via_init(struct hda_codec *codec); codec 438 sound/pci/hda/patch_via.c static void vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) codec 443 sound/pci/hda/patch_via.c def_conf = snd_hda_codec_get_pincfg(codec, nid); codec 449 sound/pci/hda/patch_via.c snd_hda_codec_set_pincfg(codec, nid, def_conf); codec 458 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 459 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 470 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 471 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 480 sound/pci/hda/patch_via.c vt1708_update_hp_work(codec); codec 510 sound/pci/hda/patch_via.c static int via_parse_auto_config(struct hda_codec *codec) codec 512 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 518 sound/pci/hda/patch_via.c err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); codec 522 sound/pci/hda/patch_via.c err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); codec 526 sound/pci/hda/patch_via.c err = auto_parse_beep(codec); codec 534 sound/pci/hda/patch_via.c codec->power_save_node = 0; codec 539 sound/pci/hda/patch_via.c static int via_init(struct hda_codec *codec) codec 542 sound/pci/hda/patch_via.c __analog_low_current_mode(codec, true); codec 544 sound/pci/hda/patch_via.c snd_hda_gen_init(codec); codec 546 sound/pci/hda/patch_via.c vt1708_update_hp_work(codec); codec 551 sound/pci/hda/patch_via.c static int vt1708_build_controls(struct hda_codec *codec) codec 556 sound/pci/hda/patch_via.c int old_interval = codec->jackpoll_interval; codec 557 sound/pci/hda/patch_via.c codec->jackpoll_interval = msecs_to_jiffies(100); codec 558 sound/pci/hda/patch_via.c err = snd_hda_gen_build_controls(codec); codec 559 sound/pci/hda/patch_via.c codec->jackpoll_interval = old_interval; codec 563 sound/pci/hda/patch_via.c static int vt1708_build_pcms(struct hda_codec *codec) codec 565 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 568 sound/pci/hda/patch_via.c err = snd_hda_gen_build_pcms(codec); codec 569 sound/pci/hda/patch_via.c if (err < 0 || codec->core.vendor_id != 0x11061708) codec 590 sound/pci/hda/patch_via.c static int patch_vt1708(struct hda_codec *codec) codec 596 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 601 sound/pci/hda/patch_via.c codec->patch_ops.build_controls = vt1708_build_controls; codec 602 sound/pci/hda/patch_via.c codec->patch_ops.build_pcms = vt1708_build_pcms; codec 606 sound/pci/hda/patch_via.c codec->jackpoll_interval = msecs_to_jiffies(100); codec 616 sound/pci/hda/patch_via.c vt1708_set_pinconfig_connect(codec, VT1708_HP_PIN_NID); codec 617 sound/pci/hda/patch_via.c vt1708_set_pinconfig_connect(codec, VT1708_CD_PIN_NID); codec 619 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1708_init_verbs); codec 624 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 635 sound/pci/hda/patch_via.c codec->jackpoll_interval = 0; codec 640 sound/pci/hda/patch_via.c via_free(codec); codec 644 sound/pci/hda/patch_via.c static int patch_vt1709(struct hda_codec *codec) codec 650 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 656 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 663 sound/pci/hda/patch_via.c via_free(codec); codec 667 sound/pci/hda/patch_via.c static int patch_vt1708S(struct hda_codec *codec); codec 668 sound/pci/hda/patch_via.c static int patch_vt1708B(struct hda_codec *codec) codec 673 sound/pci/hda/patch_via.c if (get_codec_type(codec) == VT1708BCE) codec 674 sound/pci/hda/patch_via.c return patch_vt1708S(codec); codec 677 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 684 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 691 sound/pci/hda/patch_via.c via_free(codec); codec 704 sound/pci/hda/patch_via.c static void override_mic_boost(struct hda_codec *codec, hda_nid_t pin, codec 707 sound/pci/hda/patch_via.c snd_hda_override_wcaps(codec, pin, codec 708 sound/pci/hda/patch_via.c get_wcaps(codec, pin) | AC_WCAP_IN_AMP); codec 709 sound/pci/hda/patch_via.c snd_hda_override_amp_caps(codec, pin, HDA_INPUT, codec 716 sound/pci/hda/patch_via.c static int patch_vt1708S(struct hda_codec *codec) codec 722 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 727 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x1a, 0, 3, 40); codec 728 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x1e, 0, 3, 40); codec 731 sound/pci/hda/patch_via.c if (get_codec_type(codec) == VT1708BCE) codec 732 sound/pci/hda/patch_via.c snd_hda_codec_set_name(codec, "VT1708BCE"); codec 734 sound/pci/hda/patch_via.c if (codec->core.vendor_id == 0x11064397) codec 735 sound/pci/hda/patch_via.c snd_hda_codec_set_name(codec, "VT1705"); codec 737 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1708S_init_verbs); codec 742 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 749 sound/pci/hda/patch_via.c via_free(codec); codec 763 sound/pci/hda/patch_via.c static int patch_vt1702(struct hda_codec *codec) codec 769 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 776 sound/pci/hda/patch_via.c snd_hda_override_amp_caps(codec, 0x1A, HDA_INPUT, codec 782 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1702_init_verbs); codec 787 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 794 sound/pci/hda/patch_via.c via_free(codec); codec 812 sound/pci/hda/patch_via.c static int add_secret_dac_path(struct hda_codec *codec) codec 814 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 821 sound/pci/hda/patch_via.c nums = snd_hda_get_connections(codec, spec->gen.mixer_nid, conn, codec 824 sound/pci/hda/patch_via.c if (get_wcaps_type(get_wcaps(codec, conn[i])) == AC_WID_AUD_OUT) codec 829 sound/pci/hda/patch_via.c for_each_hda_codec_node(nid, codec) { codec 830 sound/pci/hda/patch_via.c unsigned int caps = get_wcaps(codec, nid); codec 834 sound/pci/hda/patch_via.c return snd_hda_override_conn_list(codec, codec 843 sound/pci/hda/patch_via.c static int patch_vt1718S(struct hda_codec *codec) codec 849 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 854 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x2b, 0, 3, 40); codec 855 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x29, 0, 3, 40); codec 856 sound/pci/hda/patch_via.c add_secret_dac_path(codec); codec 858 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1718S_init_verbs); codec 863 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 870 sound/pci/hda/patch_via.c via_free(codec); codec 889 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 892 sound/pci/hda/patch_via.c index = snd_hda_codec_read(codec, 0x26, 0, codec 903 sound/pci/hda/patch_via.c struct hda_codec *codec = snd_kcontrol_chip(kcontrol); codec 904 sound/pci/hda/patch_via.c struct via_spec *spec = codec->spec; codec 907 sound/pci/hda/patch_via.c snd_hda_codec_write(codec, 0x26, 0, codec 940 sound/pci/hda/patch_via.c static int patch_vt1716S(struct hda_codec *codec) codec 946 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 951 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x1a, 0, 3, 40); codec 952 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x1e, 0, 3, 40); codec 954 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1716S_init_verbs); codec 959 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 973 sound/pci/hda/patch_via.c via_free(codec); codec 1007 sound/pci/hda/patch_via.c static void via_fixup_intmic_boost(struct hda_codec *codec, codec 1011 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x30, 0, 2, 40); codec 1039 sound/pci/hda/patch_via.c static void fix_vt1802_connections(struct hda_codec *codec) codec 1044 sound/pci/hda/patch_via.c snd_hda_override_conn_list(codec, 0x24, ARRAY_SIZE(conn_24), conn_24); codec 1045 sound/pci/hda/patch_via.c snd_hda_override_conn_list(codec, 0x33, ARRAY_SIZE(conn_33), conn_33); codec 1049 sound/pci/hda/patch_via.c static int patch_vt2002P(struct hda_codec *codec) codec 1055 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 1060 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x2b, 0, 3, 40); codec 1061 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x29, 0, 3, 40); codec 1063 sound/pci/hda/patch_via.c fix_vt1802_connections(codec); codec 1064 sound/pci/hda/patch_via.c add_secret_dac_path(codec); codec 1066 sound/pci/hda/patch_via.c snd_hda_pick_fixup(codec, NULL, vt2002p_fixups, via_fixups); codec 1067 sound/pci/hda/patch_via.c snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE); codec 1070 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1802_init_verbs); codec 1072 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt2002P_init_verbs); codec 1077 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 1084 sound/pci/hda/patch_via.c via_free(codec); codec 1099 sound/pci/hda/patch_via.c static int patch_vt1812(struct hda_codec *codec) codec 1105 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 1110 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x2b, 0, 3, 40); codec 1111 sound/pci/hda/patch_via.c override_mic_boost(codec, 0x29, 0, 3, 40); codec 1112 sound/pci/hda/patch_via.c add_secret_dac_path(codec); codec 1114 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt1812_init_verbs); codec 1119 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 1126 sound/pci/hda/patch_via.c via_free(codec); codec 1142 sound/pci/hda/patch_via.c static int patch_vt3476(struct hda_codec *codec) codec 1148 sound/pci/hda/patch_via.c spec = via_new_spec(codec); codec 1153 sound/pci/hda/patch_via.c add_secret_dac_path(codec); codec 1155 sound/pci/hda/patch_via.c err = snd_hda_add_verbs(codec, vt3476_init_verbs); codec 1160 sound/pci/hda/patch_via.c err = via_parse_auto_config(codec); codec 1167 sound/pci/hda/patch_via.c via_free(codec); codec 13 sound/pci/hda/thinkpad_helper.c static bool is_thinkpad(struct hda_codec *codec) codec 15 sound/pci/hda/thinkpad_helper.c return (codec->core.subsystem_id >> 16 == 0x17aa) && codec 28 sound/pci/hda/thinkpad_helper.c static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, codec 31 sound/pci/hda/thinkpad_helper.c struct hda_gen_spec *spec = codec->spec; codec 34 sound/pci/hda/thinkpad_helper.c if (!is_thinkpad(codec)) codec 38 sound/pci/hda/thinkpad_helper.c snd_hda_gen_fixup_micmute_led(codec, fix, action); codec 44 sound/pci/hda/thinkpad_helper.c static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, codec 493 sound/pci/intel8x0.c static int snd_intel8x0_codec_semaphore(struct intel8x0 *chip, unsigned int codec) codec 497 sound/pci/intel8x0.c if (codec > 2) codec 502 sound/pci/intel8x0.c codec = chip->codec_isr_bits; codec 504 sound/pci/intel8x0.c codec = chip->codec_bit[chip->ac97_sdin[codec]]; codec 508 sound/pci/intel8x0.c if ((igetdword(chip, ICHREG(GLOB_STA)) & codec) == 0) codec 578 sound/pci/intel8x0.c unsigned int codec) codec 582 sound/pci/intel8x0.c if (snd_intel8x0_codec_semaphore(chip, codec) >= 0) { codec 583 sound/pci/intel8x0.c iagetword(chip, codec * 0x80); codec 918 sound/pci/intel8x0.c snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF, codec 2280 sound/pci/intel8x0.c if (pcm->r[0].codec[i]) { codec 2281 sound/pci/intel8x0.c tmp |= chip->ac97_sdin[pcm->r[0].codec[1]->num] << ICH_DI2L_SHIFT; codec 289 sound/pci/intel8x0m.c static unsigned int get_ich_codec_bit(struct intel8x0m *chip, unsigned int codec) codec 294 sound/pci/intel8x0m.c if (snd_BUG_ON(codec >= 3)) codec 296 sound/pci/intel8x0m.c return codec_bit[codec]; codec 299 sound/pci/intel8x0m.c static int snd_intel8x0m_codec_semaphore(struct intel8x0m *chip, unsigned int codec) codec 303 sound/pci/intel8x0m.c if (codec > 1) codec 305 sound/pci/intel8x0m.c codec = get_ich_codec_bit(chip, codec); codec 308 sound/pci/intel8x0m.c if ((igetdword(chip, ICHREG(GLOB_STA)) & codec) == 0) codec 142 sound/pci/oxygen/oxygen.c static void ak4396_write(struct oxygen *chip, unsigned int codec, codec 154 sound/pci/oxygen/oxygen.c (codec_spi_map[codec] << OXYGEN_SPI_CODEC_SHIFT) | codec 157 sound/pci/oxygen/oxygen.c data->ak4396_regs[codec][reg] = value; codec 160 sound/pci/oxygen/oxygen.c static void ak4396_write_cached(struct oxygen *chip, unsigned int codec, codec 165 sound/pci/oxygen/oxygen.c if (value != data->ak4396_regs[codec][reg]) codec 166 sound/pci/oxygen/oxygen.c ak4396_write(chip, codec, reg, value); codec 195 sound/pci/oxygen/oxygen.h u16 oxygen_read_ac97(struct oxygen *chip, unsigned int codec, codec 197 sound/pci/oxygen/oxygen.h void oxygen_write_ac97(struct oxygen *chip, unsigned int codec, codec 199 sound/pci/oxygen/oxygen.h void oxygen_write_ac97_masked(struct oxygen *chip, unsigned int codec, codec 247 sound/pci/oxygen/oxygen.h static inline void oxygen_ac97_set_bits(struct oxygen *chip, unsigned int codec, codec 250 sound/pci/oxygen/oxygen.h oxygen_write_ac97_masked(chip, codec, index, value, value); codec 254 sound/pci/oxygen/oxygen.h unsigned int codec, codec 257 sound/pci/oxygen/oxygen.h oxygen_write_ac97_masked(chip, codec, index, 0, value); codec 117 sound/pci/oxygen/oxygen_io.c void oxygen_write_ac97(struct oxygen *chip, unsigned int codec, codec 126 sound/pci/oxygen/oxygen_io.c reg |= codec << OXYGEN_AC97_REG_CODEC_SHIFT; codec 134 sound/pci/oxygen/oxygen_io.c chip->saved_ac97_registers[codec][index / 2] = data; codec 142 sound/pci/oxygen/oxygen_io.c u16 oxygen_read_ac97(struct oxygen *chip, unsigned int codec, codec 151 sound/pci/oxygen/oxygen_io.c reg |= codec << OXYGEN_AC97_REG_CODEC_SHIFT; codec 170 sound/pci/oxygen/oxygen_io.c dev_err(chip->card->dev, "AC'97 read timeout on codec %u\n", codec); codec 175 sound/pci/oxygen/oxygen_io.c void oxygen_write_ac97_masked(struct oxygen *chip, unsigned int codec, codec 178 sound/pci/oxygen/oxygen_io.c u16 value = oxygen_read_ac97(chip, codec, index); codec 181 sound/pci/oxygen/oxygen_io.c oxygen_write_ac97(chip, codec, index, value); codec 767 sound/pci/oxygen/oxygen_lib.c static void oxygen_restore_ac97(struct oxygen *chip, unsigned int codec) codec 771 sound/pci/oxygen/oxygen_lib.c oxygen_write_ac97(chip, codec, AC97_RESET, 0); codec 774 sound/pci/oxygen/oxygen_lib.c if (is_bit_set(ac97_registers_to_restore[codec], i)) codec 775 sound/pci/oxygen/oxygen_lib.c oxygen_write_ac97(chip, codec, i * 2, codec 776 sound/pci/oxygen/oxygen_lib.c chip->saved_ac97_registers[codec][i]); codec 508 sound/pci/oxygen/oxygen_mixer.c unsigned int codec = (ctl->private_value >> 24) & 1; codec 515 sound/pci/oxygen/oxygen_mixer.c reg = oxygen_read_ac97(chip, codec, index); codec 546 sound/pci/oxygen/oxygen_mixer.c unsigned int codec = (ctl->private_value >> 24) & 1; codec 554 sound/pci/oxygen/oxygen_mixer.c oldreg = oxygen_read_ac97(chip, codec, index); codec 562 sound/pci/oxygen/oxygen_mixer.c oxygen_write_ac97(chip, codec, index, newreg); codec 563 sound/pci/oxygen/oxygen_mixer.c if (codec == 0 && chip->model.ac97_switch) codec 602 sound/pci/oxygen/oxygen_mixer.c unsigned int codec = (ctl->private_value >> 24) & 1; codec 608 sound/pci/oxygen/oxygen_mixer.c reg = oxygen_read_ac97(chip, codec, index); codec 623 sound/pci/oxygen/oxygen_mixer.c unsigned int codec = (ctl->private_value >> 24) & 1; codec 630 sound/pci/oxygen/oxygen_mixer.c oldreg = oxygen_read_ac97(chip, codec, index); codec 641 sound/pci/oxygen/oxygen_mixer.c oxygen_write_ac97(chip, codec, index, newreg); codec 729 sound/pci/oxygen/oxygen_mixer.c #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ codec 735 sound/pci/oxygen/oxygen_mixer.c .private_value = ((codec) << 24) | ((invert) << 16) | \ codec 738 sound/pci/oxygen/oxygen_mixer.c #define AC97_VOLUME(xname, codec, index, stereo) { \ codec 747 sound/pci/oxygen/oxygen_mixer.c .private_value = ((codec) << 24) | ((stereo) << 16) | (index), \ codec 232 sound/pci/oxygen/xonar_pcm179x.c static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, codec 242 sound/pci/oxygen/xonar_pcm179x.c (codec_map[codec] << OXYGEN_SPI_CODEC_SHIFT) | codec 247 sound/pci/oxygen/xonar_pcm179x.c static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, codec 250 sound/pci/oxygen/xonar_pcm179x.c oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); codec 253 sound/pci/oxygen/xonar_pcm179x.c static void pcm1796_write(struct oxygen *chip, unsigned int codec, codec 260 sound/pci/oxygen/xonar_pcm179x.c pcm1796_write_spi(chip, codec, reg, value); codec 262 sound/pci/oxygen/xonar_pcm179x.c pcm1796_write_i2c(chip, codec, reg, value); codec 264 sound/pci/oxygen/xonar_pcm179x.c < ARRAY_SIZE(data->pcm1796_regs[codec])) codec 265 sound/pci/oxygen/xonar_pcm179x.c data->pcm1796_regs[codec][reg - PCM1796_REG_BASE] = value; codec 268 sound/pci/oxygen/xonar_pcm179x.c static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, codec 273 sound/pci/oxygen/xonar_pcm179x.c if (value != data->pcm1796_regs[codec][reg - PCM1796_REG_BASE]) codec 274 sound/pci/oxygen/xonar_pcm179x.c pcm1796_write(chip, codec, reg, value); codec 575 sound/pci/pcxhr/pcxhr_mixer.c unsigned int codec; codec 579 sound/pci/pcxhr/pcxhr_mixer.c case 0 : mask = PCXHR_SOURCE_AUDIO01_UER; codec = CS8420_01_CS; break; codec 580 sound/pci/pcxhr/pcxhr_mixer.c case 1 : mask = PCXHR_SOURCE_AUDIO23_UER; codec = CS8420_23_CS; break; codec 581 sound/pci/pcxhr/pcxhr_mixer.c case 2 : mask = PCXHR_SOURCE_AUDIO45_UER; codec = CS8420_45_CS; break; codec 582 sound/pci/pcxhr/pcxhr_mixer.c case 3 : mask = PCXHR_SOURCE_AUDIO67_UER; codec = CS8420_67_CS; break; codec 622 sound/pci/pcxhr/pcxhr_mixer.c rmh.cmd[1] = codec; codec 913 sound/pci/sis7019.c static unsigned short sis_ac97_rw(struct sis7019 *sis, int codec, u32 cmd) codec 926 sound/pci/sis7019.c rdy = codec_ready[codec]; codec 975 sound/pci/sis7019.c codec, cmd); codec 700 sound/pci/vx222/vx222_ops.c static void vx2_old_write_codec_bit(struct vx_core *chip, int codec, unsigned int data) codec 432 sound/pcmcia/vx/vxp_ops.c static void vxp_write_codec_reg(struct vx_core *chip, int codec, unsigned int data) codec 437 sound/pcmcia/vx/vxp_ops.c if (! codec) codec 74 sound/soc/amd/acp-rt5645.c struct snd_soc_component *codec; codec 76 sound/soc/amd/acp-rt5645.c codec = rtd->codec_dai->component; codec 89 sound/soc/amd/acp-rt5645.c rt5645_set_jack_detect(codec, &cz_jack, &cz_jack, &cz_jack); codec 103 sound/soc/amd/acp-rt5645.c SND_SOC_DAILINK_DEF(codec, codec 117 sound/soc/amd/acp-rt5645.c SND_SOC_DAILINK_REG(designware1, codec, platform), codec 125 sound/soc/amd/acp-rt5645.c SND_SOC_DAILINK_REG(designware2, codec, platform), codec 2405 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_platform_data *codec) codec 2410 sound/soc/codecs/ab8500-codec.c codec->amics.mic1_type = AMIC_TYPE_SINGLE_ENDED; codec 2412 sound/soc/codecs/ab8500-codec.c codec->amics.mic1_type = AMIC_TYPE_DIFFERENTIAL; codec 2415 sound/soc/codecs/ab8500-codec.c codec->amics.mic2_type = AMIC_TYPE_SINGLE_ENDED; codec 2417 sound/soc/codecs/ab8500-codec.c codec->amics.mic2_type = AMIC_TYPE_DIFFERENTIAL; codec 2421 sound/soc/codecs/ab8500-codec.c codec->amics.mic1a_micbias = AMIC_MICBIAS_VAMIC2; codec 2423 sound/soc/codecs/ab8500-codec.c codec->amics.mic1a_micbias = AMIC_MICBIAS_VAMIC1; codec 2426 sound/soc/codecs/ab8500-codec.c codec->amics.mic1b_micbias = AMIC_MICBIAS_VAMIC2; codec 2428 sound/soc/codecs/ab8500-codec.c codec->amics.mic1b_micbias = AMIC_MICBIAS_VAMIC1; codec 2431 sound/soc/codecs/ab8500-codec.c codec->amics.mic2_micbias = AMIC_MICBIAS_VAMIC1; codec 2433 sound/soc/codecs/ab8500-codec.c codec->amics.mic2_micbias = AMIC_MICBIAS_VAMIC2; codec 2438 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_0_95V; codec 2441 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_1_10V; codec 2444 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_1_27V; codec 2447 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_1_58V; codec 2450 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_UNKNOWN; codec 2455 sound/soc/codecs/ab8500-codec.c codec->ear_cmv = EAR_CMV_0_95V; codec 99 sound/soc/codecs/cs47l92.c out_mono = madera->pdata.codec.out_mono[2 + mux]; codec 42 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec; codec 871 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm); codec 872 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 917 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = dai->component; codec 918 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 919 sound/soc/codecs/cx2072x.c struct device *dev = codec->dev; codec 985 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = dai->component; codec 986 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 995 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = dai->component; codec 996 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 999 sound/soc/codecs/cx2072x.c dev_err(codec->dev, "set clk rate failed\n"); codec 1009 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = dai->component; codec 1010 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1011 sound/soc/codecs/cx2072x.c struct device *dev = codec->dev; codec 1351 sound/soc/codecs/cx2072x.c static int cx2072x_set_bias_level(struct snd_soc_component *codec, codec 1354 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1356 sound/soc/codecs/cx2072x.c snd_soc_component_get_bias_level(codec); codec 1374 sound/soc/codecs/cx2072x.c static void cx2072x_enable_jack_detect(struct snd_soc_component *codec) codec 1376 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1377 sound/soc/codecs/cx2072x.c struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(codec); codec 1406 sound/soc/codecs/cx2072x.c static void cx2072x_disable_jack_detect(struct snd_soc_component *codec) codec 1408 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1416 sound/soc/codecs/cx2072x.c struct snd_soc_component *codec = data; codec 1417 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1450 sound/soc/codecs/cx2072x.c dev_dbg(codec->dev, "CX2072X_HSDETECT type=0x%X,Jack state = %x\n", codec 1463 sound/soc/codecs/cx2072x.c static int cx2072x_set_jack(struct snd_soc_component *codec, codec 1466 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1470 sound/soc/codecs/cx2072x.c cx2072x_disable_jack_detect(codec); codec 1476 sound/soc/codecs/cx2072x.c cx2072x->jack_gpio.gpiod_dev = codec->dev; codec 1477 sound/soc/codecs/cx2072x.c cx2072x->jack_gpio.data = codec; codec 1485 sound/soc/codecs/cx2072x.c cx2072x_enable_jack_detect(codec); codec 1489 sound/soc/codecs/cx2072x.c static int cx2072x_probe(struct snd_soc_component *codec) codec 1491 sound/soc/codecs/cx2072x.c struct cx2072x_priv *cx2072x = snd_soc_component_get_drvdata(codec); codec 1493 sound/soc/codecs/cx2072x.c cx2072x->codec = codec; codec 1504 sound/soc/codecs/cx2072x.c pm_runtime_get_sync(codec->dev); codec 1518 sound/soc/codecs/cx2072x.c pm_runtime_put(codec->dev); codec 193 sound/soc/codecs/hdac_hda.c snd_hda_codec_cleanup(&hda_pvt->codec, hda_stream, substream); codec 211 sound/soc/codecs/hdac_hda.c hdev = &hda_pvt->codec.core; codec 221 sound/soc/codecs/hdac_hda.c ret = snd_hda_codec_prepare(&hda_pvt->codec, hda_stream, codec 247 sound/soc/codecs/hdac_hda.c ret = hda_stream->ops.open(hda_stream, &hda_pvt->codec, substream); codec 269 sound/soc/codecs/hdac_hda.c hda_stream->ops.close(hda_stream, &hda_pvt->codec, substream); codec 277 sound/soc/codecs/hdac_hda.c struct hda_codec *hcodec = &hda_pvt->codec; codec 311 sound/soc/codecs/hdac_hda.c struct hdac_device *hdev = &hda_pvt->codec.core; codec 312 sound/soc/codecs/hdac_hda.c struct hda_codec *hcodec = &hda_pvt->codec; codec 404 sound/soc/codecs/hdac_hda.c struct hdac_device *hdev = &hda_pvt->codec.core; codec 501 sound/soc/codecs/hdac_hda.c if (hda_pvt && hda_pvt->codec.registered) codec 502 sound/soc/codecs/hdac_hda.c cancel_delayed_work_sync(&hda_pvt->codec.jackpoll_work); codec 15 sound/soc/codecs/hdac_hda.h struct hda_codec codec; codec 20 sound/soc/codecs/hdac_hda.h container_of(_hdac, struct hdac_hda_priv, codec.core) codec 194 sound/soc/codecs/jz4725b.c struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm); codec 195 sound/soc/codecs/jz4725b.c struct jz_icdc *icdc = snd_soc_component_get_drvdata(codec); codec 352 sound/soc/codecs/madera.c struct madera_codec_pdata *pdata = &madera->pdata.codec; codec 380 sound/soc/codecs/madera.c struct madera_codec_pdata *pdata = &madera->pdata.codec; codec 537 sound/soc/codecs/madera.c if (!ep_sel && !madera->pdata.codec.out_mono[0]) codec 620 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[0][2 * mux]; codec 623 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[0][1 + (2 * mux)]; codec 626 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[1][2 * mux]; codec 629 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[1][1 + (2 * mux)]; codec 1088 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][0], codec 1089 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][1], codec 1090 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][2], codec 1091 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][3]); codec 1093 sound/soc/codecs/madera.c dig_mode = madera->pdata.codec.dmic_ref[i] << codec 1096 sound/soc/codecs/madera.c switch (madera->pdata.codec.inmode[i][0]) { codec 1106 sound/soc/codecs/madera.c i + 1, madera->pdata.codec.inmode[i][0]); codec 1110 sound/soc/codecs/madera.c switch (madera->pdata.codec.inmode[i][1]) { codec 1120 sound/soc/codecs/madera.c i + 1, madera->pdata.codec.inmode[i][1]); codec 1171 sound/soc/codecs/madera.c const struct madera_codec_pdata *pdata = &madera->pdata.codec; codec 3078 sound/soc/codecs/madera.c madera->pdata.codec.max_channels_clocked[dai->id - 1]; codec 1080 sound/soc/codecs/wm8350.c wm8350->codec.platform_data; codec 1463 sound/soc/codecs/wm8350.c if (wm8350->codec.platform_data == NULL) { codec 3473 sound/soc/codecs/wm_adsp.c if (caps->id != params->codec.id) codec 3477 sound/soc/codecs/wm_adsp.c if (desc->max_ch < params->codec.ch_out) codec 3480 sound/soc/codecs/wm_adsp.c if (desc->max_ch < params->codec.ch_in) codec 3484 sound/soc/codecs/wm_adsp.c if (!(desc->formats & (1 << params->codec.format))) codec 3488 sound/soc/codecs/wm_adsp.c if (desc->sample_rates[j] == params->codec.sample_rate) codec 3493 sound/soc/codecs/wm_adsp.c params->codec.id, params->codec.ch_in, params->codec.ch_out, codec 3494 sound/soc/codecs/wm_adsp.c params->codec.sample_rate, params->codec.format); codec 3524 sound/soc/codecs/wm_adsp.c compr->sample_rate = params->codec.sample_rate; codec 57 sound/soc/generic/simple-card-utils.c struct device_node *codec, codec 77 sound/soc/generic/simple-card-utils.c daifmt = snd_soc_of_parse_daifmt(codec, NULL, NULL, NULL) | codec 80 sound/soc/generic/simple-card-utils.c if (codec == bitclkmaster) codec 81 sound/soc/generic/simple-card-utils.c daifmt |= (codec == framemaster) ? codec 84 sound/soc/generic/simple-card-utils.c daifmt |= (codec == framemaster) ? codec 97 sound/soc/generic/simple-card.c struct device_node *codec, codec 110 sound/soc/generic/simple-card.c of_property_read_u32(codec, prop, &props->mclk_fs); codec 117 sound/soc/generic/simple-card.c struct device_node *codec, codec 138 sound/soc/generic/simple-card.c if (li->cpu == (np == codec)) codec 221 sound/soc/generic/simple-card.c simple_parse_mclk_fs(top, np, codec, dai_props, prefix); codec 229 sound/soc/generic/simple-card.c ret = asoc_simple_parse_daifmt(dev, node, codec, codec 246 sound/soc/generic/simple-card.c struct device_node *codec, codec 269 sound/soc/generic/simple-card.c if (!li->cpu || np == codec) codec 290 sound/soc/generic/simple-card.c ret = asoc_simple_parse_daifmt(dev, node, codec, codec 295 sound/soc/generic/simple-card.c simple_parse_mclk_fs(top, cpu, codec, dai_props, prefix); codec 301 sound/soc/generic/simple-card.c ret = asoc_simple_parse_codec(codec, dai_link); codec 313 sound/soc/generic/simple-card.c ret = asoc_simple_parse_tdm(codec, codec_dai); codec 321 sound/soc/generic/simple-card.c ret = asoc_simple_parse_clk_codec(dev, codec, dai_link, codec_dai); codec 349 sound/soc/generic/simple-card.c struct device_node *codec, codec 353 sound/soc/generic/simple-card.c struct device_node *codec, codec 373 sound/soc/generic/simple-card.c struct device_node *codec; codec 378 sound/soc/generic/simple-card.c codec = of_get_child_by_name(node, is_top ? codec 380 sound/soc/generic/simple-card.c if (!codec) { codec 400 sound/soc/generic/simple-card.c ret = func_dpcm(priv, np, codec, li, is_top); codec 403 sound/soc/generic/simple-card.c ret = func_noml(priv, np, codec, li, is_top); codec 406 sound/soc/generic/simple-card.c of_node_put(codec); codec 412 sound/soc/generic/simple-card.c of_node_put(codec); codec 508 sound/soc/generic/simple-card.c struct device_node *codec, codec 512 sound/soc/generic/simple-card.c if (np != codec) codec 520 sound/soc/generic/simple-card.c struct device_node *codec, codec 525 sound/soc/generic/simple-card.c if (np == codec) codec 669 sound/soc/generic/simple-card.c !cinfo->codec || codec 683 sound/soc/generic/simple-card.c codecs->name = cinfo->codec; codec 390 sound/soc/intel/atom/sst-mfld-dsp.h u8 codec; codec 115 sound/soc/intel/atom/sst-mfld-platform-compress.c switch (params->codec.id) { codec 117 sound/soc/intel/atom/sst-mfld-platform-compress.c str_params.codec = SST_CODEC_TYPE_MP3; codec 118 sound/soc/intel/atom/sst-mfld-platform-compress.c str_params.sparams.uc.mp3_params.num_chan = params->codec.ch_in; codec 124 sound/soc/intel/atom/sst-mfld-platform-compress.c str_params.codec = SST_CODEC_TYPE_AAC; codec 125 sound/soc/intel/atom/sst-mfld-platform-compress.c str_params.sparams.uc.aac_params.num_chan = params->codec.ch_in; codec 127 sound/soc/intel/atom/sst-mfld-platform-compress.c if (params->codec.format == SND_AUDIOSTREAMFORMAT_MP4ADTS) codec 130 sound/soc/intel/atom/sst-mfld-platform-compress.c else if (params->codec.format == SND_AUDIOSTREAMFORMAT_RAW) codec 134 sound/soc/intel/atom/sst-mfld-platform-compress.c pr_err("Undefined format%d\n", params->codec.format); codec 138 sound/soc/intel/atom/sst-mfld-platform-compress.c params->codec.sample_rate; codec 143 sound/soc/intel/atom/sst-mfld-platform-compress.c pr_err("codec not supported, id =%d\n", params->codec.id); codec 237 sound/soc/intel/atom/sst-mfld-platform-compress.c struct snd_compr_codec_caps *codec) codec 242 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->get_codec_caps(codec); codec 239 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_params.codec = SST_CODEC_TYPE_PCM; codec 69 sound/soc/intel/atom/sst-mfld-platform.h u16 codec; /* codec type */ codec 82 sound/soc/intel/atom/sst-mfld-platform.h u8 codec; codec 113 sound/soc/intel/atom/sst-mfld-platform.h int (*get_codec_caps)(struct snd_compr_codec_caps *codec); codec 81 sound/soc/intel/atom/sst/sst_drv_interface.c switch (str_param->codec) { codec 100 sound/soc/intel/atom/sst/sst_drv_interface.c switch (str_param->codec) { codec 427 sound/soc/intel/atom/sst/sst_drv_interface.c static int sst_cdev_codec_caps(struct snd_compr_codec_caps *codec) codec 429 sound/soc/intel/atom/sst/sst_drv_interface.c if (codec->codec == SND_AUDIOCODEC_MP3) codec 430 sound/soc/intel/atom/sst/sst_drv_interface.c *codec = caps_mp3; codec 431 sound/soc/intel/atom/sst/sst_drv_interface.c else if (codec->codec == SND_AUDIOCODEC_AAC) codec 432 sound/soc/intel/atom/sst/sst_drv_interface.c *codec = caps_aac; codec 46 sound/soc/intel/atom/sst/sst_stream.c str_info->alloc_param.codec_type = str_params->codec; codec 164 sound/soc/intel/boards/broadwell.c SND_SOC_DAILINK_DEF(codec, codec 221 sound/soc/intel/boards/broadwell.c SND_SOC_DAILINK_REG(dummy, codec, dummy), codec 73 sound/soc/intel/boards/bytcht_cx2072x.c struct snd_soc_component *codec = rtd->codec_dai->component; codec 76 sound/soc/intel/boards/bytcht_cx2072x.c if (devm_acpi_dev_add_driver_gpios(codec->dev, codec 98 sound/soc/intel/boards/bytcht_cx2072x.c snd_soc_component_set_jack(codec, &byt_cht_cx2072x_headset, NULL); codec 160 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_component *codec = runtime->codec_dai->component; codec 232 sound/soc/intel/boards/bytcht_es8316.c snd_soc_component_set_jack(codec, &priv->jack, NULL); codec 543 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_component *codec = runtime->codec_dai->component; codec 554 sound/soc/intel/boards/bytcr_rt5651.c snd_soc_component_update_bits(codec, RT5651_GLB_CLK, codec 650 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_component_set_jack(codec, &priv->jack, codec 114 sound/soc/intel/boards/haswell.c SND_SOC_DAILINK_DEF(codec, codec 171 sound/soc/intel/boards/haswell.c SND_SOC_DAILINK_REG(dummy, codec, dummy), codec 676 sound/soc/intel/skylake/skl.c static void load_codec_module(struct hda_codec *codec) codec 682 sound/soc/intel/skylake/skl.c snd_hdac_codec_modalias(&codec->core, modalias, sizeof(modalias)); codec 684 sound/soc/intel/skylake/skl.c dev_dbg(&codec->core.dev, "loading %s codec module\n", mod); codec 720 sound/soc/intel/skylake/skl.c hda_codec->codec.bus = skl_to_hbus(skl); codec 721 sound/soc/intel/skylake/skl.c hdev = &hda_codec->codec.core; codec 730 sound/soc/intel/skylake/skl.c load_codec_module(&hda_codec->codec); codec 57 sound/soc/mediatek/mt2701/mt2701-wm8960.c SND_SOC_DAILINK_DEFS(codec, codec 91 sound/soc/mediatek/mt2701/mt2701-wm8960.c SND_SOC_DAILINK_REG(codec), codec 117 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c SND_SOC_DAILINK_DEFS(codec, codec 153 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c SND_SOC_DAILINK_REG(codec), codec 139 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c SND_SOC_DAILINK_DEFS(codec, codec 194 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c SND_SOC_DAILINK_REG(codec), codec 170 sound/soc/mediatek/mt8173/mt8173-rt5650.c SND_SOC_DAILINK_DEFS(codec, codec 219 sound/soc/mediatek/mt8173/mt8173-rt5650.c SND_SOC_DAILINK_REG(codec), codec 113 sound/soc/meson/axg-card.c struct snd_soc_dai_link_component *codec; codec 121 sound/soc/meson/axg-card.c for_each_link_codecs(link, j, codec) codec 122 sound/soc/meson/axg-card.c of_node_put(codec->of_node); codec 469 sound/soc/meson/axg-card.c struct snd_soc_dai_link_component *codec; codec 484 sound/soc/meson/axg-card.c codec = devm_kcalloc(card->dev, num_codecs, sizeof(*codec), GFP_KERNEL); codec 485 sound/soc/meson/axg-card.c if (!codec) codec 488 sound/soc/meson/axg-card.c link->codecs = codec; codec 492 sound/soc/meson/axg-card.c ret = axg_card_parse_dai(card, np, &codec->of_node, codec 493 sound/soc/meson/axg-card.c &codec->dai_name); codec 499 sound/soc/meson/axg-card.c codec++; codec 514 sound/soc/meson/axg-card.c struct snd_soc_dai_link_component *codec; codec 516 sound/soc/meson/axg-card.c codec = devm_kzalloc(card->dev, sizeof(*codec), GFP_KERNEL); codec 517 sound/soc/meson/axg-card.c if (!codec) codec 520 sound/soc/meson/axg-card.c link->codecs = codec; codec 118 sound/soc/qcom/apq8016_sbc.c struct device_node *np, *codec, *cpu, *node = dev->of_node; codec 165 sound/soc/qcom/apq8016_sbc.c codec = of_get_child_by_name(np, "codec"); codec 167 sound/soc/qcom/apq8016_sbc.c if (!cpu || !codec) { codec 186 sound/soc/qcom/apq8016_sbc.c ret = snd_soc_of_get_dai_link_codecs(dev, codec, link); codec 205 sound/soc/qcom/apq8016_sbc.c of_node_put(codec); codec 213 sound/soc/qcom/apq8016_sbc.c of_node_put(codec); codec 11 sound/soc/qcom/common.c struct device_node *codec = NULL; codec 64 sound/soc/qcom/common.c codec = of_get_child_by_name(np, "codec"); codec 87 sound/soc/qcom/common.c if (codec && platform) { codec 97 sound/soc/qcom/common.c ret = snd_soc_of_get_dai_link_codecs(dev, codec, link); codec 126 sound/soc/qcom/common.c of_node_put(codec); codec 134 sound/soc/qcom/common.c of_node_put(codec); codec 657 sound/soc/qcom/qdsp6/q6asm-dai.c ret = q6asm_open_write(prtd->audio_client, params->codec.id, codec 778 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_codec_caps *codec) codec 780 sound/soc/qcom/qdsp6/q6asm-dai.c switch (codec->codec) { codec 782 sound/soc/qcom/qdsp6/q6asm-dai.c *codec = q6asm_compr_caps; codec 203 sound/soc/samsung/odroid.c struct device_node *cpu, *codec; codec 245 sound/soc/samsung/odroid.c codec = of_get_child_by_name(dev->of_node, "codec"); codec 290 sound/soc/samsung/odroid.c ret = snd_soc_of_get_dai_link_codecs(dev, codec, codec_link); codec 319 sound/soc/samsung/odroid.c of_node_put(codec); codec 330 sound/soc/samsung/odroid.c of_node_put(codec); codec 132 sound/soc/samsung/snow.c struct device_node *cpu, *codec; codec 174 sound/soc/samsung/snow.c codec = of_get_child_by_name(dev->of_node, "codec"); codec 175 sound/soc/samsung/snow.c ret = snd_soc_of_get_dai_link_codecs(dev, codec, link); codec 176 sound/soc/samsung/snow.c of_node_put(codec); codec 646 sound/soc/soc-compress.c struct snd_compr_codec_caps *codec) codec 663 sound/soc/soc-compress.c codec); codec 879 sound/soc/soc-core.c struct snd_soc_dai_link_component *codec, *platform; codec 909 sound/soc/soc-core.c for_each_link_codecs(dai_link, i, codec) { codec 910 sound/soc/soc-core.c rtd->codec_dais[i] = snd_soc_find_dai(codec); codec 913 sound/soc/soc-core.c codec->dai_name); codec 1258 sound/soc/soc-core.c struct snd_soc_dai_link_component *codec, *platform; codec 1260 sound/soc/soc-core.c for_each_link_codecs(link, i, codec) { codec 1265 sound/soc/soc-core.c if (!!codec->name == !!codec->of_node) { codec 1272 sound/soc/soc-core.c if (!codec->dai_name) { codec 1282 sound/soc/soc-core.c if (!soc_find_component(codec)) codec 4300 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *codec, *playback_cpu, *capture_cpu; codec 4317 sound/soc/soc-dapm.c codec = codec_dai->playback_widget; codec 4319 sound/soc/soc-dapm.c if (playback_cpu && codec) { codec 4338 sound/soc/soc-dapm.c codec_dai->component->name, codec->name); codec 4340 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, playback, codec, codec 4347 sound/soc/soc-dapm.c codec = codec_dai->capture_widget; codec 4349 sound/soc/soc-dapm.c if (codec && capture_cpu) { codec 4367 sound/soc/soc-dapm.c codec_dai->component->name, codec->name, codec 4370 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, codec, capture, codec 27 sound/soc/sof/intel/hda-codec.c static int hda_codec_load_module(struct hda_codec *codec) codec 33 sound/soc/sof/intel/hda-codec.c snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias)); codec 34 sound/soc/sof/intel/hda-codec.c dev_dbg(&codec->core.dev, "loading codec module: %s\n", module); codec 37 sound/soc/sof/intel/hda-codec.c return device_attach(hda_codec_dev(codec)); codec 45 sound/soc/sof/intel/hda-codec.c struct hda_codec *codec; codec 48 sound/soc/sof/intel/hda-codec.c list_for_each_codec(codec, hbus) codec 49 sound/soc/sof/intel/hda-codec.c if (codec->jacktbl.used) codec 50 sound/soc/sof/intel/hda-codec.c mask |= BIT(codec->core.addr); codec 60 sound/soc/sof/intel/hda-codec.c struct hda_codec *codec; codec 65 sound/soc/sof/intel/hda-codec.c list_for_each_codec(codec, hbus) codec 70 sound/soc/sof/intel/hda-codec.c if (codec->jacktbl.used) codec 71 sound/soc/sof/intel/hda-codec.c schedule_delayed_work(&codec->jackpoll_work, codec 72 sound/soc/sof/intel/hda-codec.c codec->jackpoll_interval); codec 108 sound/soc/sof/intel/hda-codec.c hda_priv->codec.bus = hbus; codec 109 sound/soc/sof/intel/hda-codec.c hdev = &hda_priv->codec.core; codec 118 sound/soc/sof/intel/hda-codec.c ret = hda_codec_load_module(&hda_priv->codec); codec 295 sound/soc/sprd/sprd-pcm-compress.c compr_params.sample_rate = params->codec.sample_rate; codec 299 sound/soc/sprd/sprd-pcm-compress.c compr_params.rate = params->codec.bit_rate; codec 300 sound/soc/sprd/sprd-pcm-compress.c compr_params.format = params->codec.id; codec 629 sound/soc/sprd/sprd-pcm-compress.c struct snd_compr_codec_caps *codec) codec 631 sound/soc/sprd/sprd-pcm-compress.c switch (codec->codec) { codec 633 sound/soc/sprd/sprd-pcm-compress.c codec->num_descriptors = 2; codec 634 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].max_ch = 2; codec 635 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].bit_rate[0] = 320; codec 636 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].bit_rate[1] = 128; codec 637 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].num_bitrates = 2; codec 638 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].profiles = 0; codec 639 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].modes = SND_AUDIOCHANMODE_MP3_STEREO; codec 640 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[0].formats = 0; codec 644 sound/soc/sprd/sprd-pcm-compress.c codec->num_descriptors = 2; codec 645 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].max_ch = 2; codec 646 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].bit_rate[0] = 320; codec 647 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].bit_rate[1] = 128; codec 648 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].num_bitrates = 2; codec 649 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].profiles = 0; codec 650 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].modes = 0; codec 651 sound/soc/sprd/sprd-pcm-compress.c codec->descriptor[1].formats = 0; codec 1588 sound/soc/sunxi/sun4i-codec.c const struct snd_soc_component_driver *codec; codec 1598 sound/soc/sunxi/sun4i-codec.c .codec = &sun4i_codec_codec, codec 1607 sound/soc/sunxi/sun4i-codec.c .codec = &sun6i_codec_codec, codec 1617 sound/soc/sunxi/sun4i-codec.c .codec = &sun7i_codec_codec, codec 1626 sound/soc/sunxi/sun4i-codec.c .codec = &sun8i_a23_codec_codec, codec 1641 sound/soc/sunxi/sun4i-codec.c .codec = &sun8i_a23_codec_codec, codec 1655 sound/soc/sunxi/sun4i-codec.c .codec = &sun8i_a23_codec_codec, codec 1795 sound/soc/sunxi/sun4i-codec.c ret = devm_snd_soc_register_component(&pdev->dev, quirks->codec, codec 28 sound/soc/tegra/tegra_wm9712.c struct platform_device *codec; codec 81 sound/soc/tegra/tegra_wm9712.c machine->codec = platform_device_alloc("wm9712-codec", -1); codec 82 sound/soc/tegra/tegra_wm9712.c if (!machine->codec) { codec 87 sound/soc/tegra/tegra_wm9712.c ret = platform_device_add(machine->codec); codec 130 sound/soc/tegra/tegra_wm9712.c platform_device_del(machine->codec); codec 132 sound/soc/tegra/tegra_wm9712.c platform_device_put(machine->codec); codec 145 sound/soc/tegra/tegra_wm9712.c platform_device_unregister(machine->codec); codec 124 sound/soc/uniphier/aio-compress.c *params = sub->cparams.codec; codec 138 sound/soc/uniphier/aio-compress.c if (params->codec.id != SND_AUDIOCODEC_IEC61937) { codec 140 sound/soc/uniphier/aio-compress.c params->codec.id); codec 143 sound/soc/uniphier/aio-compress.c if (params->codec.profile != SND_AUDIOPROFILE_IEC61937_SPDIF) { codec 145 sound/soc/uniphier/aio-compress.c params->codec.profile); codec 405 sound/soc/uniphier/aio-compress.c struct snd_compr_codec_caps *codec) codec 407 sound/soc/uniphier/aio-compress.c if (codec->codec == SND_AUDIOCODEC_IEC61937) codec 408 sound/soc/uniphier/aio-compress.c *codec = caps_iec;