<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックThis sound device does not have any controls</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1663502#M207097</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have connect a MAX98357A over SAI3 to an i.MX8. I use the simple-card driver. Everything works. I get sound when I use aplay or gplay. But I wonder when I open alsamixer BEFORE using aplay or gplay I got the message "This sound device does not have any controls"&lt;/P&gt;&lt;P&gt;If I start alsamixer AFTER I used aplay or gplay I can see the Master volume control.&lt;/P&gt;&lt;P&gt;I don't understand why!&lt;/P&gt;&lt;P&gt;My .asoundrc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cat .asoundrc
pcm.!default {
  type plug
  slave.pcm   "softvol"
}

ctl.!default {
  type hw
  card MAX98357A
}

pcm.mycard {
   type hw
   card MAX98357A
}

pcm.softvol {
  type  softvol
  slave {
      pcm "mycard"
  }
  control {
     name "Master"
     card  MAX98357A
  }
  max_dB 20.0
  min_dB -51.0
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a mistake in my .asoundrc?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2023 13:18:18 GMT</pubDate>
    <dc:creator>MicMoba</dc:creator>
    <dc:date>2023-06-05T13:18:18Z</dc:date>
    <item>
      <title>This sound device does not have any controls</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1663502#M207097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have connect a MAX98357A over SAI3 to an i.MX8. I use the simple-card driver. Everything works. I get sound when I use aplay or gplay. But I wonder when I open alsamixer BEFORE using aplay or gplay I got the message "This sound device does not have any controls"&lt;/P&gt;&lt;P&gt;If I start alsamixer AFTER I used aplay or gplay I can see the Master volume control.&lt;/P&gt;&lt;P&gt;I don't understand why!&lt;/P&gt;&lt;P&gt;My .asoundrc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cat .asoundrc
pcm.!default {
  type plug
  slave.pcm   "softvol"
}

ctl.!default {
  type hw
  card MAX98357A
}

pcm.mycard {
   type hw
   card MAX98357A
}

pcm.softvol {
  type  softvol
  slave {
      pcm "mycard"
  }
  control {
     name "Master"
     card  MAX98357A
  }
  max_dB 20.0
  min_dB -51.0
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a mistake in my .asoundrc?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1663502#M207097</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2023-06-05T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: This sound device does not have any controls</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1663933#M207142</link>
      <description>&lt;DIV class=""&gt;&lt;P&gt;I found the answer in another forum.&lt;/P&gt;&lt;P&gt;The mixer will not show up until it is used for the first time. Per &lt;A href="https://alsa.opensrc.org/How_to_use_softvol_to_control_the_master_volume" target="_blank" rel="nofollow noopener noreferrer"&gt;alsa.opensrc.org&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The new volume control won't appear immediately! Only after the first usage of the newly defined device (e.g. with the command above), should amixer controls | grep &amp;lt;control name&amp;gt; display your new control. Mixers that were already started before the first usage (like KMix) have to be restarted to adopt the changes. If you still don't see the new control, try restarting ALSA or your PC.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since your config sets the default to the softvol device, running speaker-test or using aplay to play a .wav file should be sufficient to make the volume control appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a pitty because I can't get the current volume value until I run speaker-test or aplay.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jun 2023 05:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1663933#M207142</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2023-06-06T05:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: This sound device does not have any controls</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1664330#M207191</link>
      <description>&lt;P&gt;It found out that is enough to call the function snd_pcm_open(). So I wrote a small program to "activate" the softvol mixer.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;

#include &amp;lt;alsa/asoundlib.h&amp;gt;

static char              *device      = "default";       /* playback device */

int main(int argc, char *argv[]) {
  snd_pcm_t            *handle;
  int err;
  printf("Enable sofvol plugin\n");

  if ((err = snd_pcm_open(&amp;amp;handle, device, SND_PCM_STREAM_PLAYBACK, 0)) &amp;lt; 0) {
    printf("Playback open error: %d,%s\n", err,snd_strerror(err));
    exit(EXIT_FAILURE);
  }
  snd_pcm_close(handle);

  exit(EXIT_SUCCESS);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After calling you request the current volume level.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 12:05:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/This-sound-device-does-not-have-any-controls/m-p/1664330#M207191</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2023-06-06T12:05:44Z</dc:date>
    </item>
  </channel>
</rss>

