From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Vinod <vkoul@kernel.org>
Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com,
alsa-devel@alsa-project.org, broonie@kernel.org,
Rakesh Ughreja <rakesh.a.ughreja@intel.com>
Subject: Re: [PATCH v4 3/8] ASoC: Intel: Boards: Machine driver for SKL+ w/ HDAudio codecs
Date: Wed, 25 Jul 2018 09:10:23 -0500 [thread overview]
Message-ID: <c9577eef-3b32-e1b9-17e2-0bedce8109c8@linux.intel.com> (raw)
In-Reply-To: <20180725111145.GM3661@vkoul-mobl>
On 7/25/18 6:11 AM, Vinod wrote:
> On 24-07-18, 19:50, Pierre-Louis Bossart wrote:
>
>> +/* skl_hda_digital audio interface glue - connects codec <--> CPU */
>> +struct snd_soc_dai_link skl_hda_be_dai_links[HDA_DSP_MAX_BE_DAI_LINKS] = {
>> +
>> + /* Back End DAI links */
>> + {
>> + .name = "iDisp1",
>> + .id = 1,
>> + .cpu_dai_name = "iDisp1 Pin",
>> + .codec_name = "ehdaudio0D2",
>> + .codec_dai_name = "intel-hdmi-hifi1",
>> + .platform_name = "0000:00:1f.3",
>
> you are setting this one in skl_hda_fill_card_info() so this is
> superfluous
agree, will remove.
>
>> + .dpcm_playback = 1,
>> + .no_pcm = 1,
>> + },
>> + {
>> + .name = "iDisp2",
>> + .id = 2,
>> + .cpu_dai_name = "iDisp2 Pin",
>> + .codec_name = "ehdaudio0D2",
>> + .codec_dai_name = "intel-hdmi-hifi2",
>> + .platform_name = "0000:00:1f.3",
>> + .dpcm_playback = 1,
>> + .no_pcm = 1,
>> + },
>> + {
>> + .name = "iDisp3",
>> + .id = 3,
>
> shouldn't this be queried. not all will have 3 links
Not that I know of. I've always seen SKL+ with 3 audio streams to iDisp.
>> +int skl_hda_hdmi_jack_init(struct snd_soc_card *card)
>> +{
>> + struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card);
>> + struct skl_hda_hdmi_pcm *pcm;
>> + struct snd_soc_component *component = NULL;
>> + int err;
>> + char jack_name[NAME_SIZE];
>
> many people prefer inverted christmas tree for these..
yes, will fix.
>
>> +static struct platform_driver skl_hda_audio = {
>> + .probe = skl_hda_audio_probe,
>> + .driver = {
>> + .name = "skl_hda_dsp_generic",
>
> who creates this pdev, is it the board details (mach name?)
Not sure I understand your question, this part is similar to all other
Intel machine drivers and the way by with the probe happens is also
similar. There is nothing new here, the skylake platform driver finds an
entry in a table, gets the driver name and creates the relevant device.
next prev parent reply other threads:[~2018-07-25 14:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 0:50 [PATCH v4 0/8] Enable HDA Codec support on Intel Platforms Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 1/8] ASoC: Intel: Skylake: fix widget handling Pierre-Louis Bossart
2018-07-25 10:59 ` Vinod
2018-07-25 14:04 ` Pierre-Louis Bossart
2018-07-25 16:11 ` Vinod
2018-07-25 16:39 ` Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 2/8] ASoC: Intel: common: add table for HDA-based platforms Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 3/8] ASoC: Intel: Boards: Machine driver for SKL+ w/ HDAudio codecs Pierre-Louis Bossart
2018-07-25 11:11 ` Vinod
2018-07-25 14:10 ` Pierre-Louis Bossart [this message]
2018-07-25 16:22 ` Vinod
2018-07-25 16:45 ` Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 4/8] ASoC: Intel: Skylake: use HDAudio if ACPI enumeration fails Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 5/8] ASoC: Intel: Skylake: add HDA BE DAIs Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 6/8] ASoC: Intel: Skylake: use hda_bus instead of hdac_bus Pierre-Louis Bossart
2018-07-25 0:50 ` [PATCH v4 7/8] ASoC: hdac_hda: add asoc extension for legacy HDA codec drivers Pierre-Louis Bossart
2018-07-25 11:47 ` Vinod
2018-07-25 14:27 ` Pierre-Louis Bossart
2018-07-25 16:29 ` Vinod
2018-07-26 14:58 ` Mark Brown
2018-07-26 15:36 ` Pierre-Louis Bossart
2018-07-26 16:31 ` Mark Brown
2018-07-25 0:50 ` [PATCH v4 8/8] ASoC: Intel: Skylake: add option to control HDAudio + DSP usage Pierre-Louis Bossart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9577eef-3b32-e1b9-17e2-0bedce8109c8@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@linux.intel.com \
--cc=rakesh.a.ughreja@intel.com \
--cc=tiwai@suse.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.