趣å³ã¯é³æ¥œãæžãããšã§ãã ãããã£ãŠãã©ãããããã«Ubuntuã®ææ°ããŒãžã§ã³ãã€ã³ã¹ããŒã«ããåŸãç§ã¯æ®éã®ãŠãŒã¶ãŒãããå°ã现ããé³ã調æŽããå¿ èŠããããŸããã æ®å¿µãªããšã«ãç§ã¯ãããè¡ãããšã«æåããŸããã§ããã ããã§ããçµæã«å°ãè¿ã¥ããæé ã«ã€ããŠã話ããããšæããŸãã ããã«ãã誰ãã®æéãç¯çŽã§ããã°ãšæããŸãã ãŸãã¯ãèªè ã®å©ããåããŠãããã«å ã«é²ãããšãã§ããŸãã Linuxã䜿çšããŠããŠãåèªsidechainãšcompressionã1ã€ã®æå³ã®ããæã§çºé³ã§ããå Žå-ããããïŒ
ç°¡åã«
ãŸããåé¡ã®æ¬è³ªã«ã€ããŠè©³ãã説æããŸããKubuntu17.10ãæèŒããAsus N55ã©ããããããæèŒãããŠããŸãã Windowsã§ååŸã§ããã®ãšåãæ§æãå®çŸããå¿ èŠããããŸãã
- ãµããŠãŒãã¡ãŒãæ¥ç¶ããªããŠãããã©ã€ããŒã¯2.0ã¢ãŒãã§åäœããŸã
- ãµããŠãŒãã¡ãŒãæ¥ç¶ããããšããã©ã€ããŒã¯ã¢ãŒã2.1ã«åãæ¿ãããŸãã ãã®åãæ¿ãã«ãããåšæ³¢æ°ãã£ã«ã¿ãŒããã£ã³ãã«ã«é©çšãããŸã-ãµããŠãŒãã¡ãŒã®å Žåã¯LFãã¹ããŒã«ãŒã®å Žåã¯HF
- ããããã©ã³ãæ¥ç¶ãããšãé³å£°åºåãããããã©ã³ã«åãæ¿ãããã¹ããŒã«ãŒ/ãµããŠãŒãã¡ãŒãžã®åºåãäžæåæ¢ããŸã
- äœé 延ãå¿ èŠãªå Žåã¯ãå¥ã®ãã©ã€ããŒãéžæããŠããµãŠã³ãã«ãŒãã®æä»çãã£ããã£ãæäŸããã¢ãŒãã«åãæ¿ããããšãã§ããŸãã
ã€ã³ã¹ããŒã«åŸããã«ãåäœããªããµããŠãŒãã¡ãŒãšåäœããªãããããã©ã³ãå
¥æããŸãã
å®éšã®çµæãã·ã¹ãã ã®æ¬¡ã®ç¶æ
ãéæããããšãã§ããŸããã
- ãã©ã€ããŒã¯ã¢ãŒã2.1ã§åäœããŸã
- ãµããŠãŒãã¡ãŒãæ¥ç¶ããŠãäœãå€ãããŸãã
- ããããã©ã³ãæ¥ç¶ããããšããµãŠã³ãåºåã¯ãããã«åãæ¿ãããã¹ããŒã«ãŒ/ãµããŠãŒãã¡ãŒãžã®åºåã¯äžæåæ¢ããŸããããã£ã«ã¿ãŒã¯åäœãç¶ããé«é³ã®ã¿ãããããã©ã³ã«éãããŸã
- å¿ èŠã«å¿ããŠãäœé 延ãALSAçµç±ã§ã«ãŒãã«ã¢ãã¬ã¹æå®ã§ããŸããããã®ã¢ãŒãã§ã¯ãµããŠãŒãã¡ãŒãšãã£ã«ã¿ãŒã¯æ©èœããŸããã ããããããããã©ã³ãžã®åãæ¿ãã¯æ©èœããŸã
LMMSãç¥ã£ãŠããå ŽåïŒ éåžžãæ£åžžã«åäœããããšã¯äžå¯èœã§ãããããã¯å¥ã®åé¡ã§ã ïŒãããã§ååã§ãã
ããªãããã®ç¶æ
ã«éããå Žåããã®èšäºã§æ°ããããšãæããŸããã
埩ç¿
LinuxãµãŠã³ãã·ã¹ãã ãã©ã®ããã«æ©èœãããçåã«æã£ãããšã¯ãããŸããïŒ ã ããç§ã¯ããŸãã-éåžžããµãŠã³ãã¯å¿
èŠãªãããã©ããããããæ©èœããã¹ããŒã«ãŒã¯åçããŸãã-ãµããŠãŒãã¡ãŒãããããã©ã³ãæ¥ç¶ããããã®ããªãã¯ã«ã€ããŠã¯è©±ããŠããŸããã§ããã
ä»ãããã«ã€ããŠããå°ãåŠã¶ã¹ãæã§ãããšæãããŸãã ã°ãŒã°ã«ã¯æ¬¡ã®åçã瀺ããŸããã
- ALSAã¯ããµãŠã³ãè ºãšã³ã¢ã®çžäºäœçšãæäŸããã³ã³ããŒãã³ãã§ãã åççãªãªãã·ã§ã³ããããã€ã¹ãžã®æãçŽæ¥çãªã¢ã¯ã»ã¹ãæäŸããŸãããåæã«ãã®æä»çãªã¢ã¯ã»ã¹-VLCã«æ²ãå«ãããã©ãŠã¶ã§ãããªãéãããšã¯ãããŸããããŸããã
- ãããã®ç®çã®ããã«ãPulseAudioã¯ãŸãã«å¿ èŠãªãã®ã§ããããã¯ããªãŒãã£ãªã¹ããªãŒã ã®ã«ãŒãã£ã³ã°ã«é¢äžãããµãŠã³ããµãŒããŒã§ãã 䜿çšäžã«ããŸããŸãªã¢ããªã±ãŒã·ã§ã³ããã®ãµãŠã³ãã¹ããªãŒã ãããã·ã³ã°ããã®ã¯åœŒã®è²¬ä»»ã§ãã ãã®ãããªå©äŸ¿æ§ã®ä»£äŸ¡ã¯ãé³å£°ã¹ããªãŒã ã®è¿œå ã®é 延ã§ãã
- ãŸããããããã§ãã·ã§ãã«ããµãŠã³ããµãŒããŒãšããŠäœçœ®ä»ããããPulseAudioã®ã¢ããã°ã§ããJACKããããŸãã ãããŒããã£ã¹ãããããéã®ã¯ãŒã«ãªã«ãŒãã£ã³ã°æ©èœãšæå°éã®é 延ãçŽæããŸãã
èã1ïŒPulseAudioãåé€ãã-ãžã£ãã¯ã眮ã
å°ãªããšãUbuntuã§ã¯ãPulseAudioããµãŠã³ãçµ±åã®äºå®äžã®æšæºã§ãããšèšã人ã¯ã»ãšãã©ããŸããã ã»ãšãã©ã®å Žåãé³ãåºããœãããŠã§ã¢ã¯PulseAudio APIã䜿çšããŸãã ããšãã°ãFFã¯JACKããµããŒãããããã«åå¥ã«æ§ç¯ããå¿
èŠããããŸã ã
ãããã£ãŠã䜿çšãããã¹ãŠã®ãã®ãJACKã§æ©èœãããã©ããããããªãå Žåã¯ãPulseAudioãåé€ããªãã§ãã ããã ãããã£ãŠãæããã«ãJack-PulseAudioãçµ±åããããã®å¥ã®ãªãã·ã§ã³ããããŸãã ããããç§ã¯ãã®ãªãã·ã§ã³ãæåŠããŸããããªããªã äœé
延ãå¿
èŠãªãœãããŠã§ã¢ã§äœæ¥ããã«ã¯ãALSAãä»ããæä»çã¢ã¯ã»ã¹ã«æºè¶³ããŸãïŒWindowsã§ã¯åãããã«åäœããŸã-äœé
延ãå¿
èŠãªå Žåãæä»çã¢ã¯ã»ã¹ãèŠæ±ãããŸãïŒã ããããArdorã®ã€ã³ã¹ããŒã«ã«é¢ããŠã¯ããã®ãªãã·ã§ã³ã«æ»ãå¿
èŠããããŸãã
èã2ïŒALSAãšPulseAudioãèšå®ããå¿ èŠããã
ãããã£ãŠãJACKã¯å¿ èŠãããŸããã ãã¹ãŠãæ©èœããããã«ã¯ãã«ãŒãçšã«ALSAã³ã³ããŒãã³ããèšå®ããPulseAudioãšçµ±åããå¿ èŠãããããšãããããŸãã
PulseAudio
ããã§ã¯ããã®ãããªUIã³ã³ãœãŒã«ãæäŸããŠããŸã
ãã®ãããªæ¥œåšã«ã¯èª¬æã¯äžèŠã ãšæãã èšå®ãé©çšããåŸãããã«å€æŽãèãããšãã§ããã®ã§ãè©ŠããŠãã ããã
ãŸã ãAmaraoã¯pactl / pacmdã«æ³šæãæãããšããå§ãããŸãã ããã«çãããããããã®ãŠãŒãã£ãªãã£ã®äœãæªãã®ããæžããŸãã
蚺æALSA
æåã«å¿
èŠãªã®ã¯ãå°ãªããšãããã€ãã®èšºæããŒã«ã§ã-ããã¯alsa-utilsããã±ãŒãžã§ã
sudo apt install alsa-utils
次ã«ãã·ã¹ãã ãæ©åšãã©ã®ããã«èŠãããèŠãŠã¿ãŸãããã
aplay -l
ããã«ãèšå®ã確èªããå¿ èŠããããŸãã ãããã®ç®çã®ããã«ãã¹ããŒã«ãŒãã¹ããŠãŒãã£ãªãã£ãçºèŠãããŸãã
speaker-test --helpãåŒã³åºããšããŠãŒãã£ãªãã£ã§äœãã§ãããã衚瀺ãããŸãããç¹ã«æ§æã«èå³ããããŸã
speaker-test -Dplughw:1,0 -c4
- -D-ããã€ã¹IDã 1,0-ãããã¯ããã€ã¹ãšãµãããã€ã¹ã®ã€ã³ããã¯ã¹ã§ãããäžèšã®åºåãã¬ã€ã§èŠãŸãã
ããããããã¹ãéšåã®æ§é ã¯ããã§èª¬æãããŠããŸã - -c-ãã¹ãã衚瀺ããããã£ãã«ã®æ°
ç§ã®å Žåãæåã®2ã€ã®ãã£ã³ãã«ã¯æ£åžžã«æ©èœããŸãããèå³æ·±ãããšã«ã3çªç®ã®LFOãã£ã³ãã«ã¯é³ŽããŸãããã4çªç®ã®ãã£ã³ãã«ã¯é³ŽããŸãã LFOã...ã¹ãã¬ãªãšããŠæ§æãããŠããããã«æããŸããïŒ..ããã¯ç§ã®åé¡ã®äžéšã ãšæããŸãã
ALSAãæ§æãã
ãããšãã㧠dmixãå匷ããããšããå§ãããŸã-ããã¯ALSAã®ãã£ã³ãã«ãããµãŒã¢ãžã¥ãŒã«ã§ã-èŠãŠãããŸã
ã¢ã«ãµãããµãŒ
alsamixer-ãããµãŒã®æ¬äŒŒã°ã©ãã£ãã¯ã€ã³ã¿ãŒãã§ã€ã¹ã ã»ããã¢ããã®ãã³ãã®ååã¯ããã®ãŠãŒãã£ãªãã£ã«éå®ãããŠããŸãã å®éããã®ãŠãŒãã£ãªãã£ã¯ããã£ã³ãã«ãçªç¶ä¹±éã«ãªã£ãããé³éã¬ãã«ãäœäžãããšãã«è¡šç€ºãããããšããããããŸãã
ãããããããµãŒã®èšå®ã¯æ©èœããŸããã§ããã
hdajacksensetest
次ã®æçšãªãŠãŒãã£ãªãã£ã¯hdajacksensetestã§ãã ã©ã®ã³ãã¯ã¿ãå€éšããã€ã¹ã®æ¥ç¶ãæ€åºãããã瀺ããŸãã
OKãå€éšãµããŠãŒãã¡ãŒãããŒã0x1aã«æ¥ç¶ãããŠããããšãããããŸãã
LFOãåºåããå Žæããããã«èª¬æããæ¹æ³ãèŠã€ããŠã¿ãŸãããã
hdajackretask
ã»ãšãã©ã®ãããã³ã°èšå®ã®ãã³ãã¯ãhdajackretaskãŠãŒãã£ãªãã£ãæããŠããŸãã
ããã§ã¯ãã¹ãŠãæãããªããã§ã-ããŒããããããããã³ã°ããããŸãã æ®å¿µãªãããããŒã0x1aã§ã®æäœã¯æåããŸããã§ããã
ãã¶ããèšå®åŸã«æ瀺çã«ãµãŒãã¹ãåèµ·åããå¿
èŠããããŸããïŒ
sudo alsa force-reload
ããããããã«èŠãŠãã ããã
HDAAnalyzer
ãããã³ã°ãèšå®ããããã®å¥ã®ãŠãŒãã£ãªãã£ããããŸãã
ãã¡ãããpythonã¹ã¯ãªããïŒ!!!ïŒã®åœ¢åŒã§ããŠã³ããŒãã§ããŸãã
ãã®ããšã¯ãhdajackretaskã®ãã³ãã¢ããããŒãžã§ã³ã®ããã«èŠããŸããããŒãã«ãŒãã£ã³ã°å³ãã°ã©ãã£ã«ã«ã«äœæããæ¹æ³ããç¥ã£ãŠããŸãã ãããããã®ããšã䜿ã£ãå®éšã§ããé³ãå®å
šã«å€±ãããããšä»¥å€ã¯äœãèµ·ãããŸããã§ããã
ãã¥ãŒãã³ã°ã¬ã€ããèŠã€ãããªãã£ããããè©Šè¡é¯èª€ãç¹°ãè¿ããŠã¿ãŸããã
æ§æã®ç·šé
ãµãŠã³ãã®èšå®ã«åœ¹ç«ã€ä»ã®ãŠãŒãã£ãªãã£ã¯èŠã€ãããŸããã§ããã èšå®ãæ¢ããŠç·šéãããšããããšã ããè©ŠããŠãã ããã Googleãšfindã®å©ããåããŠãããã€ãã®å ŽæãèŠã€ããããšãã§ããŸããã
PulseAudio
/usr/share/pulseaudio
alsa-mixerãã©ã«ããŒã«ã¯èšå®ããããŸãã ãªããªã Pulseaudioã¯å€ããå°ãªããããã§åäœããŸãããç§ã¯äœã觊ããŸããã§ããã
/etc/pulse/daemon.conf
ç§ãç解ããŠããããã«ãããã¯pulseaudioãµãŒãã¹ã®èšå®ã§ããæ°å°ãªãèšå®ã®1ã€ã§ããããã®å€æŽã¯äœãã«åœ±é¿ãäžããŸãã ããã«èšå®ããããŸãïŒ
enable-lfe-remixing = yes
lfe-crossover-freq = 200
Pulseaudioã®ãµããŠãŒãã¡ãŒãæ¬æ¥ã®ãµãŠã³ãã«ä»äžããŸããã lfe-crossover-freq 200ã®å Žåãããã¯æããã«ãã«ãåäœã®ã«ãããªãåšæ³¢æ°ã§ãã
ãããããã®æ§æã§ã¯ãããè€éãªãã®ãæ§æããå¯èœæ§ããªãããšãæããã«ãªããŸãïŒããããã©ã³ãæ¥ç¶ãããŠããå ŽåããµããŠãŒãã¡ãŒãžã®äœé³ã®éä¿¡ãåæ¢ããŸãïŒã
ã¢ã«ãµ
/usr/share/alsa/*
以äžãå«ãããã€ãã®ã·ã§ã«ã¹ã¯ãªããããããŸãã alsa-info.shããã©ãã«ãŒãªã©ã®æ¬ é¥ãæºåãããšãã«åœ¹ç«ã¡ãŸãã
ãããŠãpcmãã©ã«ããŒã«ã¯ãç§ãç解ã§ããªãã£ãããã€ãã®æ§æããããŸãã
pcm.!center_lfe { @args [ CARD DEV ] @args.CARD { type string default { @func getenv vars [ ALSA_CENTER_LFE_CARD ALSA_PCM_CARD ALSA_CARD ] default { @func refer name defaults.pcm.center_lfe.card } } } @args.DEV { type integer default { @func igetenv vars [ ALSA_CENTER_LFE_DEVICE ] default { @func refer name defaults.pcm.center_lfe.device } } } type empty slave.pcm { @func refer name { @func concat strings [ "cards." { @func card_driver card $CARD } ".pcm.center_lfe." $DEV ":CARD=" $CARD ] } } hint { show { @func refer name defaults.namehint.basic } description "Center and Subwoofer speakers" device $DEV } }
ç§ã¯ãããã«è§Šããããšã«ãŸã 決ããŠããŸããã
/etc/modprobe.d/alsa-base.conf
å®èšŒæžã¿ã®2çªç®ã®æçšãªæ§æã æ§æã®äžéšã«è¿œå ããã次ã®è¡ã¯ãALSAã§ããããã©ã³ãå®éã«åäœãããŸãã
options snd-hda-intel model=auto,auto probe_mask=1
ãã®æ§æã®ã»ããã¢ããã«ã€ããŠã¯ãããªãå€ãã®ããšãæžãããŠããŸãã ç§ãç解ããŠããããã«ã圌ã®ç®æšã®1ã€ã¯ãã³ãŒããã¯ãããã€ã¹ïŒã¢ãã«ïŒã«ãããã³ã°ããããšã§ãã ã³ãŒããã¯ã¯...äœããã®ãããã³ã°ããªã»ããã§ã... ã¿ãã¬ããããããŸãïŒã³ããŒã¯ãã¡ãã§ã ïŒã ã»ãšãã©ã®å Žåãããã§æšæºæ§æã«ã¯ååã ãšæããŸãã
ããŸããŸãªã³ã³ãããŒã©ãŒã®ã¢ãã«ã«ã€ããŠèª¬æããŸãã ãã ããããããæ©èœããªãå Žåã¯ãç¬èªã®æ§æãè¿œå ããããšããå§ãããŸãã
ããã¯ã¯ãŒã«ã«èãããŸãããããã§2ã€ã®çºèšãããå¿
èŠããããŸãã
- ç¬èªã®èšå®ã®äœææ¹æ³ã«é¢ããã¬ã€ã-èšå®å¯Ÿè±¡ãä¿åå ãã³ããããªã© èŠã€ãããŸããã§ããã
- alsa-base.confã®èšå®ãå€æŽããåŸãOSãåèµ·åããå¿
èŠããããŸãã åèµ·åããã«ã
sudo alsa force-reload
ããããŒãã³ã¢echo 1 | sudo tee /sys/class/sound/hwC1D0/reconfig
ãè¡ãããŸããecho 1 | sudo tee /sys/class/sound/hwC1D0/reconfig
echo 1 | sudo tee /sys/class/sound/hwC1D0/reconfig
ã¯ãALSAã«ããã€ã¹ã³ãŒããã¯ã®åèªã¿èŸŒã¿ã匷å¶ããŸããã
ãšããã§ã /sys/class/sound/hwC1D0/
-ãã¡ã€ã«ã¯ãã§ã«ããã€ã¹äžã«çŽæ¥ååšããŸã ç§ã®ç解ã§ã¯ãhdajackretaskã¯ãããã®ãã¡ã€ã«ã§åäœããŸãã ããã§ããã©ãã«æžãã¹ãããç¥ã£ãŠããã°ãããããäœã圹ã«ç«ã€ããšãã§ããŸãã
çµè«
ããã§ç§ã¯ãã¹ãŠãæã£ãŠããŸãã daemon.conf
ããã³alsa-base.conf
ã§ç·šéããåŸãæåã«èª¬æããçµæãåŸãŸããã Ubuntuã®ãµãŠã³ããèšå®ããã®ã«åœ¹ç«ã€ã®ã¯ããã ãã§ãã
ããã§ã»ãšãã©ã®æ
å ±ãšArch Linuxã®ALSAããã¥ã¡ã³ããå
¥æããŸãã ã
ç§ãèšã£ãããã«ãä»äºãçµãã£ãåŸãçããããå€ãã®è³ªåããããŸãïŒ
- pulseaudioã¯ãµããŠãŒãã¡ãŒã§é©åã«åäœããŸãããALSAã¯ãããŸãã???
- ããŒããããã³ã°ãç·šéããã«ã¯ãã©ã®æ§æãç·šéããå¿ èŠããããŸããïŒ
- ããã§HD-Audioã¢ãã«ãååŸããæ¹æ³???
- ALSAã¯ä»ã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã®ãã¢ãšæ¯èŒããŠã©ã®çšåºŠå¹æçã§ããïŒ ãµãŠã³ããæ±ãã®ã«é©ããŠããŸããïŒ
ç§ãè¡ã£ãäœæ¥ã®çµæããåŒãåºãããšãã§ããäžè¬çãªçµè«ïŒäžè¬ã«ãããšãã°GUIãªã©ã®ã³ãã¥ããã£ãå€å°ãªããšãé¢äžããŠããå ŽåããµãŠã³ããµãã·ã¹ãã ã¯æããã«æ®ãããŠããããšãããããŸãã
ãããŸã§ããã®ãµãã·ã¹ãã ã䜿çšããå¯èœæ§ã¯ãä»ã®äžè¬çãªãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã®å¯Ÿå¿ç©ãšã®ç«¶åã«èããããšãã§ããŸããã
åäœããªããµããŠãŒãã¡ãŒãããããã©ã³ãªã©ã®è¿·æãªåé¡ããŸãã¯ãµããŠãŒãã¡ãŒçšã®ããŒãã¹ãã£ã«ã¿ãŒã®æ¬ åŠã¯ãããªã€ã³ã¹ããŒã«ããããœãããŠã§ã¢ãæŸæ£ããåã«èãçŽããŸãã çµå±ã®ãšãããOSã®æ¹Ÿæ²ã®ããã«ããŒããŠã§ã¢ããã®åçãæžãããããšæã人ã¯ããŸããã
PS ãµãŠã³ããèšå®ãããšãã«ç¥ã£ãŠãããšäŸ¿å©ãªä»ã®ããŒã«ãããã¥ã¢ã«ãããå Žåã¯ãèšäºã«è¿œå ããŸã
ss ç¹å®ã®åé¡ã«é¢ããŠãAsus N55-Wellcomeã®ææè
ã§ãããã±ãããéå§ããŸããã
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1733029