All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Laurence Darby <ldarby@tuffmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: oxygen: Fix S/PDIF muting
Date: Sun, 05 Jul 2015 21:23:13 +0200	[thread overview]
Message-ID: <55998421.2000503@ladisch.de> (raw)
In-Reply-To: <20150705195650.96c58d265a2c0118ab48bd2e@tuffmail.com>

Laurence Darby wrote:
> On Tue, 30 Jun 2015 11:43:52 +0200 Clemens Ladisch wrote:
>> Laurence Darby wrote:
>>> If this is still going to prevent fixing the popping noise for the
>>> oxygen chip, what about writing a single 0x00 sample to it in the
>>> driver instead of muting it?
>>
>> This is likely to work (but the zero sample has to go through DMA).
>
> Ok, I eventually got this to work, with this in oxygen_spdif_hw_free():
>
> 	memset (runtime->dma_area, 0, runtime->dma_bytes);
> 	oxygen_trigger(substream,SNDRV_PCM_TRIGGER_START);
> 	msleep (1);
> 	oxygen_trigger(substream,SNDRV_PCM_TRIGGER_STOP);

Please note that hw_free can be called without a valid configuration.

Calling oxygen_trigger() might affect other streams.

> If I create a proper patch for that (it should probably use
> snd_pcm_format_set_silence() instead of memset)

All supported sample formats uses plain zeros.


Regards,
Clemens

      reply	other threads:[~2015-07-05 19:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 12:13 [PATCH] ALSA: oxygen: Fix S/PDIF muting Laurence Darby
2015-06-28 18:44 ` Clemens Ladisch
2015-06-29 20:01   ` Laurence Darby
2015-06-30  9:43     ` Clemens Ladisch
2015-07-05 18:56       ` Laurence Darby
2015-07-05 19:23         ` Clemens Ladisch [this message]

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=55998421.2000503@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=ldarby@tuffmail.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 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.