hdmitx: remove NULL characters of aud_cap

PD#164062: hdmitx: remove NULL characters of aud_cap

remove NULL characters of aud_cap.

Change-Id: Ie82de9879071d87c204058e7b81498fe72eb3a19
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
This commit is contained in:
Kaifu Hu
2018-04-11 13:14:43 +08:00
committed by Yixun Lan
parent 7119d31089
commit 1b2232f8ba

View File

@@ -1756,13 +1756,13 @@ static ssize_t show_aud_cap(struct device *dev,
pos += snprintf(buf + pos, PAGE_SIZE, "%s/",
aud_sampling_frequency[j+1]);
}
pos += snprintf(buf + pos - 1, PAGE_SIZE, " kHz, ");
pos += snprintf(buf + pos - 1, PAGE_SIZE, " kHz, ") - 1;
for (j = 0; j < 3; j++) {
if (pRXCap->RxAudioCap[i].cc3 & (1 << j))
pos += snprintf(buf + pos, PAGE_SIZE, "%s/",
aud_sample_size[j+1]);
}
pos += snprintf(buf + pos - 1, PAGE_SIZE, " bit\n");
pos += snprintf(buf + pos - 1, PAGE_SIZE, " bit\n") - 1;
}
return pos;