diff options
author | Misael Lopez Cruz | 2014-11-25 20:01:54 -0600 |
---|---|---|
committer | Misael Lopez Cruz | 2014-11-26 03:06:17 -0600 |
commit | a85636622547a03d70ecead904b8a94e8a7c3bad (patch) | |
tree | b939869ba65e5ffa95754d0c06a98000539c8bb2 /audio/legacy | |
parent | 7a7080371e3ff3a4973d9944d175a637aba3d460 (diff) | |
download | device-ti-jacinto6evm-a85636622547a03d70ecead904b8a94e8a7c3bad.tar.gz device-ti-jacinto6evm-a85636622547a03d70ecead904b8a94e8a7c3bad.tar.xz device-ti-jacinto6evm-a85636622547a03d70ecead904b8a94e8a7c3bad.zip |
audio: Legacy: Fix input channel mask macro
An incorrect channel mask macro was used to report the
input channel mask. The correct macro is:
audio_channel_in_mask_from_count().
Change-Id: I1b5c10980ddc7b034654d899d159df80ccc50b81
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'audio/legacy')
-rw-r--r-- | audio/legacy/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c index 3979441..57c5afe 100644 --- a/audio/legacy/audio_hw.c +++ b/audio/legacy/audio_hw.c | |||
@@ -986,7 +986,7 @@ static size_t in_get_buffer_size(const struct audio_stream *stream) | |||
986 | static audio_channel_mask_t in_get_channels(const struct audio_stream *stream) | 986 | static audio_channel_mask_t in_get_channels(const struct audio_stream *stream) |
987 | { | 987 | { |
988 | const struct j6_stream_in *in = (const struct j6_stream_in *)(stream); | 988 | const struct j6_stream_in *in = (const struct j6_stream_in *)(stream); |
989 | audio_channel_mask_t channels = audio_channel_out_mask_from_count(in->requested_channels); | 989 | audio_channel_mask_t channels = audio_channel_in_mask_from_count(in->requested_channels); |
990 | 990 | ||
991 | ALOGVV("in_get_channels() stream=%p channels=%u", in, in->requested_channels); | 991 | ALOGVV("in_get_channels() stream=%p channels=%u", in, in->requested_channels); |
992 | 992 | ||