A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 58 lines 1.7 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id$ 9 * 10 * Copyright © 2009 by Rafaël Carré 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 18 * KIND, either express or implied. 19 * 20 ****************************************************************************/ 21 22#include "config.h" 23#include "sdmmc.h" 24#include "storage.h" 25 26void sd_sleep(void) 27{ 28} 29 30void sd_spin(void) 31{ 32} 33 34void sd_spindown(int seconds) 35{ 36 (void)seconds; 37} 38 39#ifdef STORAGE_GET_INFO 40void sd_get_info(IF_MD(int drive,) struct storage_info *info) 41{ 42#ifndef HAVE_MULTIDRIVE 43 const int drive=0; 44#endif 45 46 tCardInfo *card = card_get_info_target(drive); 47 48 info->sector_size=card->blocksize; 49 info->num_sectors=card->numblocks; 50 info->vendor="Rockbox"; 51#if CONFIG_STORAGE == STORAGE_SD 52 info->product = (drive==0) ? "Internal Storage" : "SD Card Slot"; 53#else /* Internal storage is not SD */ 54 info->product = "SD Card Slot"; 55#endif 56 info->revision="0.00"; 57} 58#endif