Skip to content

Commit

Permalink
New flash size support and 96k 16bit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-samsung committed Jun 28, 2022
1 parent d634c80 commit a5a5481
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/examples/mediaplayer/CmdView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int CmdView::selectSource(vector<string> sourceList)
}
cout << "====================" << endl;

return getUserInput(0, sourceList.size());
return 4;//getUserInput(0, sourceList.size());
}

int CmdView::selectPlayer(void)
Expand All @@ -70,7 +70,7 @@ int CmdView::selectPlayer(void)
cout << " 2. Select PLAYER B " << endl;
cout << "====================" << endl;

int player = getUserInput(0, 2) - 1;
int player = 1 -1 ; //getUserInput(0, 2) - 1;
if (player != -1) {
cout << "PLAYER " << (char)('A' + player) << " is selected" << endl;
}
Expand Down
6 changes: 3 additions & 3 deletions build/configs/rtl8721csm/audio/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ CONFIG_BOARDCTL_RESET=y
# Board-Specific Options
#
CONFIG_FLASH_START_ADDR=0x8000000
CONFIG_FLASH_SIZE=8388608
CONFIG_FLASH_SIZE=16777216

#
# SPI Flash driver
#
CONFIG_AMEBAD_FLASH_BASE=0x0
CONFIG_AMEBAD_FLASH_CAPACITY=0x800000
CONFIG_AMEBAD_FLASH_CAPACITY=0x1000000
CONFIG_AMEBAD_FLASH_PAGE_SIZE=256
CONFIG_AMEBAD_FLASH_BLOCK_SIZE=4096
CONFIG_ARCH_BOARD_HAVE_FLASH=y
Expand All @@ -264,7 +264,7 @@ CONFIG_ARCH_BOARD_HAVE_FLASH=y
#
CONFIG_FLASH_PARTITION=y
CONFIG_FLASH_MINOR=0
CONFIG_FLASH_PART_SIZE="16,8,16,472,8,1792,1792,4080,8,"
CONFIG_FLASH_PART_SIZE="16,8,16,472,8,5888,5888,4080,8,"
CONFIG_FLASH_PART_TYPE="none,none,none,none,none,kernel,kernel,smartfs,bootparam,"
CONFIG_FLASH_PART_NAME="bl1,bl2,reserved,ss,system_data,kernel,kernel,userfs,bootparam,"
# CONFIG_ARCH_BOARD_HAVE_SECOND_FLASH is not set
Expand Down
4 changes: 2 additions & 2 deletions os/arch/arm/src/amebad/amebad_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ static int i2s_err_cb_register(struct i2s_dev_s *dev, i2s_err_cb_t cb, void *arg

static const i2s_config_t i2s_default_config = {

.sample_rate = I2S_SR_48KHZ,
.bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT,
.sample_rate = I2S_SR_96KHZ,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,

.channel_num = CH_STEREO,
#if defined(I2S_HAVE_TX) && (0 < I2S_HAVE_TX)
Expand Down
7 changes: 3 additions & 4 deletions os/board/rtl8721csm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config FLASH_START_ADDR

config FLASH_SIZE
int
default 8388608
default 16777216
help
A size of flash (in bytes).
This is fixed value, so user doesn't need to change it.
Expand All @@ -30,7 +30,7 @@ config AMEBAD_FLASH_BASE

config AMEBAD_FLASH_CAPACITY
hex "Size for user filesystem"
default 0x80000
default 0x1000000
help
Setting this vaule to configure flash size for user filesystem,
such as smartfs, romfs.
Expand All @@ -46,7 +46,6 @@ config AMEBAD_FLASH_BLOCK_SIZE
default 4096
help
Setting this vaule to configure erase unit size of esp32 SPI flash.
endmenu
endif

0 comments on commit a5a5481

Please sign in to comment.