brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0251-bcm2835-log-which-channel-map-is-set.patch
1 From c1a1f4c6d4e2d1bdba70de54bc204d2b3a80c0ea 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 251/381] bcm2835: log which channel map is set
5
6 ---
7 sound/arm/bcm2835-vchiq.c | 5 +++++
8 1 file changed, 5 insertions(+)
9
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;
14
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;
19 } else {
20 + LOG_INFO("Using fallback channel map.\n");
21 /* fallback layouts for applications which do not use chmap API */
22 chmap_value = 0x00;
23 switch (channels) {
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);
27
28 + LOG_INFO("Requesting AUDS channel map: 0x%lx\n", (long)chmap_value);
29 +
30 m.type = VC_AUDIO_MSG_TYPE_CONFIG;
31 m.u.config.channels = channels;
32 m.u.config.samplerate = samplerate;