Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2729410imm; Tue, 4 Sep 2018 09:05:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKtEbgKbyfYoGTMS4an0cv3slLJNoSym+ggqYHLM0G0BewcQu5A9RjBiMJ4fHubV9gGanp X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr34178976pll.77.1536077138404; Tue, 04 Sep 2018 09:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536077138; cv=none; d=google.com; s=arc-20160816; b=MCBLyd0yHHB1CPyev8FaqiVaNV1+SWO7Ujc1byV7FGqcLfKg78A/8Ya2dWHb5F65MF A+HH+9EOICVvVoWoni6dMeiRCmNMMofrbjeV5ddKiQhBcy8qeK5YMWyhEfOEdlKw9NSF zbg1Y4zjA7en//IR8nv1dMyqNCsikj6PaGwSZSufX+cnGvt3Pui7InuhzphYvBZM+Ylw IauZ0iJEPCDiovS9hM+vj3F3AZnKdgGdaBjNFomov6jvFMC+M2NI5s3REAcQ9yhQJCvO Qefinbr52+WzOyRf28WF9OWaCTj89wrf7LqugThl1Fkhw2BsL4Nc/L5zEBdpKGwXusZh S5Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gYxyiRnWR6vjgOc2LocsZ/B16OJMKBhl7MVMcdpI/K8=; b=rm7G4JRKikDOnOp8vRkFyzpMyY82HBuiYfhE2MmOZSK1kLXFbTT1xBItusf/PvmER2 xE7bEMzRAkZ6Ono5EYObJ1B/Hj1fiPZJ85OoE4iUGpAAfKqN4Jqi0ka8ek9TIgBW51Nt gEjG1TmBgwvax+nESPUo6OuGHGCwAjyD8BKAERMOhwjlI+hLwcBeSuCoql9tF1BSVtKN RUzXYlxSc4GK9V3rhJxKTnyXeIUyKH4sntbsbHfONboYOZ+taSZSKhT7k81dGbyKadQz Jt2lQ/DIODwCVx50MmCP7y1oSD+iXbG3xcV08emv6gUrfsyls1dc0j0iBIxPmlq78od2 ESUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7-v6si22615583pfb.309.2018.09.04.09.05.17; Tue, 04 Sep 2018 09:05:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbeIDUYq (ORCPT + 99 others); Tue, 4 Sep 2018 16:24:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:50724 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726200AbeIDUYq (ORCPT ); Tue, 4 Sep 2018 16:24:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 80CB9ADD6; Tue, 4 Sep 2018 15:59:01 +0000 (UTC) From: Takashi Iwai To: Greg Kroah-Hartman Cc: Eric Anholt , Stefan Wahren , linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/29] staging: bcm2835-audio: Cleanups and fixes Date: Tue, 4 Sep 2018 17:58:29 +0200 Message-Id: <20180904155858.8001-1-tiwai@suse.de> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, since I had an opportunity to play with RPi3B+ recently, I took a look at the existing bcm2835-audio driver code and was amused very much :) So here is the result, a cleanup and fix patch series. Most of the patches are trivial cleanups, just brushing up, removing many redundant and buggy codes, as well as code simplifications. A big functional change is that now it uses non-atomic PCM ops, so that we can kill the ugly workqueue usages. Also, the resource management was simplified. As a result, we can get rid of ca 1000 lines. Not too bad. Takashi === Takashi Iwai (29): staging: bcm2835-audio: Clean up mutex locks staging: bcm2835-audio: Remove redundant spdif stream ctls staging: bcm2835-audio: Clean up include files in bcm2835-ctl.c staging: bcm2835-audio: Remove redundant substream mask checks staging: bcm2835-audio: Fix mute controls, volume handling cleanup staging: bcm2835-audio: Remove redundant function calls staging: bcm2835-audio: Remove superfluous open flag staging: bcm2835-audio: Drop useless running flag and check staging: bcm2835-audio: Fix incorrect draining handling staging: bcm2835-audio: Kill unused spinlock staging: bcm2835-audio: Use PCM runtime values instead staging: bcm2835-audio: Drop unnecessary pcm indirect setup staging: bcm2835-audio: Drop useless NULL check staging: bcm2835-audio: Propagate parameter setup error staging: bcm2835-audio: Drop debug messages in bcm2835-pcm.c staging: bcm2835-audio: Drop superfluous mutex lock during prepare staging: bcm2835-audio: Add 10ms period constraint staging: bcm2835-audio: Make single vchi handle staging: bcm2835-audio: Code refactoring of vchiq accessor codes staging: bcm2835-audio: Operate non-atomic PCM ops staging: bcm2835-audio: Use card->private_data staging: bcm2835-audio: Use standard error print helpers staging: bcm2835-audio: Remove unnecessary header file includes staging: bcm2835-audio: Move module parameter description staging: bcm2835-audio: Use coherent device buffers staging: bcm2835-audio: Set SNDRV_PCM_INFO_SYNC_APPLPTR staging: bcm2835-audio: Simplify PCM creation helpers staging: bcm2835-audio: Simplify kctl creation helpers staging: bcm2835-audio: Simplify card object management .../vc04_services/bcm2835-audio/bcm2835-ctl.c | 235 ++--- .../vc04_services/bcm2835-audio/bcm2835-pcm.c | 338 ++----- .../bcm2835-audio/bcm2835-vchiq.c | 893 +++++------------- .../vc04_services/bcm2835-audio/bcm2835.c | 222 ++--- .../vc04_services/bcm2835-audio/bcm2835.h | 85 +- 5 files changed, 413 insertions(+), 1360 deletions(-) -- 2.18.0