From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: Re: [PATCH 1/2] ASoC: soc-compress: tidyup STREAM vs COMPRESS
Date: Tue, 27 Oct 2020 11:05:06 -0500 [thread overview]
Message-ID: <699d5b33-d88f-ba08-7d63-61ec9fbdc5d8@linux.intel.com> (raw)
In-Reply-To: <87v9ewfnj9.wl-kuninori.morimoto.gx@renesas.com>
On 10/26/20 8:51 PM, Kuninori Morimoto wrote:
>
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> snd_soc_runtime_activate() and
> snd_soc_dai_digital_mute() need SNDRV_PCM_STREAM_xxx
> instead of SND_COMPRESS_xxx.
>
> These are bug but nothing happen because these are same value.
>
> enum {
> SNDRV_PCM_STREAM_PLAYBACK = 0,
> SNDRV_PCM_STREAM_CAPTURE,
> ...
> };
>
> enum snd_compr_direction {
> SND_COMPRESS_PLAYBACK = 0,
> SND_COMPRESS_CAPTURE
> };
>
> This patch tidyup it.
Could we use this instead:
enum snd_compr_direction {
SND_COMPRESS_PLAYBACK = SNDRV_PCM_STREAM_PLAYBACK,
SND_COMPRESS_CAPTURE = SNDRV_PCM_STREAM_CAPTURE
};
Or remove this duplication completely and get rid of snd_compr_direction?
I find it odd to convert two things that had no reason to be different
in the first place.
next prev parent reply other threads:[~2020-10-27 16:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-27 1:50 [PATCH 0/2] ASoC: soc-compress: tidyup STREAM vs COMPRESS Kuninori Morimoto
2020-10-27 1:51 ` [PATCH 1/2] " Kuninori Morimoto
2020-10-27 16:05 ` Pierre-Louis Bossart [this message]
2020-10-28 23:23 ` Kuninori Morimoto
2020-10-28 23:43 ` Kuninori Morimoto
2020-10-29 7:04 ` Takashi Iwai
2020-10-29 15:33 ` Pierre-Louis Bossart
2020-10-29 16:47 ` Takashi Iwai
2020-10-30 0:48 ` Kuninori Morimoto
2020-10-27 1:51 ` [PATCH 2/2] ASoC: soc-compress: add soc_compr_cstream_to_stream() Kuninori Morimoto
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=699d5b33-d88f-ba08-7d63-61ec9fbdc5d8@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.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