Skip to content

Commit c5478a2

Browse files
committed
update(demo): use largest frequence from table
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent 364eb60 commit c5478a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/audio_v2_mic_speaker_multichan_template.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define AUDIO_IN_CLOCK_ID 0x05
3131
#define AUDIO_IN_FU_ID 0x07
3232

33-
#define AUDIO_FREQ 48000
33+
#define AUDIO_FREQ 96000
3434
#define HALF_WORD_BYTES 2 //2 half word (one channel)
3535
#define SAMPLE_BITS 16 //16 bit per channel
3636

@@ -418,6 +418,8 @@ void usbd_audio_iso_out_callback(uint8_t busid, uint8_t ep, uint32_t nbytes)
418418

419419
void usbd_audio_iso_in_callback(uint8_t busid, uint8_t ep, uint32_t nbytes)
420420
{
421+
USB_LOG_RAW("actual in len:%d\r\n", (unsigned int)nbytes);
422+
ep_tx_busy_flag = false;
421423
}
422424

423425
#if USING_FEEDBACK == 1

demo/audio_v2_speaker_multichan_template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define AUDIO_OUT_CLOCK_ID 0x01
2828
#define AUDIO_OUT_FU_ID 0x03
2929

30-
#define AUDIO_FREQ 48000
30+
#define AUDIO_FREQ 96000
3131
#define HALF_WORD_BYTES 2 //2 half word (one channel)
3232
#define SAMPLE_BITS 16 //16 bit per channel
3333

0 commit comments

Comments
 (0)