mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user