From patchwork Thu Sep 17 17:14:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 4843 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0D3E63F080 for ; Thu, 17 Sep 2026 19:14:47 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-49cf9df1eadsf11324395e9.3 for ; Thu, 17 Sep 2026 10:14:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1789665286; cv=pass; d=google.com; s=arc-20260327; b=CTUM1iPnbE34Esk91Oo8qzgKXMShdM7WivrzS9KcQqHym/Fyfz8ndcTMYn6OnyTSCr SO509EZF6H4jDIZZb+h+/PZuHL/1NhnY1ezTZqiz59rb6SWdlIEdGmZTHoTLTD6ePX5m FXKlnVEzcjLy4T5D0eoSKPs8RV3LA7K2VnFG1equi5KUVsZYdgTlYTXYON8NyfeKv8kv ypJZ4QDytz4b+YNm6ukTWQ7TT2/kJRGT8Hao57HzicubRE3raUgOqZamJQrNTroI81l4 Qy4/T5lJJgOm01fssTI5gmk1hGbtOj6a6tQjhCsrxXBGxr20EkMcXyScCRZzvQK9IV5N 3hbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=udl6WKpfLC2cs8DoXCPXvOs6uEdQzl8vHSYGONea1Ec=; fh=PTpghjkXZhGNfMrNVGTHb8aaz6WKAAcdwFDIt9Q36sA=; b=N47V5BShMewxAEr/TCuFvsov3vEaqYz36V6wtVTBv54oyQN/50W+FZesnkp3YnACX7 dxBhsyihP40sS5Nt15JtqB8iXgQ5nBPvl88dPHfWnvWZ/EEKu2uoPNV1VLZJfI6+otNi YK5q94fDh/VEXV0805nQLAigWb6obFFfSTjBzCBVB4xdlbyuV4FLNkTefu2EGar8FjHQ C8nKJNUMlTNy+MnPdX3iqr2Llurx3UXU/CIQao9QJ3KS82op+urXHYHe8NGZ5SGKE5jI gc5xNIna0K+rsP8wZGReytfGnH6/z0vvWF6Q1WFwo1B4xfzVB9Hm1jvCOXQRONFG3ZQh fr4A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eoTCT7p7; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1789665286; x=1790270086; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=udl6WKpfLC2cs8DoXCPXvOs6uEdQzl8vHSYGONea1Ec=; b=Qtpr3GDvuCrYVFIfA2fGmjh2RI3PNl+ANGXbTyED+dIjSMOhkldU/czUBbP8RGsL6x DG2x0+0+RdqSrheEZnfp6x4C9nzP2Qko4loLC1BYLFTDejdq35MCPqrtMWJJTDkJnOi7 X+Xvlz22a6wiyhzWiY5QUfplMghhFn0Qiml9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789665286; x=1790270086; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=udl6WKpfLC2cs8DoXCPXvOs6uEdQzl8vHSYGONea1Ec=; b=aOpJflQTYSLlpQ7xF4Ep3RLPYUeFSuk1m0EX6NthBgDANWDerCO9tehpGC4gh4k6NV YIyO8LIpNSkicp32ItT2X/q2oXEevm4AdLZEGC5MKSmVwJQq3PC5vznjKBW+6p4d/cDD v1bvGFHFHJHndRpjfFnEmH0cmjfklkRjEGU3k55yEpiqDT3qtw8GgGxGrcZHVOVNlPO5 uMgta4+afO78MC2ieeyClE4F4rAXxYVgzfeFjbg/d7886RitHAJ4+LW4RsdRnj0mSBgV 6JGDlQoiU9X9zLRk2olOTwneC8+FvyhSaxIX1Zmy4rgzwog768kumeKvOQAC0mj23vl7 DsLg== X-Forwarded-Encrypted: i=2; AKwUvBwa8dxWADiQr1iR2IN4BjPI35ypGmcsqD4IuxSPr0aw8F3WQMMc5xklnFfE+u7bb5/7Bd23KFl244J4DlW5@patchwork.amarulasolutions.com X-Gm-Message-State: AFuF++kuDLGv9nKhkV+syWH6cPVlBBHekG4hiLvSiY9IMLpbKF/LjAR+ ra36vQ0RPpgs5evy9yY3lBKFzjhtW/ANmPsuYMmiKCmbe7ps+Zayhv9+p+VGdxyBsqgZFXFekJE XMA== X-Received: by 2002:a05:600c:4686:b0:499:8b13:3a98 with SMTP id 5b1f17b1804b1-49eac46396bmr88207265e9.4.1789665286493; Thu, 17 Sep 2026 10:14:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h="ATskLdcfHQq3P1m63PC2FMi6gHUmlOz68Pb+NMJY/6tVl3jA8g==" Received: by 2002:a05:600c:6305:b0:49d:1ca4:8185 with SMTP id 5b1f17b1804b1-49fbd11ad62ls9699925e9.2.-pod-prod-09-eu; Thu, 17 Sep 2026 10:14:45 -0700 (PDT) X-Received: by 2002:a05:600c:46cb:b0:49c:eb16:9fd with SMTP id 5b1f17b1804b1-49eac463764mr94420775e9.3.1789665284833; Thu, 17 Sep 2026 10:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1789665284; cv=none; d=google.com; s=arc-20260327; b=BPAWSN0+f7R2eqETM4a6TStPzWghkxIyHPw3wnCNHJpiobgCTqBeu7z2pgLeCqCxKx T5aFRX+j3Th+Jo1qeEPGrko7wAFuNA8ms4s20/bVLAF4eTEILLw0qNI77GSNdd+Jmqto mhkkwLDPClsjUun564of3xqM9yKfqrwlzGNE/XFw0vOw62LwdSUeHtEWiPSG4FsSmvHA fQjwLu8CamEbrmFn64jKIuU4Tt0xrgd7Gx//k2iw0qFOpoi3fhPWuoB5uVFgA2LgByL7 i8RKYx+VYYMxOlPuafCYorzS/W36XAZAgMJ5cAvSw90GvhXHU7icY0+Yt7OnKRPGpKHe +jWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=2OccBSopMj5CSMaDNIzHjeRHrhbmpJz4XgM6wCt7dFU=; fh=MbwyPnBGeeuaCnBVzwLFVgpeX9tmPxCG7y/nwy0/5KI=; b=jWX4AaxI6MKmJBIhO/YsCycpZsXk0bcD2b2llqgB3rATzcAbCJnP6u3kXZICI3d9pW ltpYLWRgRhseM5W0TQlG9NVuqIYWYl7Q4USR9p2MbSIR19Cx7erUqGh/yhpJ2G/bAOck HDOMVBDzmYoUGmFUMvACk7FKsHdgrPdis1jwguEJCuUs9DANCW/P+dBOeSQHUtcttXTj Iw9oum3Vu4chlJKouI3Cc+SH/F2BNfBez9jGGHBCdFstcW3Pp5peX0DA190u7uW19I7u A4EjtGOk2yvuHxI6YHN7SOuae8ljQI5kPOQBh1oLi/zpgRhxgcZtb+2nQINJfNuUCZc9 5iKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eoTCT7p7; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-49e83daeaddsor10968155e9.9.2026.09.17.10.14.44 for (Google Transport Security); Thu, 17 Sep 2026 10:14:44 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: AYBFou2EAelj6LianqI7AO/2p6rJ8Ocfm1a8d9kLJ+TWkIZNLCSm9ISz8wX6iSbx/Uz mrB6feAApTRQsi8ueRTInS0Iq729LS8HvBDo4yNlV5DUs6nTMDe5FbjzMB1zwaADgv7mNTsCvdo U+5EtbSrtbGdh2tw2sIJY5JAscg7oumq8dFVb0K6u2JeZhGu1lhW4yNt5K2h4jSkWhDHsadpkZm JhW8dIkkns7QTebxM/YyzQTgXIO3hyIvDoWB9Whg6G90iN+BPBGvG0KJcCxgOaEbC+v+EU6eeGU 69N1nL/LgX680eM6k/imGJZd8d0Rw40qQNwsvxhxwvJdy2D5tsnL90+mFxWvaCpxiJIWM4n633d NRg9/kCt6xT4KMM2e6IEzWT5orXAZsb0J8/yg+wNSMDe4pQsYILNJW+PexOBMFXTttxkg1nijvT McoavPRWk7XBwxQI8MORBOt9Ser4w40aC2emoFMcLoLQnhcZSRzhVs2aa2/t1oJ8hN2eIfE/x6P VdpmE6FMhcORASFFffRqner2ufmnMGcY9K5N4qcbA+hKNOu0W1CRekmti7x6NHe1uy2yLq9W+Po XL1rG/hn6PjnPtQNKcChzobd4g== X-Received: by 2002:a05:600c:c1c8:20b0:49f:c1a1:5222 with SMTP id 5b1f17b1804b1-49fc1a1522amr19137275e9.33.1789665284341; Thu, 17 Sep 2026 10:14:44 -0700 (PDT) Received: from panicking.amarulasolutions.com (mob-83-225-139-33.net.vodafone.it. [83.225.139.33]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd23a815sm99165125e9.14.2026.09.17.10.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 10:14:43 -0700 (PDT) From: Michael Trimarchi To: Dario Binacchi , Annachiara Gallo , Francesco Nicoletta Puzzillo Cc: linux-amarula@amarulasolutions.com, Michael Trimarchi Subject: [PATCH 0/2] ASoC: pcm179x: Add support for pcm1795 and pcm1796 Date: Thu, 17 Sep 2026 19:14:37 +0200 Message-ID: <20260917171439.3822603-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eoTCT7p7; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This adds support for the PCM1795 and the PCM1796 to the pcm179x driver. The PCM1795 is register compatible with the PCM1792A, but it encodes two of the register 18 FMT[2:0] values differently, so the format encoding is described with a per-codec table instead of the width switches. Only the PCM1795 has real 32-bit formats; on the PCM1792A and the PCM1796 a 32-bit container keeps the 24-bit code, as it always has. Left-justified, which the driver accepted but never programmed, is added on the way. Change history (v6 come from 2016): Today -> v6: - Do not move a 32-bit container to the 32-bit codes on the pcm1792a and the pcm1796, they have no 32-bit format. Go back to the v3 behaviour of keeping the 24-bit code, and advertise S32_LE on them again. Only the pcm1795 uses the 32-bit codes - Add per-codec tables mapping the DAI format and the sample width to the FMT[2:0] value, instead of extending the width switches - Add left-justified support - Resolve the codec model with device_get_match_data() and keep the of_device_id tables in the bus drivers. MODULE_DEVICE_TABLE() aliases a table that has to be defined in the same translation unit, it cannot alias one defined in the common file - Split the device tree documentation into its own patch, and add the compatibles to trivial-codec.yaml, pcm179x.txt was folded into it when the trivial codec bindings were consolidated Changes v5 -> v6 - Add device tree documentation Changes v4 -> v5 - remove dead code Changes v3 -> v4: - clean up compatible list - use enum type instead of pointer of int Changes v2 -> v3: - rebase after i2c support Changes v1 -> v2: - Use switch for support new variants - sort the compatible list Michael Trimarchi (2): ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796 ASoC: pcm179x: Add support for pcm1795 and pcm1796 .../devicetree/bindings/sound/trivial-codec.yaml | 2 + sound/soc/codecs/pcm179x-i2c.c | 2 + sound/soc/codecs/pcm179x-spi.c | 2 + sound/soc/codecs/pcm179x.c | 116 +++++++++++++++------ sound/soc/codecs/pcm179x.h | 11 ++ 5 files changed, 102 insertions(+), 31 deletions(-) To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.