Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B812C3A5A2 for ; Tue, 3 Sep 2019 15:12:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0442B20674 for ; Tue, 3 Sep 2019 15:12:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="B3x9xdKW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0442B20674 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2DCBB167E; Tue, 3 Sep 2019 17:11:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2DCBB167E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1567523545; bh=JBcFjwSf4bRwt8OgAhgubfl7fUdwWfE1bf6zKLCgDoY=; h=Date:From:To:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=B3x9xdKWa/22Vq9buoPuHT18Vpo0A9ycvRxaU2SfhVX/MlrtMjuFDmJybfqD09oGt IloSWtR2n+hjZeD0NHJEefpdFIwMYGq/didSjwlZXf8Yxa37S+cwmgr0TFSWVGXqa4 uAGqx8Wb2quRgZcU0GDuG4utZai4HmcqMsUnucZI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AC1A2F803D7; Tue, 3 Sep 2019 17:11:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 20A68F8045F; Tue, 3 Sep 2019 17:11:33 +0200 (CEST) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C1E23F80392 for ; Tue, 3 Sep 2019 17:11:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C1E23F80392 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AC546AF92; Tue, 3 Sep 2019 15:11:29 +0000 (UTC) Date: Tue, 03 Sep 2019 17:11:29 +0200 Message-ID: From: Takashi Iwai To: Kai Vehmanen In-Reply-To: References: <20190829135348.23569-1-kai.vehmanen@linux.intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Cc: libin.yang@intel.com, alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com Subject: Re: [alsa-devel] [RFC PATCH 0/7] adapt SOF to use snd-hda-codec-hdmi X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 03 Sep 2019 16:18:11 +0200, Kai Vehmanen wrote: > > Hi, > > On Thu, 29 Aug 2019, Takashi Iwai wrote: > > >> here's a RFC patch series that adapts SOF (and one example machine > >> driver) to use snd-hda-codec-hdmi (patch_hdmi.c) codec driver > >> instead of hdac_hdmi (soc/codecs/hdac_hdmi.c). The primary goal > [...] > >> 2) Can we drop hdac_hdmi and its support from machine drivers, or > >> do we need to make it optional and keep it around? > > > > IMO, the only and the most important point is whether it works as-is > > without changing the existing user-space, or exactly what scenario > > would be broken. If the breakage is significant, we may introduce a > > Kconfig, as you suggested. > > > > I don't think the mixer contents change are problematic. In the case > > of HDMI/DP, it's mostly read-only for fetching ELD or jack state. > > I've been now continuing testing with different combinations of > kernel/user-space and the two main problematic areas are: > > 1) systems with UCM defined with hdac-hdmi style controls > > -> as the card name will not change, the UCM usage will fail > when kernel is updated to use different HDMI codec driver > > On some systems this is manageable as e.g. pulseaudio will fallback to > legacy non-UCM path and e.g. HDMI/DP audio keeps working. But, but, this > may be problematic if UCM is needed for other functionality on these > systems. Just out of curiosity: which systems are with such UCM profiles? Chromebooks? > 2) machine drivers shared with SST/SOF > > Doing the HDMI codec change for old platforms handled with SST driver > looks difficult to do, so we probably need to keep hdac-hdmi around for > SST usage. That does mean machine drivers that are shared, need to support > both options. > > Combining 1+2, it would seem safer to have a opt-in/opt-out possibility > via Kconfig. I'm preparing a patchset for this -- let's see how it will > look. Agreed, some Kconfig is a safer option for now. thanks, Takashi _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel