Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Geraldo Nascimento <geraldogabriel@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Ico Bukvic <ico@vt.edu>, alsa-devel@alsa-project.org
Subject: Re: Fwd: Odd issue with ALSA connecting directly to HDMI audio output
Date: Wed, 19 Jul 2023 10:21:01 -0300	[thread overview]
Message-ID: <ZLfjPcIRb0Bn3KlY@geday> (raw)
In-Reply-To: <87cz0o13e7.wl-tiwai@suse.de>

On Wed, Jul 19, 2023 at 02:39:44PM +0200, Takashi Iwai wrote:
> On Wed, 19 Jul 2023 14:27:21 +0200,
> Ico Bukvic wrote:
> > 
> > 
> > Thank you, Takashi.
> > 
> > On Raspberry Pi 400 (one with built-in keyboard, although any RPi or Linux
> > computer with HDMI monitor with loudspeakers will do), open pd-l2ork (a
> > variant of pure-data available at http://bit.ly/pd-l2ork; pure-data also has
> > this same problem) and enable DSP. Do the same after changing audio settings
> > via the Preferences window (Edit->Preferences), where you can switch among
> > backends (ALSA vs Portaudio, vs JACK; JACK does not work with any setting). If
> > you have proper audio settings (0 in, 2 out, and a supported SR, r.g.
> > 44,1kHz), you will hear the buzz, and will also hear the desired audio
> > produced (e.g. by running Media->Audio Tester) faintly, with buzz bring at the
> > forefront. Or, you will hear everything OK (default Pulse settings), or
> > nothing. ALSA and PortAudio settings are default Raspbian(RPi)/Ubuntu
> > (desktop). Thank you.
> 
> Well, the question is how the ALSA PCM device is opened, how
> configured and how played.  As Geraldo already suggested, VC4 HDMI on
> RPi has a special format with IEC958 encoding.  Also it has IEC958
> status bit setups.  So, for example, if you'd need to play a normal
> PCM stream with aplay, you'd need to open the device with "hdmi:$CARD"
> device -- then the rest is done in alsa-lib's plugin, and that's
> almost equivalent with what PA does.

Hi Takashi, thanks for taking Ico's report. Perhaps the right
configuration that he needs to use aplay could be:
https://github.com/alsa-project/alsa-lib/blob/master/src/conf/cards/vc4-hdmi.conf

That is, if I understand correctly?

Thanks,
Geraldo Nascimento

      reply	other threads:[~2023-07-19 13:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJrgGbZfPYHhf+p1TJO_LQe=pxkxDtAMPsY6sXOh1xVxq0b69w@mail.gmail.com>
2023-07-18 16:22 ` Fwd: Odd issue with ALSA connecting directly to HDMI audio output Ico Bukvic
2023-07-18 17:12   ` Geraldo Nascimento
2023-07-19  3:51     ` Geraldo Nascimento
2023-07-19  5:58       ` Ico Bukvic
2023-07-19  8:08         ` Takashi Iwai
2023-07-19 12:27           ` Ico Bukvic
2023-07-19 12:39             ` Takashi Iwai
2023-07-19 13:21               ` Geraldo Nascimento [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=ZLfjPcIRb0Bn3KlY@geday \
    --to=geraldogabriel@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=ico@vt.edu \
    --cc=tiwai@suse.de \
    /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