From: Mark Brown <broonie@kernel.org>
To: Xing Zheng <acgzxing@gmail.com>
Cc: dgreid@chromium.org, dianders@chromium.org, heiko@sntech.de,
sonnyrao@chromium.org, linux-rockchip@lists.infradead.org,
zhengxing <zhengxing@rock-chips.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/4] ASoC: rockchip: add rockchip machine driver for rt5650/rt5645
Date: Tue, 12 May 2015 20:30:14 +0100 [thread overview]
Message-ID: <20150512193014.GB3066@sirena.org.uk> (raw)
In-Reply-To: <1431422797-31903-4-git-send-email-zhengxing@rock-chips.com>
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
On Tue, May 12, 2015 at 05:26:36PM +0800, Xing Zheng wrote:
> From: zhengxing <zhengxing@rock-chips.com>
>
> The driver is used for rockchip board using a rt5650/rt5645.
> Test on RK3288 with rt5650.
Similar comments to the Maxim driver plus...
> +/* Jack detect via rt5645 driver. */
> +extern int rt5645_set_jack_detect(struct snd_soc_codec *codec,
> + struct snd_soc_jack *hp_jack,
> + struct snd_soc_jack *mic_jack,
> + struct snd_soc_jack *btn_jack);
> +
> +/* For compatible. */
> +int __weak rt5645_set_jack_detect(struct snd_soc_codec *codec,
> + struct snd_soc_jack *hp_jack,
> + struct snd_soc_jack *mic_jack,
> + struct snd_soc_jack *btn_jack)
> +{
> + dev_warn(codec->dev, "Jack detect dummy, have no implement it?\n");
> +
> + return 0;
> +}
Don't do this - if the functionality isn't there in the CODEC driver get
it implemented before you use it. Make sure you're using the API the
CODEC actually ends up exporting.
> + /* Enable Headset and 4 Buttons Jack detection */
> + ret = snd_soc_card_jack_new(card, "Headphone Jack",
> + SND_JACK_HEADPHONE | SND_JACK_MICROPHONE,
> + ret = snd_soc_card_jack_new(card, "Mic Jack",
> +
> + ret = snd_soc_card_jack_new(card, "Button Jack",
No, don't do this - as discussed in another Chromebook review (I'm
guessing this is a Chromebook) the jacks should represent the physical
jacks in the system. It's possible you have separate headphone and
microphone jacks but I really expect microphone and button to be on the
same socket.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-05-12 19:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 9:26 [PATCH 0/4] ASoC: rockchip: add rockchip machine driver Xing Zheng
2015-05-12 9:26 ` [PATCH 1/4] " Xing Zheng
2015-05-12 19:22 ` Mark Brown
2015-05-13 13:23 ` zhengxing
2015-05-13 16:42 ` Mark Brown
2015-05-13 17:21 ` Dylan Reid
2015-05-13 23:11 ` Dylan Reid
2015-05-14 2:22 ` zhengxing
2015-05-15 20:40 ` [alsa-devel] " Lars-Peter Clausen
2015-05-19 11:16 ` Mark Brown
2015-05-19 16:37 ` Dylan Reid
2015-05-21 11:10 ` Mark Brown
2015-05-12 9:26 ` [PATCH 2/4] ASoC: rockchip: add rockchip machine driver for max98090 Xing Zheng
2015-05-12 19:26 ` Mark Brown
2015-05-13 13:23 ` zhengxing
2015-05-13 16:47 ` Mark Brown
2015-05-12 9:26 ` [PATCH 3/4] ASoC: rockchip: add rockchip machine driver for rt5650/rt5645 Xing Zheng
2015-05-12 19:30 ` Mark Brown [this message]
2015-05-12 9:26 ` [PATCH 4/4] ASoC: rockchip-audio-machine: add rockchip machine driver bindings Xing Zheng
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=20150512193014.GB3066@sirena.org.uk \
--to=broonie@kernel.org \
--cc=acgzxing@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=dgreid@chromium.org \
--cc=dianders@chromium.org \
--cc=heiko@sntech.de \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=perex@perex.cz \
--cc=sonnyrao@chromium.org \
--cc=tiwai@suse.de \
--cc=zhengxing@rock-chips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®