]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Fix channel map query when there are lots of maps
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 8 Jun 2014 09:58:56 +0000 (12:58 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Jun 2014 10:02:59 +0000 (12:02 +0200)
commit042223c4ee9b17ba8a24bcfc4019f24b69b8310b
tree152acd06570fd226f3149c1dd9bfcd3942657c83
parent84f8b976c052254a3e80bcf0eb0f198a480b2988
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>
src/pcm/pcm_hw.c