All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Mark Brown <broonie@kernel.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
	krzk@kernel.org, lgirdwood@gmail.com,
	alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2 2/4] ASoC: Drop SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag
Date: Thu, 27 Oct 2016 17:28:55 +0200	[thread overview]
Message-ID: <5f1e2423-ad1a-72b4-ec79-5ef5412e380d@samsung.com> (raw)
In-Reply-To: <20161027142305.GM25322@sirena.org.uk>

On 10/27/2016 04:23 PM, Mark Brown wrote:
> On Thu, Oct 27, 2016 at 01:21:21PM +0200, Sylwester Nawrocki wrote:
>> On 10/25/2016 05:08 PM, Sylwester Nawrocki wrote:
>>> Since commit 194c7dea00c68c1b1f8ff26304fa937a006f66dd
>>> "ASoC: dmaengine: add custom DMA config to snd_dmaengine_pcm_config"
>>> custom DMA channels can be also specified in chan_names[] field of
>>> struct snd_dmaengine_pcm_config.  This patch removes chan_name field
>>> of struct snd_dmaengine_dai_dma_data as it is now unused.
>>>
>>> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>>
>> I'm afraid this patch needs to be reverted :/ I didn't notice earlier
>> the Samsung AC97 controller has 3 substreams per a platform device and
>> this cannot be handled with struct snd_dmaengine_pcm_config, which
>> allows to specify up to 2 DMA channel names.
> 
> Can you send a revert patch with an explanation though...

Sure, I'll prepare the patch.

>> The AC97 driver (sound/soc/samsung/ac97.c) seems to have been broken
>> for a long time as it currently doesn't have the channel names
>> specified at all [1].  It seems in order to fix it the best would
>> be to restore the feature the $subject patch removes.
> 
> ...if the driver just doesn't work and hasn't worked for a long time
> perhaps it's better to just drop the driver?

I'm not opposed to that, the feature certainly hasn't been used for
a long time with mainline kernels.
Then I think these drivers could be dropped as well:

sound/soc/samsung/ln2440sbc_alc650.c
sound/soc/samsung/smdk2443_wm9710.c
sound/soc/samsung/smdk_wm9713.c

That all could be added again with support for new frameworks if there
are requests to support the feature.
I'm going to post patches removing those drivers.

Still I'd like to revert $subject patch to be able to handle more than
2 substreams per DMA device.  I planned to get rid of an additional
platform device creation in sound/soc/samsung/i2s.c,  which IIUC
introduces now unnecessary complication, could be avoided and doesn't
match the hardware very well.  Not quite sure it that would be
the right direction but I think being able to specify custom DMA channel
names per DAI DMA data could be helpful in doing that. I.e. to have
1 PCM with 3 substreams {"tx", "rx", "tx-sec"} instead of 2 PCMs with
substreams {"tx", "rx"} and {"tx-sec"}.

--
Thanks,
Sylwester

  reply	other threads:[~2016-10-27 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 15:08 [PATCH v2 1/4] ASoC: samsung: Remove unneeded initialization of chan_name Sylwester Nawrocki
2016-10-25 15:08 ` [PATCH v2 2/4] ASoC: Drop SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag Sylwester Nawrocki
2016-10-25 16:28   ` Lars-Peter Clausen
2016-10-27 11:21   ` Sylwester Nawrocki
2016-10-27 14:23     ` Mark Brown
2016-10-27 15:28       ` Sylwester Nawrocki [this message]
2016-10-25 15:08 ` [PATCH v2 3/4] ASoC: samsung: s3c24xx-i2s: Don't use platform_data for DMA parameters Sylwester Nawrocki
2016-10-25 15:08 ` [PATCH v2 4/4] ASoC: samsung: s3c24xx-i2s: Debug/error trace cleanup Sylwester Nawrocki

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=5f1e2423-ad1a-72b4-ec79-5ef5412e380d@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux-samsung-soc@vger.kernel.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 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.