Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752682AbbH0Bw0 (ORCPT ); Wed, 26 Aug 2015 21:52:26 -0400 Received: from mga01.intel.com ([192.55.52.88]:36464 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752531AbbH0BwZ (ORCPT ); Wed, 26 Aug 2015 21:52:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,420,1437462000"; d="scan'208";a="776429399" From: "Lin, Mengdong" To: Liam Girdwood , "Jie, Yang" CC: Takashi Iwai , Dmitry Torokhov , "Luis R. Rodriguez" , "joonas.lahtinen@linux.intel.com" , Tom Gundersen , Ming Lei , Al Viro , "Greg Kroah-Hartman" , Kay Sievers , Linus Torvalds , David Woodhouse , Luis Rodriguez , lkml , yalin wang Subject: RE: Problems loading firmware using built-in drivers with kernels that use initramfs. Thread-Topic: Problems loading firmware using built-in drivers with kernels that use initramfs. Thread-Index: AQHQ3q55Gv2R73fENk2leYdv1OZYrJ4b1gEAgACajKCAACX+AIAAA4oAgAADMYCAAR8o0P//gVwAgACPkzD//5toAIAAiajQ//+FcQAAM6GFUA== Date: Thu, 27 Aug 2015 01:50:35 +0000 Message-ID: References: <1440449403.2469.35.camel@loki> <1440489900.2419.4.camel@loki> <20150825193408.GR8051@wotan.suse.de> <1440576394.2443.17.camel@loki> <1440579636.2443.26.camel@loki> In-Reply-To: <1440579636.2443.26.camel@loki> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t7R1qVMg028557 Content-Length: 1942 Lines: 46 > -----Original Message----- > From: Liam Girdwood [mailto:liam.r.girdwood@linux.intel.com] > Sent: Wednesday, August 26, 2015 5:01 PM > To: Jie, Yang > Cc: Takashi Iwai; Dmitry Torokhov; Luis R. Rodriguez; > joonas.lahtinen@linux.intel.com; Tom Gundersen; Ming Lei; Al Viro; Greg > Kroah-Hartman; Kay Sievers; Linus Torvalds; David Woodhouse; Luis Rodriguez; > lkml; yalin wang; Lin, Mengdong > Subject: Re: Problems loading firmware using built-in drivers with kernels that > use initramfs. > > On Wed, 2015-08-26 at 08:29 +0000, Jie, Yang wrote: > > > -----Original Message----- > > > From: Liam Girdwood [mailto:liam.r.girdwood@linux.intel.com] > > > > I think the options are to either :- > > > > > > 1) Don not support audio DSP drivers using topology data as built-in > drivers. > > > Audio is not really a critical system required for booting anyway. > > > > > > 2) Create a default PCM for every driver that has topology data on > > > the assumption that every sound card will at least 1 PCM. This PCM > > > can then be re-configured when the FW is loaded. > > > > Yep, this case is quite similar with what Linus described. > > > > Is it possible that we can probe pcm device after firmware is loaded > > for this case? > > > > The PCM devices are defined in the topology data so it is only possible to > create the PCM device *after* the firmware is loaded in these drivers. > > Liam It seems this can prevent audio device driver in built-in mode to use topology drivers. If topology is present, the vendor driver also uses request_firmware() to load the topology data file in the probe phase. Then ASoC core will create the sound card and its PCM devices. Shall we force the device drivers that depends on topology to be configured as modules? Thanks Mengdong ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?