mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: Fix channel map query when there are lots of maps
On most HDA Intel HDMI devices, the channel map list is approx. 500 ints in size, making the 256-sized buffer used by snd_pcm_query_chmaps_from_hw() too small and causing the query to fail (NULL result to caller, ENOMEM). Bump the buffer size to 2048 ints. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
84f8b976c0
commit
042223c4ee
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ snd_pcm_query_chmaps_from_hw(int card, int dev, int subdev,
|
|||
{
|
||||
snd_ctl_t *ctl;
|
||||
snd_ctl_elem_id_t *id;
|
||||
unsigned int tlv[256], *start;
|
||||
unsigned int tlv[2048], *start;
|
||||
snd_pcm_chmap_query_t **map;
|
||||
int i, ret, nums;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue