<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38596</bug_id>
          
          <creation_ts>2020-06-10 12:38:03 +0300</creation_ts>
          <short_desc>Моно звук на RPi4 &quot;из коробки&quot;</short_desc>
          <delta_ts>2020-06-24 19:14:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>pulseaudio</component>
          <version>не указана</version>
          <rep_platform>aarch64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jqt4</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          <cc>aen</cc>
    
    <cc>gremlin</cc>
    
    <cc>rider</cc>
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>190618</commentid>
    <comment_count>0</comment_count>
    <who name="">jqt4</who>
    <bug_when>2020-06-10 12:38:03 +0300</bug_when>
    <thetext>На Raspberry Pi 4 присутствует только звуковое устройство моно и воспроизводится моно звук, хотя аппаратура поддерживает стерео.
Для обхода данной проблемы нужно в файле /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf, принадлежащем пакету pulseaudio-daemon закомментироват моно профиль с помощью символа &quot;;&quot;:

;[Mapping analog-mono]
;device-strings = hw:%f
;channel-map = mono
;paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
;paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-v
;priority = 7

После этого перезагрузить систему</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190655</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2020-06-11 13:01:46 +0300</bug_when>
    <thetext>не повторяется на mainline kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190664</commentid>
    <comment_count>2</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2020-06-13 07:02:43 +0300</bug_when>
    <thetext>(Ответ для Sergey Bolshakov на комментарий #1)
&gt; не повторяется на mainline kernel.

Сергей, прошу уточнить, какое ядро имеется в виду и собрано ли оно у нас.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190667</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2020-06-13 11:47:12 +0300</bug_when>
    <thetext>проверялось на kernel-image-mp-5.6.16-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190716</commentid>
    <comment_count>4</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2020-06-19 17:15:18 +0300</bug_when>
    <thetext>(Ответ для Sergey Bolshakov на комментарий #3)
&gt; проверялось на kernel-image-mp-5.6.16-alt1

Дмитрий, проверьте на ядре mp, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190717</commentid>
    <comment_count>5</comment_count>
    <who name="">jqt4</who>
    <bug_when>2020-06-19 18:14:39 +0300</bug_when>
    <thetext>Обновил ядро на:
user@localhost ~ $ uname -a
Linux localhost.localdomain 5.6.16-mp-alt1 #1 SMP Tue Jun 9 09:00:21 UTC 2020 aarch64 GNU/Linux

Проблема воспроизведена:
user@localhost ~ $ pacmd list-cards
1 card(s) available.
    index: 0
        name: &lt;alsa_card.platform-bcm2835_audio&gt;
        driver: &lt;module-alsa-card.c&gt;
        owner module: 6
        properties:
                alsa.card = &quot;0&quot;
                alsa.card_name = &quot;bcm2835 ALSA&quot;
                alsa.long_card_name = &quot;bcm2835 ALSA&quot;
                alsa.driver_name = &quot;snd_bcm2835&quot;
                device.bus_path = &quot;platform-bcm2835_audio&quot;
                sysfs.path = &quot;/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0&quot;
                device.form_factor = &quot;internal&quot;
                device.string = &quot;0&quot;
                device.description = &quot;Встроенное аудио&quot;
                module-udev-detect.discovered = &quot;1&quot;
                device.icon_name = &quot;audio-card&quot;
        profiles:
                output:analog-mono: Аналоговый моно выход (priority 700, available: unknown)
                off: Выключено (priority 0, available: unknown)
        active profile: &lt;output:analog-mono&gt;
        sinks:
                alsa_output.platform-bcm2835_audio.analog-mono/#0: Встроенное аудио Аналоговый моно
        sources:
                alsa_output.platform-bcm2835_audio.analog-mono.monitor/#0: Monitor of Встроенное аудио Аналоговый моно
        ports:
                analog-output: Аналоговый выход (priority 9900, latency offset 0 usec, available: unknown)
                        properties:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190729</commentid>
    <comment_count>6</comment_count>
    <who name="">jqt4</who>
    <bug_when>2020-06-20 11:44:12 +0300</bug_when>
    <thetext>Представляется маловероятным, что причина проблемы в ядре.
Скорее проблема в настройках pulseaudio: непонятно, зачем ставить моно по умолчанию.
Прошу исправить эту настройку в пакете pulseaudio-daemon, если это возможно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190739</commentid>
    <comment_count>7</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2020-06-22 11:39:58 +0300</bug_when>
    <thetext>Я же по-прежнему вижу (и слышу):

[lioka@rpee ~]$ uname -a; pacmd list-cards
Linux rpee 5.6.16-mp-alt1 #1 SMP Tue Jun 9 09:00:21 UTC 2020 aarch64 GNU/Linux
1 card(s) available.
    index: 0
        name: &lt;alsa_card.platform-bcm2835_audio&gt;
        driver: &lt;module-alsa-card.c&gt;
        owner module: 6
        properties:
                alsa.card = &quot;0&quot;
                alsa.card_name = &quot;bcm2835 ALSA&quot;
                alsa.long_card_name = &quot;bcm2835 ALSA&quot;
                alsa.driver_name = &quot;snd_bcm2835&quot;
                device.bus_path = &quot;platform-bcm2835_audio&quot;
                sysfs.path = &quot;/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0&quot;
                device.form_factor = &quot;internal&quot;
                device.string = &quot;0&quot;
                device.description = &quot;Built-in Audio&quot;
                module-udev-detect.discovered = &quot;1&quot;
                device.icon_name = &quot;audio-card&quot;
        profiles:
                output:stereo-fallback: Stereo Output (priority 5100, available: unknown)
                output:mono-fallback: Mono Output (priority 100, available: unknown)
                output:multichannel-output: Multichannel Output (priority 100, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: &lt;output:stereo-fallback&gt;
        sinks:
                alsa_output.platform-bcm2835_audio.stereo-fallback/#0: Built-in Audio Stereo
        sources:
                alsa_output.platform-bcm2835_audio.stereo-fallback.monitor/#0: Monitor of Built-in Audio Stereo
        ports:
                analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

                multichannel-output: Multichannel Output (priority 0, latency offset 0 usec, available: unknown)
                        properties:

Прошу заметить, что в вашем случае профиль output: analog-mono вообще единственный, и исключать его -- поступать по пословице &apos;сгорел сарай, гори и хата&quot;. Предлагаю всё же разобраться, что у вас с сараем и откуда берётся такая разница; причин же изменять конфигурацию пакета pulsseaudio по прежнему не вижу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190740</commentid>
    <comment_count>8</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2020-06-22 12:05:28 +0300</bug_when>
    <thetext>ну и на всякий случай лучше проверить pulseaudio 13.99.1 из задания 252862</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190755</commentid>
    <comment_count>9</comment_count>
    <who name="">jqt4</who>
    <bug_when>2020-06-23 16:08:48 +0300</bug_when>
    <thetext>Обновление на pulseaudio 13.99.1 из задания 252862 решает проблему.
Звук стал стерео по умолчанию без изменения файла /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf.

Однако, для установки нового pulseaudio пришлось переключиться с p9 на Сизиф.

Прошу собрать pulseaudio 13.99.1 в p9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190756</commentid>
    <comment_count>10</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2020-06-23 16:12:15 +0300</bug_when>
    <thetext>Для p9 task 250722, там ещё alsa впридачу.

НО это не production, естественно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190767</commentid>
    <comment_count>11</comment_count>
    <who name="">jqt4</who>
    <bug_when>2020-06-24 15:45:12 +0300</bug_when>
    <thetext>Обновление на pulseaudio 13.0-alt3 из Сизифа также решает проблему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190768</commentid>
    <comment_count>12</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2020-06-24 19:14:31 +0300</bug_when>
    <thetext>(Ответ для jqt4 на комментарий #11)
&gt; Обновление на pulseaudio 13.0-alt3 из Сизифа также решает проблему.
Хорошо. Соберите в p9, пожалуйста. Там сборка с puthon3, судя  по changelog.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>