Re: [PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 15:52:31 +0200, Wang YanQing wrote: > > The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, > and the definiton of SNDRV_PCM_DEVICES is: > " > #if defined(CONFIG_SND_DYNAMIC_MINORS) > #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) > #else > #define

Re: [PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 15:52:31 +0200, Wang YanQing wrote: > > The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, > and the definiton of SNDRV_PCM_DEVICES is: > " > #if defined(CONFIG_SND_DYNAMIC_MINORS) > #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) > #else > #define

[PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Wang YanQing
The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, and the definiton of SNDRV_PCM_DEVICES is: " #if defined(CONFIG_SND_DYNAMIC_MINORS) #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) #else #define SNDRV_PCM_DEVICES 8 #endif " So the max valid fixed slots pcm number is 7,

[PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Wang YanQing
The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, and the definiton of SNDRV_PCM_DEVICES is: " #if defined(CONFIG_SND_DYNAMIC_MINORS) #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) #else #define SNDRV_PCM_DEVICES 8 #endif " So the max valid fixed slots pcm number is 7,