Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2018-04-13 10:12:55

  numer_inaczej - Użytkownik

numer_inaczej
Użytkownik
Zarejestrowany: 2014-08-15

[SOLVED] Ifi nano LE. Jest dźwięk ale nie działa suwak w alsamixer.

Cześć,
pisze ponieważ skończyły mi się pomysły.
Kupiłem DAC ifi nano le.
Zainstalowałem jako urządzenie snd_usb_audio - dźwięk jest, mogę sterować poziomem głośności z poziomu programu - ale globalnie nie mogę, mimo iż jest suwak Master.
Gdy użyję softwarowego - to samo.

Garść przydatnych informacji:
emerge --info

Kod:

Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r11, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.4.1
KiB Mem:    16404424 total,  13300912 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Wed, 11 Apr 2018 22:15:01 +0000
Head commit of repository gentoo: 84c484871d9b2b9fb704de0202a1cd369a5e3e8a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://gentoo.prz.rzeszow.pl/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* @EULA PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /usr/X11R6/bin/startx"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="256-color 7zip X a52 aac aalib acl acpi alsa amd64 apache2 apng audiofile auto-hinter autoipd bash-completion berkdb bidi bindist bl bluetooth bluez bluray bogofilter bs2b bzip2 cairo caps cdda cdparanoia cdr clamav cleartype cli corefonts cpudetection crypt cryptsetup cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx daemon dbus dga dirac divx double-precision dri dts dv dvb dvd dvdr dvdread emerge enca encode experimental extensions extras faac faad fat ffmpeg ffmpeg-mt flac flaccelt fontconfig foomaticdb fortran g3dvl gconf gcrypt gd gdbm gif gimp git glamor gnutls gtk gtk2 gucharmap gudev hddtemp hwdb iconv icu imagemagick imlib infinality input jack javafx jpeg ladspa lame lib32 libcaca libkms libnotify libsamplerate lirc lm_sensors logrotate loop-aes lua lua-cairo lua-imlib mad mbox mclib mercurial minizip mms mmx mmx2 moc modules mono mouse mpeg mpg123 mplayer mtp multiboot multilib musepack mysql mysqli ncurses network newmousefocus nls nptl nss ntfs ntfsprogs nvidia ogg oggvorbis openal opengl openmp optimisememory optimization osdmenu pam pc pcre pcre16 perl pgo php plugins png policykit postproc ppds pulseaudio pvr python qt-static qt3support qt4 qt5 radio rar readline reiserfs rss rt rtc rtmp ruby schroedinger script scsi seccomp sensord sftp slang sndfile speex spell sqlite sse sse2 sse4 ssh ssl ssse3 startup-notification strong-optimization subversion svc svg symlink system-ffmpeg tcpd tetex tint2conf tk truetype udev unicode urandom usb userlocales v4l vdpau vim-pager vim-syntax vim-with-x vorbis wavepack wavpack webkit wma x264 xanim xattr xcb xface xft xinerama xkb xml xmpp xpm xprint xvfb xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="snd-usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 efi-32 emu pc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" NETBEANS_MODULES="php" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

cat /etc/modprobe/alsa.conf

Kod:

# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion


alias snd-card-0 snd-usb-audio 
alias snd-card-2 saa7134-alsa

options snd_usb_audio index=0 
options saa7134_alsa index=1

##  OSS/Free portion
 alias sound-slot-0 snd-card-0 
 alias sound-slot-1 snd-card-1
 alias sound-slot-2 snd-card-2
 alias sound-slot-3 snd-card-3

# OSS/Free portion - card #0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

#  OSS/Free portion - card #1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss

#  OSS/Free portion - card #2
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-1 snd-seq-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-8 snd-seq-oss
alias sound-service-2-12 snd-pcm-oss

# OSS/Free portion - card #3
alias sound-service-3-0 snd-mixer-oss
alias sound-service-3-1 snd-seq-oss
alias sound-service-3-3 snd-pcm-oss
alias sound-service-3-8 snd-seq-oss
alias sound-service-3-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=32

aplay -l

Kod:

**** List of PLAYBACK Hardware Devices ****
card 0: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

.asoundrc - czy istniejący czy nie istniejący - nie działa suwak, dźwięki działają.

zrzutka z alsamixer:
https://s7.postimg.cc/c0ym783nr/alsamixer_ifi_nano_le.jpg


Liczę na Waszą pomoc - z góry dzięki.

Ostatnio edytowany przez numer_inaczej (2018-04-14 21:49:48)

Offline

 

#2  2018-04-13 10:35:22

  numer_inaczej - Użytkownik

numer_inaczej
Użytkownik
Zarejestrowany: 2014-08-15

Re: [SOLVED] Ifi nano LE. Jest dźwięk ale nie działa suwak w alsamixer.

http://wklej.org/id/3408532/ - wynik działania skryptu audio

Offline

 

#3  2018-04-14 21:33:13

  numer_inaczej - Użytkownik

numer_inaczej
Użytkownik
Zarejestrowany: 2014-08-15

Re: [SOLVED] Ifi nano LE. Jest dźwięk ale nie działa suwak w alsamixer.

Wydumałem coś takiego - działa dla ifi nano LE.

Kod:

defaults.pcm.!card 0
defaults.pcm.!device 0

pcm.usb-audio {
          type hw
          card 0
       }
       
       ctl.usb-audio {
          type hw
          card 0
       }

pcm.!default {
    type plug
    slave.pcm "dmixer"
}
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 512
        buffer_size 4096
        periods 128
        rate 348000
     }
     bindings {
        0 0
        1 1
     }
}
ctl.mixer0 {
    type hw
    card 0
}
#
pcm.softvol {
          type softvol
          slave {
             pcm "dmixer"
          }
          control {
             name "Master"
             card 0
          }
       }
       

pcm.!default {
    type plug
        slave.pcm "softvol"
}

rate dałem dla bajeru - ale jeśli ktoś tworzy muzykę, to może się przydać czasami.

Ostatnio edytowany przez numer_inaczej (2018-04-14 21:33:56)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)