1 From 221eae6137f4ed70aa0c55decd7a0659391cd30b Mon Sep 17 00:00:00 2001
2 From: wm4 <wm4@nowhere>
3 Date: Tue, 19 Apr 2016 16:38:03 +0200
4 Subject: [PATCH] bcm2835: log which channel map is set
7 sound/arm/bcm2835-vchiq.c | 5 +++++
8 1 file changed, 5 insertions(+)
10 --- a/sound/arm/bcm2835-vchiq.c
11 +++ b/sound/arm/bcm2835-vchiq.c
12 @@ -596,8 +596,11 @@ int bcm2835_audio_set_params(bcm2835_als
13 instance->result = -1;
15 if (alsa_stream->chip->cea_chmap >= 0) {
16 + LOG_INFO("Using application requested channel map: %d\n",
17 + alsa_stream->chip->cea_chmap);
18 chmap_value = (unsigned)alsa_stream->chip->cea_chmap << 24;
20 + LOG_INFO("Using fallback channel map.\n");
21 /* fallback layouts for applications which do not use chmap API */
24 @@ -614,6 +617,8 @@ int bcm2835_audio_set_params(bcm2835_als
25 for (i = 0; i < 8; i++)
26 chmap_value |= alsa_stream->chip->map_channels[i] << (i * 3);
28 + LOG_INFO("Requesting AUDS channel map: 0x%lx\n", (long)chmap_value);
30 m.type = VC_AUDIO_MSG_TYPE_CONFIG;
31 m.u.config.channels = channels;
32 m.u.config.samplerate = samplerate;