From: Mark Brown <broonie@kernel.org>
To: "Clément Péron" <peron.clem@gmail.com>
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Adrien Charruel <adrien.charruel@devialet.com>
Subject: Re: [PATCH 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver
Date: Tue, 13 Nov 2018 14:51:35 -0800 [thread overview]
Message-ID: <20181113225135.GQ2089@sirena.org.uk> (raw)
In-Reply-To: <20181108124934.32381-1-peron.clem@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
On Thu, Nov 08, 2018 at 01:49:33PM +0100, Clément Péron wrote:
This looks mostly good, a few small things below but nothing too major:
> --- /dev/null
> +++ b/sound/soc/codecs/ak4118.c
> @@ -0,0 +1,449 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * ak4118.c -- Asahi Kasei ALSA Soc Audio driver
> + *
Please make the entire comment a C++ one so this looks more intentional.
> +static const char * const ak4118_iec958_fs_texts[] = {
> + "44100",
> + "Reserved",
If you use a _VALUE_ENUM_SINGLE you can hide the reserved/invalid values
from userspace which is easier to use.
> + ret = request_threaded_irq(gpiod_to_irq(ak4118->irq), NULL,
> + ak4118_irq_handler, IRQF_TRIGGER_RISING |
> + IRQF_ONESHOT, "ak4118-irq", ak4118);
> + if (ret < 0) {
> + dev_err(component->dev, "Fail to request_irq: %d\n", ret);
> + return ret;
> + }
You should request resources in the device level probe, there's no point
in requesting and releasing the interrupt like this.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2018-11-13 22:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-08 12:49 [PATCH 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver Clément Péron
2018-11-08 12:49 ` [PATCH 2/2] ASoC: dt-bindings: add bindings for AK4118 transceiver Clément Péron
2018-11-13 22:51 ` Mark Brown [this message]
2018-11-14 10:55 ` [PATCH 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver Clément Péron
2018-11-14 17:31 ` Mark Brown
2018-11-15 16:31 ` Clément Péron
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=20181113225135.GQ2089@sirena.org.uk \
--to=broonie@kernel.org \
--cc=adrien.charruel@devialet.com \
--cc=alsa-devel@alsa-project.org \
--cc=devicetree@vger.kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=perex@perex.cz \
--cc=peron.clem@gmail.com \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.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;
as well as URLs for NNTP newsgroup(s).