Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4701050pxt; Wed, 11 Aug 2021 11:59:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2EQxaqpxapwjpBS3jnYMxwXEmlhP8WPmqtJ4156Mhctn+6yWUHX4gpXjzqoih+w6dR3DZ X-Received: by 2002:a5e:8f43:: with SMTP id x3mr61440iop.206.1628708368838; Wed, 11 Aug 2021 11:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628708368; cv=none; d=google.com; s=arc-20160816; b=AHp8D3AcYZ+XEiwPZLBZul+leNP97wSg0ND29c6bi5grvOoVNkpvJx3JUAYuVAfGYO VZkUNHo8lPPpGHibwm0R4A4nW69MKQlhh9oGZsEi+8oEtVIdxZtCLO3hJmhSfqN/PjBr kuCkRLlrMFPIat7bWgiHGbczqjmV/bmvpa/JnXM6/Gmds5pARngWSAz3LTljnzfuiCBR 2nW5UXRq+1p8Cx7JvEsIMCKAH0TThhoFsr+gUJ6rMrMfg9e/8qm1+OlrXQnPf6DTt35n mLZwwdCjXXD6495xiJxELqfR7OHA4sf6ZgCUpdVcK24EiMUUAJvqtv7rTpN5SSLPJCI9 q8kQ== 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=9mk+IcNawFgWfDj5ophU/HQmwttfCHU7q52+p3GquR4=; b=0F4PSUYXawbbSDj9mBk+C8K0sNlb8zI5cSfmqTOFq0nFfYMnVTGgTRM3Q0yHcCo98O gp6vsfzoYBcngXDLQYHPyW7ph0VO6R7eES+AYNvRd2gRD07nEo75/fHemQlXpnbSicF7 wrZG3gAPrtnH0q/YdUusFSYD653W7rdwcgp0inX4GmGK13NgX4cbGnBOnFsbmpSE/tZv T29Pxn+7ZkaMafp7ZQTix86W4x/76Qy6HT19HCpBvH1NCvSU8Np3/7SI36neCZ1OoGNA lFqvBi+vSTWZpfpMLxOWnNYqjaTUiUJA4P4fmdryyso2xlakKLKPiRmhruYyKTI4Z33g Mc2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ReA0dVCo; 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 z2si312951jal.65.2021.08.11.11.58.55; Wed, 11 Aug 2021 11:59:28 -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=ReA0dVCo; 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 S231567AbhHKS6U (ORCPT + 99 others); Wed, 11 Aug 2021 14:58:20 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:52416 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbhHKS6J (ORCPT ); Wed, 11 Aug 2021 14:58:09 -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 17B9h6hH011884; Wed, 11 Aug 2021 13:57:26 -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=9mk+IcNawFgWfDj5ophU/HQmwttfCHU7q52+p3GquR4=; b=ReA0dVCoPpTKkTJ0ktfOxJmzxNH6TJoDWFKymlYjM7kc7xXG8snY/GlvooGw3Sx1tvSO Yf+3MXT5QfOT4FxaFKZv7cV/BZxZOJcqY4FU9HYoBBNJBerdLLPBJ/ljjveLKUm0vUxz bHABVQsOtJm7Gxhsygh4q8C37UsiHjx6mdAiDZ9itYKBLWtYm6h2qDB3jaVjdNzfgz7J I5koABV5JnmR1/+7aVJkY9a2txUdiD+N8pn2ISsGU2ISqmSvA5MKtFl8G7uxE8War8qj Fpcmk4I5JE2yToOxAfF5yk+jMmR5ztIAS/rU5MsF7dmtDgwPUPXIDtCKNzI4EGy/PYPq CQ== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3acc5ngnt3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 11 Aug 2021 13:57:26 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 11 Aug 2021 19:57:24 +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; Wed, 11 Aug 2021 19:57:24 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.180]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8EF6345D; Wed, 11 Aug 2021 18:57:24 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , Subject: [PATCH v4 00/27] ALSA: hda/cirrus: Split generic cirrus HDA codecs and CS8490 bridge into separate modules. Date: Wed, 11 Aug 2021 19:56:27 +0100 Message-ID: <20210811185654.6837-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-ORIG-GUID: 71bJun0WJ5zmjfCInKfazoVvScfGd5GF X-Proofpoint-GUID: 71bJun0WJ5zmjfCInKfazoVvScfGd5GF X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108110130 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches splits generic cirrus HDA codecs and CS8490 bridge into separate modules, adds support for multiple companion codecs connected to CS8409, and also adds support for new DELL HW platform. CS8409 part is not really a HDA codec, it is a HDA bridge where companion codecs (up to 16) can be attached. With growing number of supported configurations and platforms, patch_cirrus is getting less and less transparent and maintainable. So, the logical step is to separate generic Cirrus HDA codecs support and Cirrus HDA bridge support. Lots of improvements to existing functionality, code clean-up and refactoring, remove duplicated/redundant code, improve I2C functions etc. Add support for new DELL HW platform with 2 CS42L42 codecs for front and rear jacks. Lucas Tanure (12): ALSA: hda/cirrus: Move CS8409 HDA bridge to separate module ALSA: hda/cs8409: Move arrays of configuration to a new file ALSA: hda/cs8409: Disable unsolicited response for the first boot ALSA: hda/cs8409: Prevent I2C access during suspend time ALSA: hda/cs8409: Generalize volume controls ALSA: hda/cs8409: Dont disable I2C clock between consecutive accesses ALSA: hda/cs8409: Avoid setting the same I2C address for every access ALSA: hda/cs8409: Avoid re-setting the same page as the last access ALSA: hda/cs8409: Support i2c bulk read/write functions ALSA: hda/cs8409: Separate CS8409, CS42L42 and project functions ALSA: hda/cs8409: Move codec properties to its own struct ALSA: hda/cs8409: Add support for dolphin Stefan Binding (15): ALSA: hda/cs8409: Use enums for register names and coefficients ALSA: hda/cs8409: Mask all CS42L42 interrupts on initialization ALSA: hda/cs8409: Reduce HS pops/clicks for Cyborg ALSA: hda/cs8409: Disable unnecessary Ring Sense for Cyborg/Warlock/Bullseye ALSA: hda/cs8409: Disable unsolicited responses during suspend ALSA: hda/cs8409: Mask CS42L42 wake events ALSA: hda/cs8409: Simplify CS42L42 jack detect. ALSA: hda/cs8409: Support multiple sub_codecs for Suspend/Resume/Unsol events ALSA: hda/cs8409: Add Support to disable jack type detection for CS42L42 ALSA: hda/cs8409: Enable Full Scale Volume for Line Out Codec on Dolphin ALSA: hda/cs8409: Set fixed sample rate of 48kHz for CS42L42 ALSA: hda/cs8409: Use timeout rather than retries for I2C transaction waits ALSA: hda/cs8409: Remove unnecessary delays ALSA: hda/cs8409: Follow correct CS42L42 power down sequence for suspend ALSA: hda/cs8409: Unmute/Mute codec when stream starts/stops sound/pci/hda/Kconfig | 10 + sound/pci/hda/Makefile | 2 + sound/pci/hda/patch_cirrus.c | 1074 ---------------------- sound/pci/hda/patch_cs8409-tables.c | 560 ++++++++++++ sound/pci/hda/patch_cs8409.c | 1273 +++++++++++++++++++++++++++ sound/pci/hda/patch_cs8409.h | 369 ++++++++ 6 files changed, 2214 insertions(+), 1074 deletions(-) create mode 100644 sound/pci/hda/patch_cs8409-tables.c create mode 100644 sound/pci/hda/patch_cs8409.c create mode 100644 sound/pci/hda/patch_cs8409.h -- 2.25.1