Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 12:05 am

I installed debian 10, but I have trubles with sound.

In VLC I see only one mono sound interface. It hasn't hdmi output. And I don't know how change to stereo. Maybe anybody know how I can fix it?

$ cat /proc/asound/cards
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
2 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
bcm2835 ALSA

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 12:59 am

Nmisha wrote:
Wed Jul 28, 2021 12:05 am
I installed debian 10, but I have trubles with sound.

In VLC I see only one mono sound interface. It hasn't hdmi output. And I don't know how change to stereo. Maybe anybody know how I can fix it?

$ cat /proc/asound/cards
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
2 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
bcm2835 ALSA

Maybe running the supported Raspberry Pi (Raspbian) with Desktop Operating System would be beneficial ?

https://www.raspberrypi.org/software
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 8:28 am

May be. But Raspberry pi os is officially unsupported by HomeAssistant. And I had some troubles with it, because trying debian.

I suggest that udev incorrect detect sound card and set profile. But I have driver snd_bcm2835.
If I disable mono sound profile in pulse audio (workaround) I got stereo sound output (analog output), but I havn't hdmi sound output. I think it is bad way for solution

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 9:02 am

Nmisha wrote:
Wed Jul 28, 2021 8:28 am
May be. But Raspberry pi os is officially unsupported by HomeAssistant. And I had some troubles with it, because trying debian.

I suggest that udev incorrect detect sound card and set profile. But I have driver snd_bcm2835.
If I disable mono sound profile in pulse audio (workaround) I got stereo sound output (analog output), but I havn't hdmi sound output. I think it is bad way for solution

HomeAssistant, well that was not mentioned in your Original Post, therefore whoever compiled whatever version of Debian should support, if HomeAssistant are not willing.

Debian themselves do not Officially Support.
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 9:20 am

I see that debian is supported platform.

Code: Select all

Supported Operating System, System dependencies and versions
Debian Linux Debian 10 aka Buster (no derivatives)

https://www.home-assistant.io/installation/linux#install-home-assistant-supervised
However, I didn't find manual for transform debian to raspberian :) And as I understood, debian image created for RPi and should be working. :)

Offtopic. For Bluetooth I found driver and got it:
sudo wget https://github.com/RPi-Distro/bluez-fir ... 4345C0.hcd /lib/firmware/brcm

May I should find another files for sound, power, ... etc

P.S. I got debian image from https://raspi.debian.net/tested-images/

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 9:40 am

Nmisha wrote:
Wed Jul 28, 2021 9:20 am
I see that debian is supported platform.

Code: Select all

Supported Operating System, System dependencies and versions
Debian Linux Debian 10 aka Buster (no derivatives)

https://www.home-assistant.io/installation/linux#install-home-assistant-supervised
However, I didn't find manual for transform debian to raspberian :) And as I understood, debian image created for RPi and should be working. :)

Offtopic. For Bluetooth I found driver and got it:
sudo wget https://github.com/RPi-Distro/bluez-fir ... 4345C0.hcd /lib/firmware/brcm

May I should find another files for sound, power, ... etc

It would appear Home Assistant offer an .IMG file specifically for the Raspberry Pi:

https://www.home-assistant.io/installation/raspberrypi

https://github.com/home-assistant/opera ... m/releases

.
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 10:11 am

fruitoftheloom wrote:
Wed Jul 28, 2021 9:40 am
Nmisha wrote:
Wed Jul 28, 2021 9:20 am
I see that debian is supported platform.

Code: Select all

Supported Operating System, System dependencies and versions
Debian Linux Debian 10 aka Buster (no derivatives)

https://www.home-assistant.io/installation/linux#install-home-assistant-supervised
However, I didn't find manual for transform debian to raspberian :) And as I understood, debian image created for RPi and should be working. :)

Offtopic. For Bluetooth I found driver and got it:
sudo wget https://github.com/RPi-Distro/bluez-fir ... 4345C0.hcd /lib/firmware/brcm

May I should find another files for sound, power, ... etc

It would appear Home Assistant offer an .IMG file specifically for the Raspberry Pi:

https://www.home-assistant.io/installation/raspberrypi

https://github.com/home-assistant/opera ... m/releases

.
Yes, but it's closed debian-based OS without access ("blackbox" HA on rpi) or restricted HA without supervised option. I don't know why HA finished support raspberrypi os for supervised installation.

LTolledo
Posts: 5814
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 11:36 am

please test audio with your ears... not with eyes....

this is what is reported by my system (for my eyes to see)
asound command output.jpg
asound command output.jpg (42.69 KiB) Viewed 757 times
if I attach a headphone to the RPi4B's audio jack and play a stereo encoded media via VLC...
my ears hear stereo (separate left and right channels)

confirmed by my eyes and ears after watching this:
https://www.youtube.com/watch?v=hTvJoYnpeRQ

it wouldn't hurt trying out.... would it....?
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 11:52 am

LTolledo wrote:
Wed Jul 28, 2021 11:36 am
please test audio with your ears... not with eyes....

this is what is reported by my system (for my eyes to see)
asound command output.jpg

if I attach a headphone to the RPi4B's audio jack and play a stereo encoded media via VLC...
my ears hear stereo (separate left and right channels)

confirmed by my eyes and ears after watching this:
https://www.youtube.com/watch?v=hTvJoYnpeRQ

it wouldn't hurt trying out.... would it....?
My ears hearing mono sound. If I implemented workaround (disable mono profile) then stereo.
And I didn't see hdmi output when hdmi connected.

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 2:36 pm

I setup log-level debug for pulse audio

And I have
/var/log/syslog:Jul 28 14:23:11 mihomepi pulseaudio[1601]: I: [pulseaudio] module-udev-detect.c: Card /devices/platform/soc/fef05700.hdmi/sound/card1 (alsa_card.platform-fef05700.hdmi) failed to load module.

/var/log/syslog:Jul 28 14:23:10 mihomepi pulseaudio[1601]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-fef00700.hdmi" card_name="alsa_card.platform-fef00700.hdmi" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.

pyavitz
Posts: 27
Joined: Thu Aug 09, 2018 7:23 pm

Re: Debian 10 only mono sound instead stereo (analog)

Wed Jul 28, 2021 8:45 pm

To force pulse audio to default to stereo edit the following file: /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf

Example: L104 to L109
https://github.com/pyavitz/rpi-img-buil ... .conf#L104

Nmisha
Posts: 34
Joined: Wed Jul 07, 2021 6:59 pm

Re: Debian 10 only mono sound instead stereo (analog)

Thu Jul 29, 2021 6:44 am

pyavitz wrote:
Wed Jul 28, 2021 8:45 pm
To force pulse audio to default to stereo edit the following file: /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf

Example: L104 to L109
https://github.com/pyavitz/rpi-img-buil ... .conf#L104
This is working workaround. But I haven't hdmi audio output and in original raspberian mono profile is uncommented. I think this is not right way.

Return to “Debian”