diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2014-06-08 12:58:56 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-08 12:02:59 +0200 |
commit | 042223c4ee9b17ba8a24bcfc4019f24b69b8310b (patch) | |
tree | 152acd06570fd226f3149c1dd9bfcd3942657c83 | |
parent | 84f8b976c052254a3e80bcf0eb0f198a480b2988 (diff) | |
download | alsa-lib-042223c4ee9b17ba8a24bcfc4019f24b69b8310b.tar.gz |
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>
-rw-r--r-- | src/pcm/pcm_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index 9ff83a92..ed831972 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -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; |