kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: "Nuno Sá" <noname.nuno@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: alsa
Date: Fri, 13 Sep 2019 16:05:37 +0200	[thread overview]
Message-ID: <5ca96f1be5975aa235cc697a654b3c57638446a3.camel@gmail.com> (raw)

Hi all,

Im currently doing a driver for the alsa subsystem. This is my first
interaction with it, so sorry if this is to trivial. Since this is my
first time on the subsystem I'm first posting my question here before
going to the alsa mailing list.

So, I'm doing a codec driver for this device 
https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU7118.pdf
. The device is a converter from PDM to I2S/TDM and it has 4 PDM inputs
which can be enabled/disabled via I2C. My question is, how can I add
controls to enable/disable the inputs? I'm trying to use
`SND_SOC_DAPM_SWITCH()` together with a `SOC_DAPM_SINGLE()` control.
The thing is, when I use alsamixer this controls only come up on the
playback tab which makes me feel that something is not ok (the device
only supports Capture stream). Is this correct way to add controls for
input's?

Any inputs would be helpful...


Thanks in advance,
Nuno Sá


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

                 reply	other threads:[~2019-09-13 14:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5ca96f1be5975aa235cc697a654b3c57638446a3.camel@gmail.com \
    --to=noname.nuno@gmail.com \
    --cc=kernelnewbies@kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).