Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp491624lqo; Wed, 8 May 2024 06:19:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSaJO2xzougcZ/YXlwxiphOLOUVv3Js1bAVotT8QbcAiPV8slMjYvakGoH02JN3OCGR/iYYKkux+EdUpYfa8fpZcv1/y7OEl8ToG23Bw== X-Google-Smtp-Source: AGHT+IGiMUqLiA7pukZAE7ikL6B3znELC0UJidjZujFC0Gx3BKu23tzQrDWcHTK3uOAMk3dh9e4x X-Received: by 2002:a05:6214:2461:b0:6a0:9a02:a1b7 with SMTP id 6a1803df08f44-6a15147a8d8mr33460936d6.27.1715174341080; Wed, 08 May 2024 06:19:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715174341; cv=pass; d=google.com; s=arc-20160816; b=Qndnv7Fp3Yrdl/VVVQNCZpxrvYprx79xcxDF/3HaryfC8XxX6iZBuNUbUBTnYiyeOU PdSQSTe3CIIH7NhFqelADWagFJTN5qvk64PZNdyzx5KCKV4BqnXi9uE1iF5nSpPeuIB+ RBHKqHKMkaHrhVNuHq+r34nCnzPiuI6Tzh6NcwHMAqgGFJ6UpxxzawBXltKuJcgpHhwC Nq0w2sn/5RYAcr0DF5Mfyc4LsxT0pH08TUXepK38LY3xK1AqsQ4RlCyYmUswulGJmhnk 1prEqwZ87P5GyFocTqqEuzXWrWfCKSBKvTMlD+5Lrb0e9hf8aEE9pSsdLIbrVgZcfrKY o7Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=295uI5XTwl4A6jc8vWIdZynY4pdjEd3zJOTxrFLdYl8=; fh=3eVbvXVT2F7w23cFT6imnzbn3TO4xlidhy25820AHtI=; b=TbnzpxC689MYx4e91f2Eris6wK43eF88CRs3BIRy49SUFnPIRNC+96ERqbobVIBRGf oH7u3myOplibWiPaFcAskDRpXvFwXBExbPGIjVg0YMJdhw3IYatl+ofeTJ4tyyQpjSYG v+hZBLwy+UaVqbHIA5i0l5Y6O1RoobL+g6DrynvHrCZYbsp2df0L5C21J65JUAi7b1jB pnJv478nu3wTVm/6g7qxfNU5yHaq1E8FYZbxzevkKYiWJiBZwplpRSCaeYeZ51IqltQL d4h6CjxraaG5DKYLA0AGnJs5SfdY2CsA9M/68xWCeaxrwqY1/5G7wviJt09oT/ODiHjx ZxgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XdIL34tY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-173291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d5-20020a05621421c500b006a0ccc49ca3si13793100qvh.97.2024.05.08.06.19.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 06:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XdIL34tY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-173291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D05B1C21C43 for ; Wed, 8 May 2024 13:19:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E52C68664C; Wed, 8 May 2024 13:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XdIL34tY" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2A2C86253; Wed, 8 May 2024 13:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715174180; cv=none; b=noAgiCX4gJ5SOdy+e6tSfZSBLpSQXZymkDaL4rtAp65O8RzMfCb9xBPaRhKiV1gl20c+W919SSvY3DRfjkyX3Yh7CJ16SYG4GKsFGukhI7skHp0o4B5iJqdC+0oHe3w8NHa1kuAWSLWUxQAnisk8AZ5sLwdmvtab80YtKPl3fgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715174180; c=relaxed/simple; bh=l99SSYYgUarZwFUL8X6JnYSQ7YCqlp1K/sehN4H8WYA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ClWmZoz7l4GSKFkEOKiXzVWcqXOJrKb5fVUd8cqY4c9AEI4S+QObkQ58GUMFXa0+sRYcDmp2AXBVGVzSB757dElt6irpakApsggSLGt4LjsNboESSbN6kLXTdp02OApH7ZJDhtjmH3eUaMJ0P/UNXbWRRe5YzDSUZ+tvCVQd8gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XdIL34tY; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715174179; x=1746710179; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=l99SSYYgUarZwFUL8X6JnYSQ7YCqlp1K/sehN4H8WYA=; b=XdIL34tYfA6RSdiTFgygv6eIbgiZx0odLBEJWmQj/RYInfMAbfOsKLkA +Ld4OzoYeQIPPFweUIayy3RRZdC5w8sGeqIBAMatlBA7GArx1ePjVe6VR iBZLzafXzR1NWPr6L1BrjHho7fzAkMBzvIDEdyHaOVjw8pSCGyybVErgh KQBX9Mgcg47flT6dDcTs05+aBr+WzyZSjcpMUXld3ypkZfEk5LXdzwymN X29FheI53aFEZBvv1txNEyhPn8kSWWqm2QvM1BkyggzhxrITGN6vyONaD DQuhn6tLOGYdzAhHCUyCqsvO3CsIJUbfnKNUQUfq0HfybYezlX+gIdvml w==; X-CSE-ConnectionGUID: 76mfqUxbQyGziLh7deszBw== X-CSE-MsgGUID: dRXqz7hvRLeeRHRUiJ6Gtw== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="36413270" X-IronPort-AV: E=Sophos;i="6.08,145,1712646000"; d="scan'208";a="36413270" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 06:16:18 -0700 X-CSE-ConnectionGUID: LkpahC3rQNmkL/KTma1Kew== X-CSE-MsgGUID: lmGKK0rbQMGnIMdH9b7Rdg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,145,1712646000"; d="scan'208";a="33356806" Received: from sskolar-mobl.amr.corp.intel.com (HELO [10.212.67.115]) ([10.212.67.115]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 06:16:17 -0700 Message-ID: <54b79b7b-49e6-418e-9a6b-11bcbada8398@linux.intel.com> Date: Tue, 7 May 2024 16:26:09 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v21 27/39] ASoC: Introduce SND kcontrols to select sound card and PCM device To: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, conor+dt@kernel.org, corbet@lwn.net, lgirdwood@gmail.com, andersson@kernel.org, krzk+dt@kernel.org, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, broonie@kernel.org, bgoswami@quicinc.com, tiwai@suse.com, bagasdotme@gmail.com, robh@kernel.org, konrad.dybcio@linaro.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, alsa-devel@alsa-project.org References: <20240507195116.9464-1-quic_wcheng@quicinc.com> <20240507195116.9464-28-quic_wcheng@quicinc.com> Content-Language: en-US From: Pierre-Louis Bossart In-Reply-To: <20240507195116.9464-28-quic_wcheng@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/7/24 14:51, Wesley Cheng wrote: > Add SND kcontrol to SOC USB, which will allow for userpsace to determine > which USB card number and PCM device to offload. This allows for userspace > to potentially tag an alternate path for a specific USB SND card and PCM > device. Previously, control was absent, and the offload path would be > enabled on the last USB SND device which was connected. This logic will > continue to be applicable if no mixer input is received for specific device > selection. > > An example to configure the offload device using tinymix: > tinymix -D 0 set 'USB Offload Playback Route Select' 1 0 > > The above command will configure the offload path to utilize card#1 and PCM > stream#0. I don't know how this is usable in practice. Using card indices is really hard to do, it depends on the order in which devices are plugged-in...