All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Chemsi Mehdi <chmsmehdi@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Alsa Soc details
Date: Tue, 19 Jul 2016 09:24:49 +0530	[thread overview]
Message-ID: <20160719035449.GB9681@localhost> (raw)
In-Reply-To: <CAHkWnPb+3P6P6qFOVcy=hh6z-v8Ry4FLZnP8qYrZkik10Et3aA@mail.gmail.com>

On Thu, Jul 14, 2016 at 03:07:20PM +0200, Chemsi Mehdi wrote:
> 
>    Why codec driver of ASOC are always I2C based ?, is codec driver role is
>    only control of audio hardware(set/reset registers only)?

That is not true, there are few SPI based and one i wrote which was a
different method altogether. Mostly the audio embedded industry uses I2C
codecs so they are very common

>    There should be three drivers : machine driver, platform driver and
>    codec driver , all of them have .probe and . remove , what is relation
>    between all the probes? removes ?

All of these have two probes :)

First one in hardware probe. Nothing unusual here.
Second is the ASoC probe. Each of these registers a component. The ASoC core
will create the sound card only when all of these components are present. At
that time the ASoC probe in invoked signalling card creation to driver


>    As far I know McBSP is source of audio coming from host and I2C/ McBSP
>    have no direct relation so why we connect platform driver (McBSP) with
>    codec driver(I2C) Via DAI ?

You will have to ask driver authors that, pls cc them


>    When calling snd_pcm_open from userspace which kernel API is called ?
>    snd_pcm_lib_ioctl or  snd_stm_spdif_player_open ? if
>    snd_stm_spdif_player_open so when called snd_pcm_lib_ioctl ?

system call open()

>    How ALSA KERNELAPI is connected to ALSA SOC CORE, via which
>    calls/mechanism ?

The alsa provides driver callbacks. See struct snd_pcm_ops. ASoC provides
the same to asoc driver as well! Additionally we have dai_ops as well.

ASoC has its own ops for card and then it invokes platform, codec pcm and
dai_ops. See sound/soc/soc-pcm.c

-- 
~Vinod

  reply	other threads:[~2016-07-19  3:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 13:07 Alsa Soc details Chemsi Mehdi
2016-07-19  3:54 ` Vinod Koul [this message]
2016-07-19  8:02   ` Chemsi Mehdi

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=20160719035449.GB9681@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=chmsmehdi@gmail.com \
    /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.