Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1236931pxb; Thu, 16 Sep 2021 03:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEapO+v89vR2+Xb8MHPClnEscZmC1Qj7gB5gJKeBXFUIAp3JQR0HHh0UxKh7lR07Mi5HgE X-Received: by 2002:a50:8d08:: with SMTP id s8mr5417034eds.211.1631786473974; Thu, 16 Sep 2021 03:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631786473; cv=none; d=google.com; s=arc-20160816; b=WWTvTCmFnmAp8n7FZMq0v1k7rhSJgsRm5/F2sKaP5UJhcQVcBxr73zPSuWKiMuFpEo lA4CB4z6pGgQISsfmuVxHrsj/gw0pSmrDB6hjZvoq4CK2Rr5VUtvWlHO1oBVC+tbC3RI FfNHX/LtYJ+hzO+9JZgvUDMbdNLM7SMjcCF2ct7J6cQrFvubnfqqSrLdo1pPl77MgTrH Q5axB+2F01HxpAGGITwGRA+7xArZdkArsKVhLlV5RM6Wd+BlF8kX4Dj9355PGf91XFuX LcPrasJdlFE5gf5cSG/3C2MbWS+u6Z2fuP4v9WgFfAr3eW/Y1x6Ch3lUJUwISNGZ8EcP dSZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ha17yogEQU4qUFAR7cWFbPaW839EX045J1Xb9CypQhc=; b=CLi+ERty+OiL0qY2jsKADrjKrGTsVDdZkRJHJy4P0SJAbuf0p3/uXuIVDbgJcNJQcz ZKGQXojNoJT+Cl5vA4OjoffM1o99xM+2yRzA5JL0zZtGfC8TJgiUT9x07Mzmfve4J7XV Cvmkzm0BQ0DNN4TalsCjllnIseASAfMNUtOF9H5HQB245Y8O4/9qapQTF/rDsjnRjVkB XU1mImQkQiHEiMu5oFWYBoOc11IEQsiHd/KxVOSvhsDl/NI6RYgl4yyOA/CXsgGvVuDT 7c1p8u4sUtGxtidsuOLkqK0r7cPRgumQAA5pEMWdr+eU47EWGStlFlz2lVCqfR4GqNqq FXvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=U42uK82d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si2843407edj.122.2021.09.16.03.00.50; Thu, 16 Sep 2021 03:01:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=U42uK82d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236521AbhIPKAU (ORCPT + 99 others); Thu, 16 Sep 2021 06:00:20 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:39294 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237200AbhIPJ7H (ORCPT ); Thu, 16 Sep 2021 05:59:07 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18G6UqLC017886; Thu, 16 Sep 2021 04:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=ha17yogEQU4qUFAR7cWFbPaW839EX045J1Xb9CypQhc=; b=U42uK82d138PV2FiMjHB6SQYsz7P0lo0o6uQCs/khVjit7ufPu780IaTutRJFJkj4BDa cbqZN86wAxKnY6XZdqQ8r/M6ViuyYD7kbbba83Oi9F1+xSg5UNzHEy7rG2n77R6xZWwg k4GoVerwuGm3jZz2Ncvj6HoXxQfnTFwH2gbNKjwmq9th5CwdkKV7xFeAD/YR5ov6nhzX bDVTr3hd031wa90RiyBQstmuHT2NQ23Kpleu1Bvhwk7Omnvzjw5DIZ54//NTceE2Ssl9 1pXyzA2bp9jChVMW0kOGO+PkSzRbqcoZCJQr8PCFpex4Dx6T1a0GyoTlmaoljyVV27kI Yw== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3b3wfv0b8u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 16 Sep 2021 04:57:02 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 16 Sep 2021 10:57:01 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2242.12 via Frontend Transport; Thu, 16 Sep 2021 10:57:01 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.230]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 19C96B15; Thu, 16 Sep 2021 09:57:00 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , , Stefan Binding Subject: [PATCH] ALSA: hda/cs8409: Setup Dolphin Headset Mic as Phantom Jack Date: Thu, 16 Sep 2021 10:56:46 +0100 Message-ID: <20210916095646.7631-1-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 9eaEMjPcBWfdvc6H-_2mCOrYJ3a9_56S X-Proofpoint-ORIG-GUID: 9eaEMjPcBWfdvc6H-_2mCOrYJ3a9_56S X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Binding Dell's requirement to have headset mic as phantom jack on this specific dolphin hardware platform. Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov --- sound/pci/hda/patch_cs8409.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/patch_cs8409.c b/sound/pci/hda/patch_cs8409.c index 3c7ef55d016e..31ff11ab868e 100644 --- a/sound/pci/hda/patch_cs8409.c +++ b/sound/pci/hda/patch_cs8409.c @@ -1207,6 +1207,9 @@ void dolphin_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int ac snd_hda_jack_add_kctl(codec, DOLPHIN_LO_PIN_NID, "Line Out", true, SND_JACK_HEADPHONE, NULL); + snd_hda_jack_add_kctl(codec, DOLPHIN_AMIC_PIN_NID, "Microphone", true, + SND_JACK_MICROPHONE, NULL); + cs8409_fix_caps(codec, DOLPHIN_HP_PIN_NID); cs8409_fix_caps(codec, DOLPHIN_LO_PIN_NID); cs8409_fix_caps(codec, DOLPHIN_AMIC_PIN_NID); -- 2.25.1