Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91fa3683 authored by Surendar Karka's avatar Surendar Karka
Browse files

hal: set stream channel map for noirq mode.

In noirq push pull mode channel map needs to be set during
ASM open shared io stream in driver. Parse stream channel map
before pcm open from hal to get the channel map info in the
driver during hw params call.

Change-Id: I9b3f8eae1aef2c1764586099a691801d53690b91
parent 45850ae3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3074,6 +3074,10 @@ int start_output_stream(struct stream_out *out)
            }
        }

        if (out->realtime)
            platform_set_stream_channel_map(adev->platform, out->channel_mask,
                   out->pcm_device_id, &out->channel_map_param.channel_map[0]);

        while (1) {
            ATRACE_BEGIN("pcm_open");
            out->pcm = pcm_open(adev->snd_card, out->pcm_device_id,
@@ -3094,6 +3098,7 @@ int start_output_stream(struct stream_out *out)
            }
            break;
        }
        if (!out->realtime)
            platform_set_stream_channel_map(adev->platform, out->channel_mask,
                   out->pcm_device_id, &out->channel_map_param.channel_map[0]);