How to use "sound" on CARMA/CUDA from Seco?

I am trying to use ALSA capabilities on my Tegra3 CARMA/CUDA system from Seco.
My intention is to use the "sound" under Linux, which currently is the Ubuntu 11.04
version, as originally installed by Seco.

As I see, there are 2 voice cards:

cat /proc/asound/cards

0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0x10800000 irq 130
1 [Tegra ]: HDA-Intel - HDA NVIDIA Tegra
HDA NVIDIA Tegra at 0x70038000 irq 113

It seems, that the card#0 is connected via HDMI channel to my test TV set:

cat /proc/asound/card0/eld#3.0

monitor_present 1
eld_valid 1
connection_type HDMI
sad0_channels 2
sad0_rates [0xe0] 44100 48000 88200
(I have omitted some lines from the above ELD output)

I have created the /home/ubuntu/.asoundrc file with the following contents:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.timer.card 0

I have also used the alsamixer utility and unmuted S/PDIF, S/PDIF 1, S/PDIF 2, S/PDIF 3

Then I can execute
$ speaker-test -D hdmi -c 6

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 5440
Period size range from 32 to 2720
Using max buffer size 5440
Periods = 4
was set period_size = 1088
was set buffer_size = 5440
0 - Front Left
4 - Center
1 - Front Right
3 - Rear Right
2 - Rear Left
5 - LFE
Time per period = 17.850448

But no any sound is heard on the connected TV.

In addition
$ aplay -D hdmi /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE ‘/usr/share/sounds/alsa/Front_Center.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1065: Channels count non available

Any suggestions how can I activate sound, either on the HDMI channel (the card0)
or the "[Tegra]: HDA NVIDIA Tegra" (the card1) ?


Hmm, again I am answering myself:

So far I have given up trying to use the HDMI connection for sound transfer.
If someone succeeded with it, I will appreciate any hints.

However, I have succeeded to play the sounds using the ‘Tegra’ sound card
(the Card1 from the /proc/asound/cards list).

Essentially I have done it in the following way:

  1. Removed the $HOME/.asoundrc file (which I created during previous tests)
  2. Run the ‘alsamixer -c 1’:
    Used the Left and Right arrow buttons to select and unmuted the
    Master and Front channels (with ‘m’) to see ‘00’ instead of ‘MM’.
    Increased the Master and Front volume capability to 100 (with the Up arrow).
    Set the ‘Auto-Mute Mode’ to Disabled (with the Down arrow).
  3. Connected stereo earphones to the Sound socket (color green) on CARMA/CUDA board.
  4. Tested with

    aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav

    to hear the spoken ‘front center’ words and to see the message
    Playing WAVE ‘/usr/share/sounds/alsa/Front_Center.wav’ :
    Signed 16 bit Little Endian, Rate 48000 Hz, Mono
  5. Installed “mpg123” application with “apt-get install mpg123”
  6. Downloaded larger MP3 file, for example
  7. Tested
    mpg123 -a plughw:1,0 08d07.mp3

The sound was playing through the earphones.