unicense Alsa driver create a name which is not stable

Description

Unicense Alsa drivers creates a name which is not stable to reboot.

It seems that the number of the card is added to the name as "Microchip MOST:1" which becomes "Microchip MOST:0" as soon as the Unicense card has been used a bit.

Should stay stable.

------------ first boot Internel is default--------------

  •  

    •  

      •  

        • List of PLAYBACK Hardware Devices ****
          card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
          card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
          card 1: ep016ch [Microchip MOST:1], device 0: ep01-6ch []
          Subdevices: 1/1
          Subdevice #0: subdevice #0

 

------------ After setting Unicens as default ---------------

aplay -l

  •  

    •  

      •  

        • List of PLAYBACK Hardware Devices ****
          card 0: ep016ch [Microchip MOST:0], device 0: ep01-6ch []
          Subdevices: 0/1
          Subdevice #0: subdevice #0
          card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
          card 1: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
          intel-corei7-64:~#

Environment

None

Activity

Show:

Dominig ar Foll 
December 20, 2017 at 10:04 AM

Christian,

intended or not that is an issue as the name that you pick varies over the time depending of boot order and last used card.

So pickup an order between your Unicens card (e.g. internet MAC or serial) and start with 0 and increase in order of your MAC.

I understand that you may have to support multiple cards but the name of each card must remain stable over time. Today it's not the case.

christian.gromm 
December 20, 2017 at 9:56 AM

This is the intended/desired behavior of the kernel driver. As you can have more than one sound card being associated with the network you need to be able to distinguish them.

Won't Fix

Details

Assignee

Reporter

Components

Priority

Created December 19, 2017 at 2:50 AM
Updated September 1, 2020 at 4:31 PM
Resolved September 1, 2020 at 4:30 PM