From patchwork Mon Feb 11 23:04:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 16822 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1U52Qj-0006dv-8Q; Tue, 12 Feb 2013 00:04:57 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-2) with esmtp id 1U52Qi-0006tU-I1; Tue, 12 Feb 2013 00:04:57 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759964Ab3BKXEy (ORCPT + 1 other); Mon, 11 Feb 2013 18:04:54 -0500 Received: from mail-la0-f53.google.com ([209.85.215.53]:43704 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758435Ab3BKXEx (ORCPT ); Mon, 11 Feb 2013 18:04:53 -0500 Received: by mail-la0-f53.google.com with SMTP id fr10so6201579lab.26 for ; Mon, 11 Feb 2013 15:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:content-type:x-mailer :mime-version:content-transfer-encoding; bh=NmpiGDHzKTLCNWxZjfs34G6s6OMxSRqHiCNh70XfeRg=; b=rQM70SfW/MfnucvZhbxWCoSnWlozSGzPt1GRS3yCyv1E5VV7Nl+wkjCu7WPRvRLxDS nKALhDWktXf5IyfptiduDONAwf0bX/8MJAtZ6C9+vmi9/g3+cZi0DxdH1JX7Jm7sgSwj vDBLE//l0f+I9DOxrH0GJNzYKFDFxK/oTzRR8sX617Zge2i0QWdVqA9n7gf9eHafaHrC 7aq7BWf8dP8w/uJLTi1oaPQjVZ2xr9jlZ5vYxv2M7AW6DF8t2WxXsdv6Y4xKHHTBOX3o cOcd/u9omYnad6RjdzfzfVQJWaBlIuEaEMBlFk64Qh2E5910v+7QbkOD2aW9zj1mOtX7 0T7A== X-Received: by 10.152.132.170 with SMTP id ov10mr10664696lab.21.1360623892432; Mon, 11 Feb 2013 15:04:52 -0800 (PST) Received: from [192.168.0.103] (ip-95-221-160-17.bb.netbynet.ru. [95.221.160.17]) by mx.google.com with ESMTPS id er8sm13570230lbb.9.2013.02.11.15.04.50 (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 11 Feb 2013 15:04:51 -0800 (PST) Message-ID: <1360623891.5821.8.camel@tux> Subject: [PATCH] [media] radio-si470x doc: add info about v4l2-ctl and sox+alsa From: Alexey Klimov To: linux-media@vger.kernel.org Date: Mon, 11 Feb 2013 23:04:51 +0000 X-Mailer: Evolution 3.4.4-2 Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.2.11.225418 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_GMAIL 0.1, HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1600_1699 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, DKIM_SIGNATURE 0, INVALID_MSGID_NO_FQDN 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' Patch adds information about using v4l2-ctl utility to tune the si470x radio and example how to use sox+alsa to redirect sound from radio sound device to another sound device. Signed-off-by: Alexey Klimov --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/video4linux/si470x.txt b/Documentation/video4linux/si470x.txt index 3a7823e..98c3292 100644 --- a/Documentation/video4linux/si470x.txt +++ b/Documentation/video4linux/si470x.txt @@ -53,6 +53,9 @@ Testing is usually done with most application under Debian/testing: - kradio - Comfortable Radio Application for KDE - radio - ncurses-based radio application - mplayer - The Ultimate Movie Player For Linux +- v4l2-ctl - Collection of command line video4linux utilities +For example, you can use: +v4l2-ctl -d /dev/radio0 --set-ctrl=volume=10,mute=0 --set-freq=95.21 --all There is also a library libv4l, which can be used. It's going to have a function for frequency seeking, either by using hardware functionality as in radio-si470x @@ -75,8 +78,10 @@ commands. Please adjust the audio devices to your needs (/dev/dsp* and hw:x,x). If you just want to test audio (very poor quality): cat /dev/dsp1 > /dev/dsp -If you use OSS try: +If you use sox + OSS try: sox -2 --endian little -r 96000 -t oss /dev/dsp1 -t oss /dev/dsp +or using sox + alsa: +sox --endian little -c 2 -S -r 96000 -t alsa hw:1 -t alsa -r 96000 hw:0 If you use arts try: arecord -D hw:1,0 -r96000 -c2 -f S16_LE | artsdsp aplay -B -