Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7028785pxv; Fri, 30 Jul 2021 08:21:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoqBwphOC168kcpW+nX05/GbZLorYn3rjR/zSV9xzKWesLWfneQqgHsriv7V/rkXnXf9kb X-Received: by 2002:a17:906:6046:: with SMTP id p6mr3071955ejj.344.1627658500912; Fri, 30 Jul 2021 08:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627658500; cv=none; d=google.com; s=arc-20160816; b=wkS1Ud4P9LiRz1eQ+RQE6KnPfzoIw/zEjmI1BmC5mZSz7qAC/gQcTg6sV7w7/20gMH oPWhIWTkINydZbNuVnjBBnovScTL52cfGWfbmZVIsy+Gq0NhSdVClOmslWOJYDa/5Yrb lDwGHJAvaf8bWc3hkX1aNAjYPFdXQDOUiL+2wnvq7n1g91dBQULp8+NmkC509pUEvTCU Z+xDDKvjWj6cGJxEbMbu/SVhjEXb8OyWhlKWW607fcGedNsBLl2PKSNOwYAuT2lY2APv U34QToGRvcl1Vl/xRLH/4mrJA9egbp9bkSjieQNrRF6oRV+HCYAaZ8ARtfhGil59O7GZ 0Qog== 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=kAukQohrfj/WX10UHQbvubN/oCuh+dDQDCfF1XNXFcE=; b=ZlzNNAYSSbh2GQdy3Vvpe7QJUKVm5euX4BIH2ltDJJEQ37zsrrgS4yEkRAuT9dHgd/ XdC7qpWyaM7y1AgBMRasDX+9LlwsVRK9/jy9p6MA2Xp71CDnWm9pJos2YDJmYqo2HKQv Cw/fh5cHPO9jAlXK2leJJaVUbmwR9K2dq/fgB02OkpGDuSdok/OrhJyPzvpK4UGjAwRT eIBUfEmQB+2pFnha4tLXLRk5L9Jyfv03luE6BK5ZeG7v4w0c4VtaksillFHJwanEYf8i aJYhkU9nFlE6AeLwMxN4MhMnxn7AzbsgkR1pNoW8WotnWg5ETxCQu4B0FDDTbhdlx8Us PV8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=IMtscr6J; 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 f17si1757672edw.586.2021.07.30.08.21.18; Fri, 30 Jul 2021 08:21:40 -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=IMtscr6J; 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 S239773AbhG3PTo (ORCPT + 99 others); Fri, 30 Jul 2021 11:19:44 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:12810 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239636AbhG3PTd (ORCPT ); Fri, 30 Jul 2021 11:19:33 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 16UELBKX004490; Fri, 30 Jul 2021 10:19:14 -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=kAukQohrfj/WX10UHQbvubN/oCuh+dDQDCfF1XNXFcE=; b=IMtscr6J3SobseiG2Dgj+ECCzBcUUm6f5cXYga4Qo3n/a3Z9E91kQ0U5a/jXqc1F6avJ k0Wl/ulfxn7SAmbglKO8F2b+y2tAjB+hMVhF1FXrcSgsH4LtmYnY3oopA/ETYUdrx5U/ U+y13JMlTb7FV0cm/0RscQls7A3v8QBrsOMLzQTtbbK52JyKBpeMVLRIyNgxMl0tKFFC R7QgD5YDE9mKm6uZvTa1AAeRCij9GevnhjuHM8W/6ecF3LsRaLII6IWDzq+i/Cj2SuyH B84lXeith3vpTMlSGnn0bE73lzfxIq0Uw+1zS2oRwOhHv480cvqxjFeoxMaG7rfUZczv jg== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 3a41wd181m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 30 Jul 2021 10:19:13 -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.4; Fri, 30 Jul 2021 16:19:06 +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.4 via Frontend Transport; Fri, 30 Jul 2021 16:19:06 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.32]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 755022BA; Fri, 30 Jul 2021 15:19:06 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , Subject: [PATCH v3 00/27] ALSA: hda/cirrus: Split generic cirrus HDA codecs and CS8490 bridge into separate modules. Date: Fri, 30 Jul 2021 16:18:17 +0100 Message-ID: <20210730151844.7873-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: OhD0oMXdbKSG9kF-Q4iGhb6Dn3VO88wR X-Proofpoint-ORIG-GUID: OhD0oMXdbKSG9kF-Q4iGhb6Dn3VO88wR X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 phishscore=0 bulkscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107300102 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 | 1253 +++++++++++++++++++++++++++ sound/pci/hda/patch_cs8409.h | 369 ++++++++ 6 files changed, 2194 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