Message ID | 20230705190324.355282-1-andreas@kemnade.info |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2089159vqx; Wed, 5 Jul 2023 12:27:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEh1K9kbWMv0wMK8xgJNwHZwoX7uhRjBZ7xoMssAzTIT+2/CWrURhbM9MMxh3RNndRVhn53 X-Received: by 2002:a92:d585:0:b0:331:773f:e67a with SMTP id a5-20020a92d585000000b00331773fe67amr28886iln.31.1688585242181; Wed, 05 Jul 2023 12:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688585242; cv=none; d=google.com; s=arc-20160816; b=Q8otfFaCnhKwPnt7YBtoeRWiojzZW28YThbheBR3tgG5Nz7UVPCFQ0ahxBPRwtNpbK /VDDffOpvOq5HKPWJ/pngV3kX0fNF9WVoSAcADDmfxPRTjGIXZ0J4iak93ToA3xt7Mpu v7NV2bQGeENHXyPgabhAbBY8KjAGHMVMIv18FGdklbIwvr7hq5KtydYLzsvogPc+O357 pfNBm1wnGM6IV8tdTuKsc8sgM4UZmVGqX/cnUGte4fgYpKklsVT0zHJSUjvi4wt4prDN xcxQfp9Mt6XXpiByjws7evtgTH6+YCMi4oChL7SVj0zwhGvwmwhiWA20ipdVWuhNlnRT N5gQ== 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:to:from; bh=pIDQnd+x8pzj4YwGps6ylcBPruL8k1f8VD1dv+JrVxE=; fh=k7VoT2L8jBkp/srhzriYpHmGaQcD33boGmUYQ969TJw=; b=PW55xGjcho6XiWrPlu/BsFcB7tWnOd+G/0SdJYrbeQCYqgOKL166Ukd70fl4I4gt2u T00oZK4ZM6d7inOwIQ7UUb1bBRRaZmTKFlicHzKqa96zV7xPHygEvUR/2F3wTSCVTDi7 SQFc+Qg7dZFAXnRzxkYbkGLFKPJvQoHvEFvDIWlSD8fDbQmFQVmcW3h3JRZ2KUBKErAT vumT0A51SkHZdQa6RSw5LV0LaSddEsumBITt28a8bYZJX2gEZZwrQ5DtgiV6fyhBd4I/ eTLlpw5wzP+aDOVXzQ4tk0OQNkKzQde2Kr+Dzl2Y9Z0IfcxBW3efOuhRnWDF6FPQdusj koGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a656a0e000000b0055b4ef605e9si6020578pgu.496.2023.07.05.12.27.07; Wed, 05 Jul 2023 12:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233637AbjGETFC (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 15:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233626AbjGETEA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 15:04:00 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8169F1FEA; Wed, 5 Jul 2023 12:03:40 -0700 (PDT) Received: from p200300ccff0adc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0a:dc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <andreas@kemnade.info>) id 1qH7mh-0017Xc-MG; Wed, 05 Jul 2023 21:03:27 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from <andreas@kemnade.info>) id 1qH7mh-001UQf-09; Wed, 05 Jul 2023 21:03:27 +0200 From: Andreas Kemnade <andreas@kemnade.info> To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, peter.ujfalusi@gmail.com, jarkko.nikula@bitmer.com, dmitry.torokhov@gmail.com, andreas@kemnade.info, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 0/3] ARM: omap4: embt2ws: Add audio support Date: Wed, 5 Jul 2023 21:03:21 +0200 Message-Id: <20230705190324.355282-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770609959306779168?= X-GMAIL-MSGID: =?utf-8?q?1770609959306779168?= |
Series |
ARM: omap4: embt2ws: Add audio support
|
|
Message
Andreas Kemnade
July 5, 2023, 7:03 p.m. UTC
Add audio support for Epson Moverio BT-200. In the vendor kernel, the MCBSP side is used as master, so do it here also that way. Andreas Kemnade (3): ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src ASoC: tlv320aic3x: use BCLK instead of MCLK if not in master mode ARM: dts: omap4: embt2ws: Add audio support arch/arm/boot/dts/omap4-epson-embt2ws.dts | 21 +++++++++++++++++++++ sound/soc/codecs/tlv320aic3x.c | 4 ++++ sound/soc/ti/omap-mcbsp.c | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-)
Comments
On Wed, Jul 05, 2023 at 09:03:23PM +0200, Andreas Kemnade wrote: > + /* probably no mclk if not master, so rely on bitclk */ > + if (!aic3x->master) > + clk_id = 2; > + This is fairly clearly a massive hack, we're just silently ignoring the clock we were asked to configure and choosing another one which is likely at a different rate to that we were expecting and sadly the driver didn't provide an automatic mode due to how old it is. We also appear to try to use the configured clock rate during PLL setup which still happens in hw_params() even with this change which is a bit of a concern here. Are you sure hw_params ends up doing the right thing, and that there are no other systems that get broken by this (perhaps ones sending a lower BCLK for example)? It would be nicer to set the clock via the DT bindings, ideally with the clock bindings...
On Wed, Jul 05, 2023 at 09:03:24PM +0200, Andreas Kemnade wrote: > + sound { > + compatible = "simple-audio-card"; For new usage audio-graph-card2 is preferred, it's a superset of the functionality and much more flexible. > + simple-audio-card,codec { > + sound-dai = <&tlv320aic3x>; > + system-clock-frequency = <24000000>; > + }; > + }; Are you *sure* the BCLK always comes out at this rate?
On Wed, 05 Jul 2023 21:03:21 +0200, Andreas Kemnade wrote: > Add audio support for Epson Moverio BT-200. > In the vendor kernel, the MCBSP side is used as master, > so do it here also that way. > > Andreas Kemnade (3): > ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src > ASoC: tlv320aic3x: use BCLK instead of MCLK if not in master mode > ARM: dts: omap4: embt2ws: Add audio support > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/3] ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src commit: 82e7c8b93a0614b1725e0ea11d0a77b04e058716 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark